/secskills-core:auditing-supply-chainfrom secskills-core
Audits software supply chain risk: dependency review, typosquatting, SBOM analysis, CI/CD security, build provenance, malicious package detection. Use for third-party package risk, pipeline review, release hardening.
Ships in secskills-core. 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.
None: SKILL.md is the whole skill.
Your build pipeline runs more untrusted code than your application does. A single unpinned action, a postinstall script, or a workflow with a writable token is a path from a stranger's commit to your production artifacts and your signing keys.
auditing-code-for-vulnerabilitiessecuring-ai-systemsexploiting-cloud-platforms
for offensive assessmentresponding-to-incidentsmanaging-vulnerabilities; reachability analysis here feeds its rankingKeep them separate; they need different responses.
| Known-vulnerable dependency | Malicious dependency | |
|---|---|---|
| Detection | CVE databases, npm audit, osv-scanner | Behavioural review, install scripts, publisher anomalies |
| Signal | Loud and well-tooled | Quiet; scanners usually miss it |
| Response | Patch, or justify the risk | Incident — assume credentials on the build host are burned |
| Time pressure | Days to weeks | Hours |
Most programs handle the first and are blind to the second. Give the second explicit attention.
# Known vulnerabilities, ecosystem-agnostic
osv-scanner --lockfile=package-lock.json --lockfile=go.sum --lockfile=Cargo.lock
trivy fs --scanners vuln,secret,misconfig .
grype dir:.
# Ecosystem-native
npm audit --omit=dev && npm ls --all --depth=99 | wc -l # count transitives
pip-audit -r requirements.txt
cargo audit
govulncheck ./... # reachability-aware: only reports vulns you actually call
mvn dependency-check:check
govulncheck-style reachability analysis matters: a vulnerability in a code
path you never execute is a patching task, not a risk. Prioritize by
reachability plus exposure, not by CVSS alone.
Transitive depth is the real surface. Direct dependencies are chosen and reviewed; transitive ones are inherited. Count them, and know which maintainers you are implicitly trusting.
Triage signals, roughly in order of how strongly they indicate malice:
| Signal | How to check |
|---|---|
| Install-time script execution | postinstall/preinstall in package.json; setup.py with network or exec calls; build.rs |
| Obfuscated or minified source in a non-minified package | Read the published tarball, not the repo — they differ |
| Network calls at import/require time | Static grep for HTTP/DNS in module top-level |
| Environment and credential access | Reads of ~/.aws, .npmrc, .git-credentials, process.env dumps |
| New maintainer or a version published from a new account | Registry metadata, publish history |
| Name close to a popular package | Levenshtein distance against top-N package list |
| Published artifact ≠ repository source | Compare the tarball to the tagged commit |
| Version jump with no corresponding commits | Registry vs VCS history |
# Review what actually ships, not what the repo shows
npm pack <pkg> && tar -xzf <pkg>.tgz && rg -n 'child_process|eval\(|Buffer\.from\(.*base64|https?://' package/
pip download --no-deps --no-binary :all: <pkg> && tar -xzf <pkg>.tar.gz
rg -n 'os\.system|subprocess|urllib|requests|__import__|exec\(' <pkg>/setup.py
# Block install scripts by default in CI
npm ci --ignore-scripts
pip install --require-hashes -r requirements.txt
Dependency confusion: if an internal package name is not also registered (or reserved) on the public registry, and the resolver can reach the public registry, an attacker can publish a higher version and win resolution.
# Enumerate internal-looking names and check public availability
rg -o '"@?[a-z0-9-]+/[a-z0-9-]+"' package.json | sort -u
# Fix: scoped registries with strict scope→registry mapping, and
# `.npmrc` / `pip.conf` that never falls back to the public index for
# internal scopes
npm ci, pip install --require-hashes, cargo --locked,
go mod verify) rather than resolving fresh.This is where the highest-impact findings usually are.
# Unpinned third-party actions — anyone who controls the tag controls your CI
rg -n 'uses:\s+(?!actions/)[^@]+@(?!v?[0-9a-f]{40})' .github/workflows/
# The dangerous trigger: pull_request_target runs with repo secrets and
# write-capable tokens, in the base repo context
rg -n 'pull_request_target|workflow_run' -A15 .github/workflows/
# Script injection: untrusted event data interpolated directly into a shell
rg -n '\$\{\{\s*github\.event\.(issue|pull_request|comment|head_commit)' .github/workflows/
Three findings to check for on every repository:
pull_request_target + checkout of the PR head. This executes a
stranger's code with your secrets. It is a critical finding whenever the
workflow also runs build or test steps from the checked-out tree.run:. ${{ github.event.issue.title }}
inside a shell block is command injection with a public entry point. Pass
through an env: variable and quote it instead.permissions. Default GITHUB_TOKEN scope should be
contents: read, elevated per-job only where needed. Check for
permissions: write-all and for the absence of any permissions: block.Also review: self-hosted runners on public repos (persistent compromise, no isolation between jobs), secrets available to fork-triggered workflows, cache poisoning across branches, and artifact upload of build directories that contain credentials.
# Secrets in history, not just in the tree
gitleaks detect --source . --redact
trufflehog git file://. --only-verified
# IaC and container config
trivy config . && checkov -d .
hadolint Dockerfile
Check: who can trigger a deploy, whether deploy credentials are scoped per environment, whether the build is reproducible, whether artifacts are signed, and whether anyone can push directly to the release branch.
# Generate — from the build, not from the source tree, so it reflects reality
syft dir:. -o cyclonedx-json=sbom.json
cdxgen -o sbom.json
# Consume — an SBOM is only useful if you scan it on a schedule
grype sbom:sbom.json
osv-scanner scan source -L sbom.json # v2 takes SBOMs via -L; --sbom is gone
An SBOM produced once for a compliance checkbox has no security value. The value is in re-scanning existing SBOMs when a new vulnerability lands, which answers "are we affected" in minutes instead of days.
Provenance (SLSA framing): can you prove which source commit produced a
given artifact, on which builder, with which dependencies? Sign artifacts
(cosign), record attestations, and verify signatures at deploy time. An
unverified signature is decoration.
cosign sign --key <key> <image>
cosign verify --key <pub> <image>
cosign verify-attestation --type slsaprovenance <image>
1. Determine exposure: did any build pull the affected version? Check
lockfiles across branches AND build logs — the lockfile shows intent, the
build log shows what was actually installed.
2. Assume credential compromise on any host that ran the package's install
scripts. Rotate: registry tokens, cloud keys, signing keys, SSH keys.
3. Preserve build logs and runner images before they roll off.
4. Check outbound network from build hosts for the exfil window.
5. Pin and rebuild; verify the rebuilt artifact differs only as expected.
6. Only then publish an advisory.
Rotation is not optional because the package "only ran in CI." CI is where the production credentials live.
pull_request_target on PRs is
exactly the dangerous case.pull_request_target, unpinned actions, token
scope, and injection sinks each explicitly stated as present or absentGenerated from secskills-core/ttp-index.json — edit that file, then run
python3 scripts/sync_attack.py --write. Re-verify IDs against the
current ATT&CK release before citing them in a report.
Initial Access (TA0001)
Defense Evasion (TA0005)
analyzing-malwareCredential Access (TA0006)
escalating-linux-privileges, exploiting-cloud-platforms, abusing-ci-cd-oidcDetection content for any of these: engineering-detections. Proactive search: hunting-threats. Post-compromise: responding-to-incidents.
Fetch public advisories, specifications, and vendor reports as Markdown:
curl -sL "https://defuddle.md/<url>" # scheme in the path is optional
This strips page boilerplate — roughly 78% fewer tokens on a prose page — and returns the full text rather than a summary, so you can grep it and trust a negative result.
Three things it is not for. Fetch JSON and API responses raw, because readability extraction mangles structured data. Fetch authenticated or JavaScript-rendered pages directly, because it retrieves them anonymously. And never route adversary infrastructure (phishing links, C2, malware hosting), client-owned hosts, or engagement URLs through it — the request leaves your machine to a third party, and for live adversary infrastructure it also tips off the operator.
Some sites block the extractor and return an error blob rather than the page —
{"error":"Failed to fetch: 418 I'm a teapot"} from freedesktop.org, for
instance. That is the fetch being refused, not the source saying the thing
does not exist. Re-fetch the URL directly before drawing any conclusion from
it.
auditing-code-for-vulnerabilities — first-party code reviewsecuring-ai-systems — model and dataset supply chainresponding-to-incidents — handling a confirmed upstream compromiseosv-scanner, trivy, grype, syft, gitleaks, zizmor (Actions auditing)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trilwu/secskills --plugin secskills-core30 skills in this plugin
/analyzing-binariesReverse engineer compiled binaries, firmware, and mobile app packages using triage, static disassembly, decompilation, and dynamic instrumentation. Use when analyzing an executable, ELF/PE/Mach-O file, firmware image, or stripped binary, recovering an algorithm or protocol, or working a CTF reversing challenge./analyzing-dotnet-assembliesReverse engineer .NET assemblies and executables with dnSpyEx, ILSpy, and de4dot — identifying and unwrapping obfuscators and packers, deobfuscating control flow and string encryption, handling single-file and NativeAOT publishes, and patching IL. Use when a binary is a managed PE, when ILSpy shows mangled names or empty method bodies, or when analyzing .NET malware, a loader, or a Windows application./analyzing-firmware-imagesExtract, analyze, and assess firmware images from embedded devices, IoT hardware, routers, and similar targets — filesystem extraction, hardcoded credential discovery, binary analysis across architectures, web interface review, network service enumeration, emulation, and cryptographic assessment. Use when analyzing a firmware update file, reviewing IoT device security, hunting for hardcoded secrets in device firmware, or assessing the attack surface of an embedded system./analyzing-go-binariesReverse engineer Go binaries by recovering function names and types from pclntab and moduledata using GoReSym, redress, and IDA/Ghidra Go plugins, and by reading Go's non-standard calling convention, interface dispatch, and string layout. Use when a binary contains Go runtime strings, when strings show runtime.main or go:buildid, when a stripped binary is unexpectedly large, or when analyzing Go malware or a Go-based service./analyzing-ios-binariesAnalyze iOS applications at the binary level — decrypting FairPlay-protected IPAs with frida-ios-dump or bagbak, inspecting Mach-O load commands, recovering Objective-C headers with class-dump, and reading Swift metadata. Use when working with an IPA or .app bundle, when a downloaded App Store binary shows cryptid=1, when class-dump returns nothing, or when analyzing iOS frameworks and app extensions./analyzing-macos-binariesReverse engineer and security-review macOS applications and Mach-O binaries — thinning universal binaries, recovering Objective-C/Swift structure, reading code-signing entitlements and the hardened runtime, and auditing XPC services, dylib load paths, and TCC privacy exposure. Use when analyzing a .app bundle or Mach-O on macOS, checking entitlements and notarization, hunting a dylib-hijack or XPC privilege bug, or reasoning about Gatekeeper and quarantine.2 plugins ship this exact skill · first indexed Jul 31, 2026
Other plugins' skills for the same job