← Lab /Security & privacy

OpenClaw PRISM blocks indirect prompt injection and unsafe tool use in LLM agents

PRISM provides effective runtime security for OpenClaw agents with low overhead

Security & privacy arXiv 12 Mar 2026 Defense Prototype evidence Threat model

Published as “OpenClaw PRISM: A Zero-Fork, Defense-in-Depth Runtime Security Layer for Tool-Augmented LLM Agents”

Why it matters

PRISM offers a deployable, zero-fork runtime defense that can be added to existing OpenClaw gateways to mitigate prompt injection, tool abuse, and secret exfiltration without requiring code forks.

Summary

PRISM blocks attacks across multiple lifecycle hooks in a tool-augmented LLM agent runtime, using a hybrid heuristic-plus-LLM scanner and a session-level risk engine; preliminary benchmarks on 110 hand-crafted cases show the unprotected baseline has 0.455 accuracy and 0.0 attack recall, but full PRISM results are not yet reported, so evidence is limited to early prototype measurements.

What they found 2

  1. The unprotected baseline (no-PRISM) correctly classifies only 50 of 110 cases, achieving 0.455 accuracy and 0.0 attack recall

    “In the default benchmark run, the no-PRISM engine executes all 110 preliminary cases and correctly classifies only the 50 benign ones, yielding accuracy 0.455 and attack recall 0.000.”

  2. PRISM is built as an in-process plugin with optional sidecar services and ten lifecycle hooks

    “PRISM combines an in-process plugin with optional sidecar services and distributes enforcement across ten lifecycle hooks spanning message ingress, prompt construction, tool execution, tool-result persistence, outbound messaging, sub-agent spawning, and gateway startup.”

Caveats 3

  • The current benchmark harness directly supports only a subset of this design space.
  • The current benchmark harness ... is still weaker than a deployment-level overhead study across real gateway and sidecar processes.
  • larger-scale end-to-end gateway experiments and deployment-level systems-overhead instrumentation remain future work.

What’s new here 4

  • Zero-fork integration via an in-process plugin that requires no upstream code changes
  • Lifecycle-wide enforcement across ten distinct runtime hooks
  • Hybrid scanning pipeline that first applies fast heuristics then optionally escalates to an LLM-assisted classifier
  • Session- and conversation-scoped risk accumulation with TTL-based decay and graduated response thresholds

Threat model stated by the source

AdversaryAttackers who can control user-provided text, external fetched content, tool-returned results, outbound message destinations, or have local file-level access to protected paths.
CapabilityDirect manipulation of prompts, injection via fetched web pages or tool outputs, steering outbound communications, and modifying local control files.
AssumesThe gateway process, host environment, and deployment stack retain a baseline level of integrity beyond PRISM’s enforcement.