Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Hardens containers, Kubernetes, CI/CD pipelines, supply chains, cloud IAM, secrets and IaC configurations.
Use this skill ↓86% 91%+5 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 19 of 22 without it.
3 of 3 safety checks passed
12 agent runs
| 事件 | 路径 | 教训 |
|---|---|---|
| SolarWinds (2020) | 构建环境被植入,污染合法签名的 dll | 构建机即信任根,必须隔离、审计、可重现 |
| Codecov (2021) | bash uploader 被改,CI 中 secret 被外传 | CI 中拉远端脚本必须 pin hash |
| event-stream (2018) | 维护者交接给恶意者,新版本注入 BTC 钱包窃取代码 | 依赖维护者变更需告警;锁版本+审计 |
| left-pad (2016) | 11 行包被撤回导致全网构建失败 | 私有 mirror / 缓存 / lockfile |
| ua-parser-js (2021) | 包仓账号被劫持发恶意版本 | 维护者 2FA + provenance |
| dependency confusion (2021) | 内部包名在公仓注册,CI 优先拉公仓 | scope/registry 显式锁定 |
| xz-utils (2024) | 长期渗透维护者社区注入后门 | 关键依赖审计 + reproducible build |
SLSA (Supply-chain Levels for Software Artifacts) 定义构建可信等级。别盲目追 L4,按业务定级。
| Level | 要求 | 何时够用 |
|---|---|---|
| L1 | 有构建脚本 + provenance(可不签名) | 内部工具、原型 |
| L2 | 托管构建 (GitHub Actions / GitLab CI) + 签名 provenance | 中等业务,绝大多数 SaaS 起步线 |
| L3 | 隔离构建环境 (ephemeral runner) + non-falsifiable provenance | 金融、医疗、关键基础设施 |
| L4 | 双人审核 + reproducible builds | 操作系统、编译器、加密库 |
L3 现实路径:用 GitHub-hosted runner(每次任务全新 VM)+ slsa-github-generator 自动产 provenance + sigstore 签名。
# ✅ GitHub Actions L3 构建链
name: build
on: [push]
permissions:
contents: read
id-token: write # OIDC for sigstore
attestations: write
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.