Skip to content

R01 - DefenseClaw

Purpose: What Cisco’s DefenseClaw is, how it relates to Wraith Box, which of its threats and defenses Wraith Box lacks, and what to do about it. Read at DefenseClaw commit 039114a1 (1.0.x, October 2026).

Requirements: SEC03-no-host-execSEC03-no-host-exec: No host code execution via returned workNothing the agent produces executes on the host without an explicit user action; returned changes to files the host may later execute are flagged., SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable., SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM., SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter., T01-allowed-channelsT01-allowed-channels: Data through allowed channelsData sent through allowed operations to allowed destinations, for example a push to an allowed repository that is public, or prompt content sent to the model provider., T04-bad-approvalsT04-bad-approvals: Bad approvalsA user approving a malicious request or merging a malicious change despite the flags.

DefenseClaw (cisco-ai-defense/defenseclaw, Apache-2.0, first commit March 2026, 1.0.0 on 2026-10-11) calls itself “security governance for AI coding agents”. It is a Python CLI, a Go gateway daemon on the host, connector code per agent, policy packs and telemetry exporters. It has two modes.

  • Hook mode, the main product. DefenseClaw registers hooks in about fifteen agents, Claude Code, Codex, Cursor and Copilot CLI among them. Each hook posts the prompt or tool call to the gateway, which answers allow, deny or ask. The gateway decides with regex rule packs, CEL rules over parsed tool calls, Rego, an optional LLM judge and the optional Cisco AI Defense cloud API. The agent runs as the user, with no network enforcement (“Hook rules only. There is no network enforcement for a host-run agent”, segmentation.mdx). The guardrail starts in observe mode, which logs and never blocks.
  • Sandbox mode. DefenseClaw runs the agent inside NVIDIA OpenShell 0.1.x: a container with Landlock and seccomp on Linux, a libkrun MicroVM on macOS, both with a Linux guest. Its own summary is “OpenShell owns isolation, DefenseClaw owns judgment” (internal/openshell/doc.go). DefenseClaw adds a host egress proxy, credential placeholders bound to the harness binaries, a workspace snapshot with an end-of-session review, and the hooks of hook mode inside the sandbox (docs/SANDBOX.md).

Most of the threat model work is about the managed_enterprise deployment: keeping DefenseClaw’s own services, hooks and policy intact on a fleet machine against a standard user, the agent running as that user, and a compromised gateway (docs/ENTERPRISE-THREAT-MODEL.md, rows B1 to B21, residual risks R1 to R34). It doesn’t model prompt injection as a threat. Prompt injection detection is a guardrail feature with published benchmarks instead.

DefenseClaw Wraith Box V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there.
Agents About fifteen Claude Code (V1-02-claude-onlyV1-02-claude-only: Claude Code onlyClaude Code is the supported agent.)
Isolation None in hook mode. OpenShell in sandbox mode A macOS VM per trust level (SEC01-separate-kernelSEC01-separate-kernel: Separate kernelThe agent runs in a hardware-virtualized guest with its own kernel, never sharing a kernel with the host or with another environment of the user (for example a WSL distribution).)
Guest Linux macOS, with Xcode (FR06-native-toolsFR06-native-tools: Native guest toolsAgent tool calls run tools native to the guest operating system (on macOS guests: Homebrew packages, Xcode command line tools, optionally full Xcode).)
Egress Hook rules only, or a proxy that relays TLS without reading it Default deny with TLS inspection on the host (SEC05-default-denySEC05-default-deny: Default-deny egress, enforced on the hostOnly allowlisted hostnames are reachable.)
Repository writes Not scoped: the proxy can’t see a push Scoped per VM (SEC06-repo-writesSEC06-repo-writes: Repository-scoped writesGit pushes and repository-mutating API calls are allowed only for the repositories of the projects that have a session in the VM.)
Returned work A live mount with undo, or a copy the user pulls A branch in a landing repository (FR03-work-as-branchFR03-work-as-branch: Work returns as a branchThe agent never writes to the host working tree.)
Agent actions Inspected by hooks and rule packs Not inspected
Audit SQLite, OTLP, Splunk HEC, its own v8 schema OCSF 1.8.0 JSONL (SEC10-auditSEC10-audit: AuditEvery egress decision, approval, and returned change is recorded on the host in a persisted log the guest cannot alter.)
Users Fleets, MDM, an administrator One developer on their own machine

Overlap. DefenseClaw’s sandbox mode, together with OpenShell, does the job of wb-netd, wb-proxyd and the git round trip. On a Mac, defenseclaw sandbox run claudecode competes directly with wb claude. Wraith Box gives a macOS guest, scoped writes, the dependency gate, and a host working tree the agent never writes. DefenseClaw gives many agents, Linux hosts, content inspection and fleet management, and ships today. OpenShell calls the MicroVM driver it runs on a Mac experimental.

Shared ancestry. Both projects build on OpenShell artifacts. Wraith Box uses OpenShell’s network policy schema, its prover, its supervisor middleware proto and its OCSF event classes (S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice.). DefenseClaw uses a different part: the OpenShell gateway’s gRPC API through the Go SDK, and OpenShell’s log lines, which it parses even though it calls them “a display projection, not a wire contract” (internal/openshell/ocsf/ocsf.go). It doesn’t use the middleware proto.

No runtime abstraction. DefenseClaw’s sandbox code is OpenShell code. The openshell.Client interface (internal/openshell/client.go) names OpenShell’s own concepts: sandboxes, provider profiles, policy drafts and gateway settings. A second runtime would need a new client, event parser and policy renderer. The per-agent artifacts (SandboxArtifacts in internal/gateway/connector/sandbox_artifacts.go) are generic in shape but assume openshell sandbox create.

Where the two meet today. Wraith Box’s audit log uses OCSF, so a SIEM that DefenseClaw exports to can read it too. A user who wants DefenseClaw’s hooks can install DefenseClaw in the guest and run its gateway there, with no change to Wraith Box. Wraith Box would then treat the hooks as one more program in the guest, with no effect on its controls.

Threats DefenseClaw covers that Wraith Box doesn’t

Section titled “Threats DefenseClaw covers that Wraith Box doesn’t”

DefenseClaw’s other threats don’t apply to Wraith Box:

The NIST Cybersecurity Framework sorts security work into five functions: Identify, Protect, Detect, Respond and Recover. Wraith Box V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. is almost all Protect. It keeps the agent away from the host, its secrets and its network, whatever the agent does inside the guest. DefenseClaw is mostly Detect, with Respond through its approvals, blocks and SIEM exports. Its Protect is weak where it has no sandbox.

Wraith Box assumes the guest is compromised, so a detector inside the guest can never be a control: the agent that a prompt injection steers can turn it off. DefenseClaw’s own residual risks R1 and R18 show this for hooks on the host. A detector is still useful as defense in depth if nothing depends on it. It can stop an attack before the attacker reaches the boundary, and it tells the user what was attempted.

Layers that could detect, from inside the guest outward:

Wraith Box hasn’t decided which of these it relies on, what each covers, or what the user does with a finding: Respond (stop the VM, revoke a grant, quarantine a returned branch) and Recover (restore the guest, roll back pushed work). Wraith Box’s Identify part is small: its assets and adversary are in T00-indexT00-indexboundary 6 is the host terminal stream., and it has no inventory of agents, skills or MCP servers in the guest.

Candidates for that re-review, roughly in order of value:

Not to adopt: an observe default, hooks that fail open, an LLM judge as a control, and fleet management.

Status: Read 2026-10-14, re-review after V1V1-initial: Initial versionThe first version: what it delivers, what it leaves out, and the milestones that get there. (I240I240 (open): Re-review the research notes on related projects after V1 and fold their recommendations into post-V1 plansAfter V1 ships, review the recommendations of the research notes that compare Wraith Box with related projects, and fold the ones that still hold into the post-V1 plans.)