Defending OpenClaw: Indirect Prompt Injection Fixes A new defense strategy against indirect prompt injections in AI agents, called OpenClaw, replaces the 'one big prompt' architecture with input sandboxing, instruction isolation, and a dual-LLM pattern that uses a smaller model as a security guard to filter tool output before it reaches the main agent. Defending OpenClaw: Indirect Prompt Injection Fixes To harden a deployment against these injections, you have to move away from the "one big prompt" architecture and start treating retrieved data as untrusted input. Implementation Strategy 1. Input Sandboxing Instead of feeding raw tool output directly into the main context, wrap it in clear delimiters. This helps the model distinguish between the system's instructions and the external data.