← Back to Explore
elastichighTTP
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.
Detection 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 *"
)
)]
Author
Elastic
Created
2026/10/27
Data Sources
Citrix ADClogs-citrix_adc.log-*
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
Tags
Domain: NetworkDomain: IdentityPlatform: CitrixUse Case: Network Security MonitoringUse Case: Threat DetectionTactic: PersistenceTactic: Defense EvasionData Source: Citrix ADCResources: Investigation GuideRule Type: Event Correlation (EQL)Profile: Beta
Raw Content
[metadata]
creation_date = "2026/10/27"
integration = ["citrix_adc"]
maturity = "production"
updated_date = "2026/10/27"
[rule]
author = ["Elastic"]
description = """
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.
"""
false_positives = [
"""
Approved break-glass provisioning, appliance deployment, or a maintenance window can bind a system user to superuser
and change authentication or VPN policies in the same session.
""",
]
from = "now-30m"
index = ["logs-citrix_adc.log-*"]
interval = "10m"
language = "eql"
license = "Elastic License v2"
name = "NetScaler Superuser Binding Followed by Authentication Control Removal"
note = """## 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.name` is `CMD_EXECUTED`, then compare `process.command_line`,
`citrix_adc.log.status`, `user.name`, `source.ip`, and `citrix_adc.log.adm_user` when present. A status of `Done` or
`Success` means the command was applied. `ERROR` means the attempt failed.
- Identify the bound username and whether it was created moments earlier with `add system user`. Search the same
`observer.hostname` for that username's later Gateway or AAA logins.
- Treat `set authentication epaAction ... -defaultEPAGroup NO_AUTH`,
`unbind authentication vserver ... -policy`, `unbind authentication policylabel ... -policyName`, or
`unbind vpn vserver ... -policy` as 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_EXECUTED` events from the same user and source for `save ns config`, configuration export, and
changes to logging or additional system users.
- Preserve remote syslog, `event.original`, and a copy of `ns.conf` before rebooting or applying a clean configuration.
```esql
FROM logs-citrix_adc.log-*
| WHERE citrix.name == "CMD_EXECUTED" AND observer.hostname == "<appliance>"
| EVAL command = TO_LOWER(COALESCE(process.command_line, citrix_adc.log.message, citrix.detail))
| WHERE command LIKE "*bind system user*"
OR command LIKE "*set authentication epaaction*"
OR command LIKE "*unbind authentication*"
OR command LIKE "*unbind vpn vserver*"
OR command LIKE "*add system user*"
OR command LIKE "*save ns config*"
| KEEP @timestamp, observer.hostname, user.name, source.ip, process.command_line, citrix_adc.log.status, citrix.detail
| 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 `superuser` or `NO_AUTH`
globally.
### 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",
]