incident-supply-chain

incident-supply-chain is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 107 tokens per session (2,648 once invoked), scanned E, original, MIT.

An incident-response guide for a suspected compromised package, GitHub Action, container image, or developer tool.

In plain words
What is it for?
Use it to isolate systems, inspect lockfiles and automation, remove malicious changes, replace compromised dependencies, and report the incident.
Why use it?
It helps contain a supply-chain attack, find affected versions and persistence, and rotate exposed credentials in a safe order.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to isolate systems, inspect lockfiles and automation, remove malicious changes, replace compromised dependencies, and report the incident.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/incident-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 Phaedra-Solutions/cursor-rules --skill incident-supply-chain
Clone the repo
git clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rules

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 incident-supply-chain

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/incident-supply-chain/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/incident-supply-chain)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/incident-supply-chain"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/incident-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 incident-supply-chain

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/incident-supply-chain"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/incident-supply-chain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan E 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00107 $0.02648
Opus 5.5 $0.00043 $0.01059
Sonnet 5.5 $0.00021 $0.00530
Haiku 4.5 $0.00011 $0.00265

Measured 3d ago against content hash cf46d7309c3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade E, and why

incident-supply-chain scanned grade E with 2 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 3d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

| Shai-Hulud | npm, Sep 2025 | `postinstall` → `bundle.js`; TruffleHog to harvest secrets | Repo named `Shai-Hulud`; workflow `shai-hulud-workflow.yml` |

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Order matters.** Since Mini Shai-Hulud (May 2026) and ChainDrop (Aug 2026), worms install a token monitor that polls GitHub with the stolen token and wipes the home directory (`rm -rf ~/`) when the token is revoked.
skills/incident-supply-chain/SKILL.md · 110 lines

How it starts

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

Supply-chain incident

When to use

  • A package, GitHub Action, container image or developer tool you use is reported malicious or compromised.
  • security-audit, cve-check or dependency-vet finds a MAL- entry or a GitHub malware advisory.
  • You notice signs of an install-time attack: an unexpected preinstall/postinstall script, new workflow files, unknown repos or runners on the user's account, or edited AI-assistant or editor config.

Before you start

  • Tell the user plainly that this is a security incident, and recommend involving their security team now.
  • Collect what's known: package and ecosystem, malicious versions, exposure window (UTC), and the source of the report. Confirm it with OSV or GHSA (see cve-check).
  • Order matters. Since Mini Shai-Hulud (May 2026) and ChainDrop (Aug 2026), worms install a token monitor that polls GitHub with the stolen token and wipes the home directory (rm -rf ~/) when the token is revoked. Miasma (Oct 2026) also wipes on revocation. So: isolate, then remove persistence, then rotate from a clean machine.
  • Every step that changes accounts, credentials, CI or history is the user's action or needs their explicit approval. You investigate and prepare commands.

Steps

  1. Stop the spread.
    • Stop all installs, builds and dev servers on affected machines. Don't run any package scripts.
    • Pause CI that installs dependencies or publishes: gh workflow disable <workflow> per repo, with the user's approval. Pause release and deploy pipelines.
    • If malware may have run on a machine, disconnect it from the network but keep it powered on for evidence. Do the rest of the investigation on it offline, or from a clean machine.
  2. Scope the exposure.
    • Find every lockfile that resolves an affected version:

      grep -rn --include='package-lock.json' --include='pnpm-lock.yaml' --include='yarn.lock' --include='bun.lock' --include='uv.lock' --include='poetry.lock' --include='requirements*.txt' 'PACKAGE' .
      npm ls PACKAGE --all     # or: pnpm why PACKAGE / yarn why PACKAGE / uv tree --package PACKAGE
      osv-scanner scan source -r .   # flags any MAL- entries across all lockfiles
      

Read the full file on GitHub · 110 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. 3d ago First seen · 110 lines · 107 tokens per session scan E cf46d7309c3c

Subscribe to this mod's changes

incident-supply-chain is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 107 tokens to every session and 2,648 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it E with 2 findings (harvests environment variables, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

Other skills, from other repositories

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications.

sjarmak/coding-agent-workflows · 31 tokens

deployment

Use when taking an app from source to live: choosing the deploy target from requirements (Hetzner+Coolify vs Vercel vs a third), then wiring container → CI → registry → host with build secrets, healthchecks and rollback. NOT one platform's mechanics (that is coolify, vercel, railway, render), NOT the Dockerfile alone…

ericrisco/rsc-harness · 86 tokens

agent-devops-engineer

Skill "agent-devops-engineer" from travisjneuman/.claude, covering devops engineer agent, capabilities, cloud platforms, infrastructure as code and container orchestration.

travisjneuman/.claude · 12 tokens

devops

Comprehensive DevOps engineering practices for Kubernetes, CI/CD, Bash scripting, Ansible, and cloud infrastructure.

Mindrally/skills · 25 tokens

operating-infra

Author, inspect, troubleshoot, review, and apply (after explicit confirmation) infrastructure across IaC, Kubernetes, cloud resources, containers, CI/CD, and Linux hosts. Use when changing Terraform/OpenTofu, Kubernetes, Helm, Kustomize, Dockerfiles, GitHub Actions workflow/job/permissions semantics, AWS, GCP, Cloud…

alexei-led/cc-thingz · 155 tokens

mlops-automation

Automate an MLOps project with mise tasks, lefthook hooks, Docker images, GitHub Actions, and MLflow tracking on a SQL backend. Use when adding a task runner, git hooks, CI/CD, or experiment tracking to a working package.

MLOps-Courses/mlops-coding-skills · 58 tokens