> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/penetorshontesuto/configure-a-pentest/setting-up-authenticated-testing/handling-sms-verification.md).

# SMS認証への対応

Aikido は、認証済みペンテスト向けに、認証セット用の専用電話番号を用意することで、SMS ベースの検証をサポートします。

**アプリケーションが以下を必要とする場合は、この機能を使用してください：**

* **SMS 2FA / MFA：** ユーザー名/パスワード入力後にテキストメッセージのコードが必要です。

{% hint style="info" %}
アプリが認証アプリを使用している場合は、 [TOTP セットアップ](/docs/docs-ja/penetorshontesuto/configure-a-pentest/setting-up-authenticated-testing/handling-two-factor-authentication-totp.md).

アプリがメールでコードを送信する場合は、 [メール認証機能](/docs/docs-ja/penetorshontesuto/configure-a-pentest/setting-up-authenticated-testing/handling-email-verification-and-magic-links.md).
{% endhint %}

#### 仕組み

で **テストユーザー** モーダルで、Aikido はプロジェクト用の電話番号を作成できます。その番号をログインフローで使用し、指示には `<phone_number>` プレースホルダー。

開くことができます **メッセージを表示** いつでも開いて、受信した SMS メッセージを確認し、検出された認証コードをすばやくコピーできます。

#### セットアップガイド

{% stepper %}
{% step %}
**SMS 認証方式を選択**

テストユーザーを追加する際は、 **ユーザー名とパスワード + SMS 認証**.
{% endstep %}

{% step %}
**電話番号を作成**

で **SMS 電話番号** セクション：

1. クリック **電話番号を作成**.
2. 生成された番号をコピーします。

<div data-with-frame="true"><figure><img src="/files/ae2f535c4c0c7066dbdfd5ca1cbd57532ca1254f" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**アプリでその番号を使用する**

テストユーザーを設定し、SMS 認証コードが生成された番号に送信されるようにします。
{% endstep %}

{% step %}
**認証手順を更新**

明示的な手順を段階的に記載し、 `<phone_number>` 該当する場合はそれを含めます。

**手順例：**

```
1. https://app.example.com/login に移動する
2. ユーザー名を入力: pentest_user
3. パスワードを入力: super_secure_password
4. 「ログイン」をクリックします
5. +1234567890 に送信される SMS 認証コードを待つ
6. SMS コードを入力し、「Verify」をクリックする
```

{% endstep %}

{% step %}
**受信メッセージを確認**

クリック **メッセージを表示** SMS 受信トレイを開くには：

* メッセージはリアルタイムで表示されます。
* 数値コードが検出された場合は、 **コードをコピー** を使ってすばやく入力/テストできます。

<div data-with-frame="true"><figure><img src="/files/92408bf0d978fecc0b5ede3abdefe17d997b7992" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**設定をテスト**

1. クリック **保存してテスト**.
2. エージェントは、SMS 認証ステップを含むログインフローを実行します。
3. 認証済み状態に到達することを確認します。
   {% endstep %}
   {% endstepper %}

#### トラブルシューティング

* **SMS が届かない場合：** アプリが正確に生成された番号へコードを送信していること、およびテストユーザープロフィールが更新されていることを確認してください。
* **プレースホルダーが置き換えられていない場合：** 正確なトークンを使用してください `<phone_number>` を手順に含めてください。
* **電話番号を作成できませんでした：** ウォレット残高を確認してください。電話番号の作成は無料ですが、不正利用防止のため、ウォレットに十分なクレジットが必要です。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/penetorshontesuto/configure-a-pentest/setting-up-authenticated-testing/handling-sms-verification.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
