Protecting Shared Agent Workflows from Invalidation Attacks with Signed Trajectories and Runtime Verification
cs.CR
Submitted: 2026-10-10
Updated: 2026-10-10
Code: https://github.com/DachengLi1/LongChat
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large language model (LLM)-based agents increasingly rely on shared workflow repositories to transfer experience across tasks and agents.
Terminology
Abstract
Large language model (LLM)-based agents increasingly rely on shared workflow repositories to transfer experience across tasks and agents. By abstracting past executions into reusable workflow graphs, such systems significantly improve planning efficiency and generalization. However, this emerging paradigm introduces a new and underexplored security risk: if the shared repository is compromised, tampered workflows can systematically mislead downstream agents, inducing persistent execution failures or unsafe behaviors. In this work, we present a principled protection framework for shared agent workflows based on signed trajectories and runtime verification. We require all cloud-collected trajectories used for workflow generation to be cryptographically signed, with each trajectory representing a concrete execution instance. Prior to repository inclusion, trajectories undergo a unified screening process to ensure correctness and validity. When an agent retrieves a workflow from the shared repository, it also obtains a small set of signed supporting trajectories and verifies both their cryptographic integrity and their semantic consistency with the workflow. To make this practical for branching workflows, we further propose a runtime, path-aware retrieval strategy that dynamically fetches only the signed trajectories relevant to the execution path actually taken by the agent, substantially reducing communication and verification overhead. Extensive experiments across multiple reasoning benchmarks show that workflow invalidation attacks achieve up to 90.12% success rates, degrading agent inference performance by up to 73.16 percentage points in accuracy without effective workflow protection. In addition, the proposed protection achieves an average F1 score of 85.26% and a detection rate of 79.97%, outperforming existing baselines by about 2.02x.
Sources
- EvolveR: Self-Evolving LLM Agents through an Experience-Driven Lifecycle
- $A^2Flow:$ Automating Agentic Workflow Generation via Self-Adaptive Abstraction Operators
- CoPS: Empowering LLM Agents with Provable Cross-Task Experience Sharing
- Get Experience from Practice: LLM Agents with Record & Replay
- G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems
- Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solving
- INMS: Memory Sharing for Large Language Model based Agents
- Building Self-Evolving Agents via Experience-Driven Lifelong Learning: A Framework and Benchmark
- A-MEM: Agentic Memory for LLM Agents
- Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systems
- MemoryGraft: Persistent Compromise of LLM Agents via Poisoned Experience Retrieval
- Towards Trustworthy Federated Learning with Untrusted Participants
- The Llama 3 Herd of Models
- Qwen2.5-VL Technical Report
- Qwen3 Technical Report
- Measuring Mathematical Problem Solving With the MATH Dataset
- Program Synthesis with Large Language Models
- TrustRAG: Enhancing Robustness and Trustworthiness in Retrieval-Augmented Generation
- A-MemGuard: A Proactive Defense Framework for LLM-Based Agent Memory
- CheckEmbed: Effective Verification of LLM Solutions to Open-Ended Tasks
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs