Skip to content
CVE-2026-118285 Splunk · SPL

Detect Azure Machine Learning SSRF Privilege Elevation (CVE-2026-118285) in Splunk

Detects potential exploitation of CVE-2026-118285, a server-side request forgery (SSRF, CWE-918) vulnerability in Azure Machine Learning that allows an authorized attacker to elevate privileges over a network. An attacker with authenticated access to an Azure ML workspace can craft requests that cause the ML service to issue server-side HTTP requests to internal resources, most critically the Azure Instance Metadata Service (IMDS, 169.254.169.254), to steal managed-identity tokens and pivot to higher-privileged Azure resources. This detection surfaces anomalous outbound requests originating from Azure ML compute/service identities to metadata, link-local, loopback, and internal ranges, as well as unusual data-ingestion/import jobs pointing at internal or metadata URLs.

MITRE ATT&CK

Tactic
Privilege Escalation Credential Access Exfiltration

SPL Detection Query

Splunk (SPL)
spl
``` df00tech DF00-3c738bd0a3 · https://df00tech.com/detections/CVE-2026-118285 · licence: https://df00tech.com/detections/licence ```
index=azure sourcetype="mscs:azure:eventhub" (category="AmlComputeJobEvent" OR category="DataStoreEvent" OR category="AmlRunStatusChangedEvent") resourceProvider="MICROSOFT.MACHINELEARNINGSERVICES"
| eval target=coalesce(Uri, RequestUri, properties)
| rex field=target "(?i)(?<host>169\.254\.\d+\.\d+|127\.\d+\.\d+\.\d+|10\.\d+\.\d+\.\d+|192\.168\.\d+\.\d+|172\.(1[6-9]|2[0-9]|3[0-1])\.\d+\.\d+|localhost|metadata\.google\.internal)"
| where isnotnull(host)
| stats count min(_time) as firstSeen max(_time) as lastSeen values(target) as targets by caller resourceId category
| sort - count
critical severity medium confidence

Identifies Azure ML job/datastore events whose target URI resolves to metadata, loopback, or internal RFC1918 addresses, consistent with SSRF exploitation.

Data Sources

Azure Machine Learning Diagnostic LogsAzure Event Hub

Required Sourcetypes

mscs:azure:eventhubmscs:azure:diagnostic

False Positives & Tuning

  • Pipelines legitimately pulling datasets from private-endpoint-backed internal storage over RFC1918 addresses.
  • Platform container bootstrap referencing loopback.
  • Authorized managed-identity token retrieval from IMDS by compute nodes.

Other platforms for CVE-2026-118285


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 further down this page.

  1. Test 1 Simulated SSRF to Azure IMDS from ML compute

    Expected signal: Outbound HTTP request from the ML compute identity to 169.254.169.254 captured in Azure diagnostic / network logs.

  2. Test 2 Datastore import pointing at internal RFC1918 host

    Expected signal: DataStoreEvent / AmlComputeJobEvent recording a datastore URI in the 10.0.0.0/8 range.

  3. Test 3 SSRF to loopback service from training job

    Expected signal: Job event or network log showing an outbound request to 127.0.0.1 from the ML job context.

Last updated: Research depth: standard
References (1)

Response Playbook

Triage

  1. Confirm the Azure ML diagnostic event is genuine: identify the workspace, compute target, and the authenticated identity (caller app ID / UPN) that initiated the job or datastore operation referencing an internal/metadata URI.
  2. Inspect the exact target URI. Requests to 169.254.169.254 (Azure IMDS), 169.254.170.2, loopback, or RFC1918 ranges from an ML job are high-signal for SSRF; cross-check whether the workspace legitimately uses private endpoints.
  3. Determine whether the request succeeded and returned data (e.g. a managed-identity token). Review subsequent token usage and Azure AD sign-in logs for the ML managed identity around the same timeframe.
  4. Assess the privilege level of the ML workspace managed identity and compute identity, enumerate its Azure RBAC role assignments to understand the potential blast radius of a stolen token.

Containment

  1. Disable or revoke the suspicious authenticated user's access to the Azure ML workspace and rotate any credentials associated with that account.
  2. Rotate/refresh the affected managed identity by removing and re-adding its role assignments, and revoke outstanding refresh tokens for the identity via Azure AD to invalidate any stolen tokens.
  3. Restrict workspace outbound network access: enable managed VNet isolation / NSG egress rules blocking link-local (169.254.0.0/16) and unapproved internal ranges from compute.

Evidence Collection

  1. Export the full AzureDiagnostics / AmlComputeJobEvent and DataStoreEvent records for the implicated workspace, including the raw request URIs, caller identity, and timestamps.
  2. Collect Azure AD sign-in and managed-identity token-issuance logs for the ML identity to establish whether a stolen token was used against other resources.
  3. Snapshot the compute instance/job definition and any user-supplied scripts or datastore configurations that specified the malicious URI for forensic review.

Escalation Criteria

  • !Escalate to the cloud incident response team if evidence shows a managed-identity token was retrieved from IMDS and subsequently used against other Azure resources.
  • !Escalate to the Azure subscription owner / security lead if the compromised identity holds elevated RBAC roles (Contributor/Owner) over additional subscriptions or resource groups.
  • !Escalate externally to Microsoft (MSRC) if exploitation is confirmed and reference CVE-2026-118285 for coordinated response and patch verification.

Investigation Guide

Forensic Artifacts

  • >AzureDiagnostics AmlComputeJobEvent / DataStoreEvent records containing the SSRF target URI.
  • >Azure AD managed-identity token issuance and sign-in logs for the ML workspace identity.
  • >Compute job definitions, notebook cells, and datastore configuration that specified the internal/metadata URL.

Tuning Guidance

Baseline which Azure ML workspaces legitimately use private endpoints / RFC1918 datastores and allowlist those specific hosts to reduce noise. Keep metadata (169.254.169.254, 169.254.170.2) and loopback matches at high severity with no allowlisting, as there is rarely a legitimate reason for an ML job to contact IMDS by URI. Correlate hits with subsequent managed-identity token usage to prioritize true positives.


Hunting Queries

Hunts across Azure ML events for any reference to IMDS or loopback endpoints grouped by caller identity to spot anomalous SSRF attempts.

Hunting — KQL
kql
// df00tech DF00-3c738bd0a3 · https://df00tech.com/detections/CVE-2026-118285 · licence: https://df00tech.com/detections/licence
AzureDiagnostics | where ResourceProvider == "MICROSOFT.MACHINELEARNINGSERVICES" | extend U = tostring(column_ifexists("Uri_s","")) | where U has "169.254.169.254" or U has_any ("127.0.0.1","localhost") | summarize count() by Caller_s, U, bin(TimeGenerated, 1h)
Hunting — SPL
spl
``` df00tech DF00-3c738bd0a3 · https://df00tech.com/detections/CVE-2026-118285 · licence: https://df00tech.com/detections/licence ```
index=azure resourceProvider="MICROSOFT.MACHINELEARNINGSERVICES" | eval t=coalesce(Uri,RequestUri) | search t="*169.254.169.254*" OR t="*localhost*" | stats count by caller t

Atomic Red Team Tests

Test 1 Simulated SSRF to Azure IMDS from ML compute
linux

From an Azure ML compute instance (lab), issue a request to the Instance Metadata Service to simulate SSRF-based token theft.

Command

bash
curl -s -H "Metadata: true" "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/"

Cleanup

bash
unset any exported token variables: unset ACCESS_TOKEN; history -c

Expected Telemetry

Outbound HTTP request from the ML compute identity to 169.254.169.254 captured in Azure diagnostic / network logs.

Expected Detection

KQL/SPL rule matches the IMDS target URI reference in Azure ML diagnostic events.

Test 2 Datastore import pointing at internal RFC1918 host
linux

Register or trigger a datastore/data import job whose source URI points to an internal private IP to simulate SSRF via data ingestion.

Command

bash
az ml data create --name ssrf-test --type uri_file --path "http://10.0.0.5/secret" --workspace-name lab-ws --resource-group lab-rg

Cleanup

bash
az ml data archive --name ssrf-test --workspace-name lab-ws --resource-group lab-rg

Expected Telemetry

DataStoreEvent / AmlComputeJobEvent recording a datastore URI in the 10.0.0.0/8 range.

Expected Detection

Rule flags the internal RFC1918 URI in the datastore event.

Test 3 SSRF to loopback service from training job
windows

Submit a training job whose script fetches a loopback URL to emulate SSRF against a co-located service.

Command

powershell
powershell -Command "Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:8080/admin' | Out-Null"

Cleanup

powershell
powershell -Command "Remove-Item Env:\TOKEN -ErrorAction SilentlyContinue"

Expected Telemetry

Job event or network log showing an outbound request to 127.0.0.1 from the ML job context.

Expected Detection

Rule matches the loopback (127.0.0.1/localhost) reference in the ML event.

Related Detections