Evasion Research
Researchevasion-researchEvasion Research is an Agent Skill for research published in the wgpsec/AboutSecurity repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
GitHub 安全研究方法论:搜索 GitHub 上的免杀/Loader/C2 技术仓库,分析代码模式,提取新技术入库。当知识库中没有针对当前检测环境的免杀技术时使用——先搜索 GitHub 高星仓库,分析代码后写入 evasion-techniques-db.json 或 loader-components-db.json 入库
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/wgpsec/AboutSecurity/blob/HEAD/skills/evasion/evasion-research/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/evasion-research, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
GitHub 安全研究方法论
⛔ 深入参考
- 完整研究流程与命令 → references/research-workflow.md
5 步研究流程
1. GitHub 搜索 → gh search repos / gh search code
2. 仓库分析 → gh repo view + 读关键文件
3. 模式提取 → 按 6 大类分类
4. 去重检查 → 查已有知识库避免重复
5. 入库保存 → 写入 evasion-techniques-db.json / loader-components-db.json
GitHub 搜索命令速查
# 搜仓库
gh search repos "shellcode loader language:C stars:>20" --limit 20
gh search repos "AMSI bypass" --limit 15
gh search repos "syscall direct" --language c --limit 15
# 搜代码
gh search code "VirtualAlloc PAGE_EXECUTE_READWRITE" --language c --limit 30
gh search code "NtCreateThreadEx" --language c --limit 20
6 大技术分类
| 类别 | 搜索关键词 |
|---|---|
| 内存分配 | VirtualAlloc, HeapCreate, NtAllocateVirtualMemory, MappedFile |
| 代码执行 | CreateThread, EnumWindows, APC, Fiber, callback |
| API 混淆 | API hashing, PEB walk, dynamic resolve |
| 字符串混淆 | XOR, AES, stack strings, compile-time encryption |
| 反分析 | IsDebuggerPresent, anti-VM, sandbox detection |
| Syscall | direct syscall, indirect syscall, SSN, Hell's Gate |
去重规则
| 条件 | 操作 |
|---|---|
| 完全同名 | ❌ 跳过(重复) |
| 同技术不同名 | ❌ 跳过(重复) |
| 同目标不同实现 | ✅ 添加(都有价值) |
| 不同目标类似 API | ✅ 添加(不同用途) |
输出格式
## 研究报告
### 发现的技术
1. [技术名] - [简述] - 复杂度: simple/medium/complex
### 知识库状态
- 新增: X 条
- 重复跳过: Y 条
- 变体补充: Z 条
### 参考链接
- <repository-url>