Evasion-SubAgents: Command for Claude Code

.claude/commands/tools_evasion.md

tools_evasion is a command for Claude Code from JDArmy/Evasion-SubAgents. It costs 26 tokens per session (870 once invoked), scanned A, original, MIT.

A command for examining penetration-testing software, which is used to test the security of systems, and changing its source code to avoid detection. It also collects related detection rules such as YARA and Sigma rules.

In plain words
What is it for?
Use it for authorized defensive research, detection-rule analysis, and documenting how a penetration-testing tool behaves.
Why use it?
It helps analyze which behaviors and code patterns security tools may recognize, though modifying software to evade detection can enable misuse.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is JDArmy/Evasion-SubAgents's own configuration. It tells Claude Code how to work on Evasion-SubAgents itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Evasion-SubAgents configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/JDArmy/Evasion-SubAgents/main/.claude/commands/tools_evasion.md
Clone the repo
git clone --depth 1 https://github.com/JDArmy/Evasion-SubAgents

Made for: Claude Code.

Wrote 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.

agentmods badge for tools_evasion

README.md
[![agentmods](https://agentmods.dev/badge/commands/jdarmy/evasion-subagents/tools_evasion.svg)](https://agentmods.dev/commands/jdarmy/evasion-subagents/tools_evasion)
Your own site
<a href="https://agentmods.dev/commands/jdarmy/evasion-subagents/tools_evasion"><img src="https://agentmods.dev/badge/commands/jdarmy/evasion-subagents/tools_evasion.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00870
Opus 5 $0.00013 $0.00435
Sonnet 5 $0.00005 $0.00174
Haiku 4.5 $0.00003 $0.00087

Measured 7d ago against content hash 03c49cddb08c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tools_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 7d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/commands/tools_evasion.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are tasked with analyzing a penetration testing tool and modifying its source code to evade detection.

Input

Tool Path: {{tool_path}}

Workflow

Follow these phases in order:

Phase 1: Tool Understanding

  1. Read README and documentation files
  2. Analyze source code structure
  3. Identify programming language and build system
  4. Determine tool purpose and use cases
  5. Create tool profile at rules/{tool_name}/tool_profile.md

Phase 2: Open Source Detection (if applicable)

  1. Check if the tool is open source
  2. Extract keywords (name, author, features)
  3. Search GitHub for tool-specific detection rules
  4. Save found rules to rules/{tool_name}/yara/, rules/{tool_name}/sigma/, etc.

Phase 3: Behavior Analysis

  1. Analyze source code for core behavior patterns:
    • Network behavior (HTTP headers, URLs, ports)
    • Process behavior (creation, injection)
    • File behavior (paths, operations)
    • API usage patterns
    • String constants
  2. Extract behavioral signatures
  3. Search for behavior-based detection rules
  4. Save found rules

Phase 4: Rule Collection

  1. Organize all found rules
  2. Create rule inventory at rules/{tool_name}/rule_inventory.md
  3. Categorize by type (YARA, Sigma, Network, etc.)

Phase 5: Per-Rule Analysis

For EACH detection rule found:

  1. Parse all patterns (strings, hex, regex)
  2. Identify pattern sources in the tool code
  3. Develop evasion strategies (prioritize compiler flags)
  4. Create analysis file at rules/{tool_name}/rule_analysis/{rule_name}.md

Phase 6: Source Modification

CRITICAL: Directly modify source files using Edit tool.

  1. FIRST: Try build configuration changes (compiler flags)
  2. SECOND: Apply source code modifications if needed
  3. Create tasks for each modification
  4. Verify each change

Modification priority:

  1. Compiler flags (lowest effort, highest impact)
  2. Build configuration
  3. String obfuscation
  4. API obfuscation
  5. Function rename
  6. Behavior change (last resort)

Phase 7: Verification & Summary

Read the full file on GitHub · 126 lines

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.

  1. 7d ago First seen · 126 lines · 0 tokens per session scan A 03c49cddb08c

Subscribe to this mod's changes

tools_evasion is a command published in the GitHub repository JDArmy/Evasion-SubAgents (315 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 870 once invoked, about $0.0001 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.