Плагин defending-code
Security find-and-fix loop — adapted (Apache-2.0) from anthropics/defending-code-reference-harness and generalised to all vulnerability classes. Four read/write-only skills (no target-code execution): threat-model (bootstrap from code+CVEs+git-history, or interview an owner via Shostack's four questions, or both -> THREAT_MODEL.md), vuln-scan (static source review, parallel per-focus-area subagents -> VULN-FINDINGS.json), triage (adversarial N-vote verification, 16 false-positive exclusion rules, root-cause dedup, impact-on-asset x exploitability severity with stated deployment conditions, owner routing, checkpoint/resume -> TRIAGE.json), and patch (root-cause candidate diffs + independent reviewer, fix-first priority for deployment-conditional dangerous primitives, never auto-applied -> PATCHES/). The autonomous C/C++ + AddressSanitizer execution pipeline this was extracted from is referenced, not bundled (vuln-scan/HARNESS.md).
Как установить плагин defending-code
Выполните обе команды в Claude Code. Первая один раз добавляет маркетплейс; вторая устанавливает плагин.
/plugin marketplace add air-gapped/skills
/plugin install defending-code@air-gapped-marketplaceЧто внутри defending-code
10 частей прочитано из файлов самого плагина.
Агенты 6
Вызов как @agent-defending-code:name- @agent-defending-code:patch-author
Patch author for one verified vulnerability finding in a patch run. Spawn with a repo path and a nonce-tagged finding block — not for general delegation.
- @agent-defending-code:patch-reviewer
Independent reviewer for one candidate security patch in a patch run. Spawn with a repo path, location, category, and nonce-tagged diff — not for general delegation.
- @agent-defending-code:triage-ranker
Severity ranker for one confirmed triage finding. Spawn with a repo path, deployment context, and finding fields — not for general delegation.
- @agent-defending-code:triage-verifier
Adversarial verifier for one scanner finding in a triage run. Spawn with a repo path, environment, and finding block — not for general delegation.
- @agent-defending-code:vuln-area-reviewer
Static security reviewer for one focus area of a vuln-scan run. Spawn with a focus area, target dir, and scoping facts — not for general delegation.
- @agent-defending-code:vuln-confidence-scorer
Second-opinion confidence scorer for one vuln-scan finding. Spawn with a finding block and target dir — not for general delegation.
Skills 4
Claude загружает это при соответствии задачи- patch
Generates candidate security fix diffs from verified findings using static analysis or execution-verified pipelines.
- threat-model
Builds a structured threat model for a codebase using interview, bootstrap, or hybrid modes to map attack surfaces and prioritize security risks.
- triage
Triages security findings by verifying authenticity, deduplicating results, and ranking them by impact and exploitability.
- vuln-scan
Performs static source-code vulnerability scans by spawning parallel subagents to review specific focus areas and generate structured findings.
Использование defending-code в Claude Code
Запросите агента по имени:
@agent-defending-code:patch-author
@agent-defending-code:patch-reviewerSkills не требуют команд. Claude считывает их, когда ваш запрос соответствует их описанию.
Обновить, выключить или удалить
- Обновить плагин (shell)
- claude plugin update defending-code@air-gapped-marketplace
- Обновить marketplace
- /plugin marketplace update air-gapped-marketplace
- Временно выключить
- /plugin disable defending-code@air-gapped-marketplace
- Удалить
- /plugin uninstall defending-code@air-gapped-marketplace
Навыки в defending-code
- patchair-gapped/skills
Generates candidate security fix diffs from verified findings using static analysis or execution-verified pipelines.
6 файлов6звёзд - threat-modelair-gapped/skills
Builds a structured threat model for a codebase using interview, bootstrap, or hybrid modes to map attack surfaces and prioritize security risks.
9 файлов6звёзд - triageair-gapped/skills
Triages security findings by verifying authenticity, deduplicating results, and ranking them by impact and exploitability.
12 файлов6звёзд - vuln-scanair-gapped/skills
Performs static source-code vulnerability scans by spawning parallel subagents to review specific focus areas and generate structured findings.
5 файлов6звёзд
Вопросы о плагине defending-code
Как установить плагин defending-code?
В Claude Code выполните /plugin marketplace add air-gapped/skills, затем /plugin install defending-code@air-gapped-marketplace.
Что включает плагин defending-code?
defending-code объединяет 6 агентов, 4 навыка.
Какие агенты идут в комплекте с defending-code?
patch-author, patch-reviewer, triage-ranker, triage-verifier, vuln-area-reviewer, vuln-confidence-scorer. Вызовите одного из них через @agent-defending-code:patch-author.
Как обновить или удалить плагин defending-code?
Обновите его с помощью claude plugin update defending-code@air-gapped-marketplace в вашем shell или на вкладке Installed в /plugin. Удалите его с помощью /plugin uninstall defending-code@air-gapped-marketplace.
Под какой лицензией распространяется плагин defending-code?
MIT, как указано в манифесте плагина.