GitHub Security Research Methodology
⛔ Further Reading
- Full research workflow and commands → references/research-workflow.md
5-Step Research Workflow
1. GitHub search → gh search repos / gh search code
2. Repository analysis → gh repo view + read the key files
3. Pattern extraction → classify into the 6 major categories
4. Duplicate check → query the existing knowledge base to avoid redundancy
5. Save to the knowledge base → write into evasion-techniques-db.json / loader-components-db.json
GitHub Search Command Quick Reference
# Search repositories
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
# Search code
gh search code "VirtualAlloc PAGE_EXECUTE_READWRITE" --language c --limit 30
gh search code "NtCreateThreadEx" --language c --limit 20
6 Major Technique Categories
| Category |
Search Keywords |
| Memory Allocation |
VirtualAlloc, HeapCreate, NtAllocateVirtualMemory, MappedFile |
| Code Execution |
CreateThread, EnumWindows, APC, Fiber, callback |
| API Obfuscation |
API hashing, PEB walk, dynamic resolve |
| String Obfuscation |
XOR, AES, stack strings, compile-time encryption |
| Anti-Analysis |
IsDebuggerPresent, anti-VM, sandbox detection |
| Syscall |
direct syscall, indirect syscall, SSN, Hell's Gate |
Deduplication Rules
| Condition |
Action |
| Exact same name |
❌ Skip (duplicate) |
| Same technique, different name |
❌ Skip (duplicate) |
| Same target, different implementation |
✅ Add (both are valuable) |
| Different target, similar API |
✅ Add (different use case) |
Output Format
## Research Report
### Discovered Techniques
1. [technique name] - [short summary] - Complexity: simple/medium/complex
### Knowledge Base Status
- Added: X entries
- Skipped as duplicates: Y entries
- Variant supplements: Z entries
### Reference Links
- <repository-url>
1---2name: evasion-research3description: "GitHub security research methodology: search GitHub for AV evasion / Loader / C2 technique repositories, analyze code patterns, and add newly discovered techniques to the knowledge base. Use when the knowledge base has no AV evasion technique for the current detection environment — first search high-star GitHub repositories, analyze the code, then write the results into evasion-techniques-db.json or loader-components-db.json"4zh-signals: "检索 GitHub 上的免杀、Loader 与 C2 技术仓库,分析代码模式并沉淀至知识库。信号:免杀研究,Loader技术,C2仓库,GitHub搜索,检测绕过"5when-to-use: "Use when the knowledge base lacks an evasion technique for the current detection environment and you need to research GitHub repositories and record new methods."6metadata:7 source: https://skillmd.com/skills/dangeroussong/evasion-research8 tags: "research,github,evasion,loader,shellcode,technique,knowledge-base,evasion-research,detection-bypass,bypass-research,evasion-detection"9 category: "evasion"10---1112# GitHub Security Research Methodology13- 攻击大类:C35 C2框架与远控1415## ⛔ Further Reading1617- Full research workflow and commands → [references/research-workflow.md](references/research-workflow.md)1819---2021## 5-Step Research Workflow2223```241. GitHub search → gh search repos / gh search code252. Repository analysis → gh repo view + read the key files263. Pattern extraction → classify into the 6 major categories274. Duplicate check → query the existing knowledge base to avoid redundancy285. Save to the knowledge base → write into evasion-techniques-db.json / loader-components-db.json29```3031## GitHub Search Command Quick Reference3233```bash34# Search repositories35gh search repos "shellcode loader language:C stars:>20" --limit 2036gh search repos "AMSI bypass" --limit 1537gh search repos "syscall direct" --language c --limit 153839# Search code40gh search code "VirtualAlloc PAGE_EXECUTE_READWRITE" --language c --limit 3041gh search code "NtCreateThreadEx" --language c --limit 2042```4344## 6 Major Technique Categories4546| Category | Search Keywords |47|------|-----------|48| Memory Allocation | VirtualAlloc, HeapCreate, NtAllocateVirtualMemory, MappedFile |49| Code Execution | CreateThread, EnumWindows, APC, Fiber, callback |50| API Obfuscation | API hashing, PEB walk, dynamic resolve |51| String Obfuscation | XOR, AES, stack strings, compile-time encryption |52| Anti-Analysis | IsDebuggerPresent, anti-VM, sandbox detection |53| Syscall | direct syscall, indirect syscall, SSN, Hell's Gate |5455## Deduplication Rules5657| Condition | Action |58|------|------|59| Exact same name | ❌ Skip (duplicate) |60| Same technique, different name | ❌ Skip (duplicate) |61| Same target, different implementation | ✅ Add (both are valuable) |62| Different target, similar API | ✅ Add (different use case) |6364## Output Format6566```markdown67## Research Report6869### Discovered Techniques701. [technique name] - [short summary] - Complexity: simple/medium/complex7172### Knowledge Base Status73- Added: X entries74- Skipped as duplicates: Y entries75- Variant supplements: Z entries7677### Reference Links78- <repository-url>79```