<!-- Canonical page: https://reversedwithai.com/p/codex-malware-triage-skills-flare-vm -->
Canonical page: https://reversedwithai.com/p/codex-malware-triage-skills-flare-vm

# Wrote reusable Codex CLI skills for malware unpacking and IOC extraction in FLARE-VM

> Two Codex skills, iterated until errors dropped from 20 to 4.

Codex CLI ran inside an isolated FLARE-VM guest against four known malware samples; iterating on two skills cut one skill's commands from 31 to 9 and errors from 20 to 4.

## Key facts

- Target: Malware samples (Cerber, Hydra, NetWire, PolyRansom)
- Category: Malware (defensive)
- Platform: Windows
- Tools: Codex CLI, FLARE-VM, capa, FLOSS
- Outcome: Research
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: J.W. McKiddy
- Added: 2026-10-14
- Updated: 2026-10-14
- Sources reviewed: 2026-10-14 (editor)

## What was done

J.W. McKiddy wrote two OpenAI Codex CLI skills for malware triage, `re-unpacker` and `re-ioc-extraction`, and tested them inside an isolated FLARE-VM guest on four known samples: Cerber5, Hydra, NetWire and PolyRansom. Over three runs the unpacker skill went from 31 commands and 20 errors to 9 commands and 4 errors.

### How it was done

Each skill is a folder with a `SKILL.md` that Codex loads only when needed. The unpacker skill stays static first: hashes, file type, strings and FLOSS, a UPX test and capa. It produces an unpacking plan and pauses for an engineer's approval before anything would need executing. The IOC skill outputs a Markdown table and a strict YAML list, keeping only indicators with an exact evidence line and making no enrichment or guesses.

The first runs hit environment friction: missing or unexpected tool variants, PowerShell quoting and globbing, fragile one-liners, and ripgrep returning exit code 1 for "no matches". McKiddy added preflight tool checks, simpler commands and PowerShell-safe defaults, and used a "Codex Run Stats" prompt after each run to count commands and errors from the log.

### Results

The unpacker assessed Cerber5 and Hydra as likely not packed, NetWire as obfuscated but statically analysable, and PolyRansom as likely packed, and focused its plan on PolyRansom. IOC extraction errors stayed high across runs (18, 19 and 17), and output included certificate URLs with trailing junk, which the skill labelled incomplete rather than presenting as clean. McKiddy's main lesson is that most of the work lies in making the skills portable across shells. The skills are published in the author's reverse-engineering-skills repository.

## Human work and limitations

Early runs failed on missing tools, PowerShell quoting and ripgrep's no-match exit code. The author added preflight checks, "no invention" rules and a pause before any execution, and tightened the skills after each run.

## What the commit history shows

None of the 20 commits in the public repository credits an AI. Many tools add no credit, so this does not show the AI was not used.

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/hackersifu/reverse-engineering-skills)
- [Write-up](https://www.joshuamckiddy.com/blog/ai-skills)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: J.W. McKiddy (2026). Wrote reusable Codex CLI skills for malware unpacking and IOC extraction in FLARE-VM. Reversed with AI. https://reversedwithai.com/p/codex-malware-triage-skills-flare-vm
