> 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/pentesuto/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/pentesuto/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.
