> 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 インターフェースから、Source Control Management（SCM）システム内で直接プルリクエストを生成できます。
* **IDE との直接連携:** VS Code 連携を通じて修正をコードベースに即座に適用でき、さらに時間を節約できます。

  ![AI が生成したパッチは、コールバックをエスケープすることで JSONP のセキュリティを強化し、PHP コードにおける XSS 脆弱性を軽減します。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-32d5b1e5f89adb77c5e011267240e20e6c00eff6%2Fucarecdn-859a9d47-c060-4244-8c32-89fff802c11e.png?alt=media)

***

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

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

    ![低信頼度の警告: 同様の修正について、さらなる検証が必要です。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-039f56ad7b2a1eda8cae600b1e4402982b967d7b%2Fucarecdn-2c623f8c-0bb2-444c-8071-d957e38e3f99.png?alt=media)

***

### 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 ダッシュボード。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-1f1e7e39971f879388f73f4b415bcd7ea90a1c9d%2Fucarecdn-2b801f85-4354-421b-b93d-7ff66d316815.png?alt=media)
* **手順 2.** プレビューまたは PR 作成のために、1 つ以上の修正を選択します。

  ![セキュリティスキャンにより、2 つの PHP ファイルでパストラバーサルの脆弱性が検出され、どちらも重大度は中です。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-bc47688addc5daf0d7d1ef2acd6c32ca8417f569%2Fucarecdn-b9f2fa3e-053f-492c-8a1d-3f0ed3b90a2c.png?alt=media)
* **手順 3.** プレビューして適用します。
  * **PR を作成**: SCM にプルリクエストを自動生成します。
  * **直接適用**: VS Code 連携を通じて、修正をコードベースに即座に実装します。

![PHP ファイルのパストラバーサル脆弱性を防ぐため、ファイルパス検証を追加するコードパッチのプレビュー。](https://715870456-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyKbzcQGrx7UtrG0nPZZ7%2Fuploads%2Fgit-blob-a3256e43dbf04ebeaeaabe46c0b4d48693d20276%2Fucarecdn-f6ac142a-2711-4ce2-b4d4-db6ae64938b2.png?alt=media)

***


---

# 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.
