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

Static analysis result for SHA-256 7fd1db178ef8c735…

MALICIOUS

Office (OOXML) / .DOCM

43.3 KB Created: 2016-11-08 12:39:00 UTC Authoring application: Microsoft Office Word 14.0000
MD5: 4014184198d7dd2c37cf7ab466c261cd SHA-1: 748923e1c31cb344b6488b77d7b53ded992bfc8e SHA-256: 7fd1db178ef8c7357cd11f9c2ab0cc6b1d622e7c06bb38f93720a144dec1754b
350 Risk Score

Malware Insights

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

The sample is a malicious DOCM file containing a VBA macro that executes a PowerShell command. The AutoOpen macro is triggered upon opening the document, which then constructs and executes a PowerShell command. This command attempts to retrieve credentials by invoking a function that appears to interact with Windows security or user credentials, likely for exfiltration. The ClamAV detection further confirms its malicious nature as a downloader.

Heuristics 9

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • PowerShell reference in VBA critical OLE_VBA_PS
    PowerShell reference in VBA
  • ClamAV: Doc.Downloader.Generic-6698329-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698329-0
  • ClamAV detection on extracted artifact critical EXTRACTED_FILE_CLAMAV
    ClamAV flagged at least one file extracted from inside this sample. Even when the wrapping document carries no AV detection of its own, a hit on the carved artifact is a strong indicator the sample is a delivery vehicle.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen 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
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
  • 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
12fef09bd376f3526dc9dfaea5a00b8422f165319c47baea48d24cea01627d24
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 4286 bytes
vbaProject_00.bin
eaca5f6a44646221eaf0a7a21e379b0e1ae5cfe59f80ad3969651fb8b68fad05
vba-project OOXML VBA project: word/vbaProject.bin 41984 bytes
Detection
ClamAV: Doc.Downloader.Generic-6698329-0
Obfuscation or payload: unlikely