OpenClaw prompt injection: what the project says and how to limit it

OpenClaw's docs say prompt injection is not solved, and the project does not treat the model as a trusted principal. The controls that limit it are configuration and isolation choices your team makes before rollout.

On this page

OpenClaw prompt injection: does the project offer a control that stops it?

A security reviewer deciding whether staff can let OpenClaw read messages, web pages and email should start from one fact: the project offers no built-in control that stops prompt injection. The OpenClaw prompt injection docs say the problem is not solved and that adaptive human attackers still break models that score well on static benchmarks. Mitigation is therefore configuration and isolation that the operator owns, not a feature you switch on. The edition question does not apply in the usual way, because the OpenClaw README states that the project has no paid tier, hosted service or token, so there is no enterprise plan that adds a prompt injection block.

The decision in front of you is which content OpenClaw may read and which tools it may use after reading it. Untrusted content the bot reads, including web pages, emails and attachments, can carry injected instructions, not only messages from senders. That means an allowed sender is not the only risk surface. Review whether exec, browser, web_fetch and web_search will be limited to trusted agents, whether sensitive execution will run in a sandbox, and whether a read-only reader agent will summarize untrusted content before any privileged agent acts on it. The docs also say agent-to-agent messaging is on by default and that an omitted or empty tools.agentToAgent.allow permits every pair, so confirm that allowlist is set deliberately in your own configuration.

Plan for residual risk rather than assuming configuration removes it. The project's security policy describes OpenClaw as local-first agent infrastructure for trusted operators, treats plugins as trusted code running in-process with gateway privileges, and says the model is not a trusted principal. It also lists prompt injection without a policy, auth, sandbox or tool-boundary bypass as out of scope for vulnerability reports. Ask your team to confirm, in writing, which agent can reach which tools and credentials, and whether mixed-trust use requires separate gateways. Where the docs leave a question open, confirm it with the maintainers through the OpenClaw security policy before approval.

Prompt injection controls: built in, configurable, or outside OpenClaw

This table sorts the prompt injection controls OpenClaw's docs discuss into four columns: built in, configured by the operator, requiring an outside component, or not documented. Read each row against your own deployment, since a control marked configurable only protects you if someone sets it. The main takeaway is that the project treats prompt injection as unsolved, so most of the protection depends on how the operator scopes tools, agents and sandboxes.

ControlBuilt inConfigured by operatorOutside component or not documented
Untrusted content from web pages, email and attachmentsNot documented as filtered or blocked by defaultTreat these as untrusted input and route them through a reader agentDocs say injected instructions can arrive in content, not only sender messages; confirm any scanning with the vendor
Limiting exec, browser, web_fetch and web_search to trusted agentsNo restriction assumed by default in the supplied docsYes: restrict these tools to trusted agents onlyConfirm current per-agent tool allow and deny keys in the security docs
Sandboxed execution for sensitive actionsNot documented as the default for every runYes: run sensitive execution inside a sandboxSandbox runtime and scope depend on your host or container setup
Read-only reader agent for summarizing untrusted contentNot documented as a built-in agentYes: define a read-only agent with no exec or browser toolsConfirm how tool access is enforced for that agent in your version
Agent-to-agent messaging allowlist (tools.agentToAgent.allow)No: messaging is on by defaultYes: set an explicit allowlist; an omitted or empty value permits every pairConfirm the exact key behavior in your installed version
Prompt injection as a vulnerability reportOut of scope: reports on injection without a policy, auth, sandbox or tool-boundary bypass are not acceptedNot applicableReport sandbox, policy, auth or tool-boundary bypasses through the private GitHub advisory process
Detection or blocking of injected instructionsNot documented in the supplied materialNot documentedAsk the project or your security team to confirm whether any detection feature exists
Model choice as a mitigationDocs cite crowdsourced attack success rates by model, from 0.5% to 8.5%Yes: choose models and test them against your own contentRates are vendor-cited test results; validate with your own red team testing

Why untrusted content is the main injection path

The OpenClaw prompt injection docs state that injected instructions can reach the agent through web pages, emails and attachments, not only through messages from the people who talk to it. For a reviewer, this moves the trust boundary away from the sender list and toward two questions: what content the agent reads, and which tools it can call after reading it. Any document, page or file the agent summarizes or acts on is an input an outsider may have shaped, so a message allowlist alone does not limit injection. Plan for the reader to be the attack surface, and confirm with your own threat model which channels and data sources feed each OpenClaw agent.

The OpenClaw security policy says the model itself is not a trusted principal, and that plugins are trusted code running in-process with the gateway's privileges. Taken together, these statements mean an injection does not need to break the gateway. If the model is persuaded to act, it acts with whatever tools the agent holds, including exec, browser, web_fetch and web_search where they are enabled, and any plugin capability loaded into the gateway. The practical question for an approver is therefore not whether the model resists injection, but what a compromised run could reach. Ask which tools each agent is granted, which plugins are installed, and which credentials the gateway process can read.

The docs say the problem is not solved and that adaptive human attackers still break models that score well on static benchmarks, so treat model choice as one control among several. The project's published numbers come from a crowdsourced test and are not a guarantee for your deployment. Before rollout, ask the team operating OpenClaw to map each agent's untrusted inputs against its tool grants, and to confirm that no agent that reads external content also holds powerful execution rights. Tool and agent restrictions are covered in the permissions section of this page.

Decisions that set how far an injection can reach

A prompt injection only does damage through the tools and accounts the agent can reach. The decisions below decide that reach: which agents hold exec, browser and web tools, whether sensitive work runs in a sandbox, how untrusted content is read, which agents may talk to each other, and who can message the bot at all.

Which agents hold exec and web tools

The OpenClaw prompt injection docs recommend limiting exec, browser, web_fetch and web_search to trusted agents. Any agent that reads web pages, email or attachments while holding these tools can be steered by instructions hidden in that content. Check each agent's tool list in your configuration and remove these tools from any agent that handles untrusted input. Confirm the exact configuration keys for your OpenClaw version in the docs before you change them.

Prompt injection docs

Sandboxing sensitive execution

The docs recommend running sensitive execution in a sandbox, so a successful injection that triggers a command does not run directly on the gateway host. Ask which commands run in a sandbox, which run with host access, and whether any elevated mode is enabled. Treat the sandbox as a limit on blast radius, not a guarantee, because the project states that the model itself is not a trusted principal.

Read-only reader agent for untrusted content

The docs suggest a read-only reader agent to summarize untrusted content, so the agent that touches raw web pages and email has no exec or write capability. The main agent then receives only the summary. This separates reading from acting. Confirm that the reader agent truly lacks write and exec tools, since a summary can still carry injected text into the main agent's context.

Agent-to-agent allowlist scope

Agent-to-agent messaging is on by default, and an omitted or empty tools.agentToAgent.allow permits every pair of agents. One compromised agent could then pass instructions to a more privileged one. Set an explicit allowlist that names only the agent pairs that need to communicate, and review it whenever an agent is added.

Mixed-trust users on one gateway

The docs assume one trusted boundary per gateway, and the project says it is not designed as a boundary between adversarial users on one gateway. If staff from different trust levels or teams share a gateway, injected content from one user's sources can reach tools that serve another. Plan separate gateways and credentials for each trust group, ideally on separate OS users or hosts.

Security docs

Who can message the bot

Every sender who can reach the bot through a channel such as Slack, Teams, Telegram or WhatsApp is a potential source of instructions. Restrict direct messages and group access to named users, and confirm which channels are connected to the gateway. Messages are one input path, and the docs also warn about instructions carried in web pages, emails and attachments that the bot reads.

How the attack surface changes by what the agent reads

When the only input is chat from staff, injected instructions would have to come from people already inside the gateway's trust boundary. The OpenClaw prompt injection docs say untrusted content is broader than sender messages, so chat-only use narrows the exposure without removing it. Staff often paste or forward pages, documents and links, and those become input too.

  • Restrict exec and browsing tools: Limit exec, browser, web_fetch and web_search to trusted agents, as the docs recommend.
  • Sandbox sensitive execution: Run sensitive commands in a sandbox so a manipulated instruction does not reach the gateway host directly.
  • Treat pasted content as untrusted: Forwarded text can contain instructions, so apply the same limits to it as to any other external input.
  • Keep the trust boundary single: Only one trusted group of operators should use the gateway, because the security policy does not treat it as a boundary between adversarial users.
  • Model behavior stays uncertain: The docs state the problem is not solved, and adaptive attackers still break models that score well on static benchmarks.

Confirm which tools each agent holds and whether any staff workflow pastes external material into chat.

What the cited attack success rates do and do not show

The OpenClaw prompt injection docs cite attack success rates from a crowdsourced test: 0.5% for Claude Opus 4.5, 1.0% for Sonnet 4.5, 1.3% for Haiku 4.5 and 8.5% for Gemini 2.5 Pro. Report these figures exactly as the project states them and keep the model names attached, because the spread between models is part of what the project is showing. The same docs say the problem is not solved and that adaptive human attackers still break models that score well on static benchmarks. A crowdsourced test is a snapshot of how a set of people attacked specific models under conditions the project chose, so it measures neither your deployment nor an attacker who keeps adapting.

A low rate per attempt still matters at volume. If an agent reads inbound email, web pages or attachments many times a day, even a small per-attempt success rate produces a steady number of compromised actions over a quarter. The relevant question for a reviewer is therefore not whether a model is below a certain percentage, but what the agent can do when an injected instruction succeeds. That is where the exec, browser, web_fetch and web_search tools, the sandbox and the agent-to-agent settings matter, as covered in the sections on permissions and the trust model.

Do not use these figures as a residual risk number for your environment. Before approving any model for OpenClaw, ask the project which test conditions applied: the attack corpus, whether attackers were given tool access or only chat access, how many attempts each model received, what counted as success, which OpenClaw configuration and sandbox settings were active, and when the test was run. Ask the same of any newer model you plan to allow. Record the answers in your risk file so that a later change of model is reviewed against the same questions, and treat the published numbers as one input to your own testing rather than as a measured limit.

Gaps the project leaves to the operator

OpenClaw's own documents place prompt injection outside a guaranteed boundary: the model is not treated as a trusted principal, and the project does not claim a filter that stops injected instructions. The cards below cover the gaps the project leaves with the operator and the controls organizations usually add to close them.

No vendor-side injection filter

The supplied project material documents no vendor-side filter that screens web pages, emails or attachments for injected instructions before the model reads them. The prompt injection docs say the problem is not solved. Treat the model's resistance as one layer and limit what a successful injection could reach. Ask the maintainers, in writing, whether any filter exists in your version, and test your own configuration against injected content from the channels you allow.

Prompt injection docs

Injection reports out of scope

The security policy lists prompt injection without a policy, auth, sandbox or tool-boundary bypass as out of scope for vulnerability reports. A successful injection that only changes the model's output therefore may not reach the private advisory channel. Your risk review should assume that any injected instruction the agent can act on is your problem to contain, and record that the project does not accept it as a defect.

Security policy

Plugins run in-process

The security policy says plugins are trusted code that runs in-process with the gateway's privileges. A plugin installed to add a channel or tool can read the same credentials and files as the gateway, so an injected instruction that reaches a plugin's tool inherits those rights. Approve plugins through a written review, keep the installed set small, and confirm that tool allowlists apply to plugin-provided tools as well as built-in ones.

Model is not a principal

The security policy states that the model itself is not a trusted principal. Instructions that appear in a message, page or document carry no authority by virtue of being read. Access decisions must therefore sit in gateway configuration, tool allowlists and sandbox settings, not in what the model is told. Restrict exec, browser, web_fetch and web_search to trusted agents, and use a read-only reader agent to summarize untrusted content, as the prompt injection docs recommend.

Mixed-trust deployments need separation

The docs say OpenClaw assumes one trusted boundary per gateway and is not a boundary between adversarial users. Where staff with different trust levels or different data access share an installation, use separate gateways and credentials, ideally on separate OS users or hosts. Set tools.agentToAgent.allow explicitly, because an omitted or empty value permits every pair of agents, and agent-to-agent messaging is on by default.

OpenClaw security docs

Egress and logs sit outside the gateway

Since the gateway does not bound what an injected instruction can send out, limit network egress from the host or container and send gateway logs to a collector that the agent cannot edit. Have an independent party test the full agent setup, including channels, plugins and sandbox, against injected content, and record the results. Confirm log retention and redaction in your own environment, because the project's documents do not supply those figures for you.

Order of work before staff connect OpenClaw to untrusted sources

This sequence puts the runtime, trust boundaries, tool access and sandboxing in place before OpenClaw reads web pages, email or attachments, so that an injected instruction has less to reach. It is a review order for the platform owner, not a guarantee that injection is blocked.

  1. Confirm the Node.js runtime version

    The platform owner checks the Node.js version on every gateway host against the OpenClaw README. The README lists 24.16.0 or later on the 24.x line, or 26.1.0 or later, as requirements, and recommends 24.22.1 or later or 26.12.1 or later for security. Verify with the node --version command on each host and record the result. The step is done when every gateway runs a version at or above the security recommendation, and the record is kept with the deployment notes.

  2. Decide trust boundaries and gateway count

    The security lead decides who shares a gateway before anyone connects a channel. The OpenClaw security docs assume one trusted boundary per gateway, and mixed-trust use should run separate gateways with separate credentials, ideally under separate OS users or hosts. Write down each boundary, the people inside it and the channels it receives. The step is done when each gateway has a named owner and a written trust group, and no gateway serves people who do not share that trust.

  3. Restrict exec, browser and web tools to trusted agents

    The platform owner limits the exec, browser, web_fetch and web_search tools to trusted agents only, as the OpenClaw prompt injection docs recommend. Review each agent's tool configuration and remove these tools from any agent that reads content from outside the trust group. Confirm the change by listing the tool set for each agent and checking that no untrusted-facing agent holds them. The step is done when the tool map matches the written trust decisions.

  4. Set the agent-to-agent allowlist explicitly

    The platform owner sets tools.agentToAgent.allow in the configuration rather than relying on the default. The prompt injection docs say agent-to-agent messaging is on by default and that an omitted or empty allow value permits every pair of agents. Write an explicit list of permitted pairs, then test that an unlisted pair is refused. The step is done when the configuration contains a non-empty list and a refused test message is recorded.

  5. Move sensitive execution into a sandbox

    The platform owner moves any execution that touches credentials, production systems or the host into a sandbox, as the docs recommend for sensitive work. Confirm which agents run sandboxed and which can reach the host filesystem, network or stored secrets. Check the sandbox scope and workspace access in the OpenClaw permissions documentation for your version before relying on it. The step is done when a written list shows every sensitive action runs inside a sandbox, with exceptions approved by the security lead.

  6. Route untrusted content through a read-only reader agent

    The platform owner configures a reader agent with no exec, browser or write tools to summarize web pages, email and attachments before any trusted agent acts on them. The trusted agent then receives only the summary. Confirm that the reader agent's tool list is empty of write-capable tools and that its output is the only path into trusted agents. The step is done when a test shows an instruction inside an attachment does not reach a tool-bearing agent.

  7. Test with injected content in pages, email and attachments

    The security engineer plants test instructions in a web page, an email body and an attachment, then sends each through the reader path. Record whether any tool call, outbound request or change to memory or files follows from the planted text. Because the prompt injection docs say the problem is not solved and adaptive attackers still break models that score well on static tests, treat a clean run as a limited result. The step is done when each test case has a logged outcome and any failure has an owner and a fix.

  8. Review results before expanding channels

    The security lead reviews the test log, the tool map and the trust record together and decides whether to add channels or users. Re-run the injection tests after each configuration change and after each OpenClaw or Node.js update. Keep the review record with the deployment notes. The step is done when the lead signs off the trust group, the tool map and the test results, and any new channel is added only after that sign-off.

Where untrusted content can reach OpenClaw tools

The diagram starts with four input sources: message senders, web pages, email and attachments. The OpenClaw prompt injection docs say untrusted content read by the bot can carry injected instructions, not only messages from senders, so all four paths are shown. Untrusted content is routed to a read-only reader agent for summarizing, while the trusted agent holds exec, browser, web_fetch and web_search, with sensitive execution inside a sandbox. Check that tools.agentToAgent.allow is set explicitly, because an omitted or empty value permits every agent pair.

Untrusted inputs reach the gateway, and only trusted agents hold execution tools.

What a security reviewer asks to see for prompt injection

This table lists the evidence a reviewer should request to judge how an OpenClaw deployment handles prompt injection, where each item lives in OpenClaw and who produces it. Read it as a request list for the operator and the security team, not as proof that any control is in place. Each row should be answered with a file, a configuration value or a test record from the actual gateway.

Evidence itemWhere it comes from in OpenClawWho produces it
Agent-to-agent allowlistConfig key tools.agentToAgent.allow; confirm it is set explicitly, since an omitted or empty value permits every pairGateway operator
Agents holding exec, browser, web_fetch and web_searchPer-agent tool allow and deny settings, listed agent by agent and compared with the trusted-agent listGateway operator, reviewed by security
Sandbox settings for sensitive executionSandbox configuration applied to exec-capable agents, showing where execution runs and what workspace it can reachGateway operator
Reader-agent design for untrusted contentWritten design showing which agent reads web pages, email and attachments, with no exec, browser or messaging toolsSolution architect or platform team
Trust boundary and gateway inventoryCount of gateways, the single trusted boundary each one serves, and separation of credentials and OS users or hosts for mixed-trust usePlatform team, confirmed by security
Vulnerability reporting route and scopeProject security policy: private GitHub security advisory on the openclaw/openclaw repository; prompt injection without a policy, auth, sandbox or tool-boundary bypass is out of scopeSecurity reviewer, from the project's published policy
Test results with injected contentInternal test records using injected instructions in messages, web pages, email and attachments, run against the deployed configurationInternal security team or independent tester
Vendor or auditor attestationNone published by the project for prompt injection; request any third-party test report directly from the party that produced itIndependent assessor, if one exists

Questions buyers ask before approving OpenClaw with untrusted input

Does OpenClaw have a paid tier or an enterprise edition?

No. The OpenClaw README states that OpenClaw has no paid tier, hosted service or token, and it runs on the user's own hardware. Nothing in the project's published material describes an enterprise edition with added controls, so a company that wants vendor support, contractual terms or a managed offering will need to arrange those elsewhere. Any commercial support, including implementation work, is a separate agreement with the party providing it, and DeployOpen's work is scoped and priced from a written quote. Confirm with the project directly if you need to know whether a commercial edition is planned.

Does OpenClaw include a prompt injection filter?

The supplied OpenClaw documentation describes prompt injection as an unsolved problem and does not describe a built-in filter that reliably blocks injected instructions, so do not assume one exists. The documented approach relies on limiting what the agent can do: restricting exec, browser, web_fetch and web_search to trusted agents, running sensitive execution in a sandbox, and using a read-only reader agent to summarize untrusted content. Ask the project whether any detection feature is planned or available in your version, and test any filter you add against your own workflows before relying on it.

How much effort do the prompt injection controls take, and what drives it?

The main drivers are the number of agents, the tools each agent can call, the number of sandboxes and workspaces you need to keep separate, and the channels that feed content into the agent. Each trusted agent, each tool allowlist and each reader agent is configuration you must write, review and keep current as the setup changes. Agent-to-agent messaging is on by default, and an omitted or empty tools.agentToAgent.allow permits every pair, so an explicit allowlist is one of the first items to review. A small single-operator setup has far fewer decisions than a shared gateway that reads email and web content for several teams.

Can our own staff configure these prompt injection controls without outside help?

Staff who run the gateway can usually set the documented config keys, such as the tools.agentToAgent.allow allowlist and per-agent tool restrictions, by following the project's docs and testing the changes in a non-production gateway. Configuration is not the same as assurance, though. Testing how the agent behaves when a web page, email or attachment carries hidden instructions, reviewing the sandbox and credentials it can reach, and getting an independent review of the design are separate pieces of work. Many teams assign the configuration to their own engineers and commission the testing and review separately, so decide early who signs off on the results.

What does a DeployOpen engagement cover for OpenClaw prompt injection work?

DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own infrastructure, and runs security testing that includes AI systems and agents. For OpenClaw, that can cover deployment inside your cloud accounts or data centers, configuration of the documented controls, and security testing of how the agent handles untrusted content, including red teaming. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The cost and timeline follow from that written scope and are not published as a price list, so request a quote that states exactly which agents, tools, channels and environments are included. DeployOpen prepares evidence for compliance assessments but does not issue audit reports or certifications.

Does the 8.5% attack success rate mean the other models are safe?

No. The OpenClaw prompt injection docs cite a crowdsourced test with attack success rates of 0.5% for Claude Opus 4.5, 1.0% for Sonnet 4.5, 1.3% for Haiku 4.5 and 8.5% for Gemini 2.5 Pro. These figures come from one static test, and the docs state that adaptive human attackers still break models that score well on such benchmarks. A low number does not mean an injected instruction cannot succeed in your environment, and the model is not a trusted principal in OpenClaw's own security policy. Treat every model as one layer that can fail, and keep tool, sandbox and credential limits in place regardless of which model you choose.

Should we deploy OpenClaw for staff who read email or browse the web?

Confirm the trust boundary before you decide. OpenClaw's security docs assume one trusted boundary per gateway, and the security policy describes the project as local-first infrastructure for trusted operators, not a boundary between adversarial users. If the agent reads email, attachments or web pages from people outside your trust group, keep that content away from agents that hold exec, browser or credential access, and route it through a read-only reader agent. Mixed-trust use calls for separate gateways and credentials, ideally on separate OS users or hosts. Ask your security team to approve that architecture in writing before rollout.

How DeployOpen helps your team test and limit prompt injection

DeployOpen plans, implements, hardens and documents self-hosted open-source platforms inside your own infrastructure, and runs security testing that includes AI systems and agents. For OpenClaw, we start from what the project says about prompt injection and test how your own gateway, agents and tool permissions behave when untrusted content reaches them.

How we scope

  • Written scope covers which agents, channels, tools and untrusted content sources are in the review.
  • Scope states which tools exec, browser, web_fetch and web_search may reach, and which agents hold them.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We configure the gateway and tool allowlists so sensitive execution runs in a sandbox, as the project recommends.
  • We design a read-only reader agent for summarizing email, web pages and attachments before any action.
  • We review agent-to-agent messaging and set tools.agentToAgent.allow explicitly instead of relying on the default.

How we hand over

  • Testing covers direct messages, web pages, emails and attachments, with results recorded against the written scope.
  • Documentation explains each configuration decision, the residual risk the project describes, and who approves changes.
  • Handover includes the configuration baseline and a test procedure your team can rerun after upgrades.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Retesting follows Node.js and OpenClaw version changes, new channels and new tool or plugin permissions.
  • Ask any provider to confirm which limits remain open, since the project states prompt injection is not solved.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.