NetScaler CTX697096 Threat Hunt Helper (IoC scanner) - CVE-2026-88771, CVE-2026-88772, CVE-2026-88779
A defensive Bash utility for hunting indicators and post-exploitation artifacts associated with Citrix NetScaler ADC / NetScaler Gateway CTX697096, with primary focus on observed exploitation of CVE-2026-88771 and CVE-2026-88772. It also checks the documented SAML configuration precondition for CVE-2026-88779 (CTX697174).
The script can be used in two ways:
Each run writes a final Hunt summary to the terminal and, when report writing is enabled, to the report log. The summary includes how many sections ran, how many ALERT, WARN, and ERROR messages were logged, concrete bullet-list details for those messages when present, and a short assessment reminder. Text-search findings include the hunt section, file path, line number, and matching line. Very large detail lists are capped in the summary. When concrete finding details exceed the findings threshold, interactive runs prompt to write a separate findings file containing the full grouped detail list.
Check syntax before deployment:
bash -n netscaler_ctx697096_hunt.sh
Make the script executable if you want to run it directly:
chmod +x netscaler_ctx697096_hunt.sh
Run a complete offline hunt against copied evidence:
./netscaler_ctx697096_hunt.sh --offline /path/to/extracted-support-bundle
Run all live checks without writing the default local report file:
NETSCALER_HUNT_NO_REPORT=1 ./netscaler_ctx697096_hunt.sh --live-all
Show the built-in IOC set:
./netscaler_ctx697096_hunt.sh --show-iocs
This script is provided for defensive security operations and incident response. Test it in your environment before relying on it operationally.
This is a threat-hunting helper, not a compromise verdict engine.
NETSCALER_HUNT_NO_REPORT=1 is set.The indicator set and hunting logic are based on public reporting reviewed during repository updates. The campaign is evolving; always compare this repository with the latest Citrix advisory and current incident-response reporting before treating the built-in IOC set as complete.
Recommended environment:
findgrepheadtailawksed is not required by the script itselfzgrep for compressed .gz log filessha256sum, sha256, or openssl for hash huntingThe script uses Bash associative arrays and namerefs, so a POSIX /bin/sh interpreter is not sufficient.
Live mode must be executed in an environment that provides a compatible Bash runtime and sufficient permissions to read the relevant NetScaler files and process/network state.
Live mode has not yet been validated on a live NetScaler appliance. Treat the live checks as best-effort read-only hunting logic until they have been tested against the target appliance version and shell environment.
A NetScaler appliance may not provide Bash in the same way as a general-purpose Linux host. If Bash is not available or if evidence preservation matters, collect a support bundle / forensic copy and use offline mode from a separate analysis host instead.
Files in this repository:
netscaler_ctx697096_hunt.sh - interactive Bash threat-hunting scriptREADME.md - this documentchmod +x netscaler_ctx697096_hunt.sh
Check syntax before deployment:
bash -n netscaler_ctx697096_hunt.sh
Run without arguments:
./netscaler_ctx697096_hunt.sh
The main menu provides:
1) Complete offline hunt: copied logs/support bundle/local evidence
2) Complete live hunt: this NetScaler appliance (read-only)
3) Individual offline checks
4) Individual live checks
5) Show built-in IOCs and hashes
6) Show help
0) Exit
Use the complete offline or complete live options when you want the script to run the full relevant hunt without stepping through individual checks. Use the individual-check menus only when you deliberately want a narrower hunt.
Analyze an extracted directory directly:
./netscaler_ctx697096_hunt.sh --offline /path/to/extracted-support-bundle
Or start the guided complete hunt:
./netscaler_ctx697096_hunt.sh --complete
The interactive offline menu allows you to run specific hunts:
1) DTLS/NSPPE/pitboss + exploit behavior
2) Historical IOC IPs
3) Web shell/PHP/Apache patterns
4) Known file/path indicators
5) HTTP log pivots (.deb/.sig/.ico/vpn paths)
6) SHA-256 search of candidate files
7) TLS certificate and JARM pivots
8) Show IOC list
9) CVE-2026-88779 SAML configuration precondition
10) PHP2Shell honeypot sources and behavior
0) Back
The PHP2Shell check keeps two source IPs from confirmed honeypot activity separate from the NetScaler campaign IOC set. It also searches for PHP startup memory/session errors, Apache-parent shell records, and distinctive probe / public PoC markers from CISA's 23 October Sigma rule. These are correlation pivots, not proof of NetScaler exploitation; authorized testing can match, and process-parent and HTTP-body evidence may not exist in ordinary support-bundle logs.
The recursive text search considers common log/configuration formats including:
*.log
*.log.*
*.txt
*.conf
*.out
*.json
*.xml
*.csv
*.gz
messages*
ns.log*
httpaccess*
httperror*
sh.log*