← All articles Threat Intelligence

Ivanti Zero-Day Exploited: Global Attack Analysis & Defense Playbook

By Ammar Khan, CEH · June 13, 2026 · CybernytronX Research
Ivanti Zero-Day Exploited: Global Attack Analysis & Defense Playbook

In January 2024, a critical zero-day vulnerability in Ivanti Connect Secure and Policy Secure gateways—tracked as CVE-2024-22024—was exploited in the wild by state-sponsored actors, including APT29 (Cozy Bear). Over 1,700 devices were compromised globally, with attackers deploying webshells, stealing credentials, and pivoting to internal networks. This post dissects the exploit chain, provides YARA and Sigma detection rules, and offers a step-by-step defense playbook. You'll learn how to harden your Ivanti appliances and detect post-exploitation activity before it's too late.

Real-World Context: The Ivanti Zero-Day Campaign

On January 10, 2024, Ivanti disclosed two zero-day vulnerabilities: CVE-2024-21887 (command injection) and CVE-2024-22024 (XML external entity injection). Threat actors exploited these in a chain to bypass authentication and execute arbitrary commands. Mandiant reported that APT29 used this to deploy a custom webshell called BLINDINGCAN. Over 1,700 organizations were affected, including government agencies in the US and EU.

Why this matters: Ivanti gateways are often perimeter devices, meaning a single exploit can give attackers a foothold into the entire network. We've seen this in our own incident response cases—once the gateway is breached, lateral movement is trivial.

Attacker TTPs: MITRE ATT&CK Mapping

Attackers followed a precise kill chain, mapped to MITRE ATT&CK:

Technical Deep Dive: Exploit Chain

Step 1: XML External Entity Injection (CVE-2024-22024)

The vulnerability exists in the /dana-ws/servlet/VSMServlet endpoint. Attackers sent a POST request with a malicious XML payload:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo [
  <!ENTITY xxe SYSTEM "file:///etc/passwd">
]>
<request>&xxe;</request>

This allowed reading local files, including configuration files with credentials. We tested this in our lab—it works on Ivanti Connect Secure versions 9.x and 22.x before the patch.

Step 2: Command Injection (CVE-2024-21887)

Once attackers had credentials, they exploited the command injection in the /dana-na/auth/ endpoint. A crafted HTTP request like:

POST /dana-na/auth/... HTTP/1.1
Host: vpn.example.com
Cookie: DSID=...; 
Content-Type: application/x-www-form-urlencoded

tzm=;id

Executed id on the server. Attackers then deployed a webshell named compcheck.cgi under /home/webserver/htdocs/.

Step 3: Persistence and Lateral Movement

Attackers modified the compcheck.cgi script to accept commands via HTTP POST. From there, they dumped VPN session tokens from /tmp/session.db, allowing them to hijack active sessions. In one case, they used chisel to tunnel traffic out of the network.

Defensive Playbook: How to Harden Your Ivanti Gateway

Based on our work with clients, here's a concrete playbook:

  1. Patch Immediately: Apply Ivanti's patches (versions 9.1R14.2 and 22.6R1.2). If patching is delayed, restrict access to the /dana-ws/ and /dana-na/ endpoints via firewall rules.
  2. Enable MFA: Force multi-factor authentication for all VPN users. Attackers exploited stolen credentials—MFA blocks this.
  3. Monitor for Webshells: Check for unexpected files like compcheck.cgi, sslvpn.cgi, or any script in /home/webserver/htdocs/ modified after the exploit date.
  4. Audit Logs: Look for unusual HTTP POST requests to /dana-ws/ with XML payloads. Also check for POST to /dana-na/auth/ with parameters like tzm containing shell commands.
  5. Network Segmentation: Place Ivanti gateways in a DMZ with strict egress filtering. Block outbound connections to unknown IPs.

Detection Rules: YARA and Sigma

YARA Rule for BLINDINGCAN Webshell

rule BLINDINGCAN_webshell {
  meta:
    description = "Detects BLINDINGCAN webshell used in Ivanti zero-day attacks"
    author = "CybernytronX Threat Intel"
    date = "2024-01-15"
  strings:
    $s1 = "compcheck.cgi" ascii wide nocase
    $s2 = "system" ascii wide
    $s3 = "exec" ascii wide
    $s4 = "cmd" ascii wide
  condition:
    all of them and filesize < 10KB
}

Sigma Rule for Exploit Detection

title: Ivanti Zero-Day Exploit Attempt
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects HTTP requests targeting CVE-2024-22024
author: CybernytronX
logsource:
  category: webserver
  product: apache
  service: access_log
detection:
  selection:
    cs-method: 'POST'
    cs-uri-stem:
      - '/dana-ws/servlet/VSMServlet'
      - '/dana-na/auth/' 
    cs-uri-query|contains: 
      - 'xxe'
      - 'system'
      - 'exec'
  condition: selection
falsepositives:
  - Legitimate XML requests from Ivanti clients
level: high

Why This Matters for Your Org

Ivanti gateways are a prime target because they sit at the network edge. A single zero-day can lead to a full breach, as seen in the 2024 campaign. If you have Ivanti devices, treat this as a critical incident—even if you've patched, attackers may have already dropped webshells. Conduct a forensic audit of all gateways. In our experience, most organizations find signs of compromise only after weeks. Don't wait.

We've helped several clients clean up after this exact attack. The key is proactive monitoring and a well-rehearsed incident response plan. Your SOC should be hunting for these indicators immediately.

Frequently Asked Questions

What is the Ivanti zero-day vulnerability?

CVE-2024-22024 is an XML external entity (XXE) injection in Ivanti Connect Secure and Policy Secure gateways, allowing attackers to read local files and bypass authentication.

Which threat actors exploited this zero-day?

APT29 (Cozy Bear), linked to Russian intelligence, was the primary actor. Other groups may have also used it after public disclosure.

How do I detect if my Ivanti gateway is compromised?

Check for unexpected files in /home/webserver/htdocs/, audit HTTP logs for POST requests to /dana-ws/ with XML payloads, and look for outbound connections to suspicious IPs.

What is the patch for CVE-2024-22024?

Ivanti released patches in versions 9.1R14.2 and 22.6R1.2. Apply them immediately. If unable, restrict access to the vulnerable endpoints.

Can the exploit be used without authentication?

Yes, the XXE injection in CVE-2024-22024 does not require authentication, making it particularly dangerous.

How does the defense playbook help my SOC?

It provides concrete steps—patching, log monitoring, YARA rules, and network segmentation—to detect and prevent exploitation.

Need expert help with this?

At CybernytronX, we've helped over 50 organizations secure their perimeter devices against zero-day exploits like this one. Our penetration testing team can audit your Ivanti gateways for hidden webshells, and our Ethereon AI SOC automation platform can detect these attacks in real-time. Don't wait for a breach—contact us at cybernytronx.com/contact.html or learn more about Ethereon AI at cybernytronx.com/ethereon.html.

AK

Ammar Khan — Founder, CybernytronX

Certified Ethical Hacker (CEH), B.S. Cybersecurity, Google Certified. 5+ years pentesting, creator of Ethereon AI threat detection. Has remediated 50+ environments and recovered 20+ compromised domains. Hire CybernytronX →

← Back to all articles