Skillz implements a layered security approach for tool execution.
WASM tools run in a fully sandboxed WebAssembly environment via Wasmtime:
- Memory Isolation: Each WASM module has its own linear memory, isolated from the host
- No File System Access: By default, WASM tools cannot access the file system
- No Network Access: WASM tools cannot make network requests
- Capability-Based Security: Only explicitly granted capabilities are available
- Deterministic Execution: Same inputs produce same outputs
- Bounds-checking on all memory accesses
- Stack overflow protection
- No direct access to host memory or functions
- Sandboxed WASI implementation
Script tools run as separate processes with several security measures:
- Filtered Environment: Only safe environment variables are passed (HOME, USER, LANG, PATH, TERM)
- Execution Context: Scripts receive structured context via JSON-RPC, not direct access
- Process Isolation: Each script runs in its own process
For enhanced security, Skillz supports Linux sandboxing tools:
# Enable bubblewrap sandboxing
export SKILLZ_SANDBOX=bubblewrapFeatures:
- Linux namespace isolation (PID, network, mount, user)
- Read-only bind mounts for system directories
- Workspace roots are writable
- Network disabled by default
# Enable firejail sandboxing
export SKILLZ_SANDBOX=firejailFeatures:
- Seccomp system call filtering
- Private /tmp
- No root privileges
- Memory and time limits
- Whitelist-based file access
# Enable nsjail sandboxing (most restrictive)
export SKILLZ_SANDBOX=nsjailFeatures:
- Comprehensive namespace isolation
- Cgroup resource limits
- Strict capability dropping
- Suitable for multi-tenant environments
# Allow network access in sandboxed scripts
export SKILLZ_SANDBOX_NETWORK=1- Python tools use isolated
venvenvironments - Node.js tools use isolated
node_modulesdirectories - Dependencies are installed per-tool, not globally
- Environment paths are stored in tool configuration
- Dependencies are installed from public registries (PyPI, npm)
- Supply chain attacks are possible
- Review dependencies before adding them
- Validate all inputs - Never trust arguments blindly
- Use minimal dependencies - Fewer deps = smaller attack surface
- Handle errors gracefully - Don't leak sensitive info in errors
- Follow least privilege - Request only needed capabilities
-
Use sandbox mode on untrusted tools
export SKILLZ_SANDBOX=firejail # or bubblewrap, nsjail
-
Restrict workspace roots
- Only add directories the AI actually needs
- Avoid adding home directory or system paths
-
Review tools before enabling
- Check
~/tools/manifest.jsonfor registered tools - Review script code in
~/tools/scripts/
- Check
-
Monitor resource usage
- WASM tools have bounded memory
- Script tools can be limited via sandbox
-
Keep Skillz updated
cargo install skillz --force
- The MCP client (Cursor, Claude Desktop, etc.)
- The user approving tool creation
- AI-generated code (reviewed by user before execution)
- Registered tools (persisted and can be audited)
- External dependencies (pip/npm packages)
- Network responses (when network is enabled)
Please report security vulnerabilities via GitHub Security Advisories: https://github.com/Algiras/skillz/security/advisories
Do not open public issues for security vulnerabilities.
| Feature | WASM Tools | Script Tools (Default) | Script Tools (Sandbox) |
|---|---|---|---|
| Memory Isolation | ✅ Full | ❌ Process only | ✅ Namespace |
| File System | ❌ None | ✅ Whitelist | |
| Network | ❌ None | ✅ Disabled | |
| System Calls | ✅ WASI only | ❌ All allowed | ✅ Seccomp |
| Resource Limits | ✅ Wasmtime | ❌ None | ✅ Cgroups |