Cisco AI Defense for Claude Cowork: Why Command Text Inspection Misses What Happens During Execution
Cisco's AI Security team explains a two-layer approach to securing Claude Cowork: PreToolUse and PostToolUse hooks inspect command text and returned output on the host, while an EDR sensor observes actual process behavior inside the Linux VM. The core argument is that an allowed command's text does not reveal its full effects—a script can spawn processes, read files, open network connections, or leave background daemons—so boundary checks alone leave a visibility gap that in-VM observation fills.
The security question for AI agents that execute code is not only what they are asked to do, but what they actually do while doing it. Cisco's AI Defense team, in a blog post published November 30, 2026, lays out an architectural answer to this question for Anthropic's Claude Cowork—a tool that lets non-developer employees give Claude a folder and a goal, after which the agent plans work, calls tools, and runs shell commands inside an isolated Linux sandbox.
The article's central argument is that pre-execution inspection has a structural limit. Before Cowork sends a command into the virtual machine, a PreToolUse hook passes the submitted command text to AI Defense on the host, which evaluates it against organizational rules. A denial stops the command before it runs. When a tool returns, a PostToolUse hook lets AI Defense inspect the output, including checking for secrets. This boundary check catches explicit violations and sensitive data in results.
But the authors are explicit about what this misses: "An allowed command can do much more than its text reveals. A script can start other programs, read files, open network connections, or leave a background process running. Tool hooks inspect the request and returned output; they do not report each operation that happens inside the VM while the command runs." A command that passes the text check might download a package whose install script exfiltrates credentials, or spawn a subprocess that connects to an unauthorized endpoint. The hook sees the declared intent; it does not see the execution trace.