/security-check:system-package-auditfrom security-check
Audits system/OS packages and globally-installed CLI tools (Homebrew, apt, npm, pip, cargo, gem) for supply-chain risks before install or upgrade — checks CVEs, maintainer changes, install scripts, typosquatting, and version diffs.
Ships in security-check. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Supply-chain security audit of a system/OS package or globally-installed CLI tool before you install or upgrade it —
across Homebrew, apt, and global npm/pip/cargo/gem installs — protecting against supply chain attacks.
Scope: this skill audits packages installed on the machine (system packages and global tools), not a project's
lockfile dependencies. For project dependencies, use the sibling skills in this security-check plugin:
/security-check:dependency-adoption-review — vet a library before adding it to a project (license, maintenance, bus factor, alternatives)./security-check:vulnerability-report-triage — triage reported vulnerabilities (Dependabot / Revisor) in a project's dependencies./security-check:system-package-audit : /security-check:system-package-audit (auto-detect)
brew - Homebrewnpm / npx - Node.jspip / pip3 - Pythoncargo - Rustgem - Rubyapt - Debian/UbuntuIf input contains :, split on : to get manager and package.
If no :, auto-detect by running these checks in order:
brew list --versions <package> → if output, it's brewnpm list -g <package> → if output, it's npmpip show <package> → if output, it's pipcargo install --list | grep <package> → if output, it's cargogem list <package> → if output, it's gembrew list --versions <package>brew info <package>brew info <package> outputbrew info --json=v2 <package> → check bottle field for prebuilt binariesnpm list -g <package> --depth=0npm view <package> versionnpm view <package> repository.urlnpm view <package> --json → save full output for later analysisnpm view <package> dist.tarballnpm view <package> maintainersnpm view <package> time.<version>pip show <package>https://pypi.org/pypi/<package>/jsonpip show <package> → Home-page fieldhttps://pypi.org/pypi/<package>/jsoninfo.author and release uploaded_by field.whl files contain native binariescargo install --list | grep <package>cargo search <package>https://crates.io/api/v1/crates/<package>https://crates.io/api/v1/crates/<package>https://crates.io/api/v1/crates/<package>/ownersgem list <package>gem search <package>https://rubygems.org/api/v1/gems/<package>.jsonhttps://rubygems.org/api/v1/gems/<package>.jsonapt list --installed | grep <package>apt-cache policy <package>apt-cache show <package> → Homepage field━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 PACKAGE: <name>
📌 MANAGER: <package manager>
📌 Installed version: <version>
🆕 Available version: <version>
🔗 Repository: <url>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⏳ Running security audit (8 checks)...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Do NOT wait until the end to show this — print it immediately after Step 2 completes.
Check public vulnerability databases for both installed and target version.
Run: npm audit --json --package-lock-only against a temp dir with the target version, OR query the GitHub Advisory
Database via GitHub MCP:
ecosystem:npm package:<name>Query OSV.dev public API (no auth needed):
https://api.osv.dev/v1/query with payload
{"package":{"ecosystem":"PyPI","name":"<package>"},"version":"<installed>"}ecosystem:crates.iohttps://rustsec.org/advisories/ via GitHub MCP (rustsec/advisory-db repo)ecosystem:RubyGemstap for any security notesReport: list any CVEs found with severity (CRITICAL/HIGH/MED/LOW). If installed version has known CVE that's fixed in target — flag this as a REASON TO UPGRADE.
This catches account takeover and ownership transfer attacks (e.g. event-stream, ua-parser-js).
npm view <package>@<installed_version> maintainersnpm view <package>@<latest_version> maintainerstime field for unusual gaps)info.author and project URLs for both versions/owners endpoint outputThis catches malicious code that runs at install time (most common npm attack vector).
Fetch the package tarball metadata without installing:
npm view <package>@<latest> --json and check the scripts fieldpreinstall, install, postinstall, prepare, prepublishnpm pack <package>@<latest> --pack-destination /tmp/secaudit
tar -xzf /tmp/secaudit/<package>-<version>.tgz -C /tmp/secaudit
package.json scripts hookssetup.py (legacy) vs pyproject.toml (modern)setup.py runs at install time — download sdist and inspect:
pip download <package>==<version> --no-deps --dest /tmp/secauditsetup.py for suspicious code__init__.py side effects on importbuild.rs if present — runs at build timeCargo.toml for build = directiveextconf.rb and post_install_message in gemspecinstall block for suspicious commandsbottle (prebuilt binary) — if yes, source-level analysis is incompleteAWS_*, GITHUB_TOKEN, NPM_TOKEN, *_KEY (CRITICAL)This catches the case where GitHub source is clean but registry artifact is malicious.
npm pack <package>@<latest> --pack-destination /tmp/secaudittar -tzf /tmp/secaudit/<package>-<version>.tgz.js file in the tarball, check if it exists in the GitHub repo at the matching tagpackage.json main, any auth/network related)get_file_contents vs. tarball contentpip download then compare to GitHub repo at tag.whl files — they may contain prebuilt .so / .pyd binariesCargo.toml matches between repo and crates.ioUse GitHub MCP:
v{version}, {package}-{version}, {package}-{version_with_underscores}, {version}src/, lib/, include/, main entry pointstests/, docs/, *.md, CI configseval, exec, Function(), child_process.spawn/execif (Date.now() > ...))Many supply chain attacks come through transitive dependencies.
npm view <package>@<latest> dependencies → list direct depsrequires_dist in PyPI JSON for both versionsdependencies in Cargo.toml between versionsConfirm the package being audited is the one the user actually wants.
npm search <package> and compare top results━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 SECURITY AUDIT REPORT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📦 Package: <name>
📌 Manager: <manager>
📌 Installed version: <version> (published <date>)
🆕 Available version: <version> (published <date>)
🔗 Repository: <url>
👤 Publisher: <maintainer> <(NEW!) if applicable>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ AUDIT RESULTS
[1] Known Vulnerabilities ✅ / ⚠️ / ⛔
<details>
[2] Maintainer Analysis ✅ / ⚠️ / ⛔
<details>
[3] Install Scripts ✅ / ⚠️ / ⛔
<details>
[4] Source vs. Registry ✅ / ⚠️ / ⛔
<details>
[5] Code Diff Analysis ✅ / ⚠️ / ⛔
<details>
[6] Dependency Changes ✅ / ⚠️ / ⛔
<details>
[7] Typosquatting Check ✅ / ⚠️ / ⛔
<details>
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚨 CRITICAL FINDINGS
<list or "None">
⚠️ HIGH RISK FINDINGS
<list or "None">
ℹ️ MEDIUM / LOW FINDINGS
<list or "None">
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ VERDICT: Safe to update
⚠️ VERDICT: Update with caution — review HIGH findings
⛔ VERDICT: DO NOT UPDATE — critical risks detected
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Recommended actions:
<bullet list of next steps>
.node, .so, .pyd, .wasm) are flagged but not deeply analyzed.rm -rf /tmp/secaudit at the end.After audit completes, run: rm -rf /tmp/secaudit
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
supply-chain-security, package-audit, cve-check, typosquatting
Other plugins' skills for the same job
npx claudepluginhub infinum/ai --plugin security-check3 skills in this plugin
/dependency-adoption-reviewDue-diligence review of a new third-party dependency before you add it to a project — answers "should we take this dependency at all?". Checks necessity vs. native/existing alternatives, license (and relicensing risk), maintenance health, governance and bus factor, security track record, adoption signals, and transitive footprint, then returns a scored Adopt / Adopt-with-caution / Avoid / Don't-add verdict. Use before adding a library, when choosing between competing packages, or when the user mentions /security-check:dependency-adoption-review. Hands the deep supply-chain/malware pass off to system-package-audit. Not Cowork-ready — needs `gh`, package-registry and deps.dev egress, and optionally local package managers./vulnerability-report-triageTriage reported vulnerabilities in a project's dependencies (Dependabot, GitHub Advisory, or an in-house weekly security report) for SOC2/compliance deadlines. Detects the tech stack, classifies each item by production-vs-development impact and direct-vs-transitive placement, judges whether it actually applies to this codebase, rates upgrade effort, scores confidence, and emits ready-to-use handoff artifacts (dismissal rationale, task/PR descriptions). Use when the user pastes a Dependabot/Revisor vulnerability report, shares a CVE/GHSA to assess against a project, shares a Slack channel/message link where a report was posted, asks to triage security alerts, or mentions /security-check:vulnerability-report-triage. Produces a report only — makes no repo changes. Not Cowork-ready — needs local package managers, `gh`, and registry/advisory egress.