> 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 Autofix** 機能により、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.
