Security & Safety / Supply Chain
Vet, pin and track every agent dependency
- MUST keep an inventory of everything an agent depends on: models and providers, gateways, MCP servers, skills, plugins, hooks, packages and their versions.
- MUST verify a package exists, is the intended one, and comes from the expected publisher before an agent adds it. AI tools sometimes suggest package names that do not exist, and attackers register those names with malware (“slopsquatting”).
- MUST pin every dependency to a reviewed version (lockfiles, commit SHAs, image digests) and update deliberately, not automatically on every run.
- MUST review third-party skills, plugins, hooks and MCP servers like code before enabling them (BP-0019, BP-0021, BP-0023).
- MUST route agent package installs through an approved registry or proxy where possible, with allow-lists for new packages.
- SHOULD check new dependencies for age, maintainers, download history and known vulnerabilities, and treat a brand-new package with a plausible name as suspicious.
- SHOULD record which model and version produced an output, and re-evaluate when a provider changes or deprecates a model (BP-0006).
- SHOULD run dependency and secret scanning in CI on every agent change, and review lockfile diffs (BP-0036).
- SHOULD keep a software bill of materials that includes agent components (models, servers, skills), so you can answer “where do we use X?” when an advisory lands.
When to apply
Section titled “When to apply”Adding or updating any component an agent uses or installs, and when agents write code that adds dependencies.
Examples
Section titled “Examples”Good: the agent proposes npm install fast-csv-parse; a hook checks the registry, finds the package was published two days ago by an unknown account with no downloads, and blocks it with “unverified package; did you mean fast-csv?”.
Bad: the agent installs whatever names it remembers, unpinned, and enables a skill pack from a forum post.
Anti-patterns
Section titled “Anti-patterns”latesttags for MCP servers and gateway images.- Agents with permission to install any package globally.
- No record of which model version produced a release’s code.
Checklist
Section titled “Checklist”- Inventory of models, servers, skills, plugins, hooks, packages
- Packages verified real and from the expected publisher
- Everything pinned; updates deliberate
- Third-party agent components reviewed
- Installs via approved registry; scanning in CI; SBOM includes agent parts