Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/SeaOf0/dsh-redteam-modelnpx agentmods add commands/seaof0/dsh-redteam-model/c2_evasionWrote 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/seaof0/dsh-redteam-model/c2_evasion)<a href="https://agentmods.dev/commands/seaof0/dsh-redteam-model/c2_evasion"><img src="https://agentmods.dev/badge/commands/seaof0/dsh-redteam-model/c2_evasion/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/seaof0/dsh-redteam-model/c2_evasion"><img src="https://agentmods.dev/badge/commands/seaof0/dsh-redteam-model/c2_evasion.svg" alt="Reviewed on agentmods" width="80" 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.00000 | $0.00692 |
| Opus 5 | $0.00000 | $0.00346 |
| Sonnet 5 | $0.00000 | $0.00138 |
| Haiku 4.5 | $0.00000 | $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 9d 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.
- 9d ago First seen · 84 lines · 0 tokens per session scan A ca670e84b35d
c2_evasion is a command published in the GitHub repository SeaOf0/dsh-redteam-model (325 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 692 tokens. 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
riskreview
The user invoked the /riskreview facade command from the risk-review-pipeline pack.
hello-stranger
Say hello stranger.
approval
The user invoked the /approval facade command from the approval-node-pipeline pack.
aw
The user invoked the /approval-web facade command from the approval-node-pipeline pack.
kf
A customer-support command for TeamClaw, a software product. It sends a user's question to a support workflow that can search help information, examine logs, and create defect reports.
workflow-dispatcher
The user invoked the /workflow-dispatcher facade command from the workflow-dispatcher pack.