Repository navigation
Coverage fixes from 48 recent MalwareBazaar maldocs: Word altChunk imports and Equation Editor exploits behind randomized MTEF headers and mangled OLE streams.
Downloads
| Platform | Archive |
|---|---|
| Windows x64 / ARM64 | maldocTrace_0.5.1_windows_amd64.zip, maldocTrace_0.5.1_windows_arm64.zip |
| Linux x64 / ARM64 | maldocTrace_0.5.1_linux_amd64.tar.gz, maldocTrace_0.5.1_linux_arm64.tar.gz |
| macOS Intel / Apple Silicon | maldocTrace_0.5.1_darwin_amd64.tar.gz, maldocTrace_0.5.1_darwin_arm64.tar.gz |
You can verify downloads against checksums.txt (SHA-256). The binaries are static and have no dependencies. The macOS builds are not notarized, so remove the quarantine flag before running them: xattr -d com.apple.quarantine maldocTrace.
Added
- altChunk imports: a
.docxthat imports a part throughw:altChunk(relationshipaFChunk; Word converts and merges RTF, HTML, MHT or another document on open) gets analtchunkfinding and the imported part is analysed as an embedded file. Formbook and Remcos droppers hide RTF Equation Editor exploits this way inside an otherwise clean.docx.
Fixed
- Equation Editor exploits with randomized MTEF headers: builders randomize the header (version byte included) and the first record, which EQNEDT32 does not check; a
LINErecord followed by an overflowingFONT(CVE-2017-11882 / CVE-2018-0802) orMATRIX(CVE-2018-0798) is now found without relying on the header, also when the MTEF data is wrapped in an OLE1 native stream (4-byte size). - OLE object streams are matched case-insensitively, as Office does: an Equation Editor object whose MTEF data sits in
\x01olE10naTIVe(with noEquation Nativestream) is analysed instead of being read as an OLE Package. - RTF objects: junk bytes before the OLE1 header are skipped, the exploit check now runs on the
Equation Native/ OLE1 native streams of the compound file an object holds, and anEQNOLEFILEHDRis looked for in the raw data when that compound file is malformed. - A compound file whose mini stream size overruns the file is read with the data its chain holds, instead of being rejected.
Measured on 48 recent MalwareBazaar maldocs (8 each of .doc, .docx, .xls, .xlsx, .rtf, .one): 35 to 44 detected as malicious; the remaining 4 carry no attack content (link spam, a plain document, binary data behind an empty RTF header, an external workbook link).