Skip to main content
Updated in v5.1.0: The legacy CodeExecutor class is now hard-blocked. All code execution uses SecureCodeExecutor exclusively. See the changelog for migration details.
The Code Engine uses CrossHair, a symbolic execution tool for Python, to verify code correctness without running it.

Capabilities


Quick start


Safety verification

Division by zero

Null pointer / None access

Index out of bounds


Contract verification

Preconditions

Postconditions

Full contract


Security scanning

SQL injection

Command injection

Remote code execution (pipe-to-shell)

The Code Engine detects curl or wget commands piped into a shell through subprocess. Detection uses two layers:
  1. Regex scanning matches known attack patterns across the full source text, including multi-line invocations.
  2. AST analysis catches obfuscated variants that use f-strings, list arguments, or variable interpolation.
The engine applies two severity tiers:
  • Strict matchsubprocess call with curl/wget piped to bash/sh and shell=True. Message: "Remote code execution via shell=True with curl/wget pipe to shell."
  • Heuristic match — same pipe-to-shell pattern without shell=True. Message: "Suspicious curl/wget pipe-to-shell pattern detected (heuristic)."
Both tiers are reported as CRITICAL severity with issue type remote_code_execution.
In addition to pipe (|), the detection also matches commands chained with ; or &&:
This check covers subprocess.run, subprocess.call, subprocess.Popen, and subprocess.check_output. The AST-based analysis catches patterns that span multiple lines or use dynamic string construction such as f-strings.

Complexity analysis


Language support


Configuration


Performance


Next steps