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

Static analysis result for SHA-256 22c4a9d47db8cf81…

MALICIOUS

Office (OOXML) / .DOCM

67.8 KB Created: 2021-11-20 05:54:00 UTC Authoring application: Microsoft Office Word 15.0000 First seen: 2023-01-25
MD5: c06ad7f65d1f638122b9dedc1dd71cc4 SHA-1: b84133ef92c4eb754c513f7007ac5461095f7b28 SHA-256: 22c4a9d47db8cf8183a9b91032c08e9592f37aa4e64a97e3059339698fc0e415
510 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059.003 Windows Command Shell T1105 Ingress Tool Transfer

The sample is a macro-enabled document (DOCM) that uses an AutoOpen macro to execute VBA code. This code attempts to download a file from a URL and save it to disk, likely to execute a second-stage payload. The document body explicitly instructs the user to enable macros and editing, masquerading as a DDoS protection test.

Heuristics 13

  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
  • VBA downloads and writes a file to disk critical OLE_VBA_HTTP_DROP_EXEC
    VBA reads an HTTP response body and writes it to disk (ADODB.Stream SaveToFile). Combined with the auto-exec/Shell paths this is a download-drop dropper even when the COM ProgIDs are built dynamically to evade keyword scanning.
  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • 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
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
  • 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
  • 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
  • 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://enhanced-google.com/lod/enti.cpl
    • http://enhanced-google.com/lod/HD.vbs
    • http://enhanced-google.com/lod/xlsrd.cpl
    • http://enhanced-google.com/lod/Y6F8h5
    • http://enhanced-google.com/lod/WindowsInstallationAssistant.exe
    • http://enhanced-google.com/lod/xlsrd.cpl�
    • http://192.168.43.234/stenrer/hgrrsi.php
    • 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
c4d3fcd55b23a26999754c6cf6269d0fa7dd0843096b8ddf472604b9f253abeb
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 4968 bytes
vbaProject_00.bin
59a8b38ec1c31db43b5cc74b6473782570c412f44b76149cdc88661c35b4f7e2
vba-project OOXML VBA project: word/vbaProject.bin 84992 bytes
Detection
ClamAV: Doc.Dropper.Agent-6412232-1
Obfuscation or payload: unlikely