/security-agent-skills:reviewing-detection-rules-for-evasionfrom security-agent-skills
Stress-tests detection-as-code rules for evasion by finding literal, encoding, anchor, wildcard, and telemetry gaps that an attacker could exploit.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A detection rule is a guard, and like any guard it is only as strong as the exactness of the thing it checks against what the attacker can vary. Detection content is often written to match one observed spelling of an attack: a specific command line, a known tool name, a particular flag. An attacker who can read the rule, or simply reason about it, expresses the same action a different way and walks past. This review treats a rule the way an attacker treats a filter: find the field it trusts, find the variant it does not cover, and produce an event that does the malicious thing without tripping the match. The attacker-controlled field is the source, the rule's match logic is the guard, and a bypass is the bug.
Test evasion only against detections, telemetry, and systems you own or are authorized to assess, and generate malicious-looking events only where that is expected and coordinated. A realistic bypass event can trigger a real response. If you can't name the authorization, stop.
Inventory each rule and the field it trusts. For every detection rule, identify the fields it matches on and which of those an attacker controls freely: a process command line and its arguments, environment values, a user-agent, a file path or name. A rule keyed on an attacker-controlled field is only as strong as how exactly it pins that field against every equivalent form.
Test literal and encoding variants. For each match, ask whether the same malicious action can be expressed a way the rule does not cover: alternate casing, quoting, extra whitespace, an equivalent path or name form, reordered flags, an encoded argument, or a different tool that has the same effect. A rule that matches one literal spelling misses every synonym of it.
Test the anchor and wildcard placement. A match anchored to the start, or requiring a fixed prefix, is bypassed by prepending harmless noise; a wildcard in the wrong position widens or narrows the match in ways the author did not intend. Determine what an attacker can add before, after, or inside the matched region without changing the outcome of their action.
Test negation and allowlist fields. A rule that suppresses events where a field equals a known-good value is defeated if the attacker can set that field. An exclusion keyed on a user-agent, a parent process name, a path, or any attacker-controlled datum is a self-service bypass. Find every exclusion and ask who controls the excluded field.
Check the telemetry actually carries the field. A flawless rule over an event the log source does not emit, or a field it does not populate, never fires. Determine whether the events the rule depends on are collected at all, with the needed fields and volume, from the systems in scope. A silent coverage gap looks identical to a quiet environment.
Confirm and record. Confirm by producing an event that performs the malicious action yet does not match the rule, a variant spelling, an added prefix, or a set exclusion field, or by showing the required telemetry is absent. Kill the lead if the rule matches an invariant of the behavior rather than a spelling, covers casing, encoding, and ordering variants, uses no attacker-settable exclusion, and the telemetry reliably carries the field. Record with the rule, the bypass, and the action that still runs.
Confirm. A rule flags a sensitive administrative command by matching its exact lowercase invocation string, anchored at the start of the command line, and suppresses events whose user-agent equals an internal tool's string. An attacker runs the same command with mixed casing and a leading no-op, and sets the excluded user-agent, evading the rule entirely while performing the action. Confirmed detection bypass on a privileged action,
high, remediation = match a case-insensitive invariant of the command unanchored, cover argument and ordering variants, and remove the attacker-settable user-agent exclusion in favor of a trait the attacker cannot forge.Kill. The rule matches a case-insensitive, position-independent invariant of the action, accounts for quoting, whitespace, and flag-ordering variants, carries no exclusion keyed on attacker-controlled data, and the telemetry it needs is confirmed collected with the required fields from all in-scope systems. Variant, prefix, and set-field events all still match. Killed,
kill_reason= "rule pins a behavioral invariant, covers spelling and encoding variants, uses no attacker-settable exclusion, and required telemetry is present."
You need the set of detection rules, the fields each matches and excludes on and which of those an attacker controls, the variant space for each matched action, and confirmation that the underlying telemetry is collected. For each rule, ask what an attacker who has read it would change to keep the action and lose the match. Reading the rule shows what it intends to catch; constructing an equivalent event that does not match shows what it actually catches.
auditing-security-logging-completeness - the upstream half: a rule can only match events the application
and hosts actually emit, so close coverage gaps there first.auditing-guard-gaps - the same exactness question applied to application guards; this skill applies it to
detection content instead of code.hunting-bug-variants - variant thinking is the shared engine: one known case implies a family of
equivalent forms to enumerate.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.Other plugins' skills for the same job