CVE-2026-1340 Microsoft Sentinel · KQL

Detect Ivanti EPMM Code Injection Exploitation (CVE-2026-1340) in Microsoft Sentinel

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

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
let SuspiciousEPMMPaths = dynamic(["/mifs/", "/mi/", "/api/v1/", "/api/v2/"]);
let InjectionPatterns = dynamic(["eval(", "exec(", "Runtime.exec", "ProcessBuilder", "ScriptEngine", "javax.script", "groovy", "ognl", "${{", "#{{"]);
union isfuzzy=true
(
    CommonSecurityLog
    | where DeviceVendor has_any ("Ivanti", "MobileIron")
    | where RequestURL has_any (SuspiciousEPMMPaths)
    | where Message has_any (InjectionPatterns) or RequestURL has_any (InjectionPatterns)
    | project TimeGenerated, SourceIP, DestinationIP, RequestURL, RequestMethod, Message, DeviceVendor, DeviceProduct, EventOutcome
),
(
    W3CIISLog
    | where csUriStem has_any (SuspiciousEPMMPaths)
    | where csUriQuery has_any (InjectionPatterns) or csUriStem has_any (InjectionPatterns)
    | project TimeGenerated, cIP, csUriStem, csUriQuery, scStatus, csMethod
),
(
    AzureDiagnostics
    | where Category == "ApplicationGatewayFirewallLog"
    | where requestUri_s has_any (SuspiciousEPMMPaths)
    | where Message has_any (InjectionPatterns) or details_message_s has_any (InjectionPatterns)
    | project TimeGenerated, clientIp_s, requestUri_s, action_s, Message
)
| extend AccountCustomEntity = SourceIP, IPCustomEntity = SourceIP
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, RequestURL, RequestMethod
| where EventCount >= 1
| order by LastSeen desc
critical severity medium confidence

Detects HTTP requests to Ivanti EPMM endpoints containing code injection patterns in request URLs, parameters, or log messages. Covers CommonSecurityLog (network security appliances), W3C IIS logs, and Azure WAF logs.

Data Sources

CommonSecurityLogW3CIISLogAzureDiagnostics

Required Tables

CommonSecurityLogW3CIISLogAzureDiagnostics

False Positives & Tuning

  • Legitimate administrative scripts or automation tools interacting with EPMM API that use dynamic expressions in query parameters
  • Security scanners or vulnerability assessment tools performing authorized scans of the EPMM management interface
  • EPMM internal health check or monitoring agents that generate similar URL patterns
  • Penetration testing or red team exercises with prior authorization

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