---
title: "AGrail — paper by Luo et al. (2025) — summary and ideas"
description: "The authors also release Safe-OS, a benchmark of real online OS-agent interactions that mixes… 59 references, cited by 11 papers here."
authors: ["Weidi Luo", "Shenghong Dai", "Xiaogeng Liu", "Suman Banerjee", "Huan Sun", "Muhao Chen", "Chaowei Xiao"]
year: 2025
venue: "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)"
source: "https://aclanthology.org/2025.acl-long.399/"
doi: "10.18653/v1/2025.acl-long.399"
licence: "CC BY 4.0 (ACL Anthology)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/luo-2025-agrail-lifelong-agent-guardrail-effective/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/luo-2025-agrail-lifelong-agent-guardrail-effective/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/page/5/) / AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection

# AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection

**Authors:** [Weidi Luo](https://md.research.elamur.ai/free/en/authors/weidi-luo/), Shenghong Dai, [Xiaogeng Liu](https://md.research.elamur.ai/free/en/authors/xiaogeng-liu/), [Suman Banerjee](https://md.research.elamur.ai/free/en/authors/suman-banerjee/), [Huan Sun](https://md.research.elamur.ai/free/en/authors/huan-sun/), [Muhao Chen](https://md.research.elamur.ai/free/en/authors/muhao-chen/) and [Chaowei Xiao](https://md.research.elamur.ai/free/en/authors/chaowei-xiao/) · **Year:** 2025 · **Venue:** [Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)](https://md.research.elamur.ai/free/en/venues/acl/) ([ACL 2025](https://md.research.elamur.ai/free/en/venues/acl/2025/)) · **Publisher:** [Association for Computational Linguistics](https://md.research.elamur.ai/free/en/publishers/association-for-computational-linguistics/) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

**Links:** [Publisher's page](https://aclanthology.org/2025.acl-long.399/) · [PDF](https://aclanthology.org/2025.acl-long.399.pdf) · [DOI 10.18653/v1/2025.acl-long.399](https://doi.org/10.18653/v1/2025.acl-long.399) · [OpenAlex](https://openalex.org/W4412945557)

**Citations:** 9 citations (OpenAlex, 2026-10-14) · [11](https://md.research.elamur.ai/free/en/papers/luo-2025-agrail-lifelong-agent-guardrail-effective/cited-by/) in our library, of the 149,439 papers whose bibliographies we read

## Summary
LLM-based agents that run shell commands, browse websites or query databases can cause harm in two ways. Task-specific risks break rules that an administrator sets for a given job, such as access restrictions on medical records. Systemic risks threaten confidentiality, integrity or availability, for example through prompt injection or accidental file overwrites. Earlier guardrails such as GuardAgent and Conseca either depend on hand-written trusted contexts or produce policies that block too much or too little.

AGrail is a lifelong guardrail that addresses both problems. It derives safety checks from universal safety criteria and any task-specific requests. Two cooperating LLMs then refine these checks during test-time adaptation (TTA), and the checks that prove effective are kept in memory. External tools can be called when a check needs them. The authors also release Safe-OS, a benchmark of real online OS-agent interactions that mixes attacks with benign tasks.

With Claude-3.5-Sonnet as the base model, AGrail detects risks accurately while rarely blocking legitimate actions. It also carries its learned checks across domains, which makes agents both safer and still usable.

## Key points
- Evaluation covers five benchmarks:
  - **Task-specific risks:** Mind2Web-SC and EICU-AC.
  - **Systemic risks:** AdvWeb, EIA and the new Safe-OS benchmark.
  - **Safe-OS design:** three attack scenarios (prompt injection, system sabotage and environment-dependent attacks) plus benign samples to measure overdefensiveness.
- With Claude-3.5-Sonnet, AGrail reaches:
  - 96.3% average accuracy on task-specific risks;
  - 96% of benign actions preserved;
  - attack success rate on Safe-OS of 3.8% (environment), 5% (sabotage) and 0% (prompt injection);
  - 0% attack success rate on AdvWeb and about 17% on EIA.
- In agreement with manually annotated ground-truth risk reasons, AGrail beats baselines by 46.2% on average and reaches 100% on OS prompt injection.
- Memory learned on Mind2Web-SC transferred to EICU-AC without any loss for Claude-3.5-Sonnet and with a 5.6% drop for GPT-4o.
- Stronger base models are largely insensitive to data order (F1 99.1 ±1.3 for Claude vs. 69.7 ±9.5 for GPT-4o-mini). Learned memories across random seeds converge to over 98% similarity after about four TTA iterations.

*Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.*

## Institutions

- [The Ohio State University](https://md.research.elamur.ai/free/en/universities/the-ohio-state-university/) — University, Columbus, United States · 90 works · 19,112 citations
- [University of Wisconsin–Madison](https://md.research.elamur.ai/free/en/universities/university-of-wisconsin-madison/) — University, Madison, United States · 54 works · 49,089 citations
- [University of California, Davis](https://md.research.elamur.ai/free/en/universities/university-of-california-davis/) — University, Davis, United States · 34 works · 42,940 citations

📚 Shelves (6): [🖥️ Computer Science](https://md.research.elamur.ai/free/en/shelves/computer-science/) · 18,614 works · [🤖 Artificial Intelligence](https://md.research.elamur.ai/free/en/shelves/computer-science/artificial-intelligence/) · 17,965 works · [🎭 Arts and Humanities](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/) · 17,450 works · [🗣️ Language and Linguistics](https://md.research.elamur.ai/free/en/shelves/arts-and-humanities/language-and-linguistics/) · 17,296 works · [🤝 Social Sciences](https://md.research.elamur.ai/free/en/shelves/social-sciences/) · 1,954 works · [🤝 Safety Research](https://md.research.elamur.ai/free/en/shelves/social-sciences/safety-research/) · 626 works

🧭 Topics (1): [🛡️ Bias, fairness & safety](https://md.research.elamur.ai/free/en/topics/bias-fairness-safety/) · 587 works

## Cite

Cite as: Weidi Luo, Shenghong Dai, Xiaogeng Liu, Suman Banerjee, Huan Sun, Muhao Chen and Chaowei Xiao. 2025. AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{luo2025agrail,
  title = {{AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection}},
  author = {Weidi Luo, Shenghong Dai, Xiaogeng Liu, Suman Banerjee, Huan Sun, Muhao Chen and Chaowei Xiao},
  booktitle = {Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2025},
  doi = {10.18653/v1/2025.acl-long.399},
  url = {https://doi.org/10.18653/v1/2025.acl-long.399}
}
```

- [← previous “Give Me BF16 or Give Me Death”? Accuracy-Performance Trade-Offs in LLM Quantization](https://md.research.elamur.ai/free/en/papers/kurtic-2025-give-me-bf16-or-give/)
- [next → Anchored Preference Optimization and Contrastive Revisions: Addressing Underspecification in Alignment](https://md.research.elamur.ai/free/en/papers/oosterlinck-2025-anchored-preference-optimization-contrastive-revisions/)
- [↑ back to papers of 2025](https://md.research.elamur.ai/free/en/papers/2025/page/5/)

## References

59 references, 19 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Mahyar Abbasian, Iman Azimi, Amir M. Rahmani, and Ramesh Jain. 2024. Conversational health agents: A personalized llm-powered agent framework. Preprint, arXiv:2310.02374. — [arXiv:2310.02374](https://arxiv.org/abs/2310.02374) [find](https://scholar.google.com/scholar?q=Mahyar+Abbasian%2C+Iman+Azimi%2C+Amir+M%2E+Rahmani%2C+and+Ramesh+Jain%2E+2024%2E+Conversational+health+agents%3A+A+personalized+llm%2Dpowered+agent+framework%2E+Preprint%2C+arXiv%3A2310%2E02374%2E+%E2%80%94+%5BarXiv%3A2310%2E02374%5D%28https%3A%2F%2F)
2. Meta AI. 2025. Llama guard 3: Model cards and prompt formats. Accessed: 2025-02-02. [find](https://scholar.google.com/scholar?q=Meta+AI%2E+2025%2E+Llama+guard+3%3A+Model+cards+and+prompt+formats%2E+Accessed%3A+2025%2D02%2D02%2E)
3. Daniil A. Boiko, Robert MacKnight, Ben Kline, and Gabe Gomes. 2023. [Autonomous chemical research with large language models](https://md.research.elamur.ai/free/en/papers/boiko-2023-autonomous-chemical-research-large-language/). Nature, 624(7992):570– 578.
4. Andres M Bran, Sam Cox, Oliver Schilter, Carlo Baldassari, Andrew D White, and Philippe Schwaller. 2023. [Chemcrow: Augmenting large-language models with chemistry tools](https://md.research.elamur.ai/free/en/papers/bran-2023-chemcrow-augmenting-large-language/). Nature Machine Intelligence.
5. Edoardo Debenedetti, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, and Florian Tramèr. 2024. Agentdojo: A dynamic environment to evaluate prompt injection attacks and defenses for llm agents. Preprint, arXiv:2406.13352. [find](https://scholar.google.com/scholar?q=Edoardo+Debenedetti%2C+Jie+Zhang%2C+Mislav+Balunovic%CC%81%2C+Luca+Beurer%2DKellner%2C+Marc+Fischer%2C+and+Florian+Tram%C3%A8r%2E+2024%2E+Agentdojo%3A+A+dynamic+environment+to+evaluate+prompt+injection+attacks+and+defenses+for+l)
6. A. Ghafarollahi and M. J. Buehler. 2024. Protagents: Protein discovery via large language model multi-agent collaborations combining physics and machine learning. Preprint, arXiv:2402.04268. — [arXiv:2402.04268](https://arxiv.org/abs/2402.04268) [find](https://scholar.google.com/scholar?q=A%2E+Ghafarollahi+and+M%2E+J%2E+Buehler%2E+2024%2E+Protagents%3A+Protein+discovery+via+large+language+model+multi%2Dagent+collaborations+combining+physics+and+machine+learning%2E+Preprint%2C+arXiv%3A2402%2E04268%2E+%E2%80%94+%5BarXiv%3A)
7. Boyu Gou, Ruohan Wang, Boyuan Zheng, Yanan Xie, Cheng Chang, Yiheng Shu, Huan Sun, and Yu Su. 2024. [Navigating the digital world as humans do: Universal visual grounding for gui agents](https://md.research.elamur.ai/free/en/papers/gou-2024-navigating-digital-world-humans-universal/). International Conference on Learning Representations (ICLR).
8. Yu Gu, Yiheng Shu, Hao Yu, Xiao Liu, Yuxiao Dong, Jie Tang, Jayanth Srinivasa, Hugo Latapie, and Yu Su. 2024a. Middleware for llms: Tools are instrumental for language agents in complex environments. Preprint, arXiv:2402.14672. [find](https://scholar.google.com/scholar?q=Yu+Gu%2C+Yiheng+Shu%2C+Hao+Yu%2C+Xiao+Liu%2C+Yuxiao+Dong%2C+Jie+Tang%2C+Jayanth+Srinivasa%2C+Hugo+Latapie%2C+and+Yu+Su%2E+2024a%2E+Middleware+for+llms%3A+Tools+are+instrumental+for+language+agents+in+complex+environments%2E+)
9. Yu Gu, Boyuan Zheng, Boyu Gou, Kai Zhang, Cheng Chang, Sanjari Srivastava, Yanan Xie, Peng Qi, Huan Sun, and Yu Su. 2024b. Is your llm secretly a world model of the internet? model-based planning for web agents. Preprint, arXiv:2411.06559. — [arXiv:2411.06559](https://arxiv.org/abs/2411.06559) [find](https://scholar.google.com/scholar?q=Yu+Gu%2C+Boyuan+Zheng%2C+Boyu+Gou%2C+Kai+Zhang%2C+Cheng+Chang%2C+Sanjari+Srivastava%2C+Yanan+Xie%2C+Peng+Qi%2C+Huan+Sun%2C+and+Yu+Su%2E+2024b%2E+Is+your+llm+secretly+a+world+model+of+the+internet%3F+model%2Dbased+planning+for+)
10. Yifeng He, Ethan Wang, Yuyang Rong, Zifei Cheng, and Hao Chen. 2024. Security of ai agents. Preprint, arXiv:2406.08689. — [arXiv:2406.08689](https://arxiv.org/abs/2406.08689) [find](https://scholar.google.com/scholar?q=Yifeng+He%2C+Ethan+Wang%2C+Yuyang+Rong%2C+Zifei+Cheng%2C+and+Hao+Chen%2E+2024%2E+Security+of+ai+agents%2E+Preprint%2C+arXiv%3A2406%2E08689%2E+%E2%80%94+%5BarXiv%3A2406%2E08689%5D%28https%3A%2F%2Farxiv%2Eorg%2Fabs%2F2406%2E08689%29)
11. Wenyue Hua, Xianjun Yang, Mingyu Jin, Zelong Li, Wei Cheng, Ruixiang Tang, and Yongfeng Zhang. 2024a. Trustagent: Towards safe and trustworthy llm-based agents. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 10000–10016. [find](https://scholar.google.com/scholar?q=Wenyue+Hua%2C+Xianjun+Yang%2C+Mingyu+Jin%2C+Zelong+Li%2C+Wei+Cheng%2C+Ruixiang+Tang%2C+and+Yongfeng+Zhang%2E+2024a%2E+Trustagent%3A+Towards+safe+and+trustworthy+llm%2Dbased+agents%2E+In+Findings+of+the+Association+for+Comp)
12. Wenyue Hua, Xianjun Yang, Mingyu Jin, Zelong Li, Wei Cheng, Ruixiang Tang, and Yongfeng Zhang. 2024b. Trustagent: Towards safe and trustworthy llm-based agents. Preprint, arXiv:2402.01586. [find](https://scholar.google.com/scholar?q=Wenyue+Hua%2C+Xianjun+Yang%2C+Mingyu+Jin%2C+Zelong+Li%2C+Wei+Cheng%2C+Ruixiang+Tang%2C+and+Yongfeng+Zhang%2E+2024b%2E+Trustagent%3A+Towards+safe+and+trustworthy+llm%2Dbased+agents%2E+Preprint%2C+arXiv%3A2402%2E01586%2E)
13. Mingyu Jin, Qinkai Yu, Jingyuan Huang, Qingcheng Zeng, Zhenting Wang, Wenyue Hua, Haiyan Zhao, Kai Mei, Yanda Meng, Kaize Ding, Fan Yang, Mengnan Du, and Yongfeng Zhang. 2025. [Exploring concept depth: How large language models acquire knowledge and concept at different layers?](https://md.research.elamur.ai/free/en/papers/jin-2025-exploring-concept-depth-how-large/) Proceedings of the 31s…
14. Mingyu Jin, Qinkai Yu, Dong Shu, Haiyan Zhao, Wenyue Hua, Yanda Meng, Yongfeng Zhang, and Mengnan Du. 2024. [The impact of reasoning step length on large language models](https://md.research.elamur.ai/free/en/papers/jin-2024-impact-reasoning-step-length-large/). In Findings of the Association for Computational Linguistics: ACL 2024, pages 1830–1842, Bangkok, Thailand. Association for Comput…
15. Hao Li and Xiaogeng Liu. 2024. Injecguard: Benchmarking and mitigating over-defense in prompt injection guardrail models. Preprint, arXiv:2410.22770. — [arXiv:2410.22770](https://arxiv.org/abs/2410.22770) [find](https://scholar.google.com/scholar?q=Hao+Li+and+Xiaogeng+Liu%2E+2024%2E+Injecguard%3A+Benchmarking+and+mitigating+over%2Ddefense+in+prompt+injection+guardrail+models%2E+Preprint%2C+arXiv%3A2410%2E22770%2E+%E2%80%94+%5BarXiv%3A2410%2E22770%5D%28https%3A%2F%2Farxiv%2Eorg%2Fabs%2F2410%2E22)
16. Junkai Li, Siyu Wang, Meng Zhang, Weitao Li, Yunghwei Lai, Xinhui Kang, Weizhi Ma, and Yang Liu. 2024. Agent hospital: A simulacrum of hospital with evolvable medical agents. Preprint, arXiv:2405.02957. — [arXiv:2405.02957](https://arxiv.org/abs/2405.02957) [find](https://scholar.google.com/scholar?q=Junkai+Li%2C+Siyu+Wang%2C+Meng+Zhang%2C+Weitao+Li%2C+Yunghwei+Lai%2C+Xinhui+Kang%2C+Weizhi+Ma%2C+and+Yang+Liu%2E+2024%2E+Agent+hospital%3A+A+simulacrum+of+hospital+with+evolvable+medical+agents%2E+Preprint%2C+arXiv%3A2405%2E0295)
17. Zeyi Liao, Lingbo Mo, Chejian Xu, Mintong Kang, Jiawei Zhang, Chaowei Xiao, Yuan Tian, Bo Li, and Huan Sun. 2025. Eia: Environmental injection attack on generalist web agents for privacy leakage. International Conference on Learning Representations (ICLR). [find](https://scholar.google.com/scholar?q=Zeyi+Liao%2C+Lingbo+Mo%2C+Chejian+Xu%2C+Mintong+Kang%2C+Jiawei+Zhang%2C+Chaowei+Xiao%2C+Yuan+Tian%2C+Bo+Li%2C+and+Huan+Sun%2E+2025%2E+Eia%3A+Environmental+injection+attack+on+generalist+web+agents+for+privacy+leakage%2E+Inte)
18. Shuhang Lin, Wenyue Hua, Lingyao Li, Che-Jui Chang, Lizhou Fan, Jianchao Ji, Hang Hua, Mingyu Jin, Jiebo Luo, and Yongfeng Zhang. 2024. BattleAgent: Multi-modal dynamic emulation on historical battles to complement historical analysis. In Proceedings of the 2024 Conference on Empirical Methods in Na… [find](https://scholar.google.com/scholar?q=Shuhang+Lin%2C+Wenyue+Hua%2C+Lingyao+Li%2C+Che%2DJui+Chang%2C+Lizhou+Fan%2C+Jianchao+Ji%2C+Hang+Hua%2C+Mingyu+Jin%2C+Jiebo+Luo%2C+and+Yongfeng+Zhang%2E+2024%2E+BattleAgent%3A+Multi%2Dmodal+dynamic+emulation+on+historical+battles)
19. Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang. 2024a. [Agentbench: Evaluating llms…](https://md.research.elamur.ai/free/en/papers/liu-2023-agentbench-evaluating-llms-agents/)
20. Xiaogeng Liu, Zhiyuan Yu, Yizhe Zhang, Ning Zhang, and Chaowei Xiao. 2024b. Automatic and universal prompt injection attacks against large language models. Preprint, arXiv:2403.04957. — [arXiv:2403.04957](https://arxiv.org/abs/2403.04957) [find](https://scholar.google.com/scholar?q=Xiaogeng+Liu%2C+Zhiyuan+Yu%2C+Yizhe+Zhang%2C+Ning+Zhang%2C+and+Chaowei+Xiao%2E+2024b%2E+Automatic+and+universal+prompt+injection+attacks+against+large+language+models%2E+Preprint%2C+arXiv%3A2403%2E04957%2E+%E2%80%94+%5BarXiv%3A2403%2E04)
21. Weidi Luo, He Cao, Zijing Liu, Yu Wang, Aidan Wong, Bing Feng, Yuan Yao, and Yu Li. 2025a. Dynamic guided and domain applicable safeguards for enhanced security in large language models. Nations of the Americas Chapter of the Association for Computational Linguistics (NAACL). [find](https://scholar.google.com/scholar?q=Weidi+Luo%2C+He+Cao%2C+Zijing+Liu%2C+Yu+Wang%2C+Aidan+Wong%2C+Bing+Feng%2C+Yuan+Yao%2C+and+Yu+Li%2E+2025a%2E+Dynamic+guided+and+domain+applicable+safeguards+for+enhanced+security+in+large+language+models%2E+Nations+of+th)
22. Weidi Luo, Siyuan Ma, Xiaogeng Liu, Xiaoyu Guo, and Chaowei Xiao. 2024. [Jailbreakv: A benchmark for assessing the robustness of multimodal large language models against jailbreak attacks](https://md.research.elamur.ai/free/en/papers/luo-2024-jailbreakv-benchmark-assessing-robustness-multimodal/). Conference On Language Modeling (COLM).
23. Weidi Luo, Qiming Zhang, Tianyu Lu, Xiaogeng Liu, Yue Zhao, Zhen Xiang, and Chaowei Xiao. 2025b. Doxing via the lens: Revealing privacy leakage in image geolocation for agentic multi-modal large reasoning model. Preprint, arXiv:2504.19373. — [arXiv:2504.19373](https://arxiv.org/abs/2504.19373) [find](https://scholar.google.com/scholar?q=Weidi+Luo%2C+Qiming+Zhang%2C+Tianyu+Lu%2C+Xiaogeng+Liu%2C+Yue+Zhao%2C+Zhen+Xiang%2C+and+Chaowei+Xiao%2E+2025b%2E+Doxing+via+the+lens%3A+Revealing+privacy+leakage+in+image+geolocation+for+agentic+multi%2Dmodal+large+reaso)
24. Kai Mei, Zelong Li, Shuyuan Xu, Ruosong Ye, Yingqiang Ge, and Yongfeng Zhang. 2024a. Llm agent operating system. arXiv preprint arXiv:2403.16971. — [arXiv:2403.16971](https://arxiv.org/abs/2403.16971) [find](https://scholar.google.com/scholar?q=Kai+Mei%2C+Zelong+Li%2C+Shuyuan+Xu%2C+Ruosong+Ye%2C+Yingqiang+Ge%2C+and+Yongfeng+Zhang%2E+2024a%2E+Llm+agent+operating+system%2E+arXiv+preprint+arXiv%3A2403%2E16971%2E+%E2%80%94+%5BarXiv%3A2403%2E16971%5D%28https%3A%2F%2Farxiv%2Eorg%2Fabs%2F2403%2E16971%29)
25. Kai Mei, Xi Zhu, Wujiang Xu, Wenyue Hua, Mingyu Jin, Zelong Li, Shuyuan Xu, Ruosong Ye, Yingqiang Ge, and Yongfeng Zhang. 2024b. Aios: Llm agent operating system. Preprint, arXiv:2403.16971. — [arXiv:2403.16971](https://arxiv.org/abs/2403.16971) [find](https://scholar.google.com/scholar?q=Kai+Mei%2C+Xi+Zhu%2C+Wujiang+Xu%2C+Wenyue+Hua%2C+Mingyu+Jin%2C+Zelong+Li%2C+Shuyuan+Xu%2C+Ruosong+Ye%2C+Yingqiang+Ge%2C+and+Yongfeng+Zhang%2E+2024b%2E+Aios%3A+Llm+agent+operating+system%2E+Preprint%2C+arXiv%3A2403%2E16971%2E+%E2%80%94+%5BarXiv%3A)
26. MetaAI. 2024a. Llama guard 3 8b. Accessed: 2024-08-16. [find](https://scholar.google.com/scholar?q=MetaAI%2E+2024a%2E+Llama+guard+3+8b%2E+Accessed%3A+2024%2D08%2D16%2E)
27. MetaAI. 2024b. Meta llama 3 8b instruct. Accessed: 2024-08-16. [find](https://scholar.google.com/scholar?q=MetaAI%2E+2024b%2E+Meta+llama+3+8b+instruct%2E+Accessed%3A+2024%2D08%2D16%2E)
28. Silen Naihin, David Atkinson, Marc Green, Mer-wane Hamadi, Craig Swift, Douglas Schonholtz, Adam Tauman Kalai, and David Bau. 2023. Testing language model agents safely in the wild. Preprint, arXiv:2311.10538. — [arXiv:2311.10538](https://arxiv.org/abs/2311.10538) [find](https://scholar.google.com/scholar?q=Silen+Naihin%2C+David+Atkinson%2C+Marc+Green%2C+Mer%2Dwane+Hamadi%2C+Craig+Swift%2C+Douglas+Schonholtz%2C+Adam+Tauman+Kalai%2C+and+David+Bau%2E+2023%2E+Testing+language+model+agents+safely+in+the+wild%2E+Preprint%2C+arXiv%3A23)
29. Joon Sung Park, Joseph C. O’Brien, Carrie J. Cai, Meredith Ringel Morris, Percy Liang, and Michael S. Bernstein. 2023. Generative agents: Interactive simulacra of human behavior. In In the 36th Annual ACM Symposium on User Interface Software and Technology (UIST ’23), UIST ’23, New York, NY, USA. As… [find](https://scholar.google.com/scholar?q=Joon+Sung+Park%2C+Joseph+C%2E+O%E2%80%99Brien%2C+Carrie+J%2E+Cai%2C+Meredith+Ringel+Morris%2C+Percy+Liang%2C+and+Michael+S%2E+Bernstein%2E+2023%2E+Generative+agents%3A+Interactive+simulacra+of+human+behavior%2E+In+In+the+36th+Annual)
30. Traian Rebedea, Razvan Dinu, Makesh Narsimhan Sreedhar, Christopher Parisien, and Jonathan Cohen. 2023. NeMo guardrails: A toolkit for controllable and safe LLM applications with programmable rails. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Dem… [find](https://scholar.google.com/scholar?q=Traian+Rebedea%2C+Razvan+Dinu%2C+Makesh+Narsimhan+Sreedhar%2C+Christopher+Parisien%2C+and+Jonathan+Cohen%2E+2023%2E+NeMo+guardrails%3A+A+toolkit+for+controllable+and+safe+LLM+applications+with+programmable+rails%2E+I)
31. Yangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis, Yongchao Zhou, Jimmy Ba, Yann Dubois, Chris J Maddison, and Tatsunori Hashimoto. 2024. [find](https://scholar.google.com/scholar?q=Yangjun+Ruan%2C+Honghua+Dong%2C+Andrew+Wang%2C+Silviu+Pitis%2C+Yongchao+Zhou%2C+Jimmy+Ba%2C+Yann+Dubois%2C+Chris+J+Maddison%2C+and+Tatsunori+Hashimoto%2E+2024%2E)
32. [Identifying the risks of lm agents with an lm-emulated sandbox](https://md.research.elamur.ai/free/en/papers/ruan-2023-identifying-risks-lm-agents-lm/). International Conference on Learning Representations (ICLR).
33. Xinyue Shen, Zeyuan Chen, Michael Backes, Yun Shen, and Yang Zhang. 2024. [“Do Anything Now”: Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models](https://md.research.elamur.ai/free/en/papers/shen-2023-anything-now-characterizing-evaluating-wild/). In ACM SIGSAC Conference on Computer and Communications Security (CCS). ACM.
34. Wenqi Shi, Ran Xu, Yuchen Zhuang, Yue Yu, Jieyu Zhang, Hang Wu, Yuanda Zhu, Joyce C. Ho, Carl Yang, and May Dongmei Wang. 2024. EHRAgent: Code empowers large language models for few-shot complex tabular reasoning on electronic health records. In Proceedings of the 2024 Conference on Empirical Method… [find](https://scholar.google.com/scholar?q=Wenqi+Shi%2C+Ran+Xu%2C+Yuchen+Zhuang%2C+Yue+Yu%2C+Jieyu+Zhang%2C+Hang+Wu%2C+Yuanda+Zhu%2C+Joyce+C%2E+Ho%2C+Carl+Yang%2C+and+May+Dongmei+Wang%2E+2024%2E+EHRAgent%3A+Code+empowers+large+language+models+for+few%2Dshot+complex+tabul)
35. Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. [Reflexion: Language agents with verbal reinforcement learning](https://md.research.elamur.ai/free/en/papers/shinn-2023-reflexion-language-agents-verbal-reinforcement/). Conference on Neural Information Processing Systems (Neurips).
36. Yu Su. 2023. Language agents: a critical evolutionary step of artificial intelligence. yusu.substack.com. [find](https://scholar.google.com/scholar?q=Yu+Su%2E+2023%2E+Language+agents%3A+a+critical+evolutionary+step+of+artificial+intelligence%2E+yusu%2Esubstack%2Ecom%2E)
37. Lillian Tsai and Eugene Bagdasarian. 2025. Context is key for agent security. Preprint, arXiv:2501.17070. — [arXiv:2501.17070](https://arxiv.org/abs/2501.17070) [find](https://scholar.google.com/scholar?q=Lillian+Tsai+and+Eugene+Bagdasarian%2E+2025%2E+Context+is+key+for+agent+security%2E+Preprint%2C+arXiv%3A2501%2E17070%2E+%E2%80%94+%5BarXiv%3A2501%2E17070%5D%28https%3A%2F%2Farxiv%2Eorg%2Fabs%2F2501%2E17070%29)
38. Tao Tu, Anil Palepu, Mike Schaekermann, Khaled Saab, Jan Freyberg, Ryutaro Tanno, Amy Wang, Brenna Li, Mohamed Amin, Nenad Tomasev, Shekoofeh Azizi, Karan Singhal, Yong Cheng, Le Hou, Albert Webson, Kavita Kulkarni, S Sara Mahdavi, Christopher Semturs, Juraj Gottweis, Joelle Barral, Katherine Chou,… — [arXiv:2401.05654](https://arxiv.org/abs/2401.05654) [find](https://scholar.google.com/scholar?q=Tao+Tu%2C+Anil+Palepu%2C+Mike+Schaekermann%2C+Khaled+Saab%2C+Jan+Freyberg%2C+Ryutaro+Tanno%2C+Amy+Wang%2C+Brenna+Li%2C+Mohamed+Amin%2C+Nenad+Tomasev%2C+Shekoofeh+Azizi%2C+Karan+Singhal%2C+Yong+Cheng%2C+Le+Hou%2C+Albert+Webson%2C+K)
39. Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin Zhao, Zhewei Wei, and Jirong Wen. 2024. [A survey on large language model based autonomous agents](https://md.research.elamur.ai/free/en/papers/wang-2023-survey-large-language-model-based/). Frontiers of Computer Science, 18(6).
40. Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed Chi, Quoc Le, and Denny Zhou. 2023. [Chain-of-thought prompting elicits reasoning in large language models](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/). Conference on Neural Information Processing Systems (Neurips).
41. Zhen Xiang, Linzhi Zheng, Yanjie Li, Junyuan Hong, Qinbin Li, Han Xie, Jiawei Zhang, Zidi Xiong, Chulin Xie, Carl Yang, Dawn Song, and Bo Li. 2024. Guardagent: Safeguard llm agents by a guard agent via knowledge-enabled reasoning. Preprint, arXiv:2406.09187. — [arXiv:2406.09187](https://arxiv.org/abs/2406.09187) [find](https://scholar.google.com/scholar?q=Zhen+Xiang%2C+Linzhi+Zheng%2C+Yanjie+Li%2C+Junyuan+Hong%2C+Qinbin+Li%2C+Han+Xie%2C+Jiawei+Zhang%2C+Zidi+Xiong%2C+Chulin+Xie%2C+Carl+Yang%2C+Dawn+Song%2C+and+Bo+Li%2E+2024%2E+Guardagent%3A+Safeguard+llm+agents+by+a+guard+agent+vi)
42. Jian Xie, Kai Zhang, Jiangjie Chen, Tinghui Zhu, Renze Lou, Yuandong Tian, Yanghua Xiao, and Yu Su. 2024. [Travelplanner: A benchmark for real-world planning with language agents](https://md.research.elamur.ai/free/en/papers/xie-2024-travelplanner-benchmark-real-world-planning/). In International Conference on Machine Learning (ICML).
43. Chejian Xu, Mintong Kang, Jiawei Zhang, Zeyi Liao, Lingbo Mo, Mengqi Yuan, Huan Sun, and Bo Li. 2024. Advweb: Controllable black-box attacks on vlm-powered web agents. Preprint, arXiv:2410.17401. — [arXiv:2410.17401](https://arxiv.org/abs/2410.17401) [find](https://scholar.google.com/scholar?q=Chejian+Xu%2C+Mintong+Kang%2C+Jiawei+Zhang%2C+Zeyi+Liao%2C+Lingbo+Mo%2C+Mengqi+Yuan%2C+Huan+Sun%2C+and+Bo+Li%2E+2024%2E+Advweb%3A+Controllable+black%2Dbox+attacks+on+vlm%2Dpowered+web+agents%2E+Preprint%2C+arXiv%3A2410%2E17401%2E+%E2%80%94+%5Ba)
44. Qisen Yang, Zekun Wang, Honghui Chen, Shenzhi Wang, Yifan Pu, Xin Gao, Wenhao Huang, Shiji Song, and Gao Huang. 2024. PsychoGAT: A novel psychological measurement paradigm through interactive fiction games with LLM agents. In Proceedings of the 62nd Annual Meeting of the Association for Computationa… [find](https://scholar.google.com/scholar?q=Qisen+Yang%2C+Zekun+Wang%2C+Honghui+Chen%2C+Shenzhi+Wang%2C+Yifan+Pu%2C+Xin+Gao%2C+Wenhao+Huang%2C+Shiji+Song%2C+and+Gao+Huang%2E+2024%2E+PsychoGAT%3A+A+novel+psychological+measurement+paradigm+through+interactive+fiction+)
45. Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. 2023. [React: Synergizing reasoning and acting in language models](https://md.research.elamur.ai/free/en/papers/yao-2022-react-synergizing-reasoning-acting-language/). International Conference on Learning Representations (ICLR).
46. Botao Yu, Frazier N. Baker, Ziru Chen, Garrett Herb, Boyu Gou, Daniel Adu-Ampratwum, Xia Ning, and Huan Sun. 2024. Tooling or not tooling? the impact of tools on language agents for chemistry problem solving. Nations of the Americas Chapter of the Association for Computational Linguistics (NAACL). [find](https://scholar.google.com/scholar?q=Botao+Yu%2C+Frazier+N%2E+Baker%2C+Ziru+Chen%2C+Garrett+Herb%2C+Boyu+Gou%2C+Daniel+Adu%2DAmpratwum%2C+Xia+Ning%2C+and+Huan+Sun%2E+2024%2E+Tooling+or+not+tooling%3F+the+impact+of+tools+on+language+agents+for+chemistry+problem+)
47. Tongxin Yuan, Zhiwei He, Lingzhong Dong, Yiming Wang, Ruijie Zhao, Tian Xia, Lizhen Xu, Binglin Zhou, Fangqi Li, Zhuosheng Zhang, Rui Wang, and Gongshen Liu. 2024a. [R-judge: Benchmarking safety risk awareness for llm agents](https://md.research.elamur.ai/free/en/papers/yuan-2024-r-judge-benchmarking-safety-risk/). Empirical Methods in Natural Language Processing (EMNLP).
48. Zhuowen Yuan, Zidi Xiong, Yi Zeng, Ning Yu, Ruoxi Jia, Dawn Song, and Bo Li. 2024b. Rigorllm: Resilient guardrails for large language models against undesired content. Preprint, arXiv:2403.13031. [find](https://scholar.google.com/scholar?q=Zhuowen+Yuan%2C+Zidi+Xiong%2C+Yi+Zeng%2C+Ning+Yu%2C+Ruoxi+Jia%2C+Dawn+Song%2C+and+Bo+Li%2E+2024b%2E+Rigorllm%3A+Resilient+guardrails+for+large+language+models+against+undesired+content%2E+Preprint%2C+arXiv%3A2403%2E13031%2E)
49. Yi Zeng, Yu Yang, Andy Zhou, Jeffrey Ziwei Tan, Yuheng Tu, Yifan Mai, Kevin Klyman, Minzhou Pan, Ruoxi Jia, Dawn Song, Percy Liang, and Bo Li. 2024. [find](https://scholar.google.com/scholar?q=Yi+Zeng%2C+Yu+Yang%2C+Andy+Zhou%2C+Jeffrey+Ziwei+Tan%2C+Yuheng+Tu%2C+Yifan+Mai%2C+Kevin+Klyman%2C+Minzhou+Pan%2C+Ruoxi+Jia%2C+Dawn+Song%2C+Percy+Liang%2C+and+Bo+Li%2E+2024%2E)
50. Air-bench 2024: A safety benchmark based on risk categories from regulations and policies. Preprint, arXiv:2407.17436. [find](https://scholar.google.com/scholar?q=Air%2Dbench+2024%3A+A+safety+benchmark+based+on+risk+categories+from+regulations+and+policies%2E+Preprint%2C+arXiv%3A2407%2E17436%2E)
51. Chong Zhang, Xinyi Liu, Zhongmou Zhang, Mingyu Jin, Lingyao Li, Zhenting Wang, Wenyue Hua, Dong Shu, Suiyuan Zhu, Xiaobo Jin, Sujian Li, Mengnan Du, and Yongfeng Zhang. 2024a. When ai meets finance (stockagent): Large language model-based stock trading in simulated real-world environments. Preprint,… — [arXiv:2407.18957](https://arxiv.org/abs/2407.18957) [find](https://scholar.google.com/scholar?q=Chong+Zhang%2C+Xinyi+Liu%2C+Zhongmou+Zhang%2C+Mingyu+Jin%2C+Lingyao+Li%2C+Zhenting+Wang%2C+Wenyue+Hua%2C+Dong+Shu%2C+Suiyuan+Zhu%2C+Xiaobo+Jin%2C+Sujian+Li%2C+Mengnan+Du%2C+and+Yongfeng+Zhang%2E+2024a%2E+When+ai+meets+finance+%28s)
52. Hanrong Zhang, Jingyuan Huang, Kai Mei, Yifei Yao, Zhenting Wang, Chenlu Zhan, Hongwei Wang, and Yongfeng Zhang. 2025. Agent security bench (asb): Formalizing and benchmarking attacks and defenses in llm-based agents. International Conference on Learning Representations (ICLR). [find](https://scholar.google.com/scholar?q=Hanrong+Zhang%2C+Jingyuan+Huang%2C+Kai+Mei%2C+Yifei+Yao%2C+Zhenting+Wang%2C+Chenlu+Zhan%2C+Hongwei+Wang%2C+and+Yongfeng+Zhang%2E+2025%2E+Agent+security+bench+%28asb%29%3A+Formalizing+and+benchmarking+attacks+and+defenses+in+)
53. Zhexin Zhang, Shiyao Cui, Yida Lu, Jingzhuo Zhou, Junxiao Yang, Hongning Wang, and Minlie Huang. 2024b. Agent-safetybench: Evaluating the safety of llm agents. Preprint, arXiv:2412.14470. — [arXiv:2412.14470](https://arxiv.org/abs/2412.14470) [find](https://scholar.google.com/scholar?q=Zhexin+Zhang%2C+Shiyao+Cui%2C+Yida+Lu%2C+Jingzhuo+Zhou%2C+Junxiao+Yang%2C+Hongning+Wang%2C+and+Minlie+Huang%2E+2024b%2E+Agent%2Dsafetybench%3A+Evaluating+the+safety+of+llm+agents%2E+Preprint%2C+arXiv%3A2412%2E14470%2E+%E2%80%94+%5BarXiv%3A241)
54. Boyuan Zheng, Boyu Gou, Jihyung Kil, Huan Sun, and Yu Su. 2024a. [Gpt-4v(ision) is a generalist web agent, if grounded](https://md.research.elamur.ai/free/en/papers/zheng-2024-gpt-4v-ision-generalist-web/). International Conference on Machine Learning (ICML).
55. SUMMARY OF THE APPENDIX This appendix contains additional details for the “AGrail: A Lifelong AI Agent Guardrail with Effective and Adaptive Safety Detection”. The appendix is organized as follows: • §A Data Construction – A.1 Implement Details – A.2 Dataset Details – A.3 More Examples Huaixiu Steve… — [Take a Step Back: Evoking Reasoning via Abstraction in Large Language Models](https://md.research.elamur.ai/free/en/papers/zheng-2023-take-step-back-evoking-reasoning/)
56. §B Methodology – B.1 Algorithm Details – B.2 Application Details – B.3 Prompt Configuration Shuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou, Robert Lo, Abishek Sridhar, Xianyi Cheng, Tianyue Ou, Yonatan Bisk, Daniel Fried, Uri Alon, and Graham Neubig. 2024. [Webarena: A realistic web environment for bu…](https://md.research.elamur.ai/free/en/papers/zhou-2023-webarena-realistic-web-environment-building/)
57. §C Preliminary Study – C.1 Experiment Setting Details – C.2 Evaluation Metric Details Andrew Zhu, Lara Martin, Andrew Head, and Chris Callison-Burch. 2023a. Calypso: Llms as dungeon master’s assistants. Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainme… [find](https://scholar.google.com/scholar?q=%C2%A7C+Preliminary+Study+%E2%80%93+C%2E1+Experiment+Setting+Details+%E2%80%93+C%2E2+Evaluation+Metric+Details+Andrew+Zhu%2C+Lara+Martin%2C+Andrew+Head%2C+and+Chris+Callison%2DBurch%2E+2023a%2E+Calypso%3A+Llms+as+dungeon+master%E2%80%99s+assistant)
58. §D Ablation Study – D.1 OOD and ID Analysis Details – D.2 Sequence Analysis Details – D.3 Domain Transferability Analysis – D.4 Universal Safety Criteria Analysis Xizhou Zhu, Yuntao Chen, Hao Tian, Chenxin Tao, Weijie Su, Chenyu Yang, Gao Huang, Bin Li, Lewei Lu, Xiaogang Wang, Yu Qiao, Zhaoxiang Zh… — [Ghost in the Minecraft: Generally Capable Agents for Open-World Environments via Large Language Models with Text-based Knowledge and Memory](https://md.research.elamur.ai/free/en/papers/zhu-2023-ghost-minecraft-generally-capable-agents/)
59. §E Case Study – E.1 Error Analysis – E.2 Computing Cost – E.3 Experiment with Observation – E.4 Learning Analysis • §F Tool Development – F.1 OS Environment Detector – F.2 EHR Permission Detector – F.3 Web HTML Detector • §G More Examples Demo – G.1 Mind2Web-SC – G.2 EICU-AC – G.3 Safe-OS – G.4 AdvW… [find](https://scholar.google.com/scholar?q=%C2%A7E+Case+Study+%E2%80%93+E%2E1+Error+Analysis+%E2%80%93+E%2E2+Computing+Cost+%E2%80%93+E%2E3+Experiment+with+Observation+%E2%80%93+E%2E4+Learning+Analysis+%E2%80%A2+%C2%A7F+Tool+Development+%E2%80%93+F%2E1+OS+Environment+Detector+%E2%80%93+F%2E2+EHR+Permission+Detector+%E2%80%93+F%2E)

*Updated 2 November 2026*
