CVE-2026-1340 Elastic Security · Elastic

Detect Ivanti EPMM Code Injection Exploitation (CVE-2026-1340) in Elastic Security

Detects exploitation attempts targeting CVE-2026-1340, a code injection vulnerability (CWE-94) in Ivanti Endpoint Manager Mobile (EPMM). This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog and allows remote attackers to inject and execute arbitrary code via the EPMM management interface. Successful exploitation may lead to full device management compromise, lateral movement, and data exfiltration from enrolled mobile devices.

MITRE ATT&CK

Tactic
Initial Access Execution Lateral Movement

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by source.ip with maxspan=5m
  [network where destination.port in (443, 8443, 80, 8080)
   and url.path : ("/mifs/*", "/mi/*", "/api/v1/*", "/api/v2/*")
   and (
     url.query : ("*eval(*", "*exec(*", "*groovy*", "*ognl*", "*ProcessBuilder*", "*ScriptEngine*", "*Runtime.exec*", "*${*", "*#{*")
     or url.path : ("*eval(*", "*exec(*", "*groovy*", "*ognl*", "*ProcessBuilder*")
   )
  ]
  [network where destination.port in (443, 8443, 80, 8080)
   and http.response.status_code in (200, 201, 302)
  ]
critical severity medium confidence

EQL sequence detection that correlates injection-pattern requests to EPMM endpoints followed by successful HTTP responses, indicating potential successful code injection exploitation.

Data Sources

Elastic APMFilebeat (Web server logs)Packetbeat

Required Tables

logs-*filebeat-*packetbeat-*

False Positives & Tuning

  • Legitimate API integrations using dynamic query construction that mimics injection syntax
  • Authorized red team or penetration testing activities
  • URL-encoded data payloads from MDM client agents that contain script-like strings
  • Monitoring tools performing scripted health checks with complex query parameters

Other platforms for CVE-2026-1340


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1EPMM API Endpoint Code Injection Pattern Probe

    Expected signal: Web server access logs will show POST requests to /mifs/j_spring_security_check and GET requests to /api/v1/configuration/users with URL-encoded injection patterns. Network security appliances should log the requests with high-severity signatures. Host-based EDR should not show process anomalies for a non-successful probe.

  2. Test 2Simulate Java Process Spawning Shell After EPMM Exploitation

    Expected signal: Process creation events showing java spawning /bin/sh as a child process. EDR telemetry should capture the full process tree: [parent] -> java -> sh -> id/hostname/whoami. Command line arguments visible in process creation logs.

  3. Test 3EPMM Reconnaissance — Unauthenticated API Enumeration

    Expected signal: Web access logs showing sequential requests from a single IP to multiple EPMM administrative paths within a short time window. Firewall or IDS/IPS logs may flag the scanning pattern. HTTP response codes (200, 302, 401, 403) visible in logs.

Unlock Pro Content

Get the full detection package for CVE-2026-1340 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections