> 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/autofix-to/scope/ai-autofix-for-sast-and-iac-issues.md).

# SASTおよびIaCの問題向けAutoFix

{% hint style="info" %}
Aikido Local Scan アカウントは UI 内で AutoFix にアクセスできませんが、IDE プラグインでは利用可能です。
{% endhint %}

Aikido の目標は常に、ノイズを減らし、本当に重要な問題に集中することで、時間を節約することでした。〜の導入により **AI 自動修正** 機能により、Aikido はさらに一歩先へ進みます。

### AI Autofix の主な機能 <a href="#key-features-of-ai-autofix" id="key-features-of-ai-autofix"></a>

* **変更をプレビュー：** AI 生成の修正内容の詳細プレビューを、適用前に確認して、基準に合致していることを確認します。
* **プルリクエスト（PR）を作成：** Autofix インターフェースから、ソースコード管理（SCM）システム内で直接プルリクエストを生成します。
* **IDE との直接統合：** VS Code 統合を介して修正をコードベースに即座に適用し、さらに時間を節約できます。

  ![AI 生成のパッチは、コールバックをエスケープして JSONP のセキュリティを強化し、PHP コードの XSS 脆弱性を軽減します。](/files/24a6c5e24eb8e41ec14858a9e6ceefa72ee1990a)

***

### 重要情報 <a href="#important-info" id="important-info"></a>

* **お客様のコードを学習／ファインチューニングには使用しません**
  * 修正の生成に必要なコードスニペットは、安全に送信されます。 **AWS Bedrock** 暗号化されたチャネルを通じて送信されます。Aikido **〜も** [AWS Bedrock](https://aws.amazon.com/bedrock/security-compliance/) お客様のコードを AI モデルの学習やファインチューニングに使用しません。
* **速度**
  * 簡単な修正は通常 5 秒未満で生成されます。より大きい、または複雑な修正には、ファイルサイズと問題の複雑さに応じて最大 30 秒かかる場合があります。
* **信頼度レベル**
  * 修正は信頼度レベルに分類されます： **高**, **中**、そして **低**。マージ前の手動レビューを推奨します。

    ![低信頼度の警告：類似の修正について、さらなる検証が必要です。](/files/5cd4a58deefa5b216f9ee4593904954275eedf9e)

***

### AI Autofix 機能の使い方 <a href="#how-to-use-the-ai-autofix-functionality" id="how-to-use-the-ai-autofix-functionality"></a>

* **ステップ 1**。SAST または IaC に移動します [Autofix ページ。 ](https://app.aikido.dev/issues/fix/sast)すべての候補修正は、種類と場所ごとにグループ化されます。

  ![重大な SAST 問題と、修正または Autofix のプレビューを行うオプションを表示する Aikido Autofix ダッシュボード。](/files/d75617ad97d5f7eae224e1be6635ab722d3995e6)
* **手順 2。** プレビューするか、PR を作成する修正を 1 つまたは複数選択します。

  ![セキュリティスキャンにより、2 つの PHP ファイルでパストラバーサル脆弱性が検出され、どちらも重大度は中程度です。](/files/458b0090dedc4d2d2a23cbe25a3bf7570863a7c9)
* **手順 3。** プレビューして適用。
  * **PR を作成**：SCM にプルリクエストを自動生成します。
  * **直接適用**：VS Code 統合を通じて、修正をコードベースに即座に適用します。

![PHP ファイルのパストラバーサル脆弱性を防ぐため、ファイルパス検証を追加するコードパッチのプレビュー。](/files/29b363a9f18cb8a6fdee15227cf91b4c9cfdbbbf)

***


---

# 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/autofix-to/scope/ai-autofix-for-sast-and-iac-issues.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.
