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.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 detectscurl or wget commands piped into a shell through subprocess. Detection uses two layers:
- Regex scanning matches known attack patterns across the full source text, including multi-line invocations.
- AST analysis catches obfuscated variants that use f-strings, list arguments, or variable interpolation.
- Strict match —
subprocesscall withcurl/wgetpiped tobash/shandshell=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)."
CRITICAL severity with issue type remote_code_execution.
|), 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
- SQL engine - Verify SQL queries
- Logic engine - Verify logical constraints
- Architecture - System overview