> 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="/docs/docs-ja/aikdo/ai-code-audit-overview.md">コードセキュリティ監査</a></td></tr><tr><td><strong>データ漏えい監査</strong></td><td>DSPM: AIで、コード内の機密データの流れとデータ漏えいリスクを見つけます。</td><td><a href="/docs/docs-ja/aikdo/what-is-dspm.md">データ露出監査（DSPM）</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.
