Auditing Iac Module And Provider Supply Chainのロゴ

Auditing Iac Module And Provider Supply Chain

組織
UnboundCompute
auditing-iac-module-and-provider-supply-chain

Infrastructure as Codeのモジュールやプロバイダーのサプライチェーンを監査し、planまたはapply時に実行されるコードへの信頼を確認します。バージョンが固定されていない、または攻撃者が影響を与えられる場所から取得されるモジュール、整合性を固定せずにレジストリから取得されるプロバイダーやプラグイン、計画時にローカルコマンドを実行したりリモートコンテンツを取得したりするモジュール、ロックファイルが存在しない、無視される、またはCIで強制されていないケースを対象とします。Terraformなど、モジュールやプロバイダーが適用者の認証情報で実行される宣言型ツールが対象です。サードパーティ製または共有モジュールやプロバイダーからインフラを構築し、applyを実行するIDに特権がある場合に使用してください。信頼できないモジュールやプロバイダーのソースがソースで、planまたはapplyの実行がシンクです。整合性を固定せず、適用者の認証情報でコードが実行されることが脆弱性です。

概要

公開者UnboundCompute
リポジトリsecurity-agent-skills
スキル名auditing-iac-module-and-provider-supply-chain
スター
27
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    UnboundComputeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Auditing Iac Module And Provider Supply Chain」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-iac-module-and-provider-supply-chain
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-iac-module-and-provider-supply-chain .claude/skills/auditing-iac-module-and-provider-supply-chain
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAuditing Iac Module And Provider Supply Chainを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAuditing Iac Module And Provider Supply Chainを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Auditing Iac Module And Provider Supply Chainは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Auditing IaC module and provider supply chain: when planning runs someone else's code

Infrastructure-as-code feels declarative, but modules and providers are code, and they run with the credentials of whoever plans or applies them, which in a pipeline is usually a highly privileged identity. That makes the module and provider supply chain a direct path to those credentials. A module sourced from an unpinned reference can change under you between runs; a provider or plugin pulled without integrity verification can be swapped at the registry; a module that shells out or fetches remote content during planning executes on the runner before anyone reviews an apply; and a lockfile that is absent or not enforced lets the resolved versions drift. The declarative surface hides that a plan is an execution. You audit this by finding where module and provider code enters and whether its source and integrity are pinned.

When to use

  • Infrastructure is built from third-party or shared modules and from providers pulled at init time.
  • Module sources or provider versions are unpinned, or a dependency lockfile is missing or unenforced.
  • Plan or apply runs in CI with a privileged identity, so executing module code reaches real credentials.

Scope check

Audit IaC supply chain only for infrastructure and pipelines you own or are authorized to assess, on non-production state. Confirming that a module executes at plan time runs code on the runner, so keep any proof benign and inside the authorized pipeline. If you can't name the authorization, stop.

The loop

  1. Establish the apply identity and its power first. Name the credentials that plan and apply run under and what they can do in the environment. This is the false-positive killer that sets severity: an unpinned module matters far more when apply holds broad cloud permissions than when it is tightly scoped. Name the identity, then trace what code runs under it.

  2. Inventory every module and provider source. List where each module comes from (a registry, a version- control reference, a local path) and every provider or plugin the configuration pulls. Each external source is code that will run under the apply identity. Distinguish first-party internal modules from third-party ones, since the trust question differs.

  3. Check source and version pinning. For each module, confirm the source is pinned to an immutable reference (a specific version or a commit digest), not a mutable branch or a bare registry name that can resolve to a new release. For each provider, confirm the version is pinned and the dependency lockfile records and enforces the exact provider hashes. An unpinned source can change between runs without review.

  4. Find code that executes during plan. Some module constructs run at planning time: local command execution, data sources that shell out, and provisioners or external programs that fetch or run content. These execute before an apply is even approved, so a malicious or compromised module reaches the runner's credentials during a plan. Locate every such construct and whether it takes untrusted input.

  5. Check lockfile enforcement in CI. A lockfile only helps if CI initializes against it and fails when the resolved hashes do not match, rather than regenerating it silently. Confirm the pipeline enforces the lockfile, verifies provider integrity, and does not auto-upgrade. An ignored lockfile is no lockfile.

  6. Confirm and record. Confirm by showing an unpinned module reference resolves to changeable content, or that a plan executes a benign marker command from a module under the apply identity, within the authorized pipeline and without a destructive payload. Kill the lead if every module and provider source is pinned to an immutable reference, the lockfile is enforced with integrity verification in CI, and no plan-time construct runs untrusted code. Record the source, the plan or apply sink, and the unpinned or executing dependency.

Where IaC supply chain leaks

  • A plan is an execution. Modules and providers run with the applier's credentials, so planning is not a safe read-only step when the source is untrusted.
  • An unpinned source changes under you. A mutable branch or a bare registry reference can resolve to new content between runs with no review.
  • Plan-time command execution reaches the runner early. A module that shells out during planning runs before any apply approval gate.
  • A provider is code with credentials. An unpinned or unverified provider plugin executes at init and apply with the same power as the configuration.
  • An unenforced lockfile is decoration. If CI regenerates or ignores it, the pinned versions drift and the integrity guarantee is lost.

Worked example (a confirm and a kill)

Confirm. A pipeline consumes a shared module referenced by a mutable branch, and the module includes a data source that executes a local command during plan. The plan runs in CI under a privileged apply role. Pointing the branch at updated content runs a benign marker command under the apply role at plan time, before any approval. Confirmed IaC supply-chain execution under the apply identity, high, remediation = pin the module to an immutable commit digest, remove or sandbox the plan-time command execution, and gate the apply role behind approval that the plan cannot bypass.

Kill. Every module is pinned to a commit digest and every provider to a version recorded in an enforced lockfile with hash verification in CI, no module runs commands or fetches remote content at plan time, and the apply identity is scoped to the resources the configuration manages. A changed upstream cannot alter a run without a reviewed pin bump. Killed, kill_reason = "modules and providers pinned to immutable references with an enforced lockfile, no plan-time code execution, and a scoped apply identity; no untrusted code runs under the applier's credentials."

Rationalizations to reject

  • "Terraform is declarative, plan is read-only." → Plan runs module code, data sources, and providers; a plan-time command executes on the runner under the apply identity.
  • "The module is from our registry." → Confirm it is pinned to an immutable version; a bare registry name can resolve to a new, unreviewed release.
  • "We have a lockfile." → Confirm CI enforces it with integrity verification and does not regenerate it; an ignored lockfile pins nothing.
  • "Providers come from the official registry." → Official does not mean integrity-pinned for your run; pin the version and verify the hash in the lockfile.
  • "Apply is gated by approval." → Check that plan-time execution cannot reach credentials before the gate; the gate protects apply, not planning.

Executing this in practice

You need the plan and apply identity and its power, every module and provider source, the pinning of each, the plan-time execution constructs, and the lockfile enforcement in CI. For each dependency, ask whether its source and integrity are pinned and whether it runs code before an apply gate. Reading the sources and the lockfile shows the intended trust; showing an unpinned reference resolve to changed content, or a plan-time marker command run, shows whether the boundary holds.

Related

  • hunting-supply-chain-risks - the general dependency-trust discipline; IaC modules and providers are a specific, credential-bearing case of it.
  • auditing-cicd-oidc-trust - the pipeline identity that plan and apply run under is often a federated cloud role; scope it there and here together.
  • hunting-cicd-workflow-injection - attacker-controlled repository data reaching a privileged run step is the same runner-credential threat from the workflow side.
  • auditing-infrastructure-as-code-exposures - the effective-config side: what the resources declare, once the module and provider supply chain is trusted.
  • FINDING-SCHEMA.md - source = the untrusted module or provider source, sink = the plan or apply execution, evidence = the unpinned or plan-time-executing dependency under the apply identity.

よくある質問

AIスキル「Auditing Iac Module And Provider Supply Chain」では何ができますか?

Infrastructure as Codeのモジュールやプロバイダーのサプライチェーンを監査し、planまたはapply時に実行されるコードへの信頼を確認します。バージョンが固定されていない、または攻撃者が影響を与えられる場所から取得されるモジュール、整合性を固定せずにレジストリから取得されるプロバイダーやプラグイン、計画時にローカルコマンドを実行したりリモートコンテンツを取得したりするモジュール、ロックファイルが存在しない、無視される、またはCIで強制されていないケースを対象とします。Terraformなど、モジュールやプロバイダーが適用者の認証情報で実行される宣言型ツールが対象です。サードパーティ製または共有モジュールやプロバイダーからインフラを構築し、applyを実行するIDに特権がある場合に使用してください。信頼できないモジュールやプロバイダーのソースがソースで、planまたはapplyの実行がシンクです。整合性を固定せず、適用者の認証情報でコードが実行されることが脆弱性です。

TypingMindでAuditing Iac Module And Provider Supply Chainを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Auditing Iac Module And Provider Supply Chainはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAuditing Iac Module And Provider Supply Chainをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-iac-module-and-provider-supply-chainを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Auditing Iac Module And Provider Supply Chainを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Auditing Iac Module And Provider Supply Chainで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAuditing Iac Module And Provider Supply Chainを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Auditing Iac Module And Provider Supply Chain」は無料ですか?

はい。UnboundComputeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇