> 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/aikido-libraries-overview.md).

# Aikido ライブラリ

脆弱な依存関係をアップグレードするということは、まだテストしていないバージョンを使用し、破壊的変更のリスクを負い、そのアップグレードをチーム全体でデプロイする調整を行うことを意味します。Aikido Libraries へ移行すれば、そのトレードオフは不要になります。すでに使用中の正確なバージョンにパッチを適用します。つまり、同じパッケージ、同じバージョン、同じ API、同じ動作のまま、アプリケーションコードに手を加えることなくセキュリティ修正を適用できます。

Aikido には **6,000** JavaScript、Java、Python、PHP、.NET にわたり保護されたライブラリが多数あります。Aikido Libraries が最も役立つのは、次の場合です。

* CVE に安全なアップストリーム修正がまだない
* アップストリームの修正には、実施できないメジャーバージョンアップが必要である
* パッケージがすでに保守されていない

### 1 つ以上のリポジトリに Aikido Libraries を展開する

1. 左側のサイドバーで、次へ移動します **AutoFix** をクリックします **Aikido Libraries**.

<figure><img src="/files/78471a97660089677481c6a827093200da2a957d" alt=""><figcaption></figcaption></figure>

2. 次を開きます **一括ロールアウト** タブを開き、次をクリックします **リポジトリを選択**.
3. 次をクリックします **リポジトリを追加** をクリックし、保護するリポジトリを選択します。
4. 次の項目でクレジットの内訳を確認します **クレジット** 右側のパネル。
5. 次をクリックします **一括ロールアウトを有効化** をクリックして確認します。

<figure><img src="/files/b0d447607922c37aa29f75dc4bdc67d2610a9a2e" alt=""><figcaption></figcaption></figure>

有効化すると、Aikido はパッケージを保護済みの Aikido バリアントに固定する PR を毎日作成します。新しい CVE は自動的に検出され、後続の PR に含まれます。手動での対応は不要です。

<details>

<summary>料金</summary>

リポジトリ保護はクレジットベースの 1 年間サブスクリプションで、毎年更新されます。費用は、登録時点でリポジトリに含まれるパッケージ数と未解決の CVE 数に基づき、最低料金は **リポジトリあたり年間 2,000 クレジット（2,000 ドル）**&#x3067;す。正確な費用は、確認前に［クレジット］パネルに表示されます。

</details>

### 単一の依存関係を修正する

脆弱な依存関係に対応する Aikido Libraries バリアントがある場合、Aikido は 2 か所で修正オプションとして表示します。単発の修正にはクレジットは不要です。

* **フィードから：** 問題の詳細を開き、AutoFix PR の作成時に Aikido Libraries オプションを選択します。
* **AutoFix ＞ Dependencies から：** 次をクリックします **修正を表示** 依存関係で をクリックし、モーダル内で Aikido Libraries バリアントを選択します。<br>

<details>

<summary>例：log4j@1.2.16</summary>

20 年以上前にリリースされたにもかかわらず、log4j 2.x へのアップグレードは破壊的変更となるため、log4j のバージョン 1.2.16 は今も多くのチームで使用されています。

バージョン `1.2.16` には、次の重大な問題が含まれています：

* [CVE-2019-17571](https://nvd.nist.gov/vuln/detail/cve-2019-17571) - リモートコード実行
* [CVE-2020-9493](https://nvd.nist.gov/vuln/detail/cve-2020-9493) - 悪意のあるコードの実行
* [CVE-2022-23305](https://nvd.nist.gov/vuln/detail/cve-2022-23305) - SQL インジェクション

次の Aikido Libraries バリアントは `log4j 1.2.16` これらの CVE を修正し、次への移行を強制しません `2.x`.

AutoFix を使用すると、既存の log4j\@1.2.16 ライブラリから対応する Aikido バージョンへ安全に移行できます。

利用可能な場合、AutoFix は Aikido Libraries バリアントへの移行を提案します。これは次の画面で確認できます [AutoFix の依存関係概要](https://app.aikido.dev/issues/fix).

<figure><img src="/files/fc0d76b1139cc0300214901ed4cf8859da20db10" alt=""><figcaption></figcaption></figure>

Aikido Libraries バリアントへ移行するには、AutoFix 作成モーダルでこのオプションを選択します。

<figure><img src="/files/f97dcf665994b5eba48e099319e498dc5cec771c" alt=""><figcaption></figcaption></figure>

</details>


---

# 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/aikido-libraries-overview.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.
