> 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/aikdo/ai-code-analysis.md).

# AIコード解析

AIコード分析は、ファイル、サービス、またはリポジトリをまたぐコンテキストを必要とするセキュリティおよびデータ露出のリスクを特定するために、ソースコード全体を推論します。

目的に合った監査タイプを選択してください:

<table data-view="cards"><thead><tr><th>監査タイプ</th><th>見つけるのに役立つもの</th><th data-hidden data-card-target data-type="content-ref">対象</th></tr></thead><tbody><tr><td><strong>コードセキュリティ監査</strong></td><td>AI SAST: AIを使って、コード内の実際の攻撃経路と検証済みのセキュリティリスクを見つけます。</td><td><a href="/pages/605f473e291fd36e24fa5a488cc91170678a5165">/pages/605f473e291fd36e24fa5a488cc91170678a5165</a></td></tr><tr><td><strong>データ露出監査</strong></td><td>DSPM: AIを使って、コード内の機密データの流れとデータ露出のリスクを見つけます。</td><td><a href="/pages/c9203dbeb6e85bafb645a94077b7fd4d294e9f86">/pages/c9203dbeb6e85bafb645a94077b7fd4d294e9f86</a></td></tr></tbody></table>

## 仕組み

どちらの監査タイプも接続されたリポジトリを使用します。コードセキュリティ監査ではステージング環境やライブターゲットは不要で、データ露出監査ではデータストアにアクセスしません。検出結果には、コードに基づく証拠と修正ガイダンスが含まれます。

* **エージェントによる分析:** Aikidoは複数のエージェントを使ってコードを調査し、ファイルやサービスをまたぐ関連コンテキストを追跡し、潜在的な検出事項を検証します。
* **タスクに合わせたモデルとハーネス:** Aikidoは、分析の各段階に最適なモデルと分析ハーネスを選択し、分析の深さと使用リソースのバランスを取ります。
* **開始前にコストを確認:** 料金ステップでは、分析を開始する前に、選択したリポジトリの正確なクレジット合計が表示されます。確認後、その合計は分析に対して固定されます。

実行中のアプリケーションをテストするには、 [Aikido Pentest](/docs/docs-ja/pentesuto/aikido-pentest.md)を使用してください。既知の脆弱性パターンを高速かつ継続的にチェックするには、 [SAST](/docs/docs-ja/kdosukyan/scanning-practices/sast-by-aikido-supported-languages-and-security-focus.md).


---

# 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/aikdo/ai-code-analysis.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.
