supply-chain-security
Skill22 starsChanged 5 months agoMITView on GitHub
Vet dependencies before they enter the build: typosquats, dependency confusion, malicious packages, known vulnerabilities, unlocked resolution, risky install and build hooks, EOL embedded runtimes, and the authenticity and freshness of your own release channel. Use when adding or upgrading a dependency, reviewing package manifests or lockfiles, configuring package sources or internal namespaces, or publishing a package or application update.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/hve-coretheir own version, first seen Sep 29, 2026
- z91772524-ai/pojia-next-mactheir own version, first seen Sep 28, 2026
- zhaoxuya520/reverse-skilltheir own version, first seen Sep 22, 2026
- mcabreradev/hermes-sdd-agencytheir own version, first seen Sep 17, 2026
- microsoft/apmtheir own version, first seen Sep 16, 2026
- awarexone/AXguardtheir own version, first seen Sep 15, 2026
Used with
Projects with it also use attack-chain, binary-diff and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
xAmirHamza77Skillattack-chain
Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.
Also in 4 projects that use this
xAmirHamza77Skillbinary-diff
Cross-version symbol migration and binary diffing. Use this when you have symbols/reverse engineering results from an old version and need to quickly migrate them to a new version. Applicable scenarios: kernel missing PDB with derivation from old-version symbols, batch-migrating function names after a program update, quickly locating new offsets after an application update. Core method: use an LLM for structured differential comparison with programmatic input/output — extremely low cost (200 functions ~1 yuan). Trigger keywords: symbol migration, bindiff, cross-version, missing PDB, function offset migration, symbol migration, binary diff, version comparison.
Also in 4 projects that use this
- +10 more from xAmirHamza77
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- zhaoxuya520/reverse-skill★ 40ksame name
- microsoft/apm★ 3.9ksame name
- microsoft/hve-core★ 1.5ksame name
- irahardianto/awesome-agv★ 157same name
- superagent-ai/skills★ 77same name
- awarexone/AXguard★ 18same name
- z91772524-ai/pojia-next-mac★ 9same name
- Vimalk0703/shipworthy★ 6same name
- Asaiuta/reverse-workbench-skill★ 4same name
- xAmirHamza77/ReverseOps-Skill★ 4same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dist/AGENTS.mdAGENTS.md
- dist/CLAUDE.mdCLAUDE.md
- dist/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- api-securitySkill
- auth-securitySkill
- cicd-securitySkill
- container-securitySkill
- cors-securitySkill
- crypto-misuseSkill
- database-securitySkill
- deserialization-securitySkill
- dynamic-verificationSkill
- electron-securitySkill
- error-handling-securitySkill
- file-upload-securitySkill
- frontend-securitySkill
- graphql-securitySkill
- iac-securitySkill
- iam-best-practicesSkill
- llm-app-securitySkill
- logging-securitySkill
- ml-securitySkill
- mobile-securitySkill
- protocol-securitySkill
- saas-securitySkill
- secret-detectionSkill
- secure-code-reviewSkill
- security-regression-testsSkill
- serverless-securitySkill
- ssrf-preventionSkill
- template-injectionSkill
- threat-modelingSkill
- websocket-securitySkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Verify the identity of a new dependency before adding it: registry metadata, repository URL, maintainer set, and provenance checked against …
- Distinctive: line 44
Treat package age, download volume, maintainer count and activity as risk signals, never as proof of trust.
- Very specific: line 55
Treat install and build hooks (postinstall, setup.py and modern build backends, build.rs) as arbitrary code execution.
- Very specific: line 62
Never carry reachability or dev-only reasoning across to a suspected malicious package or build-time compromise.
- Distinctive: line 78
Use unfrozen resolution in CI or production when the project has a committed lockfile.
- Distinctive: line 81
Treat popularity, package age, name similarity, or the mere presence of a signature as sufficient evidence that a dependency is trustworthy.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Supply Chain Security
Rules (for AI agents)
ALWAYS
- Verify the identity of a new dependency before adding it: registry metadata, repository URL, maintainer set, and provenance checked against the signer you expect. Name-similarity screening opens the question; it never answers it.
- Query the bundled malicious-package data before adding any dependency —
check_dependency,check_typosquatandlookup_vulnerabilityread it, this file cannot. Match on ecosystem, normalized name and affected version range; an active match on the resolved version blocks. - Treat package age, download volume, maintainer count and activity as risk signals, never as proof of trust. Defaults: a verified maintainer signal within 90 days of a package identity's first publication, plus a documented reason within 30 days.
- Lock the resolution graph for anything you deploy — commit the lockfile, install
frozen in CI (
npm ci,--frozen-lockfile,pip --require-hashes,cargo --locked). Lock what you deploy, range what you publish: a library's dependency metadata needs compatibility ranges. - Restrict where packages resolve from, so an internal-only identifier cannot come
from a public registry. Use the ecosystem's own mechanism — npm scope-to-registry,
Gradle
exclusiveContent, a single authoritative index for Python, which has no scope isolation at all. - Treat install and build hooks (
postinstall,setup.pyand modern build backends,build.rs) as arbitrary code execution. Review them, and run dependency builds in an isolated least-privileged builder — most ecosystems ship no install sandbox. - Triage vulnerabilities on severity, exploitability, deployment context, reachability where the tooling genuinely supports it, and fix availability together. A material vulnerability with no published fix needs mitigation or a recorded risk acceptance, not a pass.
- Never carry reachability or dev-only reasoning across to a suspected malicious
package or build-time compromise. A hostile
postinstallalready ran in your build environment with your CI credentials, whatever production imports. - Surface trust-boundary changes on any update regardless of version number: a
maintainer or ownership change, a new or changed install hook, a source transition,
a provenance regression.
cicd-securityowns the approval policy that acts on it. - Track bundled runtimes and engines (Electron, CEF, Chromium, system WebView, a JRE) against upstream support windows and advisories directly. Wrapper-package scanners match the wrapper version and can report clean while the engine is unpatched.
- Protect your own release channel: restrict publish privileges, verify updates against a trusted signing identity or update framework, and reject stale or downgraded releases. A checksum served beside the artifact is not authentication.
NEVER
- Bypass the ecosystem's artifact-integrity verification. Disabling audit
(
npm config set audit false) or reproducibility (--no-package-lock) is neither. - Use unfrozen resolution in CI or production when the project has a committed lockfile.
- Let an internal-only package identifier resolve from an untrusted public source.
- Treat popularity, package age, name similarity, or the mere presence of a signature as sufficient evidence that a dependency is trustworthy.
- Execute unreviewed dependency install or build hooks in a privileged build environment.
- Ship an unsupported or known-unpatched embedded runtime.
- Allow broadly authorized release publishing, or execute an update that has not passed authenticity and freshness checks.
KNOWN FALSE POSITIVES
- Maintained forks with distinct names, once repository and maintainer identity are verified.
- A new release of an established package is not a newly created package identity.
- Internal packages absent from public registries, where the organization controls source routing.
- Audited build hooks executed in an isolated, least-privileged builder.
- A supported and patched embedded runtime, bundled deliberately.
- Verified auto-update: the finding is an unauthenticated, stale, downgradeable or otherwise untrusted update path, not the presence of auto-update.
Context (for humans)
Two distinctions carry most of the weight. A vulnerable dependency and a compromised one are triaged differently: reachability, dev-only scoping and fix availability all inform the first and none of them apply to the second, because a hostile install hook has already run. And hashing an artifact is not authenticating it — a checksum beside the file proves only that it arrived intact, while a signature checked against a key you already trust proves who produced it. The same model governs the software you ship: an update channel needs authenticity, freshness and rollback protection, not just a digest.
AI tools are especially exposed here. They generate plausible package names without checking which exist, and they cannot see when a package was compromised — a model recommends what it learned in training, so a maintainer compromised after the cutoff still gets recommended. That is why the malicious-package lookup is an explicit tool call, not something the model is expected to know.
References
references/verifying-findings.md— confirm or refute a finding, then lock it; screening heuristics and their limits, provenance and expected-signer verification, reachability tooling caveats, checksum versus signature, freshness and rollbackreferences/ecosystem-controls.md— source routing and resolution locking per ecosystem, why Go is not lockfile-shaped, and the three controls people conflaterules/typosquat_patterns.jsonrules/dependency_confusion.jsonrules/known_malicious.json— pointer to the relevantvulnerabilities/supply-chain/malicious-packages/*.jsondata- Alex Birsan's original dependency confusion writeup.
- SLSA.
- The Update Framework — signed metadata, rollback and freshness protection.
- OWASP Top 10 A06.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

