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

Static analysis result for SHA-256 00f467704eab37b3…

MALICIOUS

Office (OOXML) / .DOCM

16.1 KB Created: 2021-06-09 07:05:00 UTC Authoring application: Microsoft Office Word 15.0000
MD5: 5cb116749038e9b9facadbb0f79a53a4 SHA-1: af9a49253108051e0730881b205072304fa6d610 SHA-256: 00f467704eab37b3766283150ee4f0f2e3570eaf2a7073d7dbeaf404103c0b7d
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Service Execution: Visual Basic T1204.002 Malicious File: User Execution: Malicious File T1105 Ingress Tool Transfer

The sample is a DOCM file containing a VBA macro with an AutoOpen subroutine. This macro executes a command that uses certutil.exe to download a second-stage executable from a GitHub URL and then executes it from the temporary directory. This indicates a downloader or droppper functionality.

Heuristics 6

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
  • 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
  • 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 https://raw.githubusercontent.com/X.exe
    • 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/2012/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
aee7567459eb9309a3e0b1a97a8e5526ea358aef545f3176b5c93e267da0554b
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 479 bytes
vbaProject_00.bin
6befac9eb5c45ba877f1f1b1ac7e3d8e59b577e422099c7932a222552453ec88
vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes