malware-analysis
Skill715 starsChanged 5 days agoMITView on GitHub
Windows PE malware analysis — kill chain, IOC extraction, MITRE ATT&CK mapping
17 other projects use a version of this.
Adopted by
Most recently taken up by
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 29, 2026
- valITino/dfireballztheir own version, first seen Nov 29, 2026
- zhaoxuya520/reverse-skilltheir own version, first seen Nov 14, 2026
- lza6/claw-code-tingfengtheir own version, first seen Nov 1, 2026
- lushun2014/lushibo-skillstheir own version, first seen Oct 15, 2026
- 2233admin/reverse-skill-evolvertheir own version, first seen Oct 15, 2026
Used with
Projects with it also use attack-chain, js-reverse and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DorianGalloSkillattack-chain
Also in 6 projects that use this
DorianGalloSkilljs-reverse
Also in 6 projects that use this
Roshu18Skillpentest-tools
Tool selection policy for BearStrike based on target type, scan risk, and signal strength.
Also in 6 projects that use this
hardw00tSkillllm-security
LLM and AI application security testing skill for prompt injection (direct, indirect, multimodal), system-prompt extraction, RAG poisoning, memory poisoning, MCP server injection, skill-file injection, agentic tool misuse, computer-use UI injection, and excessive agency. Authorization required — this skill tests AI systems you are explicitly permitted to assess. Triggers on requests to test LLM / AI-agent / RAG / MCP / computer-use security, perform prompt injection, extract system prompts, poison RAG or memory, audit agent tool use, or evaluate AI guardrails.
Also in 6 projects that use this
- +8 more from DorianGallo
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- zhaoxuya520/reverse-skill-private★ 45ksame name
- zhaoxuya520/reverse-skill★ 45ksame name
- hypnguyen1209/offensive-claude★ 401same name
- tsale/awesome-dfir-skills★ 323same name
- gl0bal01/malware-analysis-claude-skills★ 46same name
- z91772524-ai/pojia-next-mac★ 39same name
- Liberty91LTD/cti-skills★ 35same name
- 2233admin/reverse-skill-evolver★ 26same name
- Snausage0x45/ClaudeSkills★ 6same name
- lza6/claw-code-tingfeng★ 5same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- webpage/llms.txtllms.txt
- binja-scriptingSkill
- ctfSkill
- deobfuscationSkill
- driver-analysisSkill
- generic-reSkill
- ida-scriptingSkill
- linux-malwareSkill
- modifySkill
- smart-patch-binjaSkill
- smart-patch-idaSkill
- vuln-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Before analysis, check for obfuscation:
- Very specific: line 11
If code is heavily obfuscated (opaque predicates, CFF, MBA): invoke /deobfuscation first
- Distinctive: line 12
If very few readable strings in a large binary → strings are encrypted
- Distinctive: line 13
Look for the string decode stub: a small function called before every string use
- Distinctive: line 14
If strings are encrypted: trace the decode function, understand the algorithm (XOR, RC4, custom)
- Distinctive: line 16
Crypto constant hunting: When you find RC4 S-box or AES constants via search_strings, use xrefs_to on the constant's address (not the S-box …
- Distinctive: line 24
Use built-in tools for initial survey:
- Very specific: line 40
Use function_xrefs to map the call graph from entry
- Distinctive: line 53
Check for process injection: VirtualAllocEx → WriteProcessMemory → CreateRemoteThread
- Distinctive: line 58
Check for browser DB access patterns: SQLite, LevelDB, Login Data, Cookies
- Distinctive: line 66
Check registry keys (RegSetValueEx, service install, scheduled task)
- Distinctive: line 67
Check process injection (VirtualAllocEx, WriteProcessMemory, CreateRemoteThread)
- Distinctive: line 68
Check anti-analysis: IsDebuggerPresent, timing checks, VM detection, CPUID
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Task: Malware Analysis. You are analyzing a potentially malicious Windows PE binary. Defang all IOCs (hxxps://, [.]).
Phase 0: Obfuscation Triage
Before analysis, check for obfuscation:
- Decompile the entry point and a few key functions
- If code is heavily obfuscated (opaque predicates, CFF, MBA): invoke
/deobfuscationfirst - If very few readable strings in a large binary → strings are encrypted
- Look for the string decode stub: a small function called before every string use
- If strings are encrypted: trace the decode function, understand the algorithm (XOR, RC4, custom)
Crypto constant hunting: When you find RC4 S-box or AES constants via search_strings, use xrefs_to on the constant's address (not the S-box itself) → finds KSA/key schedule → decompile that → xrefs_to on it → finds the encrypt/decrypt wrapper. Do NOT use hex pattern search for KSA byte-swap — too many false positives.
Phase 1: Reconnaissance
Use built-in tools for initial survey:
get_binary_info— format, architecture, size, function countlist_imports— group by DLL, identify capabilities:- WINHTTP/WININET = Network communication
- CRYPT32/ADVAPI32 (Crypt*) = Cryptographic operations
- GDI32 = Screenshot capture
- ntdll = Low-level ops, possible direct syscalls
list_strings+search_strings— look for URLs, API paths, user agents, mutex names, file extensions, registry paths, app paths (Discord, Telegram, Chrome)list_exports— exported functions and ordinals
Batch these calls: get_binary_info + list_imports + list_exports can run in parallel.
Phase 2: Execution Flow
- Decompile entry point / WinMain with
decompile_function - Identify the execution sequence and lifecycle: init → config → steal → exfil → exit
- Use
function_xrefsto map the call graph from entry - Categorize functions: initialization, C2, stealing modules, exfiltration, cleanup
Phase 3: Targeted Analysis — Kill Chain
For network malware:
- Trace: socket init → DNS resolution → connect → send/recv
- Identify C2 protocol (raw socket, HTTP, DNS tunneling)
- Extract C2 config (hardcoded IP/domain or decrypted)
For loader/dropper:
- Identify stage 2 location (resource, overlay, encrypted blob)
- Extract and decrypt if possible
- Check for process injection: VirtualAllocEx → WriteProcessMemory → CreateRemoteThread
For stealers:
- Identify targeted applications (browser paths, wallet files, credential stores)
- Trace data exfiltration path
- Check for browser DB access patterns: SQLite, LevelDB, Login Data, Cookies
For RATs:
- Identify command dispatcher (usually a switch/if-chain on received data)
- Map each command: file upload/download, screenshot, keylog, shell, persistence
Phase 4: Persistence + Evasion
- Check registry keys (RegSetValueEx, service install, scheduled task)
- Check process injection (VirtualAllocEx, WriteProcessMemory, CreateRemoteThread)
- Check anti-analysis: IsDebuggerPresent, timing checks, VM detection, CPUID
- Direct syscalls: Resolving ntdll via GetModuleHandleA + scanning for B8...0F05
- Most commodity stealers have NO persistence — document this explicitly
Phase 5: Report
Produce a compact triage first (~12 lines), then offer a detailed report:
Binary: mal.exe | PE x86-64 | 1519 funcs | 92 imports
Packing: None (entropy <7.0 all sections)
Crypto: RC4 x 5 constants
IAT: KERNEL32 only — runtime LoadLibrary/GetProcAddress resolution
Targets: Chrome, Brave, Edge
C2: hxxps://example[.]com/api/config
Verdict: Stealer. RC4 string enc, dynamic API resolution.Include: classification, capabilities, IOCs (defanged), kill chain, MITRE ATT&CK mapping.
Naming Conventions
- Functions: PascalCase verb-noun (InitializeGlobals, StealDiscordTokens, HttpPostRequest)
- Globals: camelCase with g_ prefix (g_bEnabled, g_pConfigStart, g_C2ServerUrl)
- Structs: PascalCase (BrowserConfig, C2ResponseData)
Common Patterns
- Browser theft: CryptUnprotectData, SQLite, paths with "User Data", "Login Data", "Cookies"
- Token theft: LevelDB (Discord), tdata (Telegram), .vdf (Steam)
- Dead drop resolver: Fetching Steam/Telegram/Pastebin pages to extract real C2
- Direct syscalls: Resolving ntdll via GetModuleHandleA + scanning for B8...0F05
- XOR + Base64: Common for C2 config and payload delivery
- API hashing: CRC32/DJB2/FNV of API names, resolved at runtime via PEB walk
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

