Evaluating Persistence of Poisoned Skills in Self-Improving LLM Agents That Rewrite Their Libraries
Through conducting research on the persistence and detection of poisoned skills in self-improving large language model agents that rewrite their own skill libraries, this study investigates how modification depth thresholds influence malicious skill visibility. The objective is to quantify detection efficacy under varying depth limits, employing a literature verification phase followed by a sandboxed simulation that iteratively copies and modifies skills within a synthetic library. The simulation produced ten malicious skill instances, each subjected to up to six modification layers, and applied a detection rule that flags a skill only if its modification depth is less than or equal to a specified threshold. Detection rates were uniformly 1.0 across thresholds of 2, 4, and 6, with zero undetected malicious skills, confirming that the employed rule remains fully effective even as modification depth increases. The takeaway is that, within the tested framework, depth-based detection thresholds do not compromise the identification of poisoned skills, suggesting robustness of simple depth-aware filters in self-evolving agent ecosystems. Draft prepared with a locally hosted language model; references were machine-verified; reproduction code included.
Authors
- Aarush Gupta
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24778380
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- preprint