/sbom-audit:secrets scan [--full] | resolve <fingerprint> <status> <note> | reportfrom SBOM Audit
Scan every repository's git history for leaked credentials with gitleaks, print SECRETS.md, and record confirmed decisions per finding.
Ships in SBOM Audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Find credentials that ever landed in git history, rank them by blast radius, and keep the decisions in security/secrets-decisions.toml. Nothing leaves the machine: no verification calls, and no output ever contains a secret value. Never print, echo or copy a secret value yourself either; refer to findings by fingerprint, file and line.
Route the arguments ($ARGUMENTS) first:
resolve: do not call the CLI with them. They are a draft of one decision for the Resolve flow below, which confirms before it writes.report: secrets report.scan: secrets scan with the rest of them (scan --full → secrets scan --full).--full): secrets scan $ARGUMENTS.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sbom_audit_cli.py" secrets report
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sbom_audit_cli.py" secrets scan [--root R] [--full]
secrets scan [--root R] [--full]: scans new commits since the last scan (--full: all history), writes secrets.json and SECRETS.md. run already does the incremental scan.secrets report: prints SECRETS.md from secrets.json; writes nothing.Exit 0 = nothing open in class A or B, 1 = open class A or B, 2 = failed, 4 = no engine (brew install gitleaks; the scan is skipped, never "clean"), 5 = read-only mode. Classes: A owns the platform (rotate before anything else, ranks above KEV), B costs money or data, C is public by design or a test value. A finding in tests, fixtures, examples, docs, vendored code, data files or a dev setup is ranked one class lower and labelled (context in secrets.json, a context line in SECRETS.md); a private-key match without key material, a variable reference or a name/version is class C. Nothing is dropped: check a ranked finding like any other (a test file can hold a real key), then rotate it or record test_fixture/false_positive. Rules: classes.toml [context], overrides in [secrets.context] of sbom-audit.toml.
Claude never records a secrets decision on its own.
SECRETS.md. For each open finding, draft a decision: fingerprint, status (open|rotated|false_positive|test_fixture|accepted), and a note saying why (what was rotated, why it is a false positive or accepted). Use rotated only when the user says the credential was rotated.secrets resolve <fingerprint> <status> "<note>" [--rotated-on YYYY-MM-DD]:python3 "${CLAUDE_PLUGIN_ROOT}/scripts/sbom_audit_cli.py" secrets resolve <fingerprint> <status> "<note>"
Rotation sequence for a real leak: rotate the credential at the provider → redeploy everything that uses it → verify by hand that the old value no longer works → secrets resolve <fingerprint> rotated "<note>" → then decide about history (rewriting history does not un-leak a pushed secret; rotation is the fix). Decisions live in secrets-decisions.toml, never in prose only.
/sbom-audit:setup --install-guard installs a guard that blocks new class A/B secrets at commit time and prints BLOCKED <class> <rule_id> <file>:<line>. It is per machine: run it on every machine that commits. setup --uninstall-guard removes it. git commit --no-verify skips it; that is a choice the log must show.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wuesteon/sbom-audit --plugin sbom-audit13 skills in this plugin
/assessAssess the last sbom-audit run with an incident sweep, triage, a written assessment and independently verified, confirmed VEX statements and secrets decisions, or only a proposal when run headless./craCheck the EU Cyber Resilience Act readiness of the configured products and write starter documents (risk assessment, reporting procedure, disclosure policy) after the user confirms them./hostsCheck the configured servers without installing anything, record accepted host findings, and patch, bootstrap or unbootstrap one named host after you confirm its plan./incidentUse when the user asks whether a CVE, GHSA or PYSEC id or a vulnerability in the news affects them ("are we affected by CVE-…?", "does GHSA-… hit us?"); checks the advisory against every project and branch and gives a verdict (hit, not affected, unknown) per project./lookupUse when the user asks which projects use a package, image or runtime ("who uses lodash?") and in which version, from the last scan; takes package names, globs, images or runtimes./runRun the full pipeline (SBOMs, vulnerability audit against OSV, CISA KEV, EPSS and endoflife.date, incremental secrets scan, reports, evidence commit), then print STATUS.md and assess the result.