Detection rules › Elastic

Suspicious Process from FortiClient VPN Trace Script

Source
github.com/elastic/protections-artifacts

Identifies LOLBAS or download utilities spawned by cmd.exe after execution of a script from the FortiClient VPN trace scripts directory. This may indicate CVE-2026-35616 exploitation against FortiClient EMS where adversaries pushed malicious on_connect scripts to managed endpoints.

MITRE ATT&CK coverage

TacticTechniques
Initial Access

Rule body

[rule]
description = """
Identifies LOLBAS or download utilities spawned by cmd.exe after execution of a script from the FortiClient VPN trace
scripts directory. This may indicate CVE-2026-35616 exploitation against FortiClient EMS where adversaries pushed
malicious on_connect scripts to managed endpoints.
"""
id = "1b054bc6-d0e1-40bd-aed8-91c4b455cbc4"
license = "Elastic License v2"
name = "Suspicious Process from FortiClient VPN Trace Script"
os_list = ["windows"]
reference = [
    "https://arcticwolf.com/resources/blog/forticlient-ems-exploited-via-cve-2026-35616-to-deliver-ekz-infostealer-disguised-as-a-fortinet-patch/",
]
version = "1.0.1"

query = '''
process where event.type == "start" and event.action == "start" and
  process.parent.name : "cmd.exe" and
  process.name : (
    "rundll32.exe", "mshta.exe", "msiexec.exe", "powershell.exe", "bitsadmin.exe", "curl.exe", "regsvr32.exe",
    "certutil.exe", "msbuild.exe", "certreq.exe", "cmd.exe", "wmic.exe", "schtasks.exe", "sc.exe", "wscript.exe", 
    "cscript.exe"
  ) and 
  process.parent.command_line : "*C:\\Program Files\\Fortinet\\FortiClient\\logs\\Trace\\scripts\\*" and 
  not process.args :("c:\\Program Files\\Fortinet\\VPNDisconnect.ps1", "c:\\Program Files\\Fortinet\\VPNConnect.ps1", "\\\\*\\NETLOGON\\VPNConnectScript.VBS")
'''

min_endpoint_version = "7.15.0"
optional_actions = []
[[actions]]
action = "kill_process"
field = "process.entity_id"
state = 0

[[threat]]
framework = "MITRE ATT&CK"
[[threat.technique]]
id = "T1190"
name = "Exploit Public-Facing Application"
reference = "https://attack.mitre.org/techniques/T1190/"


[threat.tactic]
id = "TA0001"
name = "Initial Access"
reference = "https://attack.mitre.org/tactics/TA0001/"

[internal]
min_endpoint_version = "7.15.0"

Stages and Predicates

Stage 1: process

process where event.type == "start" and event.action == "start" and
  process.parent.name : "cmd.exe" and
  process.name : (
    "rundll32.exe", "mshta.exe", "msiexec.exe", "powershell.exe", "bitsadmin.exe", "curl.exe", "regsvr32.exe",
    "certutil.exe", "msbuild.exe", "certreq.exe", "cmd.exe", "wmic.exe", "schtasks.exe", "sc.exe", "wscript.exe", 
    "cscript.exe"
  ) and 
  process.parent.command_line : "*C:\\Program Files\\Fortinet\\FortiClient\\logs\\Trace\\scripts\\*" and 
  not process.args :("c:\\Program Files\\Fortinet\\VPNDisconnect.ps1", "c:\\Program Files\\Fortinet\\VPNConnect.ps1", "\\\\*\\NETLOGON\\VPNConnectScript.VBS")

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
process.argswildcardc:\Program Files\Fortinet\VPNDisconnect.ps1, c:\Program Files\Fortinet\VPNConnect.ps1, \\*\NETLOGON\VPNConnectScript.VBSexcludes:process.args field:"process.args" value:"c:\Program Files\Fortinet\VPNDisconnect.ps1" field:"process.args" value:"c:\Program Files\Fortinet\VPNConnect.ps1" field:"process.args" value:"\\*\NETLOGON\VPNConnectScript.VBS"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
event.actioneq
  • start corpus 391 (elastic 391)
field:"EventType" kind:eq value:"start"
event.typeeq
  • start corpus 1078 (elastic 1078)
field:"event.type" kind:eq value:"start"
process.namewildcard
  • bitsadmin.exe corpus 23 (elastic 21, splunk 2)
  • certreq.exe corpus 20 (elastic 20)
  • certutil.exe corpus 44 (elastic 38, splunk 6)
  • cmd.exe corpus 121 (elastic 92, splunk 29)
  • cscript.exe corpus 67 (elastic 65, splunk 2)
  • curl.exe corpus 34 (elastic 31, splunk 3)
  • msbuild.exe corpus 39 (elastic 36, splunk 3)
  • mshta.exe corpus 84 (elastic 79, splunk 5)
  • msiexec.exe corpus 46 (elastic 41, splunk 5)
  • powershell.exe corpus 184 (elastic 140, splunk 44)
  • regsvr32.exe corpus 73 (elastic 68, splunk 5)
  • rundll32.exe corpus 126 (elastic 100, splunk 26)
  • sc.exe corpus 32 (elastic 17, splunk 15)
  • schtasks.exe corpus 30 (elastic 19, splunk 11)
  • wmic.exe corpus 66 (elastic 39, splunk 27)
  • wscript.exe corpus 83 (elastic 82, splunk 1)
field:"process_name" kind:wildcard
process.parent.command_linewildcard
  • *C:\Program Files\Fortinet\FortiClient\logs\Trace\scripts\*
field:"ParentCommandLine" kind:wildcard value:"*C:\Program Files\Fortinet\FortiClient\logs\Trace\scripts\*"
process.parent.namewildcard
  • cmd.exe corpus 36 (elastic 31, splunk 4, kusto 1)
field:"parent_process_name" kind:wildcard value:"cmd.exe"