Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 228948b5cdfe85d4…

MALICIOUS

Office (OOXML)

17.7 KB Created: 2021-09-17 10:08:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-09-29
MD5: ed0c4860214e2134377f36c6186019ad SHA-1: 9fe1749e55503d54a0507fd8bc6d6db02cb2ce1e SHA-256: 228948b5cdfe85d4afa3215943082cfb6c166f8a94c84a33b9d8d5b0481a7b36
62 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The OOXML document contains a VBA project, indicating the presence of macros. The extracted VBA macro, 'macros.bas', simply displays a 'Hello VBS' message box. While this specific script is benign, its presence within a malicious document suggests it could be a component of a larger attack, potentially leading to further payload execution or exploitation. The external relationship to 'file:///C:\Users\test\Desktop\Doc1.dotm' is also noted as suspicious.

Heuristics 3

  • External relationship high OOXML_EXTERNAL_REL
    External target in word/_rels/settings.xml.rels: file:///C:\Users\test\Desktop\Doc1.dotm
  • 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 http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas OOXML external relationship
    • http://schemas.microsoft.com/office/drawing/2014/chartexOOXML external relationship
    • http://schemas.openxmlformats.org/markup-compatibility/2006OOXML external relationship
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsOOXML external relationship
    • http://schemas.openxmlformats.org/officeDocument/2006/mathOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingOOXML external relationship
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingOOXML external relationship
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2012/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2015/wordml/symexOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkOOXML external relationship
    • http://schemas.microsoft.com/office/word/2006/wordmlOOXML external relationship
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeOOXML external relationship

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 84 bytes
SHA-256: de469055c012cd4718c0a5cd80ca6958350d6eb8b22d544b2a84b669edf84bbd
Preview script
First 1,000 lines of the extracted script
Sub Hello()
Dim X
X = MsgBox("Hello VBS")
Sub Hello()
Dim X
X = MsgBox("Hello VBS")
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 19456 bytes
SHA-256: ce962b6040a7b4c1a887536d0cef7172bd42b5f454ca92b94b61d1a010e5770e