Quick Start
How It Works
| Phase | Action | Default Behavior |
|---|---|---|
| Startup | Check environment variables | Block dangerous features |
| Request | Validate security permissions | Allow only safe operations |
| Execute | Run with appropriate restrictions | Fail-safe mode active |
Environment Variables
PRAISONAI_ALLOW_LOCAL_TOOLS
Controls automatic loading oftools.py files from the current working directory.
Security Risk: Remote Code Execution (RCE) via malicious tools.py files
- Tool resolver system
- Agent API calls
- Real-time UI interactions
PRAISONAI_ALLOW_JOB_WORKFLOWS
Controls execution of job and hybrid workflow types that can run shell commands and scripts. Security Risk: Remote Code Execution (RCE) via malicious YAML workflows- Job workflows: Direct shell, Python, and script execution
- Hybrid workflows: Combined agent + job execution
PRAISONAI_BROWSER_ALLOW_REMOTE
Controls browser server binding to non-loopback interfaces (0.0.0.0, remote IPs). Security Risk: WebSocket session hijacking and unauthorized browser access- Binds to
127.0.0.1(localhost only) - Blocks attempts to bind to
0.0.0.0or remote interfaces
Common Patterns
- Development Mode
- Production Mode
- Docker Deployment
Migration Guide
Upgrading from Vulnerable Versions
Identify Usage
Check if you use any of these features:
- Local
tools.pyfiles - Job or hybrid workflows with shell/script execution
- Browser server binding to
0.0.0.0
Best Practices
π Principle of Least Privilege
π Principle of Least Privilege
Only enable environment variables for features you actively use. Each variable increases your attack surface.
π’ Production Environment Isolation
π’ Production Environment Isolation
Never enable dangerous variables in production unless absolutely necessary. Use staging environments for testing.
π File System Security
π File System Security
When
PRAISONAI_ALLOW_LOCAL_TOOLS=true, ensure your working directory doesnβt contain untrusted tools.py files.π Network Security
π Network Security
When
PRAISONAI_BROWSER_ALLOW_REMOTE=true, use firewalls and authentication to protect browser endpoints.Security Advisories
These environment variables address the following security vulnerabilities:| Advisory | Severity | Description | Environment Variable |
|---|---|---|---|
| GHSA-g985-wjh9-qxxc | High | RCE via Automatic tools.py Import | PRAISONAI_ALLOW_LOCAL_TOOLS |
| GHSA-vc46-vw85-3wvm | Critical | RCE via job workflow YAML | PRAISONAI_ALLOW_JOB_WORKFLOWS |
| GHSA-8x8f-54wf-vv92 | Critical | WebSocket session hijacking | PRAISONAI_BROWSER_ALLOW_REMOTE |
- praisonai:
>=0.0.57 - praisonaiagents:
>=0.0.23
Related
Guardrails
Content filtering and safety controls
Permissions
Agent permission management system

