Borrowing it
Nothing to install: this file belongs to JDArmy/Evasion-SubAgents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/JDArmy/Evasion-SubAgents/main/.claude/commands/c2_evasion.mdgit clone --depth 1 https://github.com/JDArmy/Evasion-SubAgentsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/jdarmy/evasion-subagents/c2_evasion)<a href="https://agentmods.dev/commands/jdarmy/evasion-subagents/c2_evasion"><img src="https://agentmods.dev/badge/commands/jdarmy/evasion-subagents/c2_evasion.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.00692 |
| Opus 5 | $0.00030 | $0.00346 |
| Sonnet 5 | $0.00012 | $0.00138 |
| Haiku 4.5 | $0.00006 | $0.00069 |
Grade A, and why
c2_evasion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- c2_evasion — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
C2 Evasion Command
Launch the c2-evasion-agent to analyze and modify C2 framework source code.
Usage
/c2_evasion /path/to/c2/source
/c2_evasion ./mythic-agent
/c2_evasion ./sliver-client
What This Command Does
- Identifies C2 framework type and components (implant/server)
- Searches detection rules (YARA, Sigma, Network) via
ghCLI - Per-rule analysis - Creates separate analysis for EACH rule with evasion strategies
- Proactively searches for sensitive strings (even if YARA rules are hex-only)
- Modifies source code - Compiler flags FIRST, then source changes
- Documents all changes in
./rules/<c2_name>/
CRITICAL: Per-Rule Analysis
For EACH YARA/Sigma rule, create ./rules/<c2_name>/rule_analysis/<rule_name>.md:
- Parse all patterns ($a1, $s1, hex, regex)
- Identify pattern source in code
- Develop evasion strategies with priority:
- Compiler flags (LOWEST effort, HIGHEST impact)
- Build configuration changes
- Source code modifications
- Function/struct refactoring (last resort)
Priority Framework
| Priority | Component | Action |
|---|---|---|
| 1 (HIGHEST) | Implant/Beacon/Agent | MODIFY |
| 2 (HIGH) | Network Exposure | MODIFY |
| 3 (SKIP) | Internal Strings | SKIP |
Evasion Priority
| Strategy | Priority | Effort |
|---|---|---|
| Compiler flags | 1 (BEST) | Low |
| Build config | 2 | Medium |
| Source changes | 3 | Medium |
| Refactoring | 4 | High |
Output
./rules/<c2_name>/
├── yara/ # Found YARA rules
├── sigma/ # Found Sigma rules
├── network/ # Found network rules
├── rule_analysis/ # Per-rule analysis files
│ ├── Windows_Trojan_X.md
│ └── ...
├── binary_assets/
│ └── analysis.md
├── hex_analysis.md
└── modifications_summary.md
Security
- ONLY modify code in user-provided path
- NEVER run or test modified binaries
- NEVER skip a rule - every rule must have analysis
- ALWAYS try compiler flags first
- Document ALL changes
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 84 lines · 0 tokens per session scan A ca670e84b35d
c2_evasion is a command published in the GitHub repository JDArmy/Evasion-SubAgents (315 stars, last pushed 5mo ago), licensed MIT. It adds 60 tokens to every session and 692 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.