wgpsec/aboutsecurity/c2-evasion-methodology
Claude Code and agent skill by wgpsec/aboutsecurity
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
C2框架免杀方法论:分析 C2 源码、搜索检测规则(YARA/Sigma/Snort)、逐规则分析、修改源码绕过检测。当遇到 YARA/Sigma/Snort 规则触发告警、beacon/implant 被杀软检测到时使用。第一步:确认 implant/beacon 语言和架构;第二步:搜索对应检测规则并逐规则分析修改
Install
npx vskill@latest install wgpsec/aboutsecurity/c2-evasion-methodologySKILL.md
The same SKILL.md was published earlier as wgpsec/aboutsecurity/c2-evasion-methodology.
C2 框架免杀方法论
深入参考
以下参考资料按需加载,到达对应 Phase 时读取:
| Phase | 参考文档 | 用途 | |
|---|---|---|---|
| 2 | references/detection-search.md | YARA/Sigma/网络规则搜索命令 | |
| 3 | references/rule-analysis.md | 逐规则分析与免杀策略制定 | |
| 3.5 | references/hex-analysis.md | Hex 模式深度分析 | |
| 3.6 | references/binary-analysis.md | 二进制资产(shellcode/资源/配置)分析 | |
| 3.7 | references/string-search.md | 敏感字符串主动搜索 | |
| 4 | references/source-modify.md | 源码修改模式与编译器标志 |
6 步决策流程
优先级框架
| 优先级 | 组件 | 动作 | |
|---|---|---|---|
| 1 (最高) | Implant/Beacon/Agent 二进制 | 必须修改 | |
| 2 (高) | 网络特征暴露 | 必须修改 | |
| 3 (跳过) | 内部字符串(不影响检测) | 可跳过 |
免杀策略决策矩阵
| Pattern 类型 | 编译器标志 | 源码修改 | 两者都需要 | |
|---|---|---|---|---|
| 函数序言(prologue) | ✅ 通常足够 | ✅ 备选 | 少见 | |
| 字符串字节 | ❌ 无效 | ✅ 必须 | — | |
| API 调用序列 | ⚠️ 可能有效 | ✅ 必须 | 有时 | |
| 配置结构体 | ❌ 无效 | ✅ 必须 | — |
字符串混淆
- 混淆后必须验证:编译通过、功能正常、不影响运行
- 自动化处理:脚本批量替换,非手动逐个修改
⛔ Agent 行为规则
⛔ NEVER
- NEVER 跳过任何一条 YARA/Sigma 规则 — 每条规则都必须有分析和免杀方案
- NEVER 不分析检测规则就直接修改源码 — 必须先完成 Phase 2-3 再进入 Phase 4
- NEVER 直接修改二进制文件 — 只修改源码,通过重新编译产生新二进制
- NEVER 忽略 Hex pattern — 必须分析 references/hex-analysis.md
- NEVER 忽略二进制资产(shellcode/资源文件/配置文件)
- NEVER 运行或测试修改后的二进制文件 — 编译成功即可
✅ ALWAYS
- ALWAYS 编译器标志优先 — 最低成本最高收益(-O2, -fomit-frame-pointer, -fno-stack-protector)
- ALWAYS 检查 Makefile/CMakeLists/Cargo.toml 中的免杀机会
- ALWAYS 逐规则分析:解析 pattern → 定位源码 → 制定策略 → 实施 → 验证
- ALWAYS 验证修改后 pattern 已消除(grep 确认)
- ALWAYS 生成 modifications_summary.md 文档化所有修改
- ALWAYS 每个 Phase 开始前读取对应的 references 文档
🔧 工具偏好
grep/find— 搜索源码中的检测特征bash— 编译验证- 读取 references/... — 每个 Phase 的详细步骤
http_request— 搜索在线 YARA/Sigma 规则库
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/evasion/c2-evasion-methodology/SKILL.md
Popularity
- Repository stars
- 1,557
- Repository forks
- 228
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wgpsec/aboutsecurity/c2-evasion-methodology)