> 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/microsoft-auth.md).

# Microsoft 認証

{% stepper %}
{% step %}
**セキュリティ設定に移動する**

アカウントの設定ページに移動します: <https://mysignins.microsoft.com/security-info> そして2段階認証の設定を開始します

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

{% step %}
**2段階認証を設定する**

別のAuthenticatorアプリを使って設定することを選択します。

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

{% step %}
**別の認証アプリを選択する**

「別の認証アプリを設定」をクリックします。

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

{% step %}
**コードではなくシークレットを取得する**

QRコードが表示されたら、「バーコードをスキャンできません」を選択します

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

{% step %}
**キーをコピーする**

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

{% step %}
**パスワードマネージャーにキーを保存する**

次に、選択したパスワードマネージャーに、パスワードマネージャー用のキーを追加します。1Password や Bitwarden のように、キーの抽出が簡単にできるパスワードマネージャーの使用をおすすめします。
{% endstep %}

{% step %}
**手順を完了して2段階認証を有効にする**

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

{% step %}
**Aikido Pentestで認証を設定する**

以下のような形式で手順を書いてください

```
ステップ1: domain.com/login に移動する
ステップ2: 「Microsoft Login」を選択します。login.microsoftonline.com にリダイレクトされます
ステップ3: 次の認証情報を入力します:
- ユーザー名: <username>
- パスワード: <password>
ステップ4: TOTPを生成してログインする
成功条件: ログインに成功すると、ホーム画面に「Hello Aikido」と表示されます
```

{% endstep %}

{% step %}
**TOTP URLを追加する**

キーを正しいbase32形式で追加してください。Microsoftからキーを追加する際は、空白を削除してください

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


---

# 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/microsoft-auth.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.
