> 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 Libraries

脆弱な依存関係をアップグレードするということは、まだテストしていないバージョンを使うことになり、破壊的変更のリスクを負い、さらにそのアップグレードの展開をチーム全体で調整する必要があるということです。Aikido Libraries に移行すれば、そのトレードオフはなくなります。すでに使用中の正確なバージョンにパッチを適用するため、同じパッケージ、同じバージョン、同じ API、同じ挙動のまま、アプリケーションコードに手を入れずにセキュリティ修正を得られます。

Aikido には **9,000** JavaScript、Java、Python、PHP、Go、.NET、Ruby にわたる保護済みライブラリがあります。Aikido Libraries が最も役立つのは次のような場合です:

* CVE に安全な upstream 修正がまだない
* upstream の修正に、採用できないメジャーバージョンアップが必要
* パッケージがもはや保守されていない

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

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

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

2. 〜を開き **一括展開** タブを開き、 **リポジトリを選択**.
3. をクリック **Add Repo** 保護したいリポジトリを選択します。
4. 右側の **クレジット** パネルでクレジットの内訳を確認します。
5. をクリック **一括展開を有効にする** して確定します。

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

有効にすると、Aikido は毎日 PR を開き、パッケージを保護済みの Aikido バリアントに固定します。新しい CVE は自動的に取り込まれ、後続の PR に含まれます。手動の介入は不要です。

<details>

<summary>料金</summary>

リポジトリ保護は、クレジットベースの 1 年契約サブスクリプションで、毎年更新されます。費用は、登録時点でリポジトリ内にあるパッケージ数と公開中の CVE 数に基づき、最低 **リポジトリごとに年間 500 クレジット（500 ドル）**. 正確な費用は、確定前に Credits パネルに表示されます。

</details>

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

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

* **Feed から:** issue の詳細を開き、AutoFix PR を作成するときに Aikido Libraries オプションを選択します。
* **AutoFix > Dependencies から:** をクリック **修正を表示** 依存関係をクリックし、モーダルで Aikido Libraries バリアントを選択します。<br>

<details>

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

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

バージョン `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 版へ安全に移行できます。

Aikido Libraries バリアントが利用可能な場合、AutoFix はその移行を提案します。これは [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.
