---
title: SkillCFI applies control-flow integrity to agent skills: it blocked all 240 rule-breaking steps that permission allowlists let through, and none of 53 public skills was enforceable as written | ctxsec
url: https://ctxsec.com/items/arxiv-skillcfi-control-flow-integrity-for-agent-skills-blocks-240-violations-allowlists-admit-none-of-53-public-skills-enforceable
description: "Skills put a procedure's control flow into prompt text, so a deviating or prompt-injected agent can skip a check, or claim it passed, using only tools the skill allows. SkillCFI compiles a skill into agent instructions plus an executable contract and uses a deterministic runtime enforcer that admits a tool call only on trusted evidence and refuses inline scripts. Across 770 sessions it blocked all 240 violations before dispatch while normal tasks completed nearly as often; checking took about 2% of task time."
status: "research (arXiv preprint, not peer reviewed)"
published: 2026-11-18
---

> Skills put a procedure's control flow into prompt text, so a deviating or prompt-injected agent can skip a check, or claim it passed, using only tools the skill allows. SkillCFI compiles a skill into agent instructions plus an executable contract and uses a deterministic runtime enforcer that admits a tool call only on trusted evidence and refuses inline scripts. Across 770 sessions it blocked all 240 violations before dispatch while normal tasks completed nearly as often; checking took about 2% of task time.

[← Context & Harness Attacks](/context) · [markdown](/items/arxiv-skillcfi-control-flow-integrity-for-agent-skills-blocks-240-violations-allowlists-admit-none-of-53-public-skills-enforceable.md)

research (arXiv preprint, not peer reviewed)

2026-11-18 · published here

2026-11-20 11:43 PM ET

### SkillCFI applies control-flow integrity to agent skills: it blocked all 240 rule-breaking steps that permission allowlists let through, and none of 53 public skills was enforceable as written

- **Takeaway:** allowlists stop unauthorized tools, not authorized tools used in the wrong order (e.g. overwrite before validate). Put ordering checks in the harness, not in the prompt.

Sources: [arXiv 2611.24185: Control-Flow Integrity for Agent Skills (SkillCFI), Ruan et al. (Nov 18, 2026)](https://arxiv.org/abs/2611.24185)
