m47
Superagent skill m47 — CTF Forensics & Stego
SKILL.mdskills/superagent/m47/SKILL.md
GitHubm47 — CTF Forensics & Stego
Load ONLY when: CTF forensics, stego, steganography, pcap, memory dump, volatility, binwalk, carving, exiftool, zsteg, steghide, file identification, USB keystroke, DNS exfil, dispatched by m32 forensics
SCOPE (baca dulu)
Sub-skill forensics/stego buat CTF in-scope, juga fallback identifikasi file kalau m32 gak bisa kategorisasi. Setelah m32 + scope check. Run tool di Docker sandbox.
TOOLBOX (di sandbox)
binwalk/foremost (carving) · volatility3 (memory) · tshark/wireshark (pcap) · exiftool (metadata) · steghide/zsteg/stegseek/stegsolve (stego) · strings/xxd/file/hexedit
STEP 0 — IDENTIFY (juga fallback m32)
file artifact.*
xxd artifact.* | head
binwalk artifact.* # appended/embedded data = trik PALING umum
strings -n 8 artifact.* | grep -iE "flag|password|secret"
Magic-byte mismatch (mis. .png yang aslinya zip) = klasik — fix header / carve.
CARVING / ARCHIVES
binwalk -e artifact.bin # auto-extract
foremost -i artifact.bin -o out/
binwalk artifact.png && dd if=artifact.png of=hidden.zip bs=1 skip=<offset>
zip2john secret.zip > h && john h --wordlist=rockyou.txt # brute zip pw
IMAGES / STEGO
exiftool image.jpg # metadata, GPS, comment
zsteg -a image.png # LSB PNG/BMP
steghide extract -sf image.jpg # passphrase (coba kosong, lalu crack)
stegseek image.jpg rockyou.txt # fast steghide crack
Audio: spectrogram (Sonic Visualiser/Audacity), LSB WAV samples.
MEMORY (volatility3)
vol -f mem.raw windows.info
vol -f mem.raw windows.pslist
vol -f mem.raw windows.cmdline
vol -f mem.raw windows.filescan | grep -i flag
Juga: hashdump, netscan, clipboard, consoles.
PCAP
tshark -r cap.pcap -q -z io,phs # protocol hierarchy
tshark -r cap.pcap -Y http.request
tshark -r cap.pcap --export-objects http,out/
Shape umum: USB HID (decode keystroke pakai usbkbd map), DNS/ICMP exfil (reassemble subdomain/payload urut), FTP creds.
DISK IMAGES
mount -o ro,loop → find / -newer, recover deleted (testdisk/photorec), slack space, ADS.
SCOPE & DELEGATION
| Butuh | m47 | Delegasi |
|---|---|---|
| Target authorized | — | m32 + scope_guard.py |
| Decode/crypto isi file | — | m32 ctf.py / m46 |
| Validasi flag | — | tools/ctf/flag_validator.py |
| Full-auto swarm | — | tools/ctf/run.py |
SAFETY RAILS
Flag lewat flag_validator.py → balik m32 → HITL. Jangan invent. Jangan lecehkan data sensitif yang kebuka.
🔧 Upgrade: simpan artifact carved + offset di work/<chal>/findings.json.