mlsanityData to 7 Oct 2026

SafeHarbor: Defining Precise Decision Boundaries via Hierarchical Memory-Augmented Guardrail for LLM Agent Safety

arXiv 2605.05704 ↗First posted 7 May 2026cs.CR cs.AIcited by 3

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Recent advances in foundation models have transformed LLMs from passive conversational systems into autonomous agents capable of reasoning and tool execution. While these capabilities unlock substantial practical value, they also introduce new security risks, as adversaries can manipulate agents into performing harmful actions in real-world environments. Existing defense strategies mitigate such threats but frequently struggle to balance safety and utility, resulting in over-refusal of benign user requests. To mitigate this trade-off, we propose SafeHarbor, a novel framework designed to establish precise decision boundaries for LLM agents. Unlike static guidelines, SafeHarbor extracts context-aware defense rules through enhanced adversarial generation. We design a local hierarchical memory system for dynamic rule injection, offering a training-free, efficient, and plug-and-play solution. Furthermore, we introduce an information entropy-based self-evolution mechanism that continuously optimizes the memory structure through dynamic node splitting and merging. Extensive experiments demonstrate that SafeHarbor achieves state-of-the-art performance on both ambiguous benign tasks and explicit malicious attacks, notably attaining a peak benign utility of 63.6% on GPT-4o while maintaining a robust refusal rate exceeding 93% against harmful requests. The source code is publicly available at https://github.com/ljj-cyber/SafeHarbor.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 24 of its 31 references that are in the map. First posted on arXiv 7 May 2026.

Builds on

24 of 31 references.

Closest ancestors · 8

Same direction, newest first

  1. 2025Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agents30 Sep
  2. 2025AgentAlign: Navigating Safety Alignment in the Shift from Informative to Agentic Large Language Models29 May
  3. 2025ShieldAgent: Shielding Agents via Verifiable Safety Policy Reasoning26 Mar
  4. 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb
  5. 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
  6. 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agents22 Oct
  7. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  8. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep

Other references · 16

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  4. 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,037
  5. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
  6. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  7. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
  8. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,339
  9. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
  10. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  11. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
  12. 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 450
4 more
  1. 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 253
  2. 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 202
  3. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 123
  4. 2023Think-in-Memory: Recalling and Post-thinking Enable LLMs with Long-Term Memorycited by 64

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SafeHarness: Lifecycle-Integrated Security Architecture for LLM-based Agent Deployment
  2. 2026Membrane: A Self-Evolving Contrastive Safety Memory for LLM Agent Defense
  3. 2026MAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safety
  4. 2025ALRPHFS: Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning for Robust Agent Defense
  5. 2026MemEvoBench: Benchmarking Safety Risks from Memory Misevolution in LLM Agents
  6. 2026CourtGuard: A Model-Agnostic Framework for Zero-Shot Policy Adaptation in LLM Safety
  7. 2025Adversarial Attack-Defense Co-Evolution for LLM Safety Alignment via Tree-Group Dual-Aware Search and Optimization
  8. 2026SafeAgent: A Runtime Protection Architecture for Agentic Systems