Detect Azure Portal Cross-Site Scripting Spoofing (CVE-2026-70305) in Google Chronicle
Detects potential exploitation of CVE-2026-70305, a cross-site scripting (CWE-79) vulnerability in the Microsoft Azure Portal that allows an unauthorized attacker to perform spoofing over a network. Exploitation occurs in the browser against Azure Portal surfaces, so telemetry is strongest at the network edge, proxy, and sign-in layers. Look for injected script payloads in Azure Portal URLs and referers, resource-name or tag fields containing HTML or JavaScript markup, suspicious redirects or session-token access after portal navigation, and Azure AD sign-in or audit events that correlate user interaction with portal spoofing attempts. CVSS 9.6. No public exploit is reported as of disclosure.
MITRE ATT&CK
- Tactic
- Initial Access Credential Access
YARA-L Detection Query
// df00tech DF00-218ec1e559 · https://df00tech.com/detections/CVE-2026-70305 · licence: https://df00tech.com/detections/licence
rule azure_portal_xss_cve_2026_70305 {
meta:
author = "Argus Detection Platform"
description = "Detects XSS payloads in Azure Portal traffic (CVE-2026-70305)"
severity = "HIGH"
events:
$e.network.http.referral_url = /portal\.azure\.(com|net)/ nocase
(
$e.target.url = /(<script|onerror=|onload=|javascript:|%3Cscript|document\.cookie|onmouseover=|<svg|<img |fromcharcode|&#x)/ nocase or
$e.network.http.user_agent = /<script|javascript:/ nocase
)
$user = $e.principal.user.userid
match:
$user over 1h
condition:
$e
} Chronicle YARA-L rule matching Azure Portal HTTP events containing XSS payload markers tied to CVE-2026-70305.
Data Sources
Required Tables
False Positives & Tuning
- Authorized security testing injecting XSS vectors
- Benign URLs with encoded angle brackets
- Legitimate deep links containing reserved characters
Other platforms for CVE-2026-70305
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 Reflected XSS probe in Azure Portal deep link
Expected signal: Proxy/firewall HTTP log entry to portal.azure.com with URL containing %3Cscript%3E...document.cookie
- Test 2 Stored XSS marker in Azure resource tag
Expected signal: AuditLogs entry (OperationName: Update tags) with TargetResources containing the onerror payload
- Test 3 XSS payload in portal search query via browser automation
Expected signal: Endpoint NetworkConnect/HTTP event to portal.azure.com with URL containing %3Csvg/onload%3Dalert(1)%3E
Response Playbook
Triage
- Confirm whether the Azure Portal tenant is patched: Azure Portal is a Microsoft-hosted service, so verify Microsoft has applied the fix per the MSRC advisory and check whether any custom portal extensions or embedded dashboards are in use.
- Extract the matched URL/field and URL-decode it to determine whether it contains a genuine executable payload (e.g. <script>, event handlers, document.cookie exfiltration) versus a benign string.
- Identify the affected user principal and session: correlate the alert time with Azure AD sign-in logs to determine whether a privileged account interacted with the crafted content.
- Determine the delivery vector, reflected (crafted link clicked), stored (malicious resource name/tag/note rendered in portal), or spoofed content, by reviewing where the payload originated.
Containment
- Revoke active Azure AD sessions and refresh tokens for any affected or privileged user who rendered the payload (Revoke-AzureADUserAllRefreshToken / Revoke-MgUserSignInSession).
- Block the malicious source IPs and any attacker-controlled exfiltration domains at the proxy/firewall, and quarantine or rename any Azure resources whose names/tags contain injected markup.
- Temporarily enforce Conditional Access step-up MFA and restrict portal access to compliant devices for high-privilege roles until the vector is confirmed closed.
Evidence Collection
- Preserve full proxy/firewall HTTP logs (URL, referer, user-agent, request body) and Azure AD AuditLogs/SignInLogs entries for the affected user and timeframe.
- Capture the raw resource definitions, tags, and audit entries containing the injected payload before remediation (ARM export / Get-AzResource JSON).
- Collect browser/session artifacts where feasible: HAR captures, session cookie scope, and any evidence of token or cookie access following payload render.
Escalation Criteria
- !Escalate to incident response if the payload shows evidence of session token/cookie theft or if a Global Administrator or other privileged role rendered the content.
- !Escalate to Microsoft/MSRC and your TAM if exploitation against the hosted portal is confirmed, as remediation depends on the service provider.
- !Escalate if injected content persists in stored Azure resources (stored XSS) affecting multiple users or tenants.
Investigation Guide
Forensic Artifacts
- >
Proxy/firewall HTTP request logs containing the XSS payload in URL or referer - >
Azure AD AuditLogs/SignInLogs showing the session and any subsequent anomalous token use - >
Azure resource definitions, tags, and ARM audit records holding stored payload content - >
Browser HAR captures and session cookie scope for the affected user
Tuning Guidance
Baseline the normal character set of your tenant's Azure resource names and tags; most legitimate traffic will never contain < , > or script-related tokens, so a low false-positive floor is expected. Whitelist known authorized scanner source IPs and penetration-testing windows to suppress sanctioned XSS probes. Tighten by URL-decoding before matching (double-decode where proxies pass encoded payloads) and by requiring the pattern in the URL/referer rather than user-supplied search terms. Raise severity when a privileged Azure AD role is the affected principal or when token/cookie access follows the render.
Hunting Queries
Hunts across all Azure Portal-bound traffic for URL-decoded XSS payload markers to surface historic exploitation attempts of CVE-2026-70305.
// df00tech DF00-218ec1e559 · https://df00tech.com/detections/CVE-2026-70305 · licence: https://df00tech.com/detections/licence
CommonSecurityLog | where RequestURL has "portal.azure" | extend d=url_decode(RequestURL) | where d matches regex @"(?i)(<script|onerror=|javascript:|document\.cookie|%3Cscript)" | project TimeGenerated, SourceUserName, SourceIP, d ``` df00tech DF00-218ec1e559 · https://df00tech.com/detections/CVE-2026-70305 · licence: https://df00tech.com/detections/licence ```
index=proxy dest_host="*portal.azure.*" | eval d=urldecode(url) | regex d="(?i)(<script|onerror=|javascript:|document\.cookie|%3Cscript)" | table _time user src_ip d Atomic Red Team Tests
Simulates a crafted reflected-XSS Azure Portal URL as would be delivered in phishing, generating proxy telemetry with an encoded script payload.
Command
curl -s -o /dev/null 'https://portal.azure.com/#@contoso.onmicrosoft.com/resource/subscriptions/00000000-0000-0000-0000-000000000000/overview?q=%3Cscript%3Ealert(document.cookie)%3C%2Fscript%3E' Cleanup
echo 'No local artifacts to clean; proxy log entry only' Expected Telemetry
Proxy/firewall HTTP log entry to portal.azure.com with URL containing %3Cscript%3E...document.cookie
Expected Detection
KQL/SPL/EQL rules match the URL-decoded <script> + document.cookie markers against the portal host.
Creates (lab subscription only) an Azure resource tag containing an HTML/script payload to simulate stored XSS rendered in the portal and surfaced via Azure AD audit logs.
Command
az tag create --resource-id "/subscriptions/<lab-sub>/resourceGroups/rg-lab" --tags note="<img src=x onerror=alert(document.cookie)>" Cleanup
az tag delete --resource-id "/subscriptions/<lab-sub>/resourceGroups/rg-lab" --yes Expected Telemetry
AuditLogs entry (OperationName: Update tags) with TargetResources containing the onerror payload
Expected Detection
KQL AuditLogs branch matches the onerror=/img payload markers in TargetResources.
Drives a headless browser to submit a script payload into an Azure Portal search parameter, generating endpoint network telemetry for CQL/Chronicle detection.
Command
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --headless --disable-gpu --dump-dom 'https://portal.azure.com/?feature.search=%3Csvg%2Fonload%3Dalert(1)%3E' > /tmp/portal_xss.html Cleanup
rm -f /tmp/portal_xss.html Expected Telemetry
Endpoint NetworkConnect/HTTP event to portal.azure.com with URL containing %3Csvg/onload%3Dalert(1)%3E
Expected Detection
CrowdStrike CQL and Chronicle YARA-L rules match the svg/onload payload on the portal host.