/gabbe-security:agent-sandboxingfrom gabbe-security
Enforces least-privilege isolation for agents touching OS, shell, or filesystem. Locks filesystem, network, process, and inference routing at sandbox creation time to bound blast radius from prompt injection.
Ships in gabbe-security. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Provide the intrinsic, infrastructure-level isolation layer for any agent that touches a local OS, shell, or filesystem. Prompt-injection and guardrail rails (prompt-injection-defense.skill, ai-safety-guardrails.skill) reduce the probability that an agent is subverted; sandboxing bounds the consequence if one is. The design assumption is assumed compromise: the planner LLM may already be injected, so the controls must hold even when the agent actively tries to relax them.
The defining property is that all four isolation domains are LOCKED at sandbox-creation time and are immutable for the lifetime of the run. A prompt-injected agent cannot widen its own filesystem scope, open new egress, escalate privilege, or re-route inference, because those decisions were made by the host before the agent's non-deterministic logic ever ran. Container and microVM runtimes (gVisor, Kata, Firecracker) implement exactly this shape — a thin, host-enforced boundary the workload cannot reach around.
Phase and gate: S02 (policy design), S06 and S07 (escape checklist), again after any change of tools. Evidence: the sandbox policy document and the filled escape checklist in docs/security/. Part of security-baseline.skill.md for tier 3 AI agents.
Declare the four isolation policies (deny-by-default). Author a single declarative policy covering all four domains. Everything not explicitly allowed is denied.
GET /v1/models can be allowed while POST /exfil on the same host is refused. No raw sockets, no DNS to arbitrary resolvers.no_new_privs set), a restrictive syscall filter blocking dangerous calls (ptrace, mount, kernel-module load, raw clone for daemons), no spawning of background daemons or detached processes, and capped CPU/memory/PID/file-descriptor limits.Lock the policy at sandbox creation.
The host (runtime supervisor / policy engine) materializes the sandbox from the declared policy and seals it BEFORE handing control to the agent. The four domains become immutable for the run: there is no in-band API, tool, or syscall by which the agent can edit its own allowlists, add egress rules, drop the syscall filter, or change the inference backend. Policy changes require tearing down and recreating the sandbox from outside — never a mid-run mutation. This is what makes the boundary robust to prompt injection: the attacker can only ask the agent to do something, and the agent has no privilege to grant it.
Verify escape attempts fail (negative testing).
Treat the sandbox as untrusted-until-proven and run the escape-verification checklist (below) as part of provisioning and CI. Each probe MUST fail closed. A probe that succeeds is a sandbox defect, not an agent bug. On any verified escape or a runtime policy-violation signal, hand off to self-heal.skill to quarantine the sandbox, snapshot evidence for audit, and rebuild from the sealed policy rather than patching the live instance.
prompt-injection-defense.skill (so fewer compromises happen) and HITL gates on trifecta-complete actions (so the remaining ones are caught).filesystem: read paths, write paths, explicitly-denied/absent paths.network: proxy endpoint + ordered allow rules as METHOD path-prefix → allow|deny, default deny.process: privilege flags (no_new_privs, no setuid), syscall allow/deny set, resource caps (CPU, memory, PIDs, FDs), daemon-spawn = denied.inference: approved backend(s) and the enforcement point that pins them.
Plus runtime: the chosen isolation runtime (gVisor / Kata / Firecracker / equivalent) and the lock-at-creation: true flag.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sandbox, isolation, least-privilege, blast-radius, container-security
21 skills in this plugin
/access-controlDesign roles and permissions with least privilege and review authorisation checks. Use when adding roles, permissions or admin features, or when auditing who can access what./agent-tool-reviewReview which tools, permissions and data an AI agent in the software has, and cut them to what its task needs. Use at S02 and S07 for any product or feature in which a model can call tools, write files, send messages or run code. Use when: agent tool permissions, tool permission review, excessive agency, agent least privilege, mcp tool review, agent capability review./ai-ethics-complianceCheck an AI feature against EU AI Act and GDPR duties, test for bias and proxy variables, and screen for dark patterns. Use before shipping a feature that scores, ranks or profiles people, or that talks to users as an AI. Use when: ai ethics, eu ai act, bias test, fairness check, dark pattern, ai transparency./ai-red-teamingProactively attack your own AI and agent system to find failures before adversaries, scoring attack-success-rate and gating CI on it. Use when: ai red teaming, red team plan, attack success rate, ASR scorecard, jailbreak testing, crescendo attack, automated adversarial testing, OWASP LLM red team./ai-safety-guardrailsAdd input, output, retrieval and execution rails around an LLM feature: PII scrubbing, output checks, and human approval for high-stakes actions. Use when building or reviewing a feature that sends user data to a model or acts on model output./api-securityAudit and harden REST or GraphQL endpoints against broken object-level authorisation, weak authentication and resource abuse. Use when adding or reviewing an API, tokens or rate limits.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-securityOther plugins' skills for the same job