CVE-2026-1731 Microsoft Sentinel · KQL

Detect BeyondTrust Remote Support Pre-Auth Remote Code Execution in Microsoft Sentinel

CVE-2026-1731 is a critical (CVSS 9.8) pre-authentication remote code execution vulnerability in BeyondTrust Remote Support (RS) and certain older versions of Privileged Remote Access (PRA). By sending specially crafted requests, an unauthenticated remote attacker can execute operating system commands in the context of the web application site user. BeyondTrust Remote Support is widely deployed in enterprise and SMB environments for helpdesk and IT support operations, creating direct privileged access to end-user machines. This vulnerability is listed in the CISA Known Exploited Vulnerabilities catalogue, with active exploitation observed in the wild (GreyNoise confirmed reconnaissance scanning). A working proof-of-concept exploit is publicly available on GitHub. Successful exploitation provides attackers with a foothold in the support infrastructure, enabling lateral movement to all machines with active or historical BeyondTrust support sessions.

MITRE ATT&CK

Tactic
Initial Access Execution

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// CVE-2026-1731 — BeyondTrust Remote Support Pre-Auth RCE
// Detect exploitation attempts against BeyondTrust RS/PRA web interface
// via web server access logs, IDS alerts, and endpoint telemetry
let BeyondTrustPorts = dynamic([80, 443, 8080, 8443]);
let RCEIndicatorPaths = dynamic([
    "/beyondtrust", "/support", "/remote", "/api/",
    "/login", "/session", "/websocket"
]);
let SuspiciousUserAgents = dynamic([
    "python-requests", "curl", "wget", "Go-http-client",
    "Nuclei", "zgrab", "masscan"
]);
union CommonSecurityLog, W3CIISLog
| where TimeGenerated > ago(24h)
| where DestinationPort in (BeyondTrustPorts)
    and (DeviceVendor has_any ("BeyondTrust", "Bomgar")
         or RequestURL has_any ("/beyondtrust", "/remote", "/login")
         or csUriStem has_any ("/beyondtrust", "/remote", "/login"))
| extend UserAgent = coalesce(RequestClientApplication, csUserAgent)
| where UserAgent has_any (SuspiciousUserAgents)
    or Message has_any ("command injection", "os.system", "exec", "shell", "/bin/sh", "cmd.exe")
    or (RequestMethod in ("POST", "PUT") and RequestURL has_any (RCEIndicatorPaths))
| project TimeGenerated, SourceIP, DestinationIP, DestinationPort,
    RequestURL, RequestMethod, UserAgent, Message, AdditionalExtensions
| extend ThreatIndicator = "CVE-2026-1731-BeyondTrust-PreAuthRCE"
| sort by TimeGenerated desc
critical severity medium confidence

Detects exploitation attempts against BeyondTrust Remote Support by monitoring web access logs and IDS alerts for suspicious requests to BeyondTrust endpoints from scanner user agents, command injection indicators in request bodies, and anomalous POST requests to BeyondTrust API paths. Also monitors endpoint security logs for command execution in the BeyondTrust web application context.

Data Sources

CommonSecurityLog (WAF/IDS/IPS)W3CIISLog (IIS web server logs)SecurityEvent (Windows event logs on BeyondTrust host)DeviceProcessEvents (Microsoft Defender for Endpoint)

Required Tables

CommonSecurityLogDeviceProcessEvents

False Positives & Tuning

  • Legitimate vulnerability scanners or pen test tools probing BeyondTrust during authorised assessments
  • BeyondTrust REST API clients with non-standard user agent strings
  • Load balancer health checks against BeyondTrust web interface
Download portable Sigma rule (.yml)

Other platforms for CVE-2026-1731


Testing Methodology

Validate this detection against 1 adversary technique 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 1Send crafted POST request to BeyondTrust login endpoint

    Expected signal: Web server access log: POST /login from attacker IP. Process creation: w3wp.exe or web daemon spawning cmd.exe or /bin/sh.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections