A new method called SEAL aims to protect local language-model agents from indirect prompt-injection attacks while avoiding unnecessary removal of useful information from tool outputs. In tests on AgentDojo and AgentDyn, it suppressed attacks and improved task completion at the same time.
SEAL learns a soft prompt and a scoring readout offline. A frozen task model uses them to assess tool outputs through queries built from trusted initial context and the learned prompt. This keeps the reference independent of the tool output being inspected. SEAL scores tokens without normalizing their values across the context, and applies preservation regularization so that useful evidence is more likely to remain during localized deletion.
According to the study, the method needs neither defense-generated tokens nor a separate verifier model. On AgentDojo, attack success fell from 34.6% to 0.1%. The joint score for task completion without attack success rose from 51.4% to 77.5%. SEAL also used approximately 127 times fewer defense-related tokens than PISanitizer.
A replication with a second model backbone and the same training recipe suggests applicability across model families. However, these results come from benchmarks; the source does not establish performance in arbitrary real-world settings. The paper gives further details on the method and evaluations: https://arxiv.org/abs/2610.39758v1