update-threat-db — Claude Code command: threat DB updates
The update-threat-db command delegates threat database changes to AgentSec and checks the resulting feed, catalogue, and compatibility data.
CC-BY-SA-4.0 ★ 6,529 updated 2026-10-22
.claude/commands/update-threat-db.mdWhat update-threat-db does
update-threat-db routes threat evidence and database maintenance to the AgentSec checkout. It resolves that checkout from AGENTSEC_REPO or ../agentsec-triage, verifies the required files, and runs .claude/commands/update-threat-db.md there. AgentSec handles source review, detector coverage, regression checks, and generated artifacts.
Once that workflow passes, the command copies the generated feed into the guide with scripts/sync_security_feed.py --write, repeats the check mode, and runs the listed feed tests. It also refreshes the landing catalogue. The legacy examples/commands/resources/threat-db.yaml remains a consumer for /security-check and /security-audit. The process stops when the AgentSec checkout or its required files cannot be found; cloning, pulling, and publishing need explicit authorization.
What it helps with
- delegate threat database updates to AgentSec
- sync the security feed into the guide
- refresh the landing search catalogue
- keep
/security-checkand/security-auditcompatible - run feed and catalogue validation
Example prompts for the agent
- Run
update-threat-dband route the threat database update through AgentSec. - Check the guide and landing after synchronizing the security feed.
- Run the update without cloning or publishing repositories unless authorization is explicit.
How to install update-threat-db
Manually: put the files in place
.claude/commands/update-threat-db.mdCall it with /update-threat-db. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/update-threat-db.mdCall it with /prompts:update-threat-db. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/update-threat-db.prompt.mdManually: put the files in place
.gemini/commands/update-threat-db.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about update-threat-db
How do I install update-threat-db in Claude Code?
Place the command file at .claude/commands/update-threat-db.md.
What does update-threat-db do?
It delegates threat database work to AgentSec, synchronizes the generated feed with the guide and landing, and runs the available validation steps.
What does update-threat-db need to run?
AgentSec must be reachable through AGENTSEC_REPO or ../agentsec-triage and contain AGENTS.md, .claude/commands/update-threat-db.md, data/intelligence/sources.yaml, data/intelligence/events.yaml, and data/threat-db.yaml.