> 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/prepare-a-pentest/preparing-for-a-pentest.md).

# ペンテストの準備

ペンテストを開始する前に、環境を準備する必要があります。これらの一度限りの手順により、Aikido のエージェントがブロックされることなく安全にアプリへアクセスし、意義のある評価を実施できます。

このチェックリストに従えば、すぐにセットアップできます。

{% stepper %}
{% step %}
**テスト環境を準備する**

本番以外の環境（例：ステージング）でペンテストを実施し、本番ユーザーへの影響を避けてください。

* **本番環境を再現：** 構成が本番のアーキテクチャと一致していることを確認してください。
* **安全なデータ：** ダミーデータのみを使用してください。実在する顧客のPIIは使用しないでください。
* **完全に機能する状態：** すべての機能と連携を有効にしてください。

**ガイドを参照：** [テスト環境を使う理由](/docs/docs-ja/pentesuto/prepare-a-pentest/why-use-a-testing-environment.md)
{% endstep %}

{% step %}
**Aikido の IP を許可リストに追加**

セキュリティツールが当社のテストエージェントをブロックする可能性があります。これを防ぐには、以下を許可リストに追加してください [Aikido の IP](/docs/docs-ja/pentesuto/prepare-a-pentest/ip-addresses-for-pentest.md) で：

* **ネットワークファイアウォール：** 受信トラフィックを許可してください。
* **WAF：** ブロックおよびレート制限ルールを無効にしてください。
* **ボット対策：** 行動ベースのブロックとレート制限を無効にしてください。
  {% endstep %}

{% step %}
**テストアカウントを準備する**

ステージング環境に専用のテストユーザーを作成し、エージェントが認証済みの経路をテストできるようにしてください。

* **ロール：** 少なくとも1つ作成してください **管理者** と1つ **標準ユーザー** を作成し、権限昇格をテストしてください。
* **マルチテナンシー：** 該当する場合は、異なるテナント（例：Tenant A と Tenant B）にユーザーを作成し、データ漏えいがないか確認してください。

**ガイドを参照：** [テストユーザーの設定](/docs/docs-ja/pentesuto/configure-a-pentest/setting-up-authenticated-testing.md)
{% endstep %}

{% step %}
**コードを接続する**

ホワイトボックステストでは、より深刻な脆弱性を発見できます。ソースコードのリポジトリを Aikido に接続すると、当社のエージェントがアプリケーションロジックを完全に把握できるようになり、より正確で影響の大きい結果を得られます。

**推奨：** アプリケーションに関連するすべてのリポジトリを Aikido に接続してください。

**ガイドを参照：** [リポジトリを接続する](/docs/docs-ja/hajimeni/setting-up-your-account/create-account-and-connect-your-repositories.md)

**リポジトリを接続できませんか？**\
リポジトリへの直接アクセスができない場合でも、API仕様書やその他の内部ドキュメントなどの補助資料を提供することで、カバレッジを向上させることができます。

**ガイドを参照：** [コードとドキュメントの活用](/docs/docs-ja/pentesuto/configure-a-pentest/leveraging-code-and-documentation.md)
{% endstep %}

{% step %}
**所有権を確認する**

悪用を防ぐため、攻撃を開始する前に所有権の証明を厳格に求めています。

* **確認方法：** 現在、この手順はペンテストウィザードに統合されています。新しいペンテストを開始し、最後のステップまで進むと、DNS またはファイルによる確認オプションが表示されます。
  {% endstep %}
  {% endstepper %}

**わからない場合は？** 複雑な認証フローやアーキテクチャ上の制約がある場合は、右下の Intercom チャットをご利用ください。リアルタイムで準備をお手伝いできます。


---

# 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/prepare-a-pentest/preparing-for-a-pentest.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.
