Rhodawk Mythos Agent
ARCHITECT: full masterplan implementation β 19 skills, 10 new MCP servers, 5-tier model router, EmbodiedOS bridge, autonomous night-mode loop, sandbox manager, pytest suite, stability fixes
da8fcf1 metadata
name: binary-analysis
domain: binary
triggers:
languages:
- c
- cpp
- rust
- asm
- go
asset_types:
- elf
- pe
- macho
- firmware
tools:
- ghidra
- radare2
- objdump
- readelf
- gdb
- angr
severity_focus:
- P1
- P2
Binary Analysis
When to load
Compiled native artefacts (ELF/PE/Mach-O), embedded firmware images, or any target where source is unavailable.
Procedure
- Triage β
file <bin>,readelf -aW <bin>,strings -n 8 <bin> | head. Note the architecture, ASLR/PIE/RELRO/NX/Stack-Canary flags (checksec). - Function discovery β
r2 -A <bin>thenaflto list functions, or Ghidra Auto-Analysis (analyzeHeadless if scripted via theghidra-bridge-mcptool). - Sink hunt β search for known-dangerous calls:
strcpy,gets,sprintf,system,popen,memcpy(_, _, attacker_len),Runtime.getRuntime().exec(in JNI shims). - Source identification β find input boundaries:
recv,read,fread,getenv, command-line args, file format parsers. - Reachability β use angr (
mythos.dynamic.klee_runnerfor symbolic companion) to prove a path from a source to a sink under attacker control. - Exploitability β pwntools template (
mythos.exploit.pwntools_synth) for stack-overflow, ROP-chain builder for ASLR bypass, heap-fengshui viaheap_exploit. - Sanitisation β recompile with
-fsanitize=address,undefinedand re-run the AFL++ corpus to confirm.
Known-bad patterns
- User-controlled length passed straight to
memcpy/strncpy. - Stack arrays with VLA /
alloca(attacker_size). - Format strings that include
%nand accept user input. - Integer overflow before
malloc(size_t)allocation.
Tool calls (MCP)
ghidra-bridge-mcp.analyse_binaryβ full SAST sweepmythos.dynamic.kleeβ symbolic execution on critical functionsmythos.dynamic.aflppβ coverage-guided fuzz, 2 h budgetmythos.exploit.ropβ ROP-chain candidate generation