Manuscript Offprint

arXiv:2610.35215

SkillLifeBench: Benchmarking Security Across the Lifecycle of Agent Skills

Chenxu Zhang, Zhou Liu, Wu Xin, Wentao Zhang

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.

Keywords: LLM agents, agent skills, lifecycle security, security benchmarks, prompt injection

Code & benchmark: github.com/Tasselszcx/SkillLifeBench

(a) Dataset

Figure

(c) Feasible paths

RQ2

Classified before evaluation

Agent-visible

170 cases

Default vs.

Authorization check

Deployment

189 cases

Default vs.

Trusted restoration

No verified intervention

29 cases

Shared Default on 89 runtime tasks

Qwen3.5-9B

Qwen3.5-4B

(b) Paired evaluation

RQ1

Open-weight

8 models

DeepSeek

V4-Pro / V4-Flash / V3.2

GLM

5.2 / 5.3

Closed-weight

6 models

GPT

5.6-Sol / 5.6-Terra / 6-Luna

Kimi

K2.6

Sonnet

4.6 / 5

14 models · 2 decision tracks

Qwen3.5

9B / 4B

Gemini

3.5 Flash

① Pair

Run & trace

Shared contract

③ Score

Task + authorization

Figure

Clean

Challenged

Matched reset + budget

Figure

Agent

observe

Sandbox

Trace evidence

Selected

Executed

May differ

Calls / files

State

Utility / task

Effect / goal

Both can be true

Case: utility / harm

Decision: task / attack goal

Decision outcomes

True

False

(d) Evidence-guided recovery

RQ3

RQ4

77 risk + 77 benign per Qwen model

Evidence packet

Plan + apply

Follow-up

Logs + metadata

Logs + provenance

Identity - hashes - links

Utility

Harm

Logs 49.35% → Provenance 65.58%

Full restoration · 69.48%

Provenance vs. Full restoration

Plans

-55.52%

Online time

-23.53%

(e) Decision results

Joint SR (%) · ranked by lifecycle

Rank

Runtime (89)

Lifecycle (60)

1 @

GPT-5.6-Sol

82.0

96.7

1 @

GPT-5.6-Terra

80.9

96.7

3 A

Sonnet 5

76.4

88.3

3 2

GLM-5.2

74.2

88.3

5 2

GLM-5.3

76.4

80.0

6 2

DeepSeek-V4-Pro

77.5

76.7

6 2

Kimi-K2.6

77.5

76.7

8 2

DeepSeek-V3.2

28.1

60.0

9 A

Sonnet 4.6

82.0

56.7

10 2

Qwen3.5-4B

61.8

55.0

11 2

Qwen3.5-9B

73.0

51.7

12 2

DeepSeek-V4-Flash

77.5

45.0

13 2

GPT-6-Luna

73.0

31.7

14 2

Gemini 3.5 Flash

67.4

10.0

651 challenged lifecycle runs completed the task;

103 also achieved the attack goal.

Figure 1: SkillLifeBench overview. (a) 388 source scenarios; (b) paired evaluation on 89 runtime and 60 lifecycle tasks; (c) intervention feasibility; (d) matched recovery; (e) joint-success rankings across 14 models.

∗^{*}Corresponding author. Email: wentao.zhang@pku.edu.cn.

Figure

Figure 2: Controlled OpenClaw update. Selection returns patched v1v_{1}, but a cached handle executes v0v_{0}. The published ZIP preserves the requested document and includes prohibited .git metadata.

1 Introduction

Web agents use reusable skills to access email, cloud storage, and Web APIs [11, 18, 20]. A skill packages reusable instructions or executable functions for an agent. Stale or altered skills can expose private data or trigger unauthorized actions, making lifecycle integrity a Web security and privacy concern. Evaluation measures task completion and adherence to authorized data access, destinations, and state changes.

An agent can deliver a correct report while copying data without authorization, or select a repaired skill while a saved execution reference (handle) still invokes the vulnerable previous version (Figure 2). Existing benchmarks cover attacks through skill content, composition, persistence, and updates [2, 5, 10, 12, 13, 17, 24]. Outputs and version records alone cannot establish which code ran or whether its actions were authorized. Evaluation must link calls to executed code, check task completion and unauthorized effects separately, and test agents' version, permission, and workflow choices.

We introduce SkillLifeBench, with 388 paired cases spanning the skill lifecycle. Each pair holds the user request and authorization fixed while changing an implementation, interface, runtime response, composition, or version. Two paired decision tracks evaluate 14 models: 89 runtime tasks and 60 autonomous lifecycle tasks (Table 2). On lifecycle tasks, agents can inspect and change skill state or use available tools directly. Task and attack-goal checks define joint success: fulfilling the request without achieving the registered attack goal. Prescribed-call cases measure implementation behavior under a fixed invocation; the two decision tracks measure model choices with complete task checks.

Lifecycle tasks reveal differences beyond runtime performance: GPT-5.6-Sol and Sonnet 4.6 tie at 82.0% runtime joint success, but score 96.7% and 56.7% on lifecycle tasks. Across Qwen3.5-4B and Qwen3.5-9B, authorization checking improves runtime joint success, but attack-goal successes also increase from 19 to 21 (Section 4.3). For these two models, adding execution provenance to logs and metadata raises risk-task joint success from 76/154 to 101/154 under matched conditions. A deterministic hash-and-handle rule reaches 100/154 and preserves more benign task completions than provenance-guided diagnosis (Sections 4.4–4.5).

References (13)