Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 827f1069d0922064…

MALICIOUS

Office (OOXML)

10.4 KB
MD5: 2c9a5b32c69cf8d446edb59e3a61b0a1 SHA-1: 662b86f27c8920376343abbaa1aea3b3c90f7feb SHA-256: 827f1069d09220648851efd1ab00ca78680cbeaf406d8447d85d7844cd2fe3df
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059.001 PowerShell T1566.001 Spearphishing Attachment

The OOXML document contains a VBA macro that is automatically executed upon opening (Auto_Open). This macro utilizes ShellExecuteA via a dynamically declared function to run a command. Critical heuristics indicate that the 'powershell' command is reassembled from split string literals, and the macro's p-code includes auto-execution tokens with execution tokens. This strongly suggests the macro's purpose is to download and execute a second-stage payload using PowerShell.

Heuristics 5

  • Dangerous API name reassembled from split string literals critical OLE_VBA_SPLIT_KEYWORD_OBFUSCATION
    VBA concatenates short string literals that reassemble a dangerous API/ProgID/LOLBin name (e.g. Scripting.FileSystemObject, WScript.Shell, powershell, URLDownloadToFile) which appears in no single literal. Splitting an API name across string concatenation is done only to evade keyword scanning.
  • 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).
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • VBA project inside OOXML medium OOXML_VBA
    Document contains a VBA project — VBA macros present (project part renamed away from vbaProject.bin: ppt/asodkasodk.b)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas
0f6e9c3f8fd9fae7ae08d8d8f8f7d2ee75153fc686387d67b8ac9e0f357e376f
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2441 bytes
vbaProject_00.bin
42df417295cb64b09abc7d23d91f50e7d8629d40f49044329d06edb95ae3ee3d
vba-project OOXML VBA project: ppt/asodkasodk.b 23040 bytes