Install
openclaw skills install sandwrapRun untrusted skills safely with soft-sandbox protection. Wraps skills in multi-layer prompt-based defense (~85% attack prevention). Use when: (1) Running third-party skills from unknown sources, (2) Processing untrusted content that might contain prompt injection, (3) Analyzing suspicious files or URLs safely, (4) Testing new skills before trusting them. Supports manual mode ('run X in sandwrap') and auto-wrap for risky skills.
openclaw skills install sandwrapWrap untrusted skills in soft protection. Five defense layers working together block ~85% of attacks. Not a real sandbox (that would need a VM) — this is prompt-based protection that wraps around skills like a safety layer.
Manual mode:
Run [skill-name] in sandwrap [preset]
Auto mode: Configure skills to always run wrapped, or let the system detect risky skills automatically.
| Preset | Allowed | Blocked | Use For |
|---|---|---|---|
| read-only | Read files | Write, exec, message, web | Analyzing code/docs |
| web-only | web_search, web_fetch | Local files, exec, message | Web research |
| audit | Read, write to sandbox-output/ | Exec, message | Security audits |
| full-isolate | Nothing (reasoning only) | All tools | Maximum security |
Each session gets a random 128-bit token. Untrusted content wrapped in unpredictable delimiters that attackers cannot guess.
Four privilege levels enforced:
Only preset-allowed tools available. Violations logged. Three denied attempts = abort session.
Sensitive actions require confirmation. Injection warning signs shown to approver.
Before acting on results, check for:
Configure in sandbox-config.json:
{
"always_sandbox": ["audit-website", "untrusted-skill"],
"auto_sandbox_risky": true,
"risk_threshold": 6,
"default_preset": "read-only"
}
When a skill triggers auto-sandbox:
[!] skill-name requests exec access
Auto-sandboxing with "audit" preset
[Allow full access] [Continue sandboxed] [Cancel]
Attacks that get detected and blocked: