Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 567d0baa21036ee7…

MALICIOUS

Office (OOXML)

29.5 KB Created: 2021-07-11 07:32:00 UTC Authoring application: Microsoft Office Word 15.0000
MD5: 8a7686430d9ad2832e8a4c3992186b36 SHA-1: e930fe7c15aaa7c1f1a9fa0898b1d9549eacb217 SHA-256: 567d0baa21036ee79b9380e4aa53917f1f816676ebcd060bfdd4959e2b40300a
302 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is an OOXML document containing a VBA macro that is automatically executed upon opening (Document_Open). The macro uses CreateObject to execute shell commands, indicating it's designed to download and run a secondary payload. ClamAV detection confirms this, identifying it as 'Doc.Downloader.Valyria-10029951-0'. The obfuscated script attempts to construct a URL for downloading the payload.

Heuristics 8

  • ClamAV: Doc.Downloader.Valyria-10029951-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Valyria-10029951-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.
  • 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
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • 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: word/stomp.res)
  • 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/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
5c0152dc7337a704ca68bd656f4fed78c5cc2c27e708271c58b62c24d2c3d942
vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 9294 bytes
vbaProject_00.bin
2c110fce6b84aee3acfd846752f6871e9df4e54aa96d5ec15b469c4bcfd8317e
vba-project OOXML VBA project: word/stomp.res 45568 bytes
Detection
ClamAV: Doc.Downloader.Valyria-10029951-0
Obfuscation or payload: unlikely