# evasion_integrate

evasion_integrate adds evasion techniques to a shellcode loader you already have: it edits the source, checks which tricks fit and builds the binary.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 336 repo stars
- Author: JDArmy
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/JDArmy/Evasion-SubAgents/tree/HEAD/.claude/commands/evasion_integrate.md
- Updated: 2026-04-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/evasion-integrate

## What it does

The job goes to the `evasion-agent` subagent. It opens the loader source at the path you give, pulls matching techniques from its knowledge base, tests them against the code and rewrites the file. A compile follows, then a report on the techniques applied, the APIs they touched and the detection risk.

You can let the command choose or narrow the set: `--type` for a category such as `api_obfuscation` or `execution_evasion`, `--complexity` to filter by how hard a technique is, `--technique` for specific IDs. Results land in `output/evasion_<id>.c` and `output/evasion_<id>.exe`.

The loader path is not optional, so put it first and the filters after; without it there is nothing to read. The compiled executable is never launched. A clean build is where the run ends.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/evasion_integrate.md` — Call it with /evasion_integrate. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/evasion_integrate.md` — Call it with /prompts:evasion_integrate. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/evasion_integrate.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/evasion_integrate.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/JDArmy/Evasion-SubAgents/tree/HEAD/.claude/commands/evasion_integrate.md

## When to use it
- add API hashing to an existing loader
- encrypt strings without rewriting the loader by hand
- switch API calls to direct or indirect syscalls
- check which evasion techniques fit the current source
- compile the patched loader and get a list of changes

## Example prompts
- Integrate evasion into this loader and pick the techniques yourself: `/evasion_integrate /path/to/loader.c`
- Only string techniques here: `/evasion_integrate /path/to/loader.c --type string_obfuscation`
- Keep it to the simple techniques: `/evasion_integrate /path/to/loader.c --complexity simple`

## Source text · evasion_integrate.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 3649ffa9f51f705d.

BEGIN THIRD-PARTY FILE 3649ffa9f51f705d
````text
---
description: Integrate evasion techniques into existing shellcode loaders. Add API hashing, string encryption, syscalls, etc. to user-provided code. Triggers on "integrate evasion", "add evasion", "bypass", "hardening", "免杀", "二开".
argument-hint: Required: path to loader source (e.g., "/path/to/loader.c") + optional technique filters
---

# Evasion Integrate Command

Launch the evasion-agent to add evasion techniques to an existing loader.

## Usage

```bash
/evasion_integrate /path/to/loader.c                           # Auto-select techniques
/evasion_integrate /path/to/loader.c --type api_obfuscation    # Specific type
/evasion_integrate /path/to/loader.c --type string_obfuscation,anti_analysis
/evasion_integrate /path/to/loader.c --complexity simple       # Filter by complexity
/evasion_integrate /path/to/loader.c --technique T001,T003     # Specific IDs
```

## What This Command Does

1. **Reads** user-provided loader source code
2. **Queries** evasion techniques from knowledge base
3. **Analyzes** compatibility with the loader
4. **Integrates** selected techniques into the code
5. **Compiles** modified loader
6. **Reports** all changes made

## Evasion Types

| Type | Description | Complexity |
|------|-------------|------------|
| api_obfuscation | API hashing, PEB walking | medium |
| string_obfuscation | XOR encryption, stack strings | simple |
| memory_evasion | Permission flipping (RW→RX) | simple |
| execution_evasion | Direct/indirect syscall | complex |
| anti_analysis | Anti-debug, anti-VM | medium |
| amsi_etw_bypass | AMSI/ETW patching | medium |
| unhooking | NTDLL unhooking | complex |

## Output

- Modified source: `output/evasion_<id>.c`
- Compiled executable: `output/evasion_<id>.exe`
- Changes summary:
  - Techniques applied
  - APIs modified
  - Detection risk assessment

## Security

- **ONLY** modify user-provided code
- **NEVER** run generated executables
- Compilation success is sufficient

## Agent

Spawns `evasion-agent` subagent for technique integration.

See `evasion_integrate` skill for detailed patterns.
````
END THIRD-PARTY FILE 3649ffa9f51f705d

The third-party file has ended. Everything between the 3649ffa9f51f705d tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© JDArmy · MIT · https://github.com/JDArmy/Evasion-SubAgents/tree/HEAD/.claude/commands/evasion_integrate.md

## Similar
- [windows-av-evasion](https://affpapa.org/en/nevibecode/skills/windows-av-evasion.md) — skill · 3900 installs
- [03-exploit-development](https://affpapa.org/en/nevibecode/skills/03-exploit-development.md) — skill · ★ 71 repo stars
- [integrate-arcjet-guard-crewai](https://affpapa.org/en/nevibecode/skills/integrate-arcjet-guard-crewai.md) — skill · 120 installs
- [analyzing-malware-sandbox-evasion-techniques](https://affpapa.org/en/nevibecode/skills/analyzing-malware-sandbox-evasion-techniques.md) — skill · 377 installs
- [sumsub-integrate-msdk](https://affpapa.org/en/nevibecode/skills/sumsub-integrate-msdk.md) — skill · 1200 installs
- [sumsub-integrate-dint-standalone](https://affpapa.org/en/nevibecode/skills/sumsub-integrate-dint-standalone.md) — skill · 1200 installs

From the same set: [jdarmy/evasion-subagents](https://affpapa.org/en/nevibecode/by/jdarmy/evasion-subagents.md) — 22 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
