Detect Crawl4AI AST Sandbox Escape via gi_frame.f_back Chain - Pre-Auth RCE in Microsoft Sentinel
Detects exploitation of CVE-2026-53753, a critical pre-authentication remote code execution vulnerability in Crawl4AI (<=0.8.6) Docker API. The vulnerability allows attackers to escape Python AST-based sandboxing via generator frame introspection (gi_frame.f_back chain), enabling arbitrary code execution without authentication. CVSS 9.8 critical; public PoC available.
MITRE ATT&CK
KQL Detection Query
union DeviceNetworkEvents, CommonSecurityLog
| where TimeGenerated > ago(24h)
| where (RequestURL has "/execute" or RequestURL has "/run" or RequestURL has "/crawl") and (RequestURL has "crawl4ai" or DestinationPort in (11235, 8080, 8000))
| join kind=leftouter (
DeviceProcessEvents
| where TimeGenerated > ago(24h)
| where InitiatingProcessFileName in~ ("python3", "python", "uvicorn", "gunicorn")
| where ProcessCommandLine has_any ("gi_frame", "f_back", "__globals__", "__builtins__", "os.system", "subprocess", "__import__")
| project DeviceId, ProcessCommandLine, InitiatingProcessCommandLine, Timestamp
) on DeviceId
| where isnotempty(ProcessCommandLine)
| project TimeGenerated, DeviceId, DeviceName, RequestURL, ProcessCommandLine, InitiatingProcessCommandLine
| extend AlertReason = "Crawl4AI sandbox escape pattern detected via AST frame introspection" Detects HTTP requests to Crawl4AI API endpoints correlated with Python process execution containing sandbox escape patterns (gi_frame, f_back, __globals__, __builtins__) characteristic of CVE-2026-53753 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate Python debugging tools that inspect generator frames during development
- Security researchers performing authorized penetration testing against Crawl4AI instances
- Internal automation scripts that legitimately call Crawl4AI API endpoints
- Container health checks or monitoring agents polling Crawl4AI service endpoints
Other platforms for CVE-2026-53753
Testing Methodology
Validate this detection against 4 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.
- Test 1CVE-2026-53753 Basic Sandbox Escape via gi_frame
Expected signal: HTTP POST to /execute endpoint followed by Python process executing os.system('id') and writing to /tmp/crawl4ai_pwned.txt; child process of uvicorn/gunicorn spawning /bin/sh
- Test 2CVE-2026-53753 Remote Code Execution with Reverse Shell
Expected signal: Outbound TCP connection from Crawl4AI container to attacker IP on port 4444; subprocess.Popen spawning bash with stdin redirected to network socket
- Test 3CVE-2026-53753 Credential Exfiltration from Container Environment
Expected signal: HTTP POST with gi_frame payload followed by Python reading os.environ; response containing environment variable key-value pairs potentially including API_KEY, DATABASE_URL, VAULT_TOKEN
- Test 4CVE-2026-53753 Unauthenticated Version Fingerprinting
Expected signal: Unauthenticated HTTP GET to /health or root endpoint returning Crawl4AI version information without requiring credentials
Unlock Pro Content
Get the full detection package for CVE-2026-53753 including response playbook, investigation guide, and atomic red team tests.