supply-chain-dependency-security
БесплатноБез исполняемых скриптовНе проверенUse when reviewing a dependency update, a Dependabot or Renovate PR, a manifest's dependency list (package.json, pyproject.toml, pixi.toml), or a lockfile…
от uw-ssec★ 33 звезды на GitHubОб этом скилле
Supply Chain Dependency Security
Keeps malicious releases out of dependency updates and CI installs.
Core principle: a clean CVE scan says nothing about a version published hours ago: no advisory exists yet.
Observed 2025–2026, verified 2026-11: major incidents were maintainer account takeovers, not typosquats. Campaigns: supply-chain-threat-awareness.
When to Use
- A Dependabot or Renovate PR, any lockfile diff, or a new package
- CI fails under
--ignore-scripts
Not for workflow hardening (supply-chain-hardened-ci-cd). If a dependency is compromised:
REQUIRED SUB-SKILL: Use supply-chain-security:supply-chain-incident-response
Rules
Lockfile only. Commit it. CI's install command must fail on a stale lockfile. No
*orlatestin manifests.Install scripts off. Never drop
--ignore-scripts, even once. Rebuild only what needs it:npm ci --ignore-scripts npm rebuild <package>npm 12+: approve it first (
npm install-scripts approve <package>, commitpackage.json).7-day cooldown. Nothing younger merges. Cooldown settings filter resolution, not locked versions. Age-check every version a lockfile diff adds:
npm view <package> time, PyPIhttps://pypi.org/pypi/<package>/<version>/json(upload_time_iso_8601),pixi search <package>==<version>. Security fixes: see/supply-chain-lockfile-check.Check the publisher. Compare with earlier releases (
npm view <package>@<version> _npmUser), runnpm audit signatures, readnpm diff --diff=<package>@<old> --diff=<package>@<new>. A first-time publisher on an established package signals takeover: hold the version..pthfiles: use the PyPI.pthcheck insupply-chain-ecosystem-quirks.Findings: class,
<package>@<version>, advisory or campaign, install-time reach, fix.
Quick Reference
| Tool | CI install | Resolver cooldown |
|---|---|---|
| npm | npm ci --ignore-scripts |
.npmrc: min-release-age=7 (11.10+) |
| pnpm | pnpm install --frozen-lockfile |
pnpm-workspace.yaml: minimumReleaseAge: 10080 (minutes; 10.16+) |
| Yarn | yarn install --immutable with enableScripts: false (default from 4.14); v1: --frozen-lockfile --ignore-scripts |
.yarnrc.yml: npmMinimalAgeGate: 10080 (minutes; 4.10+) |
| uv | uv sync --locked |
[tool.uv]: exclude-newer = "7 days" (0.9.17+) |
| Poetry | poetry check --lock && poetry install (fails on a missing or stale lock) |
poetry config --local solver.min-release-age 7 (2.4+) |
| pip | pip install --require-hashes -r requirements.txt |
--uploaded-prior-to P7D (26.1+) |
| pixi | pixi install --locked |
[workspace]: exclude-newer = "7d" (0.67+) |
| conda-lock | conda-lock lock --check-input-hash -p <platform>, git diff --exit-code conda-lock.yml, then conda-lock install -n <env> conda-lock.yml |
none |
Bots: Dependabot cooldown: with default-days: 7; Renovate "minimumReleaseAge": "7 days". Neither delays security updates.
Rationalizations
| Excuse | Reality |
|---|---|
| "Only for the demo build", "temporary" | One build with scripts on is all a malicious postinstall needs. |
"--ignore-scripts breaks the build" |
Only packages needing an install step break; rebuild those. |
| "It's a trusted, popular package" | Takeovers target trusted packages; popularity is the payoff. |
Red Flags
- Bypassing
--ignore-scriptsfor any build - A version under 7 days old, or from a first-time publisher
Either one: keep the control, hold the version.
Common Mistakes
pixi installin CI: rewritespixi.lockon manifest changes;--frozenskips the check. Use--locked. Same foruv sync --frozen.ignore-scripts=truein.npmrc:npm rebuild <package>silently runs nothing. Add--ignore-scripts=falseto that rebuild.
Установить supply-chain-dependency-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл supply-chain-dependency-security?
Use when reviewing a dependency update, a Dependabot or Renovate PR, a manifest's dependency list (package.json, pyproject.toml, pixi.toml), or a lockfile (package-lock.json, yarn.lock, pnpm-lock.yaml, uv.lock, poetry.lock, pixi.lock, conda-lock.yml, requirements.txt); when adding a new package; when a postinstall script, `--ignore-scripts` or a `.pth` file comes up; or when judging whether a newly published version could come from a maintainer account takeover.
Как установить скилл supply-chain-dependency-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл supply-chain-dependency-security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic