Auditing Iac Module And Provider Supply Chain logo

Auditing Iac Module And Provider Supply Chain

Organization
UnboundCompute
auditing-iac-module-and-provider-supply-chain

Audit the supply chain of infrastructure-as-code modules and providers for trust that runs at plan or apply time: a module sourced from an unpinned or attacker-influenceable location, a provider or plugin pulled from a registry without integrity pinning, a module that executes local commands or fetches remote content during planning, and a lockfile that is missing, ignored, or not enforced in CI. Covers Terraform and similar declarative tools where a module or provider runs with the credentials of whoever applies it. Use when infrastructure is built from third-party or shared modules and providers and the apply identity is privileged. The untrusted module or provider source is the source, the plan or apply execution is the sink, and the code running under the applier's credentials without integrity pinning is the bug.

Overview

PublisherUnboundCompute
Repositorysecurity-agent-skills
Skill nameauditing-iac-module-and-provider-supply-chain
Stars
27
Forks
8
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by UnboundCompute on GitHub. Read the source before you install it.

Installation

Install the Auditing Iac Module And Provider Supply Chain AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-iac-module-and-provider-supply-chain
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Auditing Iac Module And Provider Supply Chain in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Auditing Iac Module And Provider Supply Chain on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Auditing Iac Module And Provider Supply Chain is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Auditing Iac Module And Provider Supply Chain AI skill do?

Audit the supply chain of infrastructure-as-code modules and providers for trust that runs at plan or apply time: a module sourced from an unpinned or attacker-influenceable location, a provider or plugin pulled from a registry without integrity pinning, a module that executes local commands or fetches remote content during planning, and a lockfile that is missing, ignored, or not enforced in CI. Covers Terraform and similar declarative tools where a module or provider runs with the credentials of whoever applies it. Use when infrastructure is built from third-party or shared modules and pr...

Why use Auditing Iac Module And Provider Supply Chain on TypingMind?

Because you install it once and use it with any model. Auditing Iac Module And Provider Supply Chain is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Auditing Iac Module And Provider Supply Chain in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-iac-module-and-provider-supply-chain. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Auditing Iac Module And Provider Supply Chain?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Auditing Iac Module And Provider Supply Chain?

As many as you like. As long as a model supports skills, you can use Auditing Iac Module And Provider Supply Chain with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Auditing Iac Module And Provider Supply Chain AI skill free?

Yes. It is published on GitHub by UnboundCompute under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇