Zero-Trust OpenClaw Architecture Adds Pre-Execution Authorization and Post-Execution Verification

✍️ OpenClawRadar📅 Published: March 7, 2026🔗 Source
Zero-Trust OpenClaw Architecture Adds Pre-Execution Authorization and Post-Execution Verification
Ad

An open-source security architecture for OpenClaw addresses the problem of agents having ambient OS permissions with no reliable verification of their actions. The solution implements two hard checkpoints in the execution loop.

Pre-Execution Gate

A local Rust daemon called predicate-authorityd intercepts every tool call before execution and checks it against a declarative policy. This provides sub-millisecond authorization overhead with p99 <25ms. The system is fail-closed: if the sidecar is down, everything is denied. For example, if an agent tries to write to /etc/passwd, it's hard blocked and the host OS is never touched.

Post-Execution Verification

Instead of asking an LLM "did it work?" after browser actions, the system runs deterministic assertions like:

  • url_contains("news.ycombinator.com") → PASS
  • element_exists("titleline") → PASS
  • dom_contains("Show") → PASS

The .eventually() pattern handles SPA hydration without brittle sleep() calls.

Tracing and Token Savings

Every step—authorization decisions, DOM snapshots, verification results—gets pushed to a trace (local or cloud). You can replay the agent's exact state step-by-step in a web portal, useful for debugging failed assertions or auditing what the agent actually saw (screenshots included).

The predicate-snapshot skill compresses the DOM to only actionable elements, achieving 90-99% token savings. In a demo extracting Hacker News posts, it used ~1200 tokens per step instead of 50k+ for raw HTML.

Ad

Use Cases and Future Development

This architecture is production-ready for tasks like price monitoring on e-commerce sites (Amazon, eBay), competitor tracking, lead generation from directories, or any web scraping where you need guarantees the agent actually extracted the right data.

The pre-execution gate already works for any agent (it's just HTTP calls to the sidecar). Future development includes extending post-execution verification to non-web agents—file system state assertions, API response validation, database checks—using the same deterministic approach without LLM-as-judge.

Repositories

📖 Read the full source: r/clawdbot

Ad

👀 See Also

U of T Researchers Demonstrate AI Worm Powerable by Free Open-Weight Models
Security

U of T Researchers Demonstrate AI Worm Powerable by Free Open-Weight Models

Researchers at the University of Toronto demonstrated the first AI-powered worm that adapts its spreading strategy using publicly accessible open-weight models, targeting any online device.

OpenClawRadar
Claude Code Plugin Bug Causes CPU Spikes and Battery Drain
Security

Claude Code Plugin Bug Causes CPU Spikes and Battery Drain

A user discovered that Claude Code's Telegram plugin spawns multiple bun.exe processes that run at 100% CPU even with the laptop lid closed, causing rapid battery drain. The processes survive sleep/wake cycles and require specific cleanup steps to remove.

OpenClawRadar
Security Audit Finds Anthropic's MCP Reference Servers Vulnerable, Introduces Hallucination-Based Vulnerabilities
Security

Security Audit Finds Anthropic's MCP Reference Servers Vulnerable, Introduces Hallucination-Based Vulnerabilities

A security audit of 100 MCP server packages found 71% scored an F, including Anthropic's official GitHub and filesystem reference implementations. The audit identified Hallucination-Based Vulnerabilities that create security holes and waste tokens through reasoning loops.

OpenClawRadar
OpenClaw Security Vulnerabilities: Critical Framework Flaws Patched in 2026.3.28
Security

OpenClaw Security Vulnerabilities: Critical Framework Flaws Patched in 2026.3.28

Ant AI Security Lab identified 33 vulnerabilities in OpenClaw's core framework, with 8 critical issues patched in the 2026.3.28 release. The vulnerabilities include sandbox bypass, privilege escalation, session persistence after token revocation, SSRF risks, and allowlist degradation.

OpenClawRadar