Backdoored Tool Use Detection in Sandboxed LLM Agents Attempting Data Exfiltration Through Traces
Keywords:
Large Language Models, Autonomous Agents, Backdoor Attacks, Data Exfiltration, Sandbox Environments, CybersecurityAbstract
The rapid integration of large language models as autonomous agents capable of interacting with external tools has introduced significant security vulnerabilities, particularly concerning data exfiltration. This paper investigates the phenomenon of backdoored tool-use in language model agents, where hidden triggers embedded during training compel the model to exploit external Application Programming Interfaces for the unauthorized transfer of sensitive information. We propose a comprehensive detection framework designed specifically for sandboxed environments, where the actions of untrusted agents can be monitored and analyzed in isolation. By employing a combination of dynamic behavioral analysis, semantic argument inspection, and contextual data flow tracking, our methodology successfully identifies anomalous tool invocations that deviate from expected operational parameters. We systematically evaluate the proposed framework against various simulated backdoor attacks, including those utilizing covert channels and steganographic encoding within standard search queries or network requests. The results demonstrate a high detection efficacy, significantly reducing false positive rates while maintaining robust sensitivity to subtle exfiltration attempts. This research provides critical insights into the evolving landscape of artificial intelligence security, offering a foundational defense mechanism for the safe deployment of autonomous agents in sensitive enterprise environments.
References
1. Yang, Z., Liang, B., & Ji, W. (2021). An intelligent end–edge–cloud architecture for visual IoT-assisted healthcare systems. IEEE internet of things journal, 8(23), 16779-16786.
2. Zhao, Y., & Han, Z. (2025, December). Safe and Adaptive Cloud Healing: Verifying LLM-Generated Recovery Plans with a Neural-Symbolic World Model. In 2025 7th International Academic Exchange Conference on Science and Technology Innovation (IAECST) (pp. 89-94). IEEE.
3. Hu, X., Caldentey, R., & Vulcano, G. (2013). Revenue sharing in airline alliances. Management Science, 59(5), 1177-1195.
4. Tian, Y., & Yang, Z. (2026, May). SAEC: scene-aware enhanced edge-cloud collaborative industrial vision inspection with multimodal LLM. In ICASSP 2026-2026 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) (pp. 19747-19751). IEEE.
5. Shen, B., Wang, Y., Shang, D., & Ning, T. (2026). Self-Commitment Latency: A Reward-Free Probe for Prompted Implicit Hacking. Publication date: 2026-06-04.
6. Yang, Z., Ji, W., Guo, Q., Zhao, J., Zhao, C., Zhang, X., ... & You, Y. (2026). CLAP: Cross-Layer Adaptive Pipelining Inference Scheduling for Resource-Efficient Edge-Cloud Vision Systems. ACM Transactions on Architecture and Code Optimization.
7. Wang, S., Zhang, X., Wang, P., & Li, X. (2026). Design of Magnetic Sensor Array-Based PUFs for IoT Security. IEEE Transactions on Instrumentation and Measurement, 75, 1-9.
8. Yang, Z., Ji, W., & Wang, Z. (2024). Adaptive joint configuration optimization for collaborative inference in edge-cloud systems. Science China Information Sciences, 67(4), 149103.
9. Yang, Z., Ji, W., Guo, Q., & Wang, Z. (2023, October). Javp: Joint-aware video processing with edge-cloud collaboration for dnn inference. In Proceedings of the 31st ACM International Conference on Multimedia (pp. 9152-9160).
10. Li, S. (2025). Momentum, volume and investor sentiment study for us technology sector stocks—A hidden markov model based principal component analysis. PloS one, 20(9), e0331658.
11. Wuyang Zhang and Shichao Pei. 2026. Your LLM Agent Can Leak Your Data: Data Exfiltration via Backdoored Tool
Use. arXiv:2604.05432 [cs.CR] doi:10.48550/arXiv.2604.05432
12. Jia, Y., Liu, X., Huang, J., Fan, Z., & Wang, X. (2026). Identity awakening in digital marketing: how facial recognition interactions foster green consumption behavior. Journal of Research in Interactive Marketing, 1-18.
13. Hu, X., Wan, Z., & Zhou, Q. (2025). The Profitability Puzzle of On-Demand Carpooling: Pricing, Matching, and Route Compatibility. HKU Jockey Club Enterprise Sustainability Global Research Institute Paper, (2025/001).
14. Chen, Y., Zhao, C., & Gao, Y. (2025). Blockchain applications in health insurance: a review of applications, challenges, and prospects. Frontiers in Blockchain, 8, 1699290.
15. Jia, Y., Wang, T., Xiao, K., & Guo, C. (2020). How to reduce opportunism through contractual governance in the cross-cultural supply chain context: evidence from Chinese exporters. Industrial Marketing Management, 91, 323-337.
16. Wang, C., Song, R., Muller, R., Monteuuis, J. P., Celik, Z. B., Petit, J., ... & Li, M. (2026, March). Cp-freezer: Latency attacks against vehicular cooperative perception. In Proceedings of the AAAI Conference on Artificial Intelligence (Vol. 40, No. 2, pp. 1114-1122).
17. Zhao, H., Huang, H., & Li, X. (2025, November). PP-Pose: Privacy-Preserving Human Pose Estimation Using Random High-Frequency Channel Combinations. In Australasian Joint Conference on Artificial Intelligence (pp. 191-203). Singapore: Springer Nature Singapore.
18. Yang, W., Qin, Y., & Yang, Y. (2021). Characterizing the multicast nature of malicious flows in CCN via SIS epidemic model. IEEE Systems Journal, 16(2), 2240-2250.
19. Cohen, J., Rosenfeld, E., & Kolter, J. Z. (2019). Certified adversarial robustness via randomized smoothing. In Proceedings of ICML.
20. Guo, J., Huang, S., Yao, Z., Zhang, Y., Lu, Y., Liu, J., ... & Wang, M. (2025). CryptoBench: A Dynamic Benchmark for Expert-Level Evaluation of LLM Agents in Cryptocurrency. arXiv preprint arXiv:2512.00417.
21. Zhou, D. (2025, December). M-VP2: Microservice-Oriented Vulnerability Patch Planning-A Cost-Aware Approachusing Multi-Agent Reinforcement Learning. In 2025 5th International Conference on Computer, Internet of Things and Control Engineering (CITCE) (pp. 248-254). IEEE.
22. Zhou, D. (2026). AI-Driven Hybrid SAST–DAST–SCA–IAST Framework for Risk-Based Vulnerability Prioritization in Microservice Architectures.
23. Li, C., Chen, H., & Cai, W. (2026, April). From Slang to Standards: Consensus-Driven Airdrop Hunter Definition as a Baseline for Cryptocurrency Ecosystem Security and Governance. In Proceedings of the 2026 CHI Conference on Human Factors in Computing Systems (pp. 1-18).
24. Li, X., Wang, P., Li, G., Ni, L., & Zhang, Y. (2023). Design of interface circuits and lightweight PUF for TMR sensors. IEEE Sensors Journal, 23(11), 11754-11761.
25. Li, Q., Li, L., Liu, Z., Sun, W., Li, W., Li, J., & Zhao, W. (2025). Cloud-edge collaboration for industrial Internet of Things: Scalable neurocomputing and rolling-horizon optimization. IEEE Internet of Things Journal, 12(12), 19929–19943.
26. Guo, Hanzhong, et al. "Real-time identity defenses against malicious personalization of diffusion models." arXiv preprint arXiv:2412.09844 (2024).
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Ryusei Shibata

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
