Detect Azure Machine Learning SSRF Privilege Elevation (CVE-2026-118285) in CrowdStrike LogScale
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
LogScale Detection Query
// df00tech DF00-3c738bd0a3 · https://df00tech.com/detections/CVE-2026-118285 · licence: https://df00tech.com/detections/licence
#event_simpleName=/.*/
| cloud.provider = "Azure" AND cloud.service = "MachineLearning"
| case {
url.full = /(?i)(169\.254\.169\.254|169\.254\.170\.2|metadata\.google\.internal|127\.0\.0\.1|localhost|(10|192\.168|172\.(1[6-9]|2[0-9]|3[0-1]))\.)/ ;
}
| groupBy([caller, url.full, cloud.service], function=count())
| sort(_count, order=desc) CrowdStrike Query Language search for Azure ML activity targeting metadata or internal endpoints via ingested cloud logs.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate internal dataset imports over private IPs.
- Authorized IMDS managed-identity token calls.
- Loopback references during container initialization.
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.
- 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.
- 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.
- 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.
Response Playbook
Triage
- 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.
- 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.
- 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.
- 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
- Disable or revoke the suspicious authenticated user's access to the Azure ML workspace and rotate any credentials associated with that account.
- 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.
- 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
- Export the full AzureDiagnostics / AmlComputeJobEvent and DataStoreEvent records for the implicated workspace, including the raw request URIs, caller identity, and timestamps.
- 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.
- 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.
// 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) ``` 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
From an Azure ML compute instance (lab), issue a request to the Instance Metadata Service to simulate SSRF-based token theft.
Command
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
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.
Register or trigger a datastore/data import job whose source URI points to an internal private IP to simulate SSRF via data ingestion.
Command
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
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.
Submit a training job whose script fetches a loopback URL to emulate SSRF against a co-located service.
Command
powershell -Command "Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:8080/admin' | Out-Null" Cleanup
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.