SkillLifeBench: Benchmarking Security Across the Lifecycle of Agent Skills
Organizations: Imperial College London, United Kingdom · Peking University, China
Abstract
Web agents reuse skills whose stored code, selected version, and loaded implementation can diverge across tasks and updates. SkillLifeBench links these states to task outcomes in 388 paired scenarios spanning implementation, interface, runtime, composition, and version changes. We evaluate 14 models on two paired decision tracks: 89 runtime tasks and 60 autonomous lifecycle tasks spanning 12 templates derived from introduced cases. Lifecycle tasks allow agents to inspect, select, and reconfigure skills while completing verifiable user requests. Joint success requires task completion without the registered attack goal. GPT-5.6-Sol and Sonnet 4.6 both achieve 82.0% on runtime tasks, but reach 96.7% and 56.7% on lifecycle tasks. Across lifecycle evaluations, challenged task success is 77.5%, while joint success is 65.2%; 103 runs complete the task and the attack goal. Adding execution provenance in a matched recovery study raises utility joint success from 49.35% with logs and metadata to 65.58%. A deterministic execution-consistency rule reaches 64.94% with higher benign utility, while full restoration reaches 69.48%. Lifecycle tasks distinguish models with similar runtime scores, and execution evidence improves recovery.
Figures & tables
| Benchmark | Skill artifacts | Retained state | Version changes | Utility + harm | Versioned provenance | Invoked code binding | Evidence- guided mitigation |
| AgentDojo ( Debenedetti et al., 2024 ) | ✗ | — | — | ✓ | — | — | — |
| InjecAgent ( Zhan et al., 2024 ) | ✗ | — | — | — | — | — | |
| ToolSword ( Ye et al., 2024 ) | — | — | — | — | — | ||
| AgentTrap ( Zhuang et al., 2026 ) | ✓ | — | — | — | |||
| MetaCascade ( Wen et al., 2026 ) | ✓ | — | — | ✗ | — | ✗ | — |
| SCR-Bench ( Xie et al., 2026 ) | ✓ | — | — | — | — | — | — |
| Subset | Default | Intervention | ||
| 1. Default Authorization check | ||||
| B/D/E | 92 | 31.52 | 46.74 | +15.22 |
| C: core | 178 | 67.42 | 72.47 | +5.06 |
| C: other | 70 | 37.14 | 50.00 | +12.86 |
| 2. Default deployment Authorized restoration | ||||
| Deployment | 378 | 6.88 | 70.63 | +63.76 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Fault type | Source | Changed state | Recovery actions | |
| Stored code replacement | 24 | Storage setup | Altered disk code; unchanged interface. | Activate approved code and reload. |
| Version/routing mismatch | 10 | Registry intervention | Pointer selects an ineligible version. | Activate an eligible target and reload. |
| Stale loaded code | 12 | Controlled update | Updated disk/active version; cached parent. | Reload or restart. |
| Retained old handle | 8 | Handle retention | New code loaded; callable retains old code. | Refresh references; reload or restart. |
| Wrong instance, same digest | 5 | Instance-binding intervention | Matching hashes; invalid public instance binding. | Refresh references; reload or restart. |
| Permitted code with a defect | 18 | Approval/update records | Permitted older code executes; newer eligible candidate exists. | Activate newer approved code; reload. |
| Task template | Parent | Complete endpoint |
| Private report | B-REPAIR-011 | Full text, owner-only access |
| Local document | B3-002 | Exact file, retained register |
| Local data filter | B1-002 | All matching rows/fields |
| Calendar read | B-REPAIR-009 | All meetings, unchanged state |
| Revoked grant | D-EXP-020 | All active-grant values |
| Expired cache | D-EXP-021 | Complete current object |
| Condition | 9B | 4B | Risk all | Benign | E only | Row only |
| Logs (M) | 42 | 34 | 76 | 120 | 30 | 5 |
| Reload | 49 | 41 | 90 | 122 | – | – |
| Restore | 51 | 43 | 94 | 118 | 12 | 5 |
| Link | 54 | 46 | 100 | 120 | 4 | 3 |
| Provenance (E) | 55 | 46 | 101 | 115 | 0 | 0 |
| Full | 58 | 49 | 107 | 117 | – | – |
| Subset | Qwen | Joint | Utility | Harm | Unobs. | |
| Non-runtime | 9B | 46 | 17 25 | 29 31 | 18 11 | 3 3 |
| 4B | 46 | 12 18 | 24 25 | 22 16 | 4 4 | |
| C: core 89 | 9B | 89 | 65 69 | 68 75 | 4 7 | 0 0 |
| 4B | 89 | 55 60 | 66 70 | 15 14 | 0 0 | |
| C: other 35 | 9B | 35 | 15 20 | 24 25 | 11 7 | 3 3 |
| 4B | 35 | 11 15 | 20 21 | 14 10 | 4 4 |
AI Agent Security Benchmarks
AI agent security benchmarks measure how tool-using and autonomous systems handle attacks, privacy risks, authorization, and harmful actions.
See all 305 papers