NetScaler Superuser Binding Followed by Authentication Control Removal
Identifies a successful NetScaler command that binds a system user to the built-in superuser command policy, followed within 15 minutes on the same appliance, from the same user and source address, by a successful command that disables endpoint analysis or unbinds an authentication or VPN session policy. Attackers with command execution on NetScaler ADC or Gateway, including after CVE-2026-88771, have used this sequence to retain a local administrator and remove login controls that would block that account.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2026/10/27"
3integration = ["citrix_adc"]
4maturity = "production"
5updated_date = "2026/10/27"
6
7[rule]
8author = ["Elastic"]
9description = """
10Identifies a successful NetScaler command that binds a system user to the built-in superuser command policy, followed
11within 15 minutes on the same appliance, from the same user and source address, by a successful command that disables
12endpoint analysis or unbinds an authentication or VPN session policy. Attackers with command execution on NetScaler ADC
13or Gateway, including after CVE-2026-88771, have used this sequence to retain a local administrator and remove login
14controls that would block that account.
15"""
16false_positives = [
17 """
18 Approved break-glass provisioning, appliance deployment, or a maintenance window can bind a system user to superuser
19 and change authentication or VPN policies in the same session.
20 """,
21]
22from = "now-30m"
23index = ["logs-citrix_adc.log-*"]
24interval = "10m"
25language = "eql"
26license = "Elastic License v2"
27name = "NetScaler Superuser Binding Followed by Authentication Control Removal"
28note = """## Triage and analysis
29
30### Investigating NetScaler Superuser Binding Followed by Authentication Control Removal
31
32NetScaler does not grant administrative rights with `add system user` alone. The administrative grant is
33`bind system user <name> superuser`. This rule requires that successful grant, then a later successful CLI command from
34the same user and source address on the same appliance that weakens authentication: setting an endpoint-analysis
35action's default group to `NO_AUTH`, or unbinding an authentication vserver policy, authentication policy label, or VPN
36vserver session policy.
37
38Post-exploitation artifacts observed after CVE-2026-88771 exploitation have created privileged users and weakened EPA
39or authentication policies. This rule detects that behavior when the changes are applied through the NetScaler CLI.
40
41### Possible investigation steps
42
43- Review both sequence events. Confirm `citrix.name` is `CMD_EXECUTED`, then compare `process.command_line`,
44 `citrix_adc.log.status`, `user.name`, `source.ip`, and `citrix_adc.log.adm_user` when present. A status of `Done` or
45 `Success` means the command was applied. `ERROR` means the attempt failed.
46- Identify the bound username and whether it was created moments earlier with `add system user`. Search the same
47 `observer.hostname` for that username's later Gateway or AAA logins.
48- Treat `set authentication epaAction ... -defaultEPAGroup NO_AUTH`,
49 `unbind authentication vserver ... -policy`, `unbind authentication policylabel ... -policyName`, or
50 `unbind vpn vserver ... -policy` as removal of a login control. Record the policy and vserver names from the command
51 so they can be restored.
52- Search back at least 48 hours on the same appliance for Pitboss or packet-engine records that contain shell syntax.
53 CVE-2026-88771 command execution can be delayed up to 24 hours after the poisoned log is written.
54- Review other `CMD_EXECUTED` events from the same user and source for `save ns config`, configuration export, and
55 changes to logging or additional system users.
56- Preserve remote syslog, `event.original`, and a copy of `ns.conf` before rebooting or applying a clean configuration.
57
58```esql
59FROM logs-citrix_adc.log-*
60| WHERE citrix.name == "CMD_EXECUTED" AND observer.hostname == "<appliance>"
61| EVAL command = TO_LOWER(COALESCE(process.command_line, citrix_adc.log.message, citrix.detail))
62| WHERE command LIKE "*bind system user*"
63 OR command LIKE "*set authentication epaaction*"
64 OR command LIKE "*unbind authentication*"
65 OR command LIKE "*unbind vpn vserver*"
66 OR command LIKE "*add system user*"
67 OR command LIKE "*save ns config*"
68| KEEP @timestamp, observer.hostname, user.name, source.ip, process.command_line, citrix_adc.log.status, citrix.detail
69| SORT @timestamp
False positive analysis
- A single change window that creates a break-glass superuser and intentionally relaxes endpoint analysis or VPN session policies can match. Confirm the change record, the actor, and the source address.
- Commands that only add an LDAP, RADIUS, or SAML action, or that bind an authentication policy, do not match. A superuser bind without one of the weakening commands also does not match.
- Scope any exception to the approved actor, source, and maintenance window. Do not exclude
superuserorNO_AUTHglobally.
Response and remediation
- If the change is unauthorized, disable or remove the system user, terminate its sessions, and restore the authentication and VPN policy bindings from a known-good configuration.
- Treat the appliance as potentially compromised. Preserve off-box logs, then rebuild from a trusted image if command execution is confirmed. Rotate NetScaler, AAA, and Gateway secrets.
- Upgrade to a Citrix-fixed build when the surrounding activity matches CVE-2026-88771. Patching does not remove an account or policy change that is already saved. """ references = [ "https://support.citrix.com/external/article/CTX697096", "https://labs.watchtowr.com/oh-look-the-foot-gun-went-off-again-citrix-netscaler-preauth-command-injection-cve-2026-88771/", "https://www.cisa.gov/news-events/alerts/2026/09/27/critical-zero-day-vulnerabilities-exploited-citrix-netscaler-adc-gateway", "https://www.nextron-systems.com/2026/10/06/update-on-citrix-netscaler-cve-2026-88771-and-cve-2026-88772-expanded-thor-detection-coverage/", "https://thehackernews.com/2026/10/citrix-netscaler-post-exploitation.html", "https://www.elastic.co/docs/reference/integrations/citrix_adc", ] risk_score = 73 rule_id = "8d99345f-7e67-4d50-9958-eca162251133" setup = """## Setup
This rule requires the Elastic Citrix ADC integration and NetScaler audit syslog that includes CLI CMD_EXECUTED
events. Configure an audit syslog action and policy, and forward those records with the other citrix_adc.log events.
RFC 5424 syslog is recommended where supported.
The integration stores a successfully parsed CLI command in process.command_line and sets citrix.name to
CMD_EXECUTED. observer.hostname is taken from the appliance hostname in the syslog header. Enable Preserve
original event so event.original remains available when the command text is only retained there. Local
ns.conf edits that never pass through the CLI are not recorded as CMD_EXECUTED and will not match.
"""
severity = "high"
tags = [
"Domain: Network",
"Domain: Identity",
"Platform: Citrix",
"Use Case: Network Security Monitoring",
"Use Case: Threat Detection",
"Tactic: Persistence",
"Tactic: Defense Evasion",
"Data Source: Citrix ADC",
"Resources: Investigation Guide",
"Rule Type: Event Correlation (EQL)",
"Profile: Beta",
]
timestamp_override = "event.ingested"
type = "eql"
query = ''' sequence by observer.hostname, user.name, source.ip with maxspan=15m [any where data_stream.dataset == "citrix_adc.log" and citrix.name == "CMD_EXECUTED" and citrix_adc.log.status in~ ("Success", "Done") and ( process.command_line regex~ """(bind|.[^a-z0-9_]bind) system user [^ ]+ superuser([ "].)?""" or citrix.detail regex~ """(bind|.[^a-z0-9_]bind) system user [^ ]+ superuser([ "].)?""" or citrix_adc.log.message regex~ """(bind|.[^a-z0-9_]bind) system user [^ ]+ superuser([ "].)?""" )] [any where data_stream.dataset == "citrix_adc.log" and citrix.name == "CMD_EXECUTED" and citrix_adc.log.status in~ ("Success", "Done") and ( process.command_line regex~ """(set|.[^a-z0-9_]set) authentication epaaction . -defaultepagroup no_auth([ "].)?""" or citrix.detail regex~ """(set|.[^a-z0-9_]set) authentication epaaction .* -defaultepagroup no_auth([ "].)?""" or citrix_adc.log.message regex~ """(set|.[^a-z0-9_]set) authentication epaaction .* -defaultepagroup no_auth([ "].*)?""" or process.command_line like~ ( "unbind authentication vserver * -policy *", "unbind authentication policylabel * -policyname *", "unbind vpn vserver * -policy *" ) or citrix.detail like~ ( "*unbind authentication vserver * -policy *", "*unbind authentication policylabel * -policyname *", "*unbind vpn vserver * -policy *" ) or citrix_adc.log.message like~ ( "*unbind authentication vserver * -policy *", "*unbind authentication policylabel * -policyname *", "*unbind vpn vserver * -policy *" ) )] '''
[[rule.threat]] framework = "MITRE ATT&CK" [[rule.threat.technique]] id = "T1098" name = "Account Manipulation" reference = "https://attack.mitre.org/techniques/T1098/"
[rule.threat.tactic] id = "TA0003" name = "Persistence" reference = "https://attack.mitre.org/tactics/TA0003/" [[rule.threat]] framework = "MITRE ATT&CK" [[rule.threat.technique]] id = "T1556" name = "Modify Authentication Process" reference = "https://attack.mitre.org/techniques/T1556/" [[rule.threat.technique.subtechnique]] id = "T1556.004" name = "Network Device Authentication" reference = "https://attack.mitre.org/techniques/T1556/004/"
[rule.threat.tactic] id = "TA0005" name = "Defense Evasion" reference = "https://attack.mitre.org/tactics/TA0005/"
[rule.investigation_fields] field_names = [ "@timestamp", "observer.hostname", "user.name", "source.ip", "citrix_adc.log.adm_user", "process.command_line", "citrix_adc.log.status", "citrix_adc.log.message", "citrix.name", "citrix.detail", "event.original", ]
Triage and analysis
Investigating NetScaler Superuser Binding Followed by Authentication Control Removal
NetScaler does not grant administrative rights with add system user alone. The administrative grant is
bind system user <name> superuser. This rule requires that successful grant, then a later successful CLI command from
the same user and source address on the same appliance that weakens authentication: setting an endpoint-analysis
action's default group to NO_AUTH, or unbinding an authentication vserver policy, authentication policy label, or VPN
vserver session policy.
Post-exploitation artifacts observed after CVE-2026-88771 exploitation have created privileged users and weakened EPA or authentication policies. This rule detects that behavior when the changes are applied through the NetScaler CLI.
Possible investigation steps
- Review both sequence events. Confirm
citrix.nameisCMD_EXECUTED, then compareprocess.command_line,citrix_adc.log.status,user.name,source.ip, andcitrix_adc.log.adm_userwhen present. A status ofDoneorSuccessmeans the command was applied.ERRORmeans the attempt failed. - Identify the bound username and whether it was created moments earlier with
add system user. Search the sameobserver.hostnamefor that username's later Gateway or AAA logins. - Treat
set authentication epaAction ... -defaultEPAGroup NO_AUTH,unbind authentication vserver ... -policy,unbind authentication policylabel ... -policyName, orunbind vpn vserver ... -policyas removal of a login control. Record the policy and vserver names from the command so they can be restored. - Search back at least 48 hours on the same appliance for Pitboss or packet-engine records that contain shell syntax. CVE-2026-88771 command execution can be delayed up to 24 hours after the poisoned log is written.
- Review other
CMD_EXECUTEDevents from the same user and source forsave ns config, configuration export, and changes to logging or additional system users. - Preserve remote syslog,
event.original, and a copy ofns.confbefore rebooting or applying a clean configuration.
1FROM logs-citrix_adc.log-*
2| WHERE citrix.name == "CMD_EXECUTED" AND observer.hostname == "<appliance>"
3| EVAL command = TO_LOWER(COALESCE(process.command_line, citrix_adc.log.message, citrix.detail))
4| WHERE command LIKE "*bind system user*"
5 OR command LIKE "*set authentication epaaction*"
6 OR command LIKE "*unbind authentication*"
7 OR command LIKE "*unbind vpn vserver*"
8 OR command LIKE "*add system user*"
9 OR command LIKE "*save ns config*"
10| KEEP @timestamp, observer.hostname, user.name, source.ip, process.command_line, citrix_adc.log.status, citrix.detail
11| SORT @timestamp
False positive analysis
- A single change window that creates a break-glass superuser and intentionally relaxes endpoint analysis or VPN session policies can match. Confirm the change record, the actor, and the source address.
- Commands that only add an LDAP, RADIUS, or SAML action, or that bind an authentication policy, do not match. A superuser bind without one of the weakening commands also does not match.
- Scope any exception to the approved actor, source, and maintenance window. Do not exclude
superuserorNO_AUTHglobally.
Response and remediation
- If the change is unauthorized, disable or remove the system user, terminate its sessions, and restore the authentication and VPN policy bindings from a known-good configuration.
- Treat the appliance as potentially compromised. Preserve off-box logs, then rebuild from a trusted image if command execution is confirmed. Rotate NetScaler, AAA, and Gateway secrets.
- Upgrade to a Citrix-fixed build when the surrounding activity matches CVE-2026-88771. Patching does not remove an account or policy change that is already saved.
References
Related rules
- Potential NetScaler Log Poisoning Command Injection Attempt
- FortiGate SSO Login Followed by Administrator Account Creation
- FortiGate Super Admin Account Creation
- MySQL User-Defined Function Injection
- Entra ID Passkey Sign-In with Nonattestable Authenticator AAGUID