SkillScope : Toward Fine-Grained Least-Privilege Enforcement for Agent Skills

Jiangrong Wu, Yuhong Nan, Yixi Lin, Huaijin Wang, Yuming Xiao, Shuai Wang, Zibin Zheng · 2026

Read SkillScope : Toward Fine-Grained Least-Privilege Enforcement for Agent Skills by Jiangrong Wu, Yuhong Nan, Yixi Lin, Huaijin Wang, Yuming Xiao, Shuai Wang, Zibin Zheng (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-05868.txt.

Introduction

Agent skills bundle instructions and executable resources that extend what a language-model agent can do. Jiangrong Wu and six co-authors warn that a skill can quietly exceed what the user's task requires, violating least privilege. The same action may be essential for one prompt and overreach for another, so detection must be task-conditioned.

Their framework, SkillScope, analyzes skills through a graph-based approach to flag over-privileged behavior relative to the current task. Fine-grained enforcement is the goal: permit the actions the task needs, block the rest. The work frames skill safety as contextual authorization, not blanket approval.

Catalog record

CREATORJiangrong Wu, Yuhong Nan, Yixi Lin, Huaijin Wang, Yuming Xiao, Shuai Wang, Zibin Zheng
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE95 KB
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2605.05868

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

SkillScope : Toward Fine-Grained Least-Privilege Enforcement for Agent Skills Jiangrong Wu, Yuhong Nan, Yixi Lin, Huaijin Wang, Yuming Xiao, Shuai Wang, Zibin Zheng Abstract . Agent Skills have become a practical way to extend LLM agents by packaging metadata, natural-language instructions, and executable resources into reusable capability bundles. However, this growing Skill ecosystem introduces a new compliance risk: a Skill may perform high-impact actions that exceed the minimum necessary scope of the user’s current task, thereby violating least-privilege. Existing skill detection approaches are insufficient for this problem because it is inherently task-conditioned: the same action may be necessary under one user prompt but over-privileged under another. In this paper, we present SkillScope , a framework for fine-grained least-privilege enforcement in Agent Skills. SkillScope adopts a graph-based analysis approach that models instruction-level procedures and code-level operations as fine-grained action nodes. It extracts potential over-privilege candidates, validates them under graph-instantiated user tasks through replay-based analysis, and constrains validated over-privileged actions via control-flow privilege constraining. We evaluate SkillScope through effectiveness experiments and large-scale real-world measurement. SkillScope achieves 94.53% F1 for skill over-privilege detection. In the wild, SkillScope validates 7,039 Skills with over-privileged behaviors, showing that least-privilege violations are prevalent in current Skill ecosystems. In the privilege-constraining evaluation, SkillScope reduces triggered over-privileged action-in-task instances by 88.56% while preserving legitimate task completion. 1. Introduction As large language model (LLM) agents increasingly evolve from single-turn assistants into systems capable of task planning, tool invocation, and persistent interaction with external environments, their capabilities are no longer defined solely by the base model itself. Instead, a growing portion of agent functionality is now packaged and distributed through Agent Skills : reusable bundles that typically contain lightweight metadata for routing, natural-language instruction files such as SKILL.md , and optional scripts or resources that implement concrete actions. Compared with conventional tool calling, Agent Skills package not only callable interfaces but also procedural know-how, execution constraints, and task-specific workflows. This packaging model makes Skills a practical mechanism for rapidly extending agent capabilities, and has led to the emergence of a large third-party ecosystem ( ClawHub 2026 ; SkillsMP 2026 ) in which skills are published, discovered, installed, and reused across different agent runtimes. However, this increasingly open Skill ecosystem also introduces a new security and compliance problem. Once installed, a Skill can directly influence how an agent interprets a user request, which actions it executes, and what side effects it triggers on the underlying environment. In practice, an Agent Skill may induce not only user-visible outputs but also external side effects such as local file access, network communication, or command execution. If these behaviors exceed what is actually required for the user’s current task, the agent may silently perform unnecessary capability use beyond user intent ( violation of least-privilege ( Saltzer and Schroeder 1975 ; National Institute of Standards and Technology 2020 ) ). This problem is particularly concerning because modern agent runtimes often trust Skills as reusable capability modules, while users usually observe only the final output rather than the full execution process behind it. Consider a real-world Skill “deep-work”, whose declared purpose is to track deep-work sessions locally and generate a heatmap report. For a user request such as “show my deep work graph for the last 7 days,” the expected behavior is simply to read local records, compute the report, and present the result. However, the Skill additionally instructs the agent to send the report to an external Telegram recipient and to collect host identifiers, network settings, and command-history artifacts for outbound transmission. These actions are over-privileged for the requested task, yet become part of the actual execution once the Skill runs. This example illustrates a fundamental consent gap in today’s Skill ecosystem: the user requests a task, but the Skill may drive the agent to perform broader actions beyond the user’s intent. Existing work ( Wang et al. 2026 ; Cisco AI Defense 2026 ; Alice-Dot-Io 2026 ; WellAlly Technology 2026 ) on Skill security has primarily focused on coarse-grained malicious skill detection . These approaches aim to determine whether a Skill is malicious by scanning for suspicious code, prompt patterns, cross-artifact dependencies, or concrete runtime behaviors. Such efforts are important, but they do not adequately address the problem studied in this paper. In many realistic cases, a Skill is not globally malicious in an all-or-nothing sense. Instead, it may provide legitimate functionality while still performing unnecessary actions under certain user requests. From a security and privacy perspective, the core issue is whether the Skill’s execution stays within the minimum necessary scope required by the current task (i.e., the user prompt) . This directly relates to the principles of least-privilege : a Skill should exercise only the capabilities required for the requested task. However, whether a behavior exceeds this minimum necessary scope is inherently task-conditioned : the same action may be justified under one prompt, but become unnecessary and over-privileged under another. As a result, coarse-grained malicious classification is insufficient because it cannot determine whether a Skill’s concrete behaviors violate least-privilege under dynamic user intents. Goal and Challenges. In this paper, our goal is to enforce fine-grained least-privilege for Agent Skills by determining whether each Skill action is necessary for the current user task and constraining actions that exceed this task boundary. Achieving this goal faces three challenges. First, Skill behaviors are heterogeneous , actions may be induced by natural-language instructions, executable scripts, or their cross-layer interactions. Second, over-privilege is task-conditioned , the same action may be necessary under one user task/prompt but unnecessary under another, requiring broad user-task testing coverage rather than narrow case-by-case validation. Third, least-privilege enforcement must preserve Skill’s functionality , directly removing suspicious actions may break legitimate workflows, while leaving them unchanged fails to constrain unnecessary privilege use. Our Work. To address this gap, we present SkillScope , a new framework for fine-grained least-privilege enforcement in Agent Skills. The key idea of SkillScope is to perform graph-based analysis over the heterogeneous Skills to eliminate unnecessary execution under a constrained, determined manner. More specifically, SkillScope transfers a Skill’s instruction-level procedures and code-level operations into a unified execution graph, where actions are connected by their control, data, and cross-layer dependencies. This graph exposes how an action is reached and what objects it operates on, providing the basis for identifying actions that may exceed the privilege boundary of the current user task. SkillScope consists of three components. First, SkillScope performs over-privilege candidate extraction , which uses the unified execution graph to localize actions that may be inconsistent with the Skill’s declared functionality. Second, SkillScope conducts action over-privilege validation , which tests each candidate under graph-instantiated user tasks and checks whether removing or neutralizing it preserves the core task flow and task-relevant output. Third, SkillScope applies control-flow privilege constraining , which removes validated over-privileged actions from the default execution path and makes them reachable only through task-conditioned control constraints. Together, these components support fine-grained detection and utility-preserving constraining of over-privileged Skill behaviors. For effectiveness evaluation, we construct a manually annotated dataset of 200 Skills sampled from the ecosystem-scale corpus, including 100 Skills with over-privileged behaviors and 100 benign Skills. SkillScope achieves 94.53% F1 at over-privileged skill detection, which has the best end-to-end detection performance among compared baselines.

Read the complete text