OpenClaw blocks only 17% of attacks; human-in-the-loop layer raises defense up to 92%
OpenClaw’s native defenses stop just 17% of tested attacks, and adding a HITL layer improves overall defense rate to between 19% and 92%
Security & privacy arXiv 11 Mar 2026 Measurement Prototype evidence
Published as “Don't Let the Claw Grip Your Hand: A Security Analysis and Defense Framework for OpenClaw”
Why it matters
Deploying a Human-in-the-Loop approval layer can dramatically improve the security of local code agents, but organizations must still complement it with isolation mechanisms and careful model selection.
Summary
The HITL defense layer can raise OpenClaw’s overall defense rate up to 91.5%, improving a baseline range of 17%-83% to 19%-92%. The authors evaluated OpenClaw with 47 adversarial scenarios across six attack categories and six LLM backends, showing that sandbox-escape attacks are only 17% defended at baseline but improve markedly with HITL. Evidence is based on systematic testing and quantitative results, though some defenses remain weak.
What they found 2
- Baseline defense against sandbox-escape attacks is only 17% on average.
“sandbox escape attacks have only 17% average defense rate across all backends.”
- Baseline defense rates vary widely by LLM backend, from 17% to 83%, and improve to 91.5% with HITL active.
“Our results show that defense rates vary dramatically based on backend selection, ranging from 17% to 83% at baseline and reaching 91.5% with the HITL layer active.”
Caveats 7
- Even with HITL, the overall defense rate can be as low as 19% for some configurations.
- Encoding-based attacks (Base64, hex) still bypass detection for several models (e.g., DeepSeek).
- The pattern-based approach cannot detect or fragmented attack sequences that do not match existing signatures.
- Scenario Coverage. While our 47 scenarios cover a broad range of attack vectors, they cannot capture all possible attack techniques.
- Model Versions. LLM providers continuously update their models. The specific versions tested in this evaluation may not represent current or future model behavior.
- Single Policy Configuration. We tested with the HITL layer in strict policy mode.
- Turn Limit. Our framework allows up to three conversational turns per scenario.
What’s new here 4
- Systematic security evaluation of a local code-agent platform (OpenClaw) using 47 crafted attack scenarios.
- Introduction of a dual-mode testing framework that compares baseline and Human-in-the-Loop (HITL) defended conditions.
- A HITL defense layer that intercepts tool calls via allowlist, pattern detection, semantic judging, and mandatory human approval.
- Quantitative demonstration that the HITL layer can increase effective defense rates to as high as 91.5% across multiple LLM backends.