paper-with-me

홈 › Papers

MAGE: Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memory

2026-05-04 · Yuhui Wang, Tanqiu Jiang, Jiacheng Liang, Charles Fleming, Ting Wang arxiv

As large language model (LLM)-powered agents are increasingly deployed to perform complex, real-world tasks, they face a growing class of attacks that exploit extended user-agent-environment interactions to pursue malicious objectives improbable in single-turn settings. Such long-horizon threats pose significant risks to the safe deployment of LLM agents in critical domains. In this paper, we present MAGE (Memory As Guardrail Enforcement), a novel defensive framework designed to counter a wide range of long-horizon threats. Inspired by the "shadow stack" abstraction in systems security, MAGE maintains a dedicated, safety-focused agentic memory that distills and retains safety-critical context across the agent's full execution trajectory, leveraging this shadow memory to proactively assess the risk of pending actions prior to their execution. Extensive evaluation demonstrates that MAGE substantially outperforms existing defenses across diverse long-horizon threats in detection accuracy, achieves early-stage detection for the majority of attacks, and introduces only negligible overhead to agent utility. To our best knowledge, MAGE represents the first framework to detect and mitigate long-horizon threats using an agentic memory approach, establishing a new paradigm for this critical challenge and opening promising directions for future research.

📄 PDF Abstract BibTeX arXiv:2605.03228

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

AgentLAB: Benchmarking LLM Agents against Long-Horizon Attacks

2026-02-18 · Tanqiu Jiang, Yuhui Wang, Jiacheng Liang, Ting Wang arxiv

LLM agents are increasingly deployed in long-horizon, complex environments to solve challenging problems, but this expansion exposes them to long-horizon attacks that exploit multi-turn user-agent-environment interaction…

EComAgentBench: Benchmarking Shopping Agents on Long-Horizon Tasks with Distributed Hidden Intent

2026-06-16 · Zeyao Du, Tong Li, Yanci Zhang, Haibo Zhang arxiv

As LLM-based shopping agents enter production, existing benchmarks fail to capture how a shopper's requirements arrive: stated implicitly in the query, recorded in a profile, or revealed only when the right question is a…

SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios

2025-12-20 · Tue Le, Minh V. T. Thai, Dung Nguyen Manh, Huy Phan Nhat 외 arxiv

Existing benchmarks for AI coding agents focus on isolated, single-issue tasks such as fixing a bug or adding a small feature. However, real-world software engineering is a long-horizon endeavor: developers interpret hig…

ABSeeker: Training Long-Horizon Search Agents via Answer-Backtracked Credit Assignment

2026-08-05 · Yijun Lu, Rui Ye, Jiajun Wang, Yuwen Du 외 hf

Long-horizon search agents must make multiple sequential actions (steps) to search, retrieve, verify, and integrate evidence to reach a final answer. However, existing methods for training these agents typically treat al…

Reinforcement Learning

Co-Evolving LLM Decision and Skill Bank Agents for Long-Horizon Tasks

2026-04-22 · Xiyang Wu, Zongxia Li, Guangyao Shi, Alexander Duffy 외 arxiv

Long horizon interactive environments are a testbed for evaluating agents skill usage abilities. These environments demand multi step reasoning, the chaining of multiple skills over many timesteps, and robust decision ma…

Decision Making