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 ShadowMem, a novel defensive framework designed to counter a wide range of long-horizon threats. Inspired by the "shadow stack" abstraction in systems security, ShadowMem 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 ShadowMem 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, ShadowMem 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. The artifacts are available at https://github.com/ZJUWYH/ShadowMem
CrossGuard: Safeguarding MLLMs against Joint-Modal Implicit Malicious Attacks
Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系);Department of Computer Science & Engineering, Washington University in St. Louis(华盛顿大学圣路易斯分校计算机科学与工程系)
CoreGuard: Safeguarding Foundational Capabilities of LLMs Against Model Stealing in Edge Deployment
School of Software Technology, Zhejiang University(浙江大学软件学院);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);Ningbo Global Innovation Center, Zhejiang University(浙江大学宁波全球创新中心);Washington University in St. Louis(圣路易斯华盛顿大学);University of Science and Technology of China(中国科学技术大学);College of Computer Science and Technology, Zhejiang Normal University(浙江师范大学计算机科学与技术学院);China Electronics Technology Design and Research Institute(中国电子技术设计与研究院)
ShadowCode: Towards (Automatic) External Prompt Injection Attack against Code LLMs
State Key Laboratory of Blockchain and Data Security, Zhejiang University(区块链与数据安全国家重点实验室,浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security, Hangzhou(杭州高新区(滨江)区块链与数据安全研究院,杭州);College of Computing and Data Science, Nanyang Technological University(计算与数据科学学院,南洋理工大学)
CoopGuard: Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Round Attacks
School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学与工程学院);Department of Computer Science, University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校计算机科学系);Big Data Institute, Central South University(中南大学大数据研究院)
AdaShield: Safeguarding Multimodal Large Language Models from Structure-based Attack via Adaptive Shield Prompting
Peking University(北京大学);University of Wisconsin–Madison(威斯康星大学麦迪逊分校);International Digital Economy Academy(国际数字经济学院);University of California Davis(加州大学戴维斯分校)
Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
School of EECS, Peking University(电子工程系,北京大学);School of Mathematical Sciences, Peking University(数学系,北京大学);State Key Lab of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(通用人工智能国家重点实验室,智能科学与技术学校,北京大学);Institute for Artificial Intelligence, Peking University(人工智能研究院,北京大学)
Safeguarding Text-to-Image Generative Models Against Unauthorized Knowledge Distillation
School of Artificial Intelligence, OPtics and ElectroNics (iOPEN), Northwestern Polytechnical University(人工智能学院、光学电子学院(iOPEN)、西北工业大学);Institute of Artificial Intelligence (TeleAI), China Telecom(人工智能研究院(TeleAI)、中国电信);The University of Hong Kong(香港大学)
Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attacks
School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机学院);Shanghai Key Laboratory of Integrated Administration Technologies for Information Security(上海市信息安全综合管理技术重点实验室);Department of Computer Science, University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校计算机科学系);School of Information Science and Electronic Engineering, Shanghai Jiao Tong University(上海交通大学信息科学与工程学院);Department of Machine Learning, Mohamed Bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学机器学习系)
Collaborative Shadows: Distributed Backdoor Attacks in LLM-Based Multi-Agent Systems
Beijing University of Posts and Telecommunications(北京邮电大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Xiamen University Malaysia(厦门大学马来西亚分校);North China Electric Power University(华北电力大学)