C
月内に
AsyncAPIジェネレーターのGitHub Actionsにおける設定不備を悪用し、NPMサプライチェーン攻撃が行われました
📌 一言でいうと
AsyncAPIジェネレーターのGitHub Actionsにおける設定不備を悪用し、NPMサプライチェーン攻撃が行われました。攻撃者は権限の高い個人アクセストークン(PAT)を窃取し、4つのNPMパッケージに悪意のあるコードを注入して5つの悪意あるバージョンを公開しました。感染した環境では、IPFS経由でNode.jsローダーがダウンロードされ、独立したプロセスとして実行されます。
🔍該当判定
- 社内でNode.jsを利用した開発を行っており、npmパッケージを利用している
- 開発プロジェクトで『AsyncAPI generator』というライブラリを導入している
- GitHub Actionsを利用して、自動的にnpmへパッケージを公開(デプロイ)する設定にしている
- GitHub Actionsのワークフロー設定で『pull_request_target』イベントを使用している
上記いずれにも該当しない → 静観でOK
✅該当時の対応
1. AsyncAPI関連のNPMパッケージのバージョンを確認し、悪意のあるバージョンを排除すること。2. GitHub Actionsの `pull_request_target` ワークフローにおいて、信頼できないコードが機密情報にアクセスできないよう、ジョブの分離などの適切な権限管理を徹底すること。
📧 メール案を見る (管理者向け)
⚠️ これは AI が生成した参考例です。配信前に必ず内容をご確認のうえ、貴社の状況に合わせて編集してご利用ください。実際の被害状況や自社の利用環境を踏まえた判断は、貴社のセキュリティ責任者にご確認ください。
件名: 【共有】AsyncAPI NPMパッケージのサプライチェーン攻撃について
お疲れさまです。AsyncAPIのNPMパッケージにおけるサプライチェーン攻撃に関する情報共有です。
■ 概要
GitHub Actionsの `pull_request_target` 設定不備(Pwn Request)を悪用し、攻撃者がNPM公開権限を奪取。4つのAsyncAPI関連パッケージに悪意のあるコードが注入され、IPFS経由で後続のペイロードをロードする仕組みが構築されていました。
■ 影響範囲
- AsyncAPI generator 関連の NPM パッケージ(悪意あるバージョンを導入した環境)
■ 対応手順
1. 開発環境およびCI/CDパイプラインで使用している AsyncAPI 関連パッケージのバージョンを確認し、侵害されたバージョンが含まれていないか検証してください。
2. GitHub Actionsを利用している場合、`pull_request_target` イベントで外部からのPRコードを直接実行していないか、機密情報(Secrets)へのアクセス権限が適切に制限されているかレビューしてください。
■ 参考情報
- Wiz, Aikido Security, Cloudsmith のレポート
対応優先度: 高
対応期限: 速やかに確認
お疲れさまです。AsyncAPIのNPMパッケージにおけるサプライチェーン攻撃に関する情報共有です。
■ 概要
GitHub Actionsの `pull_request_target` 設定不備(Pwn Request)を悪用し、攻撃者がNPM公開権限を奪取。4つのAsyncAPI関連パッケージに悪意のあるコードが注入され、IPFS経由で後続のペイロードをロードする仕組みが構築されていました。
■ 影響範囲
- AsyncAPI generator 関連の NPM パッケージ(悪意あるバージョンを導入した環境)
■ 対応手順
1. 開発環境およびCI/CDパイプラインで使用している AsyncAPI 関連パッケージのバージョンを確認し、侵害されたバージョンが含まれていないか検証してください。
2. GitHub Actionsを利用している場合、`pull_request_target` イベントで外部からのPRコードを直接実行していないか、機密情報(Secrets)へのアクセス権限が適切に制限されているかレビューしてください。
■ 参考情報
- Wiz, Aikido Security, Cloudsmith のレポート
対応優先度: 高
対応期限: 速やかに確認
Subject: [Security Alert] Supply Chain Attack on AsyncAPI NPM Packages
Dear IT/Security Team,
We are sharing information regarding a supply chain attack affecting AsyncAPI NPM packages.
■ Overview
Attackers exploited a misconfiguration in GitHub Actions (`pull_request_target` vulnerability, known as a 'Pwn Request') to steal a Personal Access Token (PAT). This allowed them to publish five malicious versions across four AsyncAPI NPM packages. The malicious code utilizes the IPFS protocol to download and execute a Node.js loader.
■ Scope
- Environments utilizing compromised versions of AsyncAPI generator NPM packages.
■ Action Items
1. Audit your development environments and CI/CD pipelines to ensure no compromised versions of AsyncAPI packages are in use.
2. Review GitHub Actions workflows, specifically those using `pull_request_target`, to ensure that untrusted code from PRs cannot access repository secrets.
■ Reference
- Reports from Wiz, Aikido Security, and Cloudsmith
Priority: High
Deadline: Immediate
Dear IT/Security Team,
We are sharing information regarding a supply chain attack affecting AsyncAPI NPM packages.
■ Overview
Attackers exploited a misconfiguration in GitHub Actions (`pull_request_target` vulnerability, known as a 'Pwn Request') to steal a Personal Access Token (PAT). This allowed them to publish five malicious versions across four AsyncAPI NPM packages. The malicious code utilizes the IPFS protocol to download and execute a Node.js loader.
■ Scope
- Environments utilizing compromised versions of AsyncAPI generator NPM packages.
■ Action Items
1. Audit your development environments and CI/CD pipelines to ensure no compromised versions of AsyncAPI packages are in use.
2. Review GitHub Actions workflows, specifically those using `pull_request_target`, to ensure that untrusted code from PRs cannot access repository secrets.
■ Reference
- Reports from Wiz, Aikido Security, and Cloudsmith
Priority: High
Deadline: Immediate