The VPN was fully patched. Then the attacker asked LDAP for your LAPS passwords
Volexity's write-up of the Ivanti Connect Secure zero-day chain ends where most VPN advisories stop: inside Active Directory. What the three-stage exploit does, what the appliance's service account can read, and how to test and detect that path.
By Ahmed PingerPublished
10 min read0 views
Two pieces of text from Volexity's October 2026 report describe the whole problem. The first is the request pattern: a call to the public login path /dana-na/auth/url_default/welcome.cgi carrying a header named X-DSCGI-PATH that points at a script an unauthenticated visitor should never reach, such as wu.cgi. The second is a sentence from the investigation: subsequent checks confirmed the Ivanti Connect Secure (ICS) appliance was fully patched, at 22.8R2.4, Build 19097.
Fully patched, and still owned. Volexity attributes the activity to a previously unknown actor it tracks as UTA0576, which began exploiting the appliance on 3 October 2026. The first fixes shipped on 13 October. What the attacker did after getting root on the box is the part that matters for anyone who runs a VPN into an Active Directory domain, and it is the part this post is about.
What was disclosed
Volexity published on 13 October 2026. Two CVEs are involved in its account:
- CVE-2026-104935 covers the authentication bypass and remote code execution. Ivanti patched it on 13 October. CISA added it to the Known Exploited Vulnerabilities (KEV) catalog the same day, with a federal remediation due date of 16 October.
- CVE-2026-111357 covers the privilege escalation to root. Volexity's original text said a fix was still coming. Ivanti published the patch on 29 October, and CISA added the CVE to KEV on 30 October.
Volexity lists 22.8R2.4, 25.1.1 and earlier, and 25.1.2 as versions that need upgrading. Volexity gives no CVSS scores; for scores and fixed builds, read Ivanti's advisory.
One more Ivanti CVE sits in the same KEV window. CVE-2026-118527 was added on 30 October. Volexity's post does not mention it, so we do not tie it to this chain.
The chain in plain terms
Three stages, each small on its own.
1. Authentication bypass. The server checks whether the URL you asked for needs a login. The public welcome.cgi path does not, so the check passes. But the CGI layer routes the request using the X-DSCGI-PATH header, not the URL. The authorization decision looked at one string and the routing decision used another. That mismatch lets an unauthenticated request reach a protected script.
2. Remote code execution through a race. The target script, wu.cgi, handles uploads. Per Volexity, it writes the uploaded file to /home/runtime/tmp/<MD5 of the filename> before it checks that the file is a valid ZIP. Invalid files are deleted afterwards, but they sit on disk for a moment. The attacker sends parallel requests that point the same header trick at that temporary file and execute it inside the window. The payload hops from Perl to Bash to Python, and the final Python stage runs from memory.
3. Root. The exploit patches the in-memory copy of a library in the CGI process, so it can edit a cache called DSCache. An existing maintenance task is then made to launch the Perl interpreter, and a privileged broker, dsinvoked, runs the attacker's script as root because it trusts what is in that cache. The exploit checks that it worked by testing whether /etc/shadow is readable, then restores the cache entry and the in-memory library.
Why nothing looked wrong afterwards
Volexity found no web shell and no backdoor. Commands travel inside the HTTPS requests of the exploit itself, and results come back in the responses. Logs were edited. Temporary scripts were deleted.
The integrity tooling does not help either. In Volexity's words, the Ivanti Integrity Checker "may not be able to identify device compromise," because the chain changes library code only in memory and puts configuration data back. If your plan after a VPN advisory is "run the vendor's checker and see if it is clean," this is the case where a clean result proves little.
What the appliance already holds
A VPN concentrator that authenticates users against Active Directory has to talk to AD. That means it stores a directory service account, and root on the appliance means that account. Volexity reports the attacker extracted stored LDAP domain credentials and then used the appliance's AD service account from a custom Python tool to query the directory for:
- Windows Local Administrator Password Solution (LAPS) credentials
- BitLocker recovery keys
userPasswordandunixUserPasswordattribute values
After that the attacker deployed a custom Kerberos tool (mk.py) capable of Kerberoasting and credential testing, and used sp_run.py for password spraying. Volexity does not report the Kerberoast function being run. The attacker also ran a renamed tcpdump binary, dsstatmond, from a hidden /data/.icscap/ directory, to capture traffic and pull plaintext LDAP credentials, HTTP Basic authentication and NTLM challenge material off the wire.
Nothing in that list needs malware on an endpoint. It is a directory client running from a network position the domain already trusts. If that sequence looks familiar, it is the standard escalation path from our Active Directory attack paths post, started from a different foothold. Kerberoasting, the capability in that tool, is the one covered in Kerberoasting: any domain user can ask for the crackable hash.
The question for your environment is not "is our VPN patched." It is "what can the VPN's directory account read, and who would notice if it read all of it."
How we test for it
We treat the appliance as a compromised starting point and work inward, which is the assumed-breach model applied to the edge. No exploit against the appliance is needed. We ask what an attacker holding its LDAP credentials could do, and you can check most of it from a domain-joined Windows host with the RSAT tools. No Docker, no lab build.
1. What is the bind account? Find the account the VPN uses, then list its groups and whether it is privileged.
Get-ADUser -Identity svc-vpn-ldap -Properties MemberOf, ServicePrincipalName, PasswordLastSet |
Select-Object SamAccountName, PasswordLastSet, ServicePrincipalName, MemberOf
A bind account in Domain Admins is a finding on its own. One with an SPN is also a Kerberoasting target.
2. Can it read LAPS passwords? With Windows LAPS, the module lists who holds read rights on an OU's password attributes:
Find-LapsADExtendedRights -Identity "OU=Workstations,DC=corp,DC=local"
With the legacy LAPS tooling, the same question applies to ms-Mcs-AdmPwd. We look for the VPN account, or any group it belongs to, in the output.
3. Can it read BitLocker recovery keys? BitLocker recovery objects in AD sit under computer objects. We run an LDAP query as the bind account's rights and see whether the recovery password attribute comes back.
4. Who is roastable and how strong are they? Every account with an SPN is exposure. Count them, check which encryption types they allow, and note password age. The Kerberoasting post walks through that audit.
5. Where can a VPN address go? From a test client assigned an address out of the VPN pool, we check which internal systems answer on SMB, WinRM, RDP and LDAP. A VPN pool that reaches domain controllers and every workstation subnet turns one stolen session into a map of the network.
The deliverable is a short list: what the account can read, what that is worth, and which control would have made it harmless.
Detection
Detection splits into the appliance, the network in front of it, and the directory behind it. The third one is the one most teams are missing.
Appliance and network (from Volexity).
- Requests to
/dana-na/auth/url_default/welcome.cgithat carry anX-DSCGI-PATHheader, especially values pointing at/home/webserver/htdocs/dana/fb/smb/wu.cgior/home/runtime/tmp/<MD5>. Volexity's investigation began at a Network Security Monitoring customer. The appliance does not hand you this signal, so it needs a sensor or TLS-inspecting proxy in front of it. - A high volume of
welcome.cgirequests, and any mismatch between the URL path and the header value. - Files and paths on the box: scripts such as
ml.py,rq5.py,mk.py,rr.pyandsp_run.pyin/tmp/;ics-root-run-inband-*.plin/home/runtime/tmp/; and a/data/.icscap/directory containingh.py, a binary nameddsstatmondand capture files namedcap*. - Gaps and truncation in
/home/runtime/dlogs/debuglogand/var/log/audit/audit.log, since Volexity saw entries selectively removed. - Volexity lists one infrastructure indicator, the IP
108.165.147[.]64. Treat attacker IPs as a one-time search, not an ongoing control.
Directory (our guidance).
- Kerberoasting. Security event 4769 (a Kerberos service ticket was requested), filtered on
TicketEncryptionType0x17(RC4), withIpAddressinside your VPN pool or the appliance's own address. One source requesting tickets for many service names in minutes is the pattern. - Spraying. Event 4625 (failed logon), 4771 (Kerberos pre-authentication failed) and 4776 (NTLM credential validation) grouped by source address. One address, many accounts, few attempts each.
- Reads of LAPS and BitLocker attributes. Event 4662 (an operation was performed on an object) records attribute reads, but only where you have set a SACL on those attributes. Without one, this attack is silent. Add auditing for the LAPS password attributes and the BitLocker recovery attributes, then alert on reads by anything other than your LAPS tooling and help desk accounts.
- The bind account itself. Alert on interactive or network logons by the VPN's LDAP account from any host other than the appliance. That account should do one thing from one address.
- Lateral movement from the VPN. Volexity's advice is to investigate any lateral movement that originates from the ICS device. Concretely, that is logon events (4624) whose source is the appliance's internal IP.
Forensics. If you suspect compromise, Volexity recommends network and memory forensics, because the on-disk evidence is thin by design. Capture first, and do not rely on a vendor tool's clean result.
Fix
- Patch both CVEs. The October 13 fix did not cover the privilege escalation. Confirm your build includes the 29 October fix by reading Ivanti's advisory.
- Assume the bind account is burned if the appliance was exposed and unpatched in October. Reset it. Reset any other credential the appliance stores.
- Shrink what the bind account can read. Use an account with only the rights that LDAP authentication needs. Remove it from any group with LAPS read rights, BitLocker recovery read rights, or administrative membership. Check that nothing sets
userPasswordorunixUserPasswordon user objects, because those attributes should not hold passwords at all. - Review LAPS ACLs. Run the
Find-LapsADExtendedRightscheck above against every OU and remove principals that should not be there. - Fix the roastable accounts. Move SPN-bearing accounts to group managed service accounts, or give them long random passwords and AES-only encryption. See the Kerberoasting post.
- Segment the VPN pool. Give VPN clients only the routes they need. Domain controller access should be limited to the ports clients actually use.
- Send LDAP over TLS. The attacker captured plaintext LDAP credentials from traffic on the box. LDAPS or StartTLS between the appliance and the domain controller closes that.
- Log in front of the appliance. A sensor on the segment that sees the HTTPS requests is the only place the header mismatch shows up.
Take this away
The Ivanti bugs are a patch ticket. The domain behind them is an architecture decision. A VPN appliance that holds a directory account with wide read rights makes every future edge bug a domain bug.
If you want to know what your VPN's service account can reach before an attacker finds out, that is a scoped internal penetration test or a red team operation that starts from the VPN address pool.
References
Was this useful?
Get the next write-up by email
New technical write-ups by email when we publish. No sales sequence, and every email has an unsubscribe link.
Prefer a feed? RSS. How we handle your address: privacy notice.
Comments
Loading comments…