cyber-defense
Defensive security work for Claude Code, with proof by a run and a human gate before any report.
This is a Claude Code plugin for defensive security work: incident response, malware triage, detection rules, CVE triage, and vulnerability research in open source with private disclosure to the maintainer.
The plugin is a skill (a set of instructions Claude loads when a task matches), four subagents and a folder of scripts. The skill decides three things before any work starts: whether the target is one you may touch (a request such as "may I scan this host?" is answered from your list of allowed hosts), whether the task fits what your access allows, and which mode applies. It then runs that mode and writes a report that says what was checked and what was not.
The method is not calibrated yet, and the Status section gives the numbers. Read it before you trust a finding.
What it does
The skill has seven modes. Each one starts from a plain request.
| Mode | A request that starts it | What you get |
|---|
| Incident | "Were we hacked?" | A timeline built from logs and artifacts, with evidence preserved before anything is cleaned up. |
| Suspicious file | "What does this file do?" | Static analysis only: the sample is never run on your machine. The result lists what the file does, its indicators and a YARA rule. |
| Detection rules | "Write a YARA rule for this" | A YARA, Sigma or semgrep rule tested against a sample that must match and three or more clean files that must not. |
| CVE triage | "Does this CVE affect us?" | A check of the installed version and of whether the vulnerable code path is reachable in your project. |
| Access terms | "Am I within the terms?" | Every requirement of your provider's usage policy, answered with yes, no or "cannot verify from here". |
| Bug bounty and open source | "Look for vulnerabilities in this repository" | The pipeline described below, ending in a draft report you decide whether to send. |
| Your own projects | "Check all my projects for leaked keys" | One pass over every repository in a folder for secrets and vulnerable dependencies. |
Two rules apply in every mode. The first is the proof rule: a finding counts as confirmed only after a run. The proof of concept (PoC, a small program that triggers the bug) must call the project's real code, must check the result at the point where the damage happens, and must have a control group. The control group is the same run against a fixed copy of the code, which has to stay silent. For a new bug with no fix yet, the fixed copy is the code with a minimal proposed patch. If both copies behave the same, the error is in the PoC. The second rule is that the skill names every step it skipped, because silence about an unchecked area reads as "checked and clean".
What it does not do
The plugin does not test live systems that belong to someone else. Before an active check of a host that is missing from your list of allowed hosts, the skill asks you whether the host is yours or you hold the owner's written permission, and without a "yes" it runs only passive lookups such as DNS. It never edits that list. It sends nothing to a maintainer without your explicit "send it": the pipeline ends in a draft, and ledger.py gate keeps the draft step closed until the finding's row in the ledger carries your label.
These limits are instructions the model follows, and the scripts enforce only part of them. The gate script checks that the label is in the ledger file, but it cannot tell who wrote it. The host check is done by the model reading the list. Treat both as discipline that you supervise, the way you would supervise a junior colleague.
It does not replace a full audit of your own service. For that, use fynd-dyrka, the recommended companion plugin, which runs scanners and a manual review over one service. cyber-defense works without it.