Manuscript Offprint

arXiv:2611.03772

RuntimeTickets: Source-Grounded Security Obligations for Agent Skills

Kuiyi Gao, Xue Liu, Bowei He

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Third-party Agent Skills extend what an autonomous agent can do, but a malicious Skill can hide data exposure or output manipulation inside a legitimate workflow. Neither reading a Skill's description nor granting it tool permissions tells whether its execution meets the user's security requirements. We introduce RUNTIMETICKETS, a protocol that enforces and audits these requirements while a Skill runs. From released malicious-Skill datasets we derive a risk model and build adversarial-benign Skill pairs. From the task's delivery contract, a language model proposes security obligations for that task. Each obligation cites the Skill lines it answers, and the ticket tightens the host's approvals into fine-grained allowed actions but never loosens them. A runtime gate checks the recipient, object and amount of every outbound send before forwarding it, and trusted monitors record the effects within their observation scope. The ticket links these checks and observations to the approved obligations of each Skill run, and a deterministic decoder turns the ticket's status into governable data flows and verifies each obligation. Neither enforcement nor decoding involves a language model, so text injected by a Skill can change the proposal but never the rule that decides a send. We evaluate RUNTIMETICKETS at the network egress boundary of three unmodified agent frameworks against production Skill scanners and runtime baselines, among them an AgentBound-derived allow-list and SkillGuard. RUNTIMETICKETS eliminated both failure modes of current Skill defenses, overlook (malicious Skills let through) and overkill (benign Skills blocked): its overlook rate was 0.0% and its overkill rate 0.0%, while the scanners erred on both sides. RUNTIMETICKETS ties approved requirements to verifiable execution evidence and offers a common foundation for the safe and auditable deployment of third-party Skills.

1 INTRODUCTION

Agent Skills are packages of instructions, scripts and reference files that an agent loads on demand (Anthropic 2026). Frameworks such as OpenClaw and Hermes Agent load them (OpenClaw Foundation 2026, Nous Research 2026), and registries such as ClawHub and Skills.sh let third parties distribute them (OpenClaw 2026, Vercel 2026). A loaded Skill runs with the user's files, credentials and network access, usually without any mandatory review. The harm is already well documented: (1) Vulnerable and malicious Skills are common. One detector flagged at least one vulnerability in 26.1% of 31,132 Skills (Liu et al. 2026b), and behavioral verification confirmed 157 malicious Skills among 98,380 (Liu et al. 2026a). (2) Secrets leak at run time. 520 of 17,022 sampled Skills leaked credentials, and 89.6% of the leaked credentials were immediately exploitable (Chen et al. 2026). (3) Attacks have reached production registries. Antiy CERT counts at least 1,184 malicious Skills that have appeared on ClawHub, and the ClawHavoc campaign delivered infostealers that take browser passwords, SSH keys and exchange API keys (Antiy CERT 2026). (4) Default protection is weak, and defenses disagree. Only 0.12% of the Skills that five scanners analyzed

*Corresponding author.

Figure

Figure 1: A model proposes the ticket for each task before any run, and model-free code decides every outbound send and returns every verdict. Before any run, the host checks that the model's proposal stays within its grant A and freezes it as the ticket C. During each run, the gate at the effect boundary forwards a request only if C allows it. After the run, the decoder reads the authenticated account and returns one verdict per obligation, and the account names the layer that refused each blocked request.

were flagged by all five (Holzbauer et al. 2026). OpenClaw without an added defense layer resisted sandbox escape in 17% of attacks on average (Shan et al. 2026).

Consider a Skill that drafts a report and mails it to the recipient named in the task. A malicious version keeps every benign instruction and adds one more: also mail the workspace's credential file to the same recipient. Both go to the same address and differ only in what they carry. Whether a send is harmful depends on the task and the object, and a check of the package alone sees neither.

Existing defenses leave three gaps (Section 4, Table 2). Source scanners judge a package once, before any task exists (Cisco AI Defense 2026, NVIDIA 2026). A deployment-wide allow-list forwards every send to an address it already permits, including the task's own recipient. Most runtime monitors judge each tool call (Pan et al. 2026, Mou et al. 2026), so a send made by a helper script reaches them as the command that launched the script, not as a send. AgentBound does see sends at the network boundary, but it applies one fixed policy that no task narrows (Bühler et al. 2026).

A Skill's harm lies in what it does at run time, so we check each effect against requirements written for the task at hand. In RUNTIMETICKETS (Figure 1), a language model proposes a ticket once per task and Skill. The ticket's obligations name the recipients, objects and amounts the task requires. The host approves a ticket only if it tightens the host grant and never loosens it. A model-free gate at the egress boundary allows an effect only when the frozen ticket covers it. After the run, a deterministic decoder tells the user whether each obligation held (SUPPORTED), was broken (VIOLATED) or has no evidence (UNKNOWN), and the account records which layer refused each blocked request.

We build 60 twin pairs from released malicious-Skill datasets (Section 2) and run, on unmodified agent frameworks, the pairs whose attack an agent attempts without a defense. Under RUNTIMETICKETS no attempted attack got through and no benign run was blocked. Without a gate every attempted attack got through, and under an AgentBound-derived allow-list 75.0% did, including attacks that reuse the task's recipient. SkillGuard, run on its native Claude Code agent, also let such attacks through. Every account re-derived exactly, each refusal carried the layer that made it, and on a separate test set no tampered account produced a false SUPPORTED. Our contributions are:

  • We build a risk model and twin pairs from released malicious Skills (Section 2).
  • We design RUNTIMETICKETS, where a model proposes per-task requirements and a model-free core enforces and audits them (Section 3).
  • We evaluate RUNTIMETICKETS against source scanners, an AgentBound-derived allow-list and SkillGuard on three unmodified frameworks, and audit its accounts (Section 5).

Table 1: Five harm categories, fixed before any run, with 60 twin pairs in all. Each twin pair belongs to one category and is observed by the witness shown. The reported overlook rate uses the egress witness only.

CategoryHarmful effect that the attack Skill tries to causeWitnessPairs
E1 Exfiltrationcredentials or workspace data sent out of the hostegress36
E2 Destructive changefiles deleted, a repository redirected or rewrittenegress or workspace8
E3 Access weakeningpermissions loosened, keys or accounts addedegress or workspace5
E4 Content manipulationproduced content biased or falsifiedegress if sent8
E5 Safeguard suppressionchecks or safety configuration disabledworkspace3

References (33)