Lion Cipher Lab

Analyze a malicious Office macro statically — extract and deobfuscate VBA with olevba and oledump

Why it matters

A macro-enabled Word or Excel file is one of the most common ways an attacker gets their first foothold on a network. It arrives as an ordinary-looking attachment on a phishing email, and the moment someone opens it and clicks 'Enable Content,' a hidden program runs — usually to pull down and launch the real malware. MITRE ATT&CK tracks this as User Execution: Malicious File (T1204.002), and the code inside is Visual Basic for Applications, ATT&CK's T1059.005. The defender's job is to answer one question — 'what would this document do if someone opened it?' — WITHOUT ever opening it. That is…

What you'll learn

Steps in this lab

  1. What a macro is, and why one Office file can take over a machine
  2. Static vs dynamic: you are going to READ the code, not RUN it
  3. Set up a throwaway VM and install the two tools
  4. Build your own inert test document — the safe way to have a macro
  5. First pass with olevba: extract the source and read the flag table
  6. Deobfuscate: make olevba reveal what the macro really says
  7. Cross-check the structure with oledump — a second tool, a second view
  8. Reach a verdict, map it to ATT&CK, and respect the limits
  9. The habit this builds

Open the full interactive lab →