# Automating response to the Ivanti Connect Secure zero day chain
A report from The Hacker News describes how attackers chained three Ivanti Connect Secure flaws to get unauthenticated root access. The group UTA0576 targeted appliances that were fully patched at the time [2]. Volexity found the chain on a device running 22.8R2.4: an authentication bypass in welcome.cgi, a file write race in wu.cgi, and a privilege escalation flaw, CVE-2026-111357, which Ivanti patched on October 29, 2026 [3]. The fixed releases are 22.8R2.6 and the patched 25.1.1 point release named in the advisory [1].
Being fully patched is a temporary state. Standard file integrity monitoring often fails when attackers reach root without leaving a web shell [4]. Volexity notes that Ivanti's Integrity Checker Tool found no changes on the compromised device, because the exploit patched code only in memory and restored the configuration it touched [3]. Detection requires behavioral automation and fast patch orchestration.
Automating vulnerability detection and KEV tracking
Manual monitoring of advisories is too slow. CISA added these flaws to its Known Exploited Vulnerabilities (KEV) catalog after confirming active use [1]. CISA publishes the catalog as a machine readable JSON feed, so a scheduled job can pick up a new Ivanti entry within the hour [5]. Each entry carries cveID, vendorProject, product, dateAdded, requiredAction and dueDate.
n8n workflow for CISA KEV polling and exposure check
The workflow below uses the Schedule Trigger, HTTP Request and Code nodes with their real parameter names [11]. It remembers which CVEs it has already reported in the workflow's static data, which n8n keeps only for production (activated) runs, so test runs from the editor alert every time. The Shodan step needs a Shodan API plan that allows search filters; store the Shodan key as a Query Auth credential whose parameter name is key, and replace <your-netblock> with your own public range so the search covers only appliances you own. Credentials are not exported with a workflow, so pick yours on each HTTP node after import.
{
"name": "Ivanti CISA KEV watch",
"nodes": [
{
"parameters": {
"rule": { "interval": [{ "field": "cronExpression", "expression": "0 * * * *" }] }
},
"name": "Hourly KEV Poll",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.2,
"position": [250, 300]
},
{
"parameters": {
"method": "GET",
"url": "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json",
"options": {}
},
"name": "Fetch CISA KEV",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [450, 300]
},
{
"parameters": {
"jsCode": "const seen = $getWorkflowStaticData('global');\nseen.cves = seen.cves || {};\nconst { vulnerabilities } = $input.first().json;\nconst fresh = vulnerabilities.filter(v =>\n v.vendorProject.toLowerCase().includes('ivanti') &&\n /connect secure|pulse/i.test(v.product) &&\n !seen.cves[v.cveID]\n);\nfor (const v of fresh) seen.cves[v.cveID] = v.dateAdded;\nreturn fresh.map(v => ({ json: {\n cve: v.cveID,\n product: v.product,\n dateAdded: v.dateAdded,\n dueDate: v.dueDate,\n requiredAction: v.requiredAction\n} }));"
},
"name": "New Ivanti KEV Entries",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [650, 300]
},
{
"parameters": {
"method": "GET",
"url": "https://api.shodan.io/shodan/host/search",
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"sendQuery": true,
"queryParameters": {
"parameters": [
{ "name": "query", "value": "product:\"Ivanti Connect Secure\" net:<your-netblock>" }
]
},
"options": {}
},
"name": "Shodan: our exposed ICS",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"executeOnce": true,
"position": [850, 300],
"credentials": { "httpQueryAuth": { "name": "Shodan" } }
},
{
"parameters": {
"jsCode": "const cves = $('New Ivanti KEV Entries').all().map(i => i.json);\nconst { matches = [] } = $input.first().json;\nconst hosts = matches.map(h => `${h.ip_str}:${h.port} (${h.org || 'unknown org'})`);\nconst lines = cves.map(c => `${c.cve} added ${c.dateAdded}, due ${c.dueDate}: ${c.requiredAction}`);\nreturn [{ json: {\n text: `New Ivanti Connect Secure KEV entries:\\n${lines.join('\\n')}\\nInternet-facing ICS in our ranges: ${hosts.length ? hosts.join(', ') : 'none found'}`\n} }];"
},
"name": "Build Alert",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [1050, 300]
},
{
"parameters": {
"method": "POST",
"url": "https://hooks.slack.com/services/<your-webhook-path>",
"sendBody": true,
"contentType": "json",
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({ text: $json.text }) }}",
"options": {}
},
"name": "Slack Alert",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [1250, 300]
}
],
"connections": {
"Hourly KEV Poll": { "main": [[{ "node": "Fetch CISA KEV", "type": "main", "index": 0 }]] },
"Fetch CISA KEV": { "main": [[{ "node": "New Ivanti KEV Entries", "type": "main", "index": 0 }]] },
"New Ivanti KEV Entries": { "main": [[{ "node": "Shodan: our exposed ICS", "type": "main", "index": 0 }]] },
"Shodan: our exposed ICS": { "main": [[{ "node": "Build Alert", "type": "main", "index": 0 }]] },
"Build Alert": { "main": [[{ "node": "Slack Alert", "type": "main", "index": 0 }]] }
}
}When the Code node finds no new entries it returns no items, so the later nodes do not run and nothing is posted. To file a ticket as well, add n8n's Jira node after Build Alert.
Python script for the same check outside n8n
This version uses the official shodan Python library and keeps its state in a JSON file. Install the library with pip install shodan requests.
#!/usr/bin/env python3
"""Hourly check: new Ivanti Connect Secure entries in CISA KEV, plus our exposed appliances."""
import json
import os
from datetime import datetime, timezone
import requests
import shodan
KEV_URL = "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json"
STATE_FILE = os.path.join(os.getenv("STATE_DIRECTORY", "."), "state.json")
ALERT_WEBHOOK = os.environ["ALERT_WEBHOOK_URL"]
SHODAN_QUERY = 'product:"Ivanti Connect Secure" net:' + os.environ["OUR_NETBLOCK"]
def load_seen():
try:
with open(STATE_FILE) as f:
return set(json.load(f))
except FileNotFoundError:
return set()
def save_seen(seen):
with open(STATE_FILE, "w") as f:
json.dump(sorted(seen), f)
def new_ivanti_entries(seen):
resp = requests.get(KEV_URL, timeout=30)
resp.raise_for_status()
return [
v for v in resp.json()["vulnerabilities"]
if "ivanti" in v["vendorProject"].lower()
and ("connect secure" in v["product"].lower() or "pulse" in v["product"].lower())
and v["cveID"] not in seen
]
def exposed_hosts():
api = shodan.Shodan(os.environ["SHODAN_KEY"])
try:
results = api.search(SHODAN_QUERY)
except shodan.APIError as e:
print(f"Shodan error: {e}")
return []
return [f"{m['ip_str']}:{m['port']}" for m in results["matches"]]
def main():
seen = load_seen()
entries = new_ivanti_entries(seen)
if not entries:
print("No new Ivanti KEV entries")
return
hosts = exposed_hosts()
for v in entries:
requests.post(ALERT_WEBHOOK, timeout=30, json={
"alert_type": "IVANTI_KEV",
"timestamp": datetime.now(timezone.utc).isoformat(),
"cve": v["cveID"],
"product": v["product"],
"date_added": v["dateAdded"],
"due_date": v["dueDate"],
"required_action": v["requiredAction"],
"exposed_hosts": hosts,
})
seen.add(v["cveID"])
save_seen(seen)
print(f"Reported {len(entries)} new Ivanti KEV entries")
if __name__ == "__main__":
main()# Run it hourly with a systemd timer
sudo tee /etc/systemd/system/ivanti-kev-monitor.service << 'EOF'
[Unit]
Description=Ivanti KEV Monitor
After=network-online.target
[Service]
Type=oneshot
# The environment file sets SHODAN_KEY, ALERT_WEBHOOK_URL and OUR_NETBLOCK (chmod 600, owned by root)
EnvironmentFile=/etc/ivanti-kev-monitor/environment
# systemd creates this directory and passes its path in STATE_DIRECTORY
StateDirectory=ivanti-kev-monitor
ExecStart=/usr/bin/python3 /opt/scripts/ivanti_kev_monitor.py
User=monitor
EOF
sudo tee /etc/systemd/system/ivanti-kev-monitor.timer << 'EOF'
[Unit]
Description=Run Ivanti KEV Monitor hourly
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now ivanti-kev-monitor.timerBehavioral detection for root access and credential theft
UTA0576 did not leave a web shell [4]. Volexity saw it use the appliance's Active Directory service account to search LDAP for LAPS passwords and BitLocker recovery keys, run a renamed tcpdump to capture LDAP traffic, and delete recent lines from the appliance debug and audit logs [3]. Detection therefore has to happen on the network around the appliance, not on the appliance itself.
Two caveats apply to everything below. A sensor can only read HTTP headers if it sees the decrypted traffic, for example behind a TLS-terminating load balancer. LDAP filters and attributes are only visible on plain LDAP on port 389 without signing and sealing; LDAPS hides them.
Zeek script for Ivanti behavioral anomalies
Zeek 6.1 and later ship an LDAP analyzer. The script uses its LDAP::search_request event [9], plus the standard http_header and new_connection events. Volexity recommends watching for requests to /dana-na/auth/url_default/welcome.cgi whose X-DSCGI-PATH header points somewhere else [3].
# ivanti_behavioral.zeek: network-side indicators of the UTA0576 chain
module IvantiBehavioral;
export {
redef enum Notice::Type += {
IvantiSensitiveLDAPSearch,
IvantiUnexpectedEgress,
IvantiDSCGIPathHeader
};
# Fill both from your asset inventory in local.zeek, for example:
# redef IvantiBehavioral::ivanti_ips += { <appliance-address> };
# redef IvantiBehavioral::expected_peers += { <management-subnet>, <dc-subnet> };
option ivanti_ips: set[addr] = {};
option expected_peers: set[subnet] = {};
}
const sensitive_attrs = /ms-Mcs-AdmPwd|msLAPS-Password|msLAPS-EncryptedPassword|msFVE-RecoveryPassword|msFVE-RecoveryInformation|unicodePwd|supplementalCredentials/i;
# LDAP searches from the appliance that ask for LAPS, BitLocker or password attributes
event LDAP::search_request(c: connection, message_id: int, base_object: string,
scope: LDAP::SearchScope, deref: LDAP::SearchDerefAlias,
size_limit: int, time_limit: int, types_only: bool,
filter: string, attributes: vector of string)
{
if ( c$id$orig_h !in ivanti_ips )
return;
local hit = sensitive_attrs in filter;
for ( i in attributes )
if ( sensitive_attrs in attributes[i] )
hit = T;
if ( hit )
NOTICE([$note=IvantiSensitiveLDAPSearch, $conn=c,
$msg=fmt("Ivanti appliance LDAP search for sensitive attributes, filter: %s", filter)]);
}
# Outbound connections from the appliance to anything outside the expected peers
event new_connection(c: connection)
{
if ( c$id$orig_h in ivanti_ips && c$id$resp_h !in ivanti_ips && c$id$resp_h !in expected_peers )
NOTICE([$note=IvantiUnexpectedEgress, $conn=c,
$msg=fmt("Ivanti appliance connecting to unexpected peer %s:%s", c$id$resp_h, c$id$resp_p),
$identifier=cat(c$id$orig_h, c$id$resp_h)]);
}
# Requests to the appliance that carry an X-DSCGI-PATH header (only visible on decrypted HTTP)
event http_header(c: connection, is_orig: bool, original_name: string, name: string, value: string)
{
if ( is_orig && c$id$resp_h in ivanti_ips && name == "X-DSCGI-PATH" )
NOTICE([$note=IvantiDSCGIPathHeader, $conn=c,
$msg=fmt("X-DSCGI-PATH header sent to Ivanti appliance: %s", value)]);
}# Deploy the Zeek script
sudo cp ivanti_behavioral.zeek /opt/zeek/share/zeek/site/
echo '@load ivanti_behavioral' | sudo tee -a /opt/zeek/share/zeek/site/local.zeek
sudo zeekctl deploySuricata rules for the same behavior
Suricata 8 added an LDAP parser. It has no keyword for the search filter, but ldap.request.attribute_type matches the attributes a search asks for [10]. The http.header_names and http.header buffers cover the Volexity header indicator.
# /etc/suricata/rules/ivanti-uta0576.rules
alert http any any -> $IVANTI_NET any (msg:"IVANTI UTA0576 X-DSCGI-PATH header on welcome.cgi"; flow:to_server,established; http.uri; content:"/dana-na/auth/url_default/welcome.cgi"; startswith; http.header_names; content:"X-DSCGI-PATH"; nocase; classtype:web-application-attack; sid:9000001; rev:1; reference:url,www.volexity.com/blog/2026/10/13/a-series-of-unauthenticated-events-chained-exploitation-of-ivanti-connect-secure-zero-days/;)
alert ldap $IVANTI_NET any -> $LDAP_SERVERS any (msg:"IVANTI appliance LDAP search for LAPS password attribute"; ldap.request.operation:search_request; ldap.request.attribute_type; content:"LAPS"; nocase; classtype:attempted-recon; sid:9000002; rev:1;)
alert ldap $IVANTI_NET any -> $LDAP_SERVERS any (msg:"IVANTI appliance LDAP search for BitLocker recovery attribute"; ldap.request.operation:search_request; ldap.request.attribute_type; content:"msFVE-Recovery"; nocase; classtype:attempted-recon; sid:9000003; rev:1;)
alert ip $IVANTI_NET any -> !$EXPECTED_PEERS any (msg:"IVANTI appliance unexpected egress"; threshold:type limit, track by_src, count 1, seconds 3600; classtype:misc-activity; sid:9000004; rev:1;)Rule 9000002 catches the Windows LAPS attributes (msLAPS-Password, msLAPS-EncryptedPassword). The legacy LAPS attribute ms-Mcs-AdmPwd does not contain "LAPS", so if legacy LAPS is in use, copy the rule with content:"ms-Mcs-AdmPwd"; and a new sid.
# Define the address groups in suricata.yaml under vars: address-groups:
# IVANTI_NET: "[<appliance-1-address>,<appliance-2-address>]"
# LDAP_SERVERS: "[<domain-controller-addresses>]"
# EXPECTED_PEERS: "[$IVANTI_NET,<management-subnet>,<domain-controller-addresses>]"
# Add ivanti-uta0576.rules to rule-files, then reload without a restart:
sudo suricatasc -c reload-rulesPulling configuration for drift checks
Connect Secure is a closed appliance, so there are no configuration files on disk to scan with a tool like Semgrep. The supported route is the REST API, which returns the whole configuration as JSON from GET /api/v1/configuration and its child paths [6]. Exporting it on a schedule and diffing each copy against the last catches new administrators, changed auth servers or new admin realm rules. REST access has to be switched on per administrator first (Authentication > Auth. Servers > Administrators, "Allow access to REST APIs") [6].
# Get a session key with realm-based login, then save the configuration JSON.
# The response to realm_auth holds one field, the session key; it is then sent as
# the Basic auth user name with an empty password. Prompted, not stored.
ICS="<appliance-hostname>"
read -r -p "ICS admin user: " ICS_USER
TOKEN=$(curl -s -u "$ICS_USER" -H "Content-Type: application/json" \
-d '{"realm": "Admin Users"}' "https://$ICS/api/v1/realm_auth" | jq -r '.[]')
curl -s -u "$TOKEN:" "https://$ICS/api/v1/configuration/administrators" > "admins-$(date +%Y%m%d).json"
diff <(jq -S . admins-previous.json) <(jq -S . "admins-$(date +%Y%m%d).json")Replace "Admin Users" with the name of your admin realm. Ivanti deprecated the older /api/v1/auth login in favor of /api/v1/realm_auth from 22.7R2.1 [6].
Orchestrating the patching workflow
Exploitation began on October 3, but the patch arrived on October 29 [3]. Response to a flaw like CVE-2026-111357 must be programmatic. Ivanti documents REST calls for the pieces a rollout needs [7] [8]:
| Step | Documented call | |---|---| | Log in | POST /api/v1/realm_auth with {"realm": "<admin realm>"} | | Current version | GET /api/v1/system/system-information | | Health | GET /api/v1/system/healthcheck?status=all | | Config backup | POST /api/v1/system/binary-configuration | | Upgrade (reboots when done) | POST /api/v1/system/maintenance/upgrade, multipart field file | | Roll back | POST /api/v1/system/maintenance with {"operation": "rollback"} | | External ICT scan | POST /api/v1/system/maintenance/upgrade?operation=run-ict, multipart field file |
Service packages come from Ivanti's customer download portal, which needs a support login, so download the fixed 22.8R2.6 or 25.1.1 package there and keep it on the automation host. Read the release notes for your current version first: one 22.7R2.x release lists a known issue where upgrades through the REST API failed and the admin console was the workaround.
Canary upgrade in n8n
This workflow upgrades one canary appliance when called. It logs in, saves a configuration backup, uploads the package (the appliance reboots on its own), waits, logs in again, and reports the new version and health. Run it per appliance, canary first, and move to the next one only after a person has checked the result. The HTTP Request node parameters follow n8n's documented schema [11]. Create an HTTP Basic Auth credential holding the REST-enabled administrator, and put the package where n8n is allowed to read files.
{
"name": "Ivanti canary upgrade",
"nodes": [
{
"parameters": { "httpMethod": "POST", "path": "ivanti-canary-upgrade", "responseMode": "onReceived", "options": {} },
"name": "Upgrade Request",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [200, 300]
},
{
"parameters": {
"method": "POST",
"url": "=https://{{ $json.body.host }}/api/v1/realm_auth",
"authentication": "genericCredentialType",
"genericAuthType": "httpBasicAuth",
"sendBody": true,
"contentType": "json",
"specifyBody": "json",
"jsonBody": "={\"realm\": \"{{ $json.body.realm }}\"}",
"options": {}
},
"name": "Login",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [400, 300],
"credentials": { "httpBasicAuth": { "name": "ICS REST admin" } }
},
{
"parameters": {
"jsCode": "const req = $('Upgrade Request').first().json.body;\nconst token = Object.values($input.first().json).find(v => typeof v === 'string');\nreturn [{ json: { host: req.host, realm: req.realm, auth: 'Basic ' + Buffer.from(token + ':').toString('base64') } }];"
},
"name": "Build Auth Header",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [600, 300]
},
{
"parameters": {
"method": "POST",
"url": "=https://{{ $json.host }}/api/v1/system/binary-configuration",
"sendHeaders": true,
"headerParameters": { "parameters": [{ "name": "Authorization", "value": "={{ $json.auth }}" }] },
"options": { "response": { "response": { "responseFormat": "file" } } }
},
"name": "Export Config Backup",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [800, 300]
},
{
"parameters": { "operation": "read", "fileSelector": "/files/ivanti/<service-package>.pkg", "options": {} },
"name": "Read Service Package",
"type": "n8n-nodes-base.readWriteFile",
"typeVersion": 1,
"position": [1000, 300]
},
{
"parameters": {
"method": "POST",
"url": "=https://{{ $('Build Auth Header').first().json.host }}/api/v1/system/maintenance/upgrade",
"sendHeaders": true,
"headerParameters": { "parameters": [{ "name": "Authorization", "value": "={{ $('Build Auth Header').first().json.auth }}" }] },
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": { "parameters": [{ "parameterType": "formBinaryData", "name": "file", "inputDataFieldName": "data" }] },
"options": {}
},
"name": "Upload and Upgrade",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [1200, 300]
},
{
"parameters": { "resume": "timeInterval", "amount": 30, "unit": "minutes" },
"name": "Wait for Reboot",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [1400, 300]
},
{
"parameters": {
"method": "POST",
"url": "=https://{{ $('Build Auth Header').first().json.host }}/api/v1/realm_auth",
"authentication": "genericCredentialType",
"genericAuthType": "httpBasicAuth",
"sendBody": true,
"contentType": "json",
"specifyBody": "json",
"jsonBody": "={\"realm\": \"{{ $('Build Auth Header').first().json.realm }}\"}",
"options": {}
},
"name": "Login Again",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [1600, 300],
"credentials": { "httpBasicAuth": { "name": "ICS REST admin" } }
},
{
"parameters": {
"jsCode": "const host = $('Build Auth Header').first().json.host;\nconst token = Object.values($input.first().json).find(v => typeof v === 'string');\nreturn [{ json: { host, auth: 'Basic ' + Buffer.from(token + ':').toString('base64') } }];"
},
"name": "New Auth Header",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [1800, 300]
},
{
"parameters": {
"method": "GET",
"url": "=https://{{ $json.host }}/api/v1/system/system-information",
"sendHeaders": true,
"headerParameters": { "parameters": [{ "name": "Authorization", "value": "={{ $json.auth }}" }] },
"options": {}
},
"name": "Check Version",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [2000, 300]
},
{
"parameters": {
"method": "GET",
"url": "=https://{{ $('New Auth Header').first().json.host }}/api/v1/system/healthcheck?status=all",
"sendHeaders": true,
"headerParameters": { "parameters": [{ "name": "Authorization", "value": "={{ $('New Auth Header').first().json.auth }}" }] },
"options": {}
},
"name": "Check Health",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [2200, 300]
},
{
"parameters": {
"method": "POST",
"url": "https://hooks.slack.com/services/<your-webhook-path>",
"sendBody": true,
"contentType": "json",
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({ text: 'ICS canary ' + $('New Auth Header').first().json.host + ' now reports ' + JSON.stringify($('Check Version').first().json['software-inventory']) + '. Health: ' + JSON.stringify($json) + '. Review before upgrading the next appliance.' }) }}",
"options": {}
},
"name": "Report to Slack",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [2400, 300]
}
],
"connections": {
"Upgrade Request": { "main": [[{ "node": "Login", "type": "main", "index": 0 }]] },
"Login": { "main": [[{ "node": "Build Auth Header", "type": "main", "index": 0 }]] },
"Build Auth Header": { "main": [[{ "node": "Export Config Backup", "type": "main", "index": 0 }]] },
"Export Config Backup": { "main": [[{ "node": "Read Service Package", "type": "main", "index": 0 }]] },
"Read Service Package": { "main": [[{ "node": "Upload and Upgrade", "type": "main", "index": 0 }]] },
"Upload and Upgrade": { "main": [[{ "node": "Wait for Reboot", "type": "main", "index": 0 }]] },
"Wait for Reboot": { "main": [[{ "node": "Login Again", "type": "main", "index": 0 }]] },
"Login Again": { "main": [[{ "node": "New Auth Header", "type": "main", "index": 0 }]] },
"New Auth Header": { "main": [[{ "node": "Check Version", "type": "main", "index": 0 }]] },
"Check Version": { "main": [[{ "node": "Check Health", "type": "main", "index": 0 }]] },
"Check Health": { "main": [[{ "node": "Report to Slack", "type": "main", "index": 0 }]] }
}
}Call it with a JSON body such as {"host": "<canary-hostname>", "realm": "Admin Users"}. The backup file stays in the execution data; add a Write File node after Export Config Backup if you want it on disk. If the appliance uses a self-signed certificate, turn on "Ignore SSL Issues" in each HTTP node's options rather than disabling checks globally.
The same rollout in Python
The script below drives the same documented calls for a list of appliances, canary first, and stops at the first failure. It asks for the administrator credential at run time instead of storing it.
#!/usr/bin/env python3
"""Canary-first Ivanti Connect Secure upgrade using the documented REST API."""
import getpass
import time
import requests
REALM = "Admin Users" # your admin realm name
PACKAGE = "ICS-package.pkg" # service package downloaded from the Ivanti portal
ICT_PACKAGE = "external-ict.pkg" # external Integrity Checker package for that release
APPLIANCES = ["<canary-hostname>", "<appliance-2-hostname>", "<appliance-3-hostname>"]
class ICS:
def __init__(self, host, user, pw):
self.base = f"https://{host}/api/v1"
self.user, self.pw = user, pw
self.s = requests.Session()
self.login()
def login(self):
r = requests.post(f"{self.base}/realm_auth", auth=(self.user, self.pw),
json={"realm": REALM}, timeout=30)
r.raise_for_status()
token = next(iter(r.json().values())) # the single field is the session key
self.s.auth = (token, "") # key as user name, empty password
def version(self):
r = self.s.get(f"{self.base}/system/system-information", timeout=30)
r.raise_for_status()
return r.json().get("software-inventory", {}).get("software", {}).get("version")
def health(self):
r = self.s.get(f"{self.base}/system/healthcheck", params={"status": "all"}, timeout=30)
r.raise_for_status()
return r.json()
def backup(self, path):
r = self.s.post(f"{self.base}/system/binary-configuration", timeout=300)
r.raise_for_status()
with open(path, "wb") as f:
f.write(r.content)
def upload(self, pkg, operation=None):
params = {"operation": operation} if operation else None
with open(pkg, "rb") as f:
r = self.s.post(f"{self.base}/system/maintenance/upgrade", params=params,
files={"file": (pkg, f, "application/octet-stream")}, timeout=1800)
r.raise_for_status()
return r.json()
def wait_until_back(host, user, pw, minutes=40):
deadline = time.time() + minutes * 60
while time.time() < deadline:
time.sleep(60)
try:
return ICS(host, user, pw)
except requests.RequestException:
continue
raise TimeoutError(f"{host} did not come back within {minutes} minutes")
def main():
user = input("ICS admin user: ")
pw = getpass.getpass("ICS admin credential: ")
for host in APPLIANCES:
ics = ICS(host, user, pw)
before = ics.version()
ics.backup(f"{host}-{int(time.time())}.cfg")
print(f"{host}: {before}, config saved, uploading package (appliance reboots)")
ics.upload(PACKAGE)
ics = wait_until_back(host, user, pw)
after = ics.version()
print(f"{host}: now {after}, health {ics.health()}")
if after == before:
raise SystemExit(f"{host} still reports {before}; stopping the rollout")
print(f"{host}: external ICT result {ics.upload(ICT_PACKAGE, operation='run-ict')}")
answer = input("Continue to the next appliance? [y/N] ")
if answer.lower() != "y":
break
if __name__ == "__main__":
main()If an upgraded appliance misbehaves, POST /api/v1/system/maintenance with {"operation": "rollback"} returns it to the previous software version on its rollback partition [7].
Immediate actions for Ivanti ICS administrators
The UTA0576 attacks require specific steps. Administrators must take these actions:
- Verify the installed version: Move every appliance to 22.8R2.6 or the patched 25.1.1 point release, which fix CVE-2026-111357 and CVE-2026-118527 [1]. Connect Secure has no SSH shell, so read the version over the REST API [8].
# Version check across the fleet. Prompts once for the REST-enabled admin.
read -r -p "ICS admin user: " ICS_USER
read -r -s -p "ICS admin credential: " ICS_PW; echo
for ICS in <appliance-1-hostname> <appliance-2-hostname>; do
TOKEN=$(curl -s -u "$ICS_USER:$ICS_PW" -H "Content-Type: application/json" \
-d '{"realm": "Admin Users"}' "https://$ICS/api/v1/realm_auth" | jq -r '.[]')
echo "$ICS $(curl -s -u "$TOKEN:" "https://$ICS/api/v1/system/system-information" \
| jq -c '."software-inventory".software')"
done- Audit LDAP logs: Review LDAP searches from the VPN appliance starting October 3, 2026, for LAPS, BitLocker and password attributes [3]. With the Zeek LDAP analyzer, searches land in ldap_search.log [9].
# LDAP searches made by the appliance (set ICS_IP to its internal address)
zeek-cut ts id.orig_h id.resp_h base_object filter attributes < /opt/zeek/logs/current/ldap_search.log \
| awk -v ip="$ICS_IP" '$2 == ip'
# Searches that name LAPS, BitLocker recovery or password attributes
grep -iE "ms-Mcs-AdmPwd|msLAPS|msFVE-Recovery|unicodePwd|supplementalCredentials" \
/opt/zeek/logs/current/ldap_search.log- Check the appliance and look for movement: Run the external Integrity Checker Tool, which 22.7R2.8 and later can run over REST [8], but do not treat a clean result as proof: in this case the ICT found nothing because the exploit patched code only in memory [3]. Hunt for lateral movement from the appliance's internal address (the Zeek egress notice above), and if compromise is suspected, collect memory and disk images with Ivanti support. A system snapshot for support can be generated over REST [8].
# Generate a system snapshot for Ivanti support, then list available snapshots
curl -s -u "$TOKEN:" -H "Content-Type: application/json" \
-d '{"action": "generate"}' "https://$ICS/api/v1/system/maintenance/snapshots"
curl -s -u "$TOKEN:" -H "Content-Type: application/json" \
-d '{"action": "fetch-details"}' "https://$ICS/api/v1/system/maintenance/snapshots"- CISA KEV integration: Put the CISA KEV catalog into your alerting pipeline to find future exploited vulnerabilities faster [5]. Import the first n8n workflow, attach the Shodan Query Auth credential, set your netblock and Slack webhook, and activate it.
Try it yourself: BitLocker Recovery Key: Find It or Fix a Lost One, a free tool from CyberAutomations.