Persistence (TA0003)(external, opens in a new tab or window)
Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block: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 *" ) )]
Install detection rules in Elastic Security
Detect NetScaler Superuser Binding Followed by Authentication Control Removal in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).