> 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="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-5a2cf48bb778652f31182d8246df27c37bbc119d%2Fmicrosoft-security-info-add-signin-method.png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

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

<div data-with-frame="true"><figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-1f629711ff4f10e2b508e49156848bf1b5a5c48e%2Fmicrosoft-add-signin-method-authenticator.png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

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

<div data-with-frame="true"><figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-59cf6ce6507ed932da6a71b6c90aacd14f80da9f%2Fmicrosoft-install-authenticator-different-app.png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

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

<div data-with-frame="true"><figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-f6afdd52f6638d6c76a34ee58c51cf1d3208b00e%2Fmicrosoft-scan-qr-code-cant-scan.png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

<div data-with-frame="true"><figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-bec465789a43b9c45ff24bf8d5c6238afd3ad7ae%2Fmicrosoft-enter-authenticator-secret-key.png?alt=media" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

この後、任意のパスワードマネージャーにそのキーを追加します。キーの抽出が簡単にできる1PasswordやBitwardenのようなパスワードマネージャーの使用を推奨します。
{% endstep %}

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

<div data-with-frame="true"><figure><img src="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-2d35714e6d74187f26409bff9bafd580163d805b%2FScreenshot%202025-12-19%20at%2017.55.13.png?alt=media" 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="https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-cae50cb7204bb1bd64b845428c849bffbd1266ea%2FScreenshot%202026-05-19%20at%2013.40.02.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aikido.dev/docs/docs-ja/pentesuto/configure-a-pentest/setting-up-authenticated-testing/microsoft-auth.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
