Office Malware Forensics Lab: REMnux Static Analysis
Static analysis of two malicious Office documents from MalwareBazaar
(abuse.ch) in an isolated REMnux VM using oletools. Neither sample was
executed.
oleid 0.60.1, olevba 0.60.2, MacroRaptor (mraptor) 0.56.2, oledump.py,
rtfobj, unzip, file, sha256sum (Python 3.12.3)
Samples
| # | File | SHA-256 | file result |
|---|
| 1 | .docx | 68e82279bff55cf3b9f1f22ec4a165b1b1245a359f7e8d86664b2541d8f8d3fe | Zip archive data (OOXML) |
| 2 | .xlsx | dc65419ba5d83b980d7018198a14209fa2f5ebf6f99d47bfe9f586852087befe | Composite Document File V2 (legacy OLE, not OOXML) |
sha256sum output matched the filename for both samples.
Findings
Sample 1 (.docx)
- The extracted package contains no vbaProject.bin.
word/_rels/document.xml.rels has an aFChunk relationship pointing to
/word/nste.xml.
file identifies nste.xml as Rich Text Format data (3,853,754 bytes),
not XML.
- rtfobj found two embedded OLE objects:
- Package, 196,417 bytes,
419876.vbs
(MD5 a1142366224a45e8b241403a6868187b), flagged EXECUTABLE FILE.
- Equation.3, 3,072 bytes
(MD5 59ef42de73acccb562a503c989dc9606), flagged "possibly an
exploit for the Equation Editor vulnerability (CVE-2017-11882)".
- The Equation Editor exploit path does not require macros.
Sample 2 (.xlsx)
- The extension says .xlsx, but the file is legacy Excel 97-2003 (OLE).
- oleid: encrypted; VBA macros present (no suspicious keywords); XLM
macros: No; external relationships: 0.
- oledump.py: 19 streams. ThisWorkbook and Sheet1-3 are macro-flagged.
An embedded Package stream (23,638 bytes) sits under MBD0043E48F.
- olevba: FILEPASS record found (password protected); olevba decrypted
the file automatically. All 4 VBA modules are empty. After decryption,
1 of 3 sheets is hidden. The flagged hex strings are Office class-ID
values from VB_Base attributes.
- mraptor: Macro OK, no flags.
Verdict: inconclusive. Empty macros, plus encryption and a hidden
sheet, are indicators, not proof of malicious behavior.
Limitations
- Static analysis only. The CVE-2017-11882 finding is a tool flag, not
confirmed by shellcode extraction or detonation.
- The contents of
419876.vbs were not read in the captured outputs.
- Sample 2's embedded Package stream was not examined in the captured
outputs.
- The VM is no longer available. Commands below come from saved
terminal output.
Reproduce
- Use an isolated REMnux VM. Download both samples from MalwareBazaar
by SHA-256 (table above).
- Sample 1:
sha256sum
file
unzip -d unzipped_docx/
cat unzipped_docx/word/_rels/document.xml.rels
file unzipped_docx/word/nste.xml
rtfobj unzipped_docx/word/nste.xml
- Sample 2:
sha256sum
file
oledump.py
oleid
mraptor
olevba
olevba --decode --reveal