依赖供应链风险审计
supply-chain-risk-auditor
审计项目依赖的供应链风险:包括针对直接依赖和完整 lockfile 依赖树按版本匹配的安全公告、被弃用或已归档的上游项目、npm 发布者集中度,以及安装时脚本执行情况。当被要求审计依赖、评估供应链或第三方包风险,或在介入项目前审查依赖树时使用。
- License 许可
- CC-BY-SA-4.0
- 最近更新
- 2026-11-14
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- supply-chain-risk-auditor
- license
- CC-BY-SA-4.0
- metadata
- { "author": "Eric Quintero; published by Trail of Bits", "source": "trailofbits/skills/plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor", "source_url": "https://github.com/trailofbits/skills/blob/32e34f8173796e3566a51aee877dc96bc5191f64/plugins/supply-chain-risk-auditor/skills/supply-chain-risk-auditor/SKILL.md", "packaged-by": "AutoGPT", "packaged-on": "2026-09-25", "original-name": "supply-chain-risk-auditor", "upstream-commit": "32e34f8173796e3566a51aee877dc96bc5191f64" }
- description
- Audits a project's dependencies for supply-chain risk: version-matched advisories for direct dependencies and the full lockfile tree, abandoned or archived upstreams, npm publisher concentration, and install-time script execution. Use when asked to audit dependencies, assess supply-chain or third-party package risk, or review a dependency tree before an engagement.
- allowed-tools
- Read Write Bash Glob Grep
02 资源文件 17
- 参考文档ATTRIBUTION.md3.3 KB
- 参考文档forms.md11.6 KB
- 许可证LICENSE19.7 KB
- 许可证LICENSE.txt1.4 KB
- 参考文档reference.md16.3 KB
- 脚本scripts/check_bounding_boxes.py2.7 KB
- 脚本scripts/check_fillable_fields.py268 B
- 脚本scripts/collect.py64.2 KB
- 脚本scripts/convert_pdf_to_images.py1008 B
- 脚本scripts/create_validation_image.py1.2 KB
- 脚本scripts/extract_form_field_info.py4.2 KB
- 脚本scripts/extract_form_structure.py3.9 KB
- 脚本scripts/fill_fillable_fields.py3.7 KB
- 脚本scripts/fill_pdf_form_with_annotations.py3.2 KB
- 脚本scripts/model.py17.2 KB
- 脚本scripts/render.py34.4 KB
- 脚本scripts/sources.py28.5 KB
03 SKILL.md 正文
Packaging adaptation by AutoGPT, 2026-09-25. Original authorship and licence are retained. Changes are limited to the recorded name, metadata and file references; see ATTRIBUTION.md in this skill package.
Supply Chain Risk Auditor
Generates a supply-chain risk report for a project's direct dependencies (npm, PyPI, Go), plus an advisory sweep of everything its lockfile resolves. Two deterministic scripts do the measuring; your job is the judgment they refuse to automate.
Why the scripts do the measuring, not you
Every figure in this report is a claim about somebody else's project, and hand-collected
figures were measured wrong before this skill was rebuilt around scripts: GitHub
contributor counts said five-plus people maintain lodash where npm's ACL says one, and
gh saw zero downloads for a package that moves 164 million a week. Do not estimate
maintainer counts, downloads, staleness, or CVE history from gh, web search, or
memory — run the collector, and quote what it measured.
The scripts enforce two rules worth knowing before you read their output:
- Unavailable data is never evidence of risk. Every criterion resolves to assessed-clean, assessed-flagged, or unassessable-with-a-reason.
- An absent measurement is never a clean verdict. A run that measured nothing exits non-zero instead of printing a report that finds nothing.
Workflow
Run the following commands from this installed skill package's directory. Resolve
<project-dir> and <out-dir> to absolute paths before changing directories, so
the audited project and output location remain unchanged.
-
Confirm the target directory has manifests:
package.json,pyproject.toml,requirements*.txt, orgo.mod. If none exist, say so and stop — do not audit an ecosystem this collector does not parse by hand. Lockfiles read for exact versions and the transitive sweep:package-lock.json/npm-shrinkwrap.json,uv.lock, and a go 1.17+go.mod.yarn.lock,pnpm-lock.yaml, andpoetry.lockare not read — the report says so when they are present, and versions fall back to pins or the latest release. -
Check
gh auth status. Unauthenticated GitHub allows 60 requests/hour against 5,000, and the collector makes several per dependency; expect repository criteria to come back unassessable without it. Say so rather than fixing it silently. -
Collect, then render. Put outputs somewhere outside the audited repository unless asked otherwise:
uv run scripts/collect.py <project-dir> --json <out-dir>/findings.json uv run scripts/render.py <out-dir>/findings.json --out <out-dir>/report.mdExpect a few minutes for ~50 dependencies — several HTTP requests per dependency, more with many Go modules, and slower without authenticated
gh. Ifcollect.pyexits non-zero, it is refusing to report — relay its message verbatim instead of retrying or working around it. -
Read
report.mdandfindings.json. The report is the deliverable; the JSON carries the datum behind every verdict when you need to cite one. -
Add what the collector cannot, clearly separated from what it measured:
- A short narrative for this reader: what to act on first, and why.
- Upgrade paths for advisory findings — check whether the fix is a patch or a major version away.
- Replacement candidates for abandoned or archived dependencies. Verify a candidate exists in the registry before naming it, and label these as judgment, not measurement.
- For flagged install scripts: whether
npm ci --ignore-scriptsis viable for this project's build.
Style for what you add
Write added prose the way a security report reads, and apply the same register to the report addendum and the final reply alike — replies get pasted into tickets and reports verbatim. State the finding, the datum behind it, and the action.
- Impersonal and declarative: no first or second person ("I ran the collector", "you should upgrade"), no contractions, no exclamation points.
- Active voice, with the subject matter as the actor: "upgrading to 1.19.0 clears all 25 advisories", not "it is recommended that axios be upgraded".
- Objective: no intensifiers or subjective framing ("very", "significant", "fortunately"), and no guesses about why the project chose what it chose.
- Tense: past for what the audit did, present for the state of the dependencies, future for the consequences of acting or not.
- Constructive: a recommendation names the action and its cost, never a culprit.
If the report-writing:writing-style skill is available in the session, follow it —
it is the full version of this register.
The rendered report carries facts only. The interpretive rules below are instructions to you, not content for the reader — do not copy them into the deliverable as caveats or framing.
Reading the report
- Unassessable is not risk. PyPI publishes no maintainer ACL and Go has no registry; those rows say what could not be known, not what is wrong.
- The coverage table bounds every claim. "No advisories" means "none among what was assessed" — check the assessed count before repeating a clean verdict.
- Quote figures verbatim. Do not re-derive, round, or embellish the report's numbers; every one is reproducible from the artifact.
- Absence from the findings is not endorsement. A dependency with no findings was measured against these criteria only.
Rationalizations to reject
- "
ghcan give me maintainer counts faster than the collector." Measured wrong — repo contributors and registry publish rights are different populations. - "No findings, so the dependencies are safe." Read the coverage table; on PyPI and Go, half the criteria are structurally unassessable.
- "The unassessable rows would just confuse the reader; I'll drop them." They are the boundary of every claim in the report. Dropping them turns partial coverage into a clean bill of health, which is the failure this skill was rebuilt to prevent.
- "The version is probably close enough." A range checked at latest-release and a lockfile-resolved version are different claims; the report labels which one it makes. Keep the label.
When not to use
- License compliance auditing.
- Scanning the target's own source for vulnerabilities or secrets — this skill never reads dependency source, only registry, advisory, and repository metadata.
- Judging whether the project installs or builds. The audit is designed to work from nothing more than the dependency list — manifests and lockfiles — and never installs, builds, or executes anything. Broken installs and import-time breakage are out of scope, and worth saying so if the user seems to expect them.
- Ecosystems other than npm, PyPI, and Go; say the ecosystem is unsupported rather than improvising an audit for it.
04 同仓库更多 Skills
Claude 职场记忆管理
workplace-memory-management
双层记忆系统,让 Claude 成为真正的职场协作者。它能解读简写、首字母缩略词、昵称和内部用语,使 Claude 像同事一样理解请求。使用 CLAUDE.md 保存工作记忆,使用 memory/ 目录保存完整知识库。
网站 SEO 审计与优化
website-seo-audit
审计网站、挖掘其真实的搜索机会,并交付一份简短的数据驱动报告,指出最有可能带来可转化自然流量增长的少数几项改进。
完成前验证检查
verification-before-completion
当即将声称工作已完成、已修复或已通过时,在提交或创建 PR 之前使用——要求在做出任何成功声明之前先运行验证命令并确认输出;始终先有证据,再下断言。
供应商评估与选型
vendor-evaluation
评估供应商 — 成本分析、风险评估与建议。适用于审查新的供应商提案、决定续签还是更换合同、并排比较两家供应商,或在采购签批前制定 TCO 明细与谈判要点。
供应商合同状态核查
vendor-contract-status
跨所有已连接系统(CLM、CRM、电子邮件和文档存储)检查与供应商的现有协议状态,并进行缺口分析和临近截止日期提示。当供应商入驻或续约、需要统一查看已签署和缺失的内容(MSA、DPA、SOW),或检查即将到期和存续义务时使用。
用户同期群分析
user-cohort-analysis
对用户参与度数据执行同期群分析——留存曲线、功能采用趋势和细分群体洞察。当按同期群分析用户留存、研究功能随时间的采用情况、调查流失模式或识别参与度趋势时使用。