supply-chain-incident-response
Use when responding to a supply-chain incident: an advisory, CVE or GHSA names a dependency or GitHub Action this project uses; a package version was…
от uw-ssec★ 33 звезды на GitHub
Установить supply-chain-incident-response в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Supply Chain Incident Response
An incident stays open until all four checks (lockfile, CI cache, secrets, persistence) have PASS, EXPOSED or UNKNOWN and evidence in the incident report.
When to Use
An advisory, CVE, GHSA or campaign names a dependency or Action you use. Before an incident, use supply-chain-threat-awareness.
Quick Reference: 4-Point Check
Set the exposure window first: when the bad version was installable, in UTC. Get the affected range. Takeovers are filed as type=malware, usually without a CVE, and a search without type returns only reviewed advisories:
A='{ghsa_id, type, affected: [.vulnerabilities[] | {pkg: .package.name, range: .vulnerable_version_range}]}'
gh api /advisories/<GHSA-ID> --jq "$A"
# No GHSA ID: search by package (or -f cve_id=<CVE-ID>), once per type
for t in reviewed malware; do gh api --paginate -X GET /advisories -f type=$t -f ecosystem=<npm|pip|...> -f affects=<pkg> --jq ".[] | $A"; done
<lockfiles> means '*package-lock.json' '*yarn.lock' '*pnpm-lock.yaml' '*uv.lock' '*poetry.lock' '*pixi.lock' '*conda-lock.yml' '*Cargo.lock' '*go.sum' (* also matches nested lockfiles).
| Check | Command | Evidence |
|---|---|---|
| 1 Lockfile | git fetch --all, git grep -nwF -A3 '<pkg>' $(git for-each-ref --format='%(refname)' refs/remotes) -- <lockfiles>, then git log --all --source -G'<bad-version>' --format='%h %cI %S %s' -- <lockfiles> |
ref:file:line; when and on which branch the bad version entered (PR CI installs from the PR branch) |
| 2 CI cache | gh cache list --sort created_at --order desc --limit 1000 --json id,key,createdAt |
ids with createdAt at or after the window start |
| 3 Secrets | gh secret list, gh secret list --env <env>, grep -rnw 'secrets' .github/workflows/ |
every secret the affected jobs could read (secrets: inherit passes all) |
| 4 Persistence | the runbook below | artifacts found, or "none" with the commands run |
Response Order
- Contain: pin a known-good version in every lockfile; delete each cache from check 2 (loop in
references/runbook-account-takeover.md); disable workflows that ran the bad version (gh workflow disable <workflow>). - Eradicate: rotate every secret from check 3. Hunt persistence.
- Recover: with caches gone,
gh workflow enable <workflow>, then run it from the fixed commit (push, tag, orgh workflow run <workflow> --ref <branch>if it hasworkflow_dispatch); a re-run reuses the old commit. Verify any attestations withsupply-chain-sbom-provenance. - Report: fill every section of
assets/incident-report-template.md. If this project shipped an affected version, file a GHSA.
Runbooks
- Maintainer account takeover (npm, PyPI):
references/runbook-account-takeover.md - Compromised Action or tag hijack (check 1 is the
uses:refs):references/runbook-tag-hijack.md - Secret rotation:
references/secret-rotation.md .pthfiles: the PyPI.pthcheck insupply-chain-ecosystem-quirks.
Rationalizations
| Excuse | Reality |
|---|---|
| "The scanner is clean and the lockfile is fixed" | Both describe today, not the window. |
| "Only the npm token touched npm" | Install scripts read the whole environment: every secret the job could read is exposed. |
| "Caches expire anyway" | Only after 7 days unused; each restore resets the clock. Restore-keys copy old contents into new caches. |
Red flags: a check left blank; one secret rotated out of several; checks skipped for a release deadline.
Common Mistakes
gh actions cache …doesn't exist; usegh cache listandgh cache delete <id>.'**/lock*'matches no standard lockfile; use<lockfiles>.git log -Smisses a bump when another package leaves that version. Use-G'1\.2\.4'.find -newer <date>expects a file. Use-newermt "<YYYY-MM-DD HH:MM> UTC".
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- assets/incident-report-template.md
- references/runbook-account-takeover.md
- references/runbook-tag-hijack.md
- references/secret-rotation.md
FAQ
Что делает скилл supply-chain-incident-response?
Use when responding to a supply-chain incident: an advisory, CVE or GHSA names a dependency or GitHub Action this project uses; a package version was compromised or malicious; a compromised GitHub Action, tag hijack or maintainer account takeover; or CI ran a bad version during an exposure window. Also use when asked for the incident-response runbook, to rotate secrets, or for an incident report.
Как установить скилл supply-chain-incident-response?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл supply-chain-incident-response запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…