About evasion-technique-integrate
A security skill for integrating evasion techniques into Windows Loader source code. It selects techniques from a specified database based on compatibility, requires confirmation, and calls for separate compile checks and a change and risk report.
Key features
- 01Assess compatibility with Loader traits
- 02Select techniques from the specified database
- 03Present applicable techniques for approval
- 04Compile-check each integration separately
- 05Back up source and report changes and risks
Use cases
- 01Assess compatibility between a Loader and techniques
- 02Integrate approved source-code changes
- 03Compile-check each modification
- 04Review changes and their risks
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ wgpsec/ aboutsecurity --skill evasion-technique-integrateAfter installing, type/evasion-technique-integratein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
evals/evals.jsonrecall.jsonreferences/evasion-techniques-db.jsonintegration-patterns.mdDetails
From the project README免杀技术整合方法论
⛔ 深入参考
- 172 条免杀技术库 → references/evasion-techniques-db.json
- 整合模式与代码示例 → references/integration-patterns.md
7 类免杀技术速查
| 类型 | 目的 | 复杂度 | 典型技术 |
|---|---|---|---|
| api_obfuscation | 隐藏 API 导入 | medium | API Hashing, IAT 混淆 |
| string_obfuscation | 隐藏敏感字符串 | simple | XOR 加密, 编译期混淆 |
| memory_evasion | 避免 RWX 内存页 | simple | 权限翻转 (RW→RX) |
| execution_evasion | 绕过 Hook | complex | 直接 Syscall, 间接 Syscall |
| anti_analysis | 检测调试/沙箱 | medium | IsDebuggerPresent, 时间差, CPU 核心数 |
| amsi_etw_bypass | 禁用 AMSI/ETW | medium | AmsiScanBuffer Patch, EtwEventWrite Patch |
| unhooking | 恢复被 Hook 的 DLL | complex | NTDLL 重映射 |
整合流程
1. 读取目标 Loader 源码
2. 查免杀技术库 → references/evasion-techniques-db.json
3. 分析兼容性
├─ 使用 RWX? → 加 memory_evasion(权限翻转)
├─ 使用标准 API? → 加 execution_evasion(Syscall)
├─ 有明文字符串? → 加 string_obfuscation(XOR)
└─ 无反调试? → 加 anti_analysis
4. 逐项整合(参考 references/integration-patterns.md)
5. 交叉编译验证
6. 输出变更报告
兼容性矩阵
| Loader 特征 | 兼容技术 |
|---|---|
| 任意 Loader | API 混淆、字符串混淆、反调试 |
| 使用 RWX 内存 | 权限翻转 |
| 使用标准 Win API | Syscall 替换 |
| 未做 Unhook | NTDLL Unhooking |
快速代码示例
权限翻转(最常用)
// Before: PAGE_EXECUTE_READWRITE(一步到位,易被检测)
LPVOID addr = VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
// After: 先 RW 写入,再改 RX 执行
LPVOID addr = VirtualAlloc(NULL, size, MEM_COMMIT, PAGE_READWRITE);
memcpy(addr, shellcode, size);
VirtualProtect(addr, size, PAGE_EXECUTE_READ, &oldProtect);
字符串 XOR
char dllName[] = { 0x1a, 0x14, 0x07, ... }; // XOR encrypted
for (int i = 0; i < sizeof(dllName); i++) dllName[i] ^= KEY;
RWX 权限分离
- 两步操作:先写后执行(W+X 分离),不使用 RWX 一步到位
- 验证:编译通过、功能正常、验证执行结果
⛔ Agent 行为规则
⛔ NEVER
- NEVER 不分析兼容性就直接植入技术 — 必须先完成兼容性矩阵分析
- NEVER 使用知识库外的技术 — 所有技术必须来自 evasion-techniques-db.json
- NEVER 修改非用户提供的代码文件
- NEVER 运行或测试修改后的二进制 — 编译通过即可
- NEVER 忽略变更报告 — 必须输出修改了什么、影响评估
✅ ALWAYS
- 先读取技术库 references/evasion-techniques-db.json
- ALWAYS 列出所有适用技术,让用户确认后再整合
- ALWAYS 每个技术整合后单独编译验证
- ALWAYS 输出变更报告(原文件、应用技术列表、修改的 API/字符串、风险评估)
- ALWAYS 备份原始代码
🔧 工具偏好
- 读取 references/... — 查技术库和整合模式
bash— 交叉编译验证- 直接创建/编辑文件 — 修改 Loader 源码
Comments
Markdown supported