CVE-2026-47392 CrowdStrike LogScale · LogScale

Detect PraisonAI Sandbox Escape via print.__self__ Builtins Leak in execute_code in CrowdStrike LogScale

Detects exploitation of CVE-2026-47392, a critical sandbox escape vulnerability in PraisonAI (praisonaiagents <= 1.6.39, PraisonAI <= 4.6.39). The flaw allows attackers to leak the Python builtins module through `print.__self__` within the `execute_code` subprocess mode, bypassing sandbox restrictions and achieving arbitrary code execution on the host. A public proof-of-concept is available.

MITRE ATT&CK

Tactic
Execution Privilege Escalation Lateral Movement

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
#event_simpleName=ProcessRollup2
| CommandLine = /praisonai|praisonaiagents/i
| CommandLine = /print\.__self__|__builtins__|execute_code|(subprocess.*(shell\s*=\s*True))/
| eval SuspiciousPattern = case(
    CommandLine = /print\.__self__/, "BuiltinsLeak_CVE-2026-47392",
    CommandLine = /__builtins__/, "BuiltinsAccess",
    CommandLine = /subprocess.*shell.*True/, "SandboxShellEscape",
    "SuspiciousExec"
  )
| table timestamp, ComputerName, UserName, CommandLine, ParentBaseFileName, SuspiciousPattern
| sort -timestamp
critical severity high confidence

CrowdStrike Falcon LogScale query detecting CVE-2026-47392 exploitation through process roll-up events, correlating PraisonAI execution with sandbox escape indicators.

Data Sources

CrowdStrike Falcon Endpoint ProtectionFalcon LogScale process telemetry

Required Tables

ProcessRollup2

False Positives & Tuning

  • Legitimate PraisonAI deployments on CrowdStrike-monitored hosts running authorized agent workflows
  • Developer workstations with Falcon sensor where PraisonAI is used for legitimate AI development
  • Red team engagements with documented CrowdStrike exclusions for authorized PoC testing
  • Automated ML pipeline workers invoking PraisonAI with subprocess-based data connectors

Other platforms for CVE-2026-47392


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 available with Pro.

  1. Test 1PraisonAI Builtins Leak via print.__self__ in execute_code

    Expected signal: Process spawn: python3 executing praisonaiagents code_tools module; child process executing 'id' command via os.popen; stdout contains 'SANDBOX_ESCAPE_SUCCESS' followed by uid/gid output

  2. Test 2PraisonAI Sandbox Escape to Reverse Shell

    Expected signal: Process tree: python3 -> praisonaiagents -> bash -c 'bash -i' with network connection to 127.0.0.1:4444; network telemetry showing TCP connection from python process

  3. Test 3PraisonAI Sandbox Escape with Credential File Exfiltration

    Expected signal: File open event on /tmp/lab_creds.txt by python process; outbound HTTP POST to 127.0.0.1:8888 from PraisonAI process; process command line contains __builtins__ and os.system invocation

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections