Malicious Office (OOXML) / .DOC — malware analysis report

Static analysis result for SHA-256 565c2dc637cfa658…

MALICIOUS

Office (OOXML) / .DOC

2.26 MB Created: 2022-08-11 14:10:00 UTC Authoring application: Microsoft Office Word 14.0000 First seen: 2022-08-11
MD5: 78641672722fe8a8a661f0e6a5f4d760 SHA-1: 1b0debc1645ba0fb3a8843d831323bdf9902a3ab SHA-256: 565c2dc637cfa658a2bf8263da58aac2492119ea8bfc4287742a34e3ef456f6f
362 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1204.002 Malicious File T1055.012 Process Hollowing

The sample is an OOXML document containing a VBA macro that is designed to execute shellcode. The macro uses techniques like `GetObject`, `CallByName`, and reading reversed configuration from document properties to load and execute the shellcode. The document body explicitly instructs the user to enable macros, indicating a social engineering lure. The presence of a VBA macro that loads shellcode from document properties strongly suggests a downloader or initial execution stage of a malicious payload.

Heuristics 10

  • VBA property-stored shellcode loader critical OLE_VBA_PROPERTY_SHELLCODE_LOADER
    VBA auto-exec macro takes the address (VarPtr) of a byte buffer decoded from a document property, marks memory executable (VirtualProtect/VirtualAlloc), and transfers control through a callback API (e.g. SetTimer/EnumWindows). The payload is hidden in the document properties rather than the macro source — the SVCReady loader pattern, a native shellcode runner rather than a parser CVE.
  • ClamAV: Doc.Downloader.9b8dac787078270f-OOXML-9981540-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.9b8dac787078270f-OOXML-9981540-0
  • VBA project part renamed to evade filename detection high OOXML_VBA_PROJECT_RENAMED
    The VBA project is bound through the OOXML relationship/content type but its part is not named vbaProject.bin. Legitimate Office producers always emit vbaProject.bin; renaming it hides the macros from path-only scanners (observed in the SVCReady loader).
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • GetObject call high OLE_VBA_GETOBJ
    GetObject call
  • CallByName call high OLE_VBA_CALLBYNAME
    CallByName call
  • VBA reads reversed config from document properties high OLE_VBA_REVERSED_DOCPROP_CONFIG
    VBA applies StrReverse to values read from the document's custom/built-in properties. Storing reversed configuration (URLs, CLSIDs, env-var names, payload names) in document properties keeps indicators out of the macro source — an obfuscation technique used by the SVCReady loader.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains a VBA project — VBA macros present (project part renamed away from vbaProject.bin: word/KseUJfIdmR.bin)
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas
    • http://schemas.openxmlformats.org/markup-compatibility/2006
    • http://schemas.openxmlformats.org/officeDocument/2006/relationships
    • http://schemas.openxmlformats.org/officeDocument/2006/math
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing
    • http://schemas.openxmlformats.org/wordprocessingml/2006/main
    • http://schemas.microsoft.com/office/word/2010/wordml
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroup
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInk
    • http://schemas.microsoft.com/office/word/2006/wordml
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShape

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
dad84624b0caebd955b94bf02cbdb84a486a62057c44b9470c6d458851f6ffda
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 21859 bytes
vbaProject_00.bin
d89cda4cb3177869dcb71ef5ec208ce3225556ba2aaa79f0677d4449f5a9b28f
vba-project OOXML VBA project: word/KseUJfIdmR.bin 14848 bytes