SkillScope: Toward Fine-Grained Least-Privilege Enforcement for Agent Skills
Open Access
- 14 November 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 5657-5671
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 fall outside the scope permitted by the user's current request, thereby violating least privilege. Existing skill detection approaches are insufficient for this problem because it is inherently task-conditioned: the same action may be legitimate 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 runtime 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 a 94.53% skill-level F1 score for over-privilege detection. In the wild, SkillScope validates 6,590 of 68,312 valid real-world Skills as exhibiting 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.Keywords
Funding Information
- National Natural Science Foundation of China (62572497)
- State Key Laboratory of Internet Architecture, China (HLW2025MS41)
- Guangdong Zhujiang Talent Program (2023QN10X561)
- Research Grants Council, University Grants Committee (C6004-25G)
- Research Grants Council, University Grants Committee (C6015-23G)
- Innovation and Technology Fund (ITS\/161\/24FP)
This publication has 13 references indexed in Scilit:
- SecAlign: Defending Against Prompt Injection with Preference Optimization2025
- Prompt-to-SQL Injections in LLM-Integrated Web Applications: Risks and Defenses2025
- Demystifying RCE Vulnerabilities in LLM-Integrated Apps2024
- EM-Assist: Safe Automated ExtractMethod Refactoring with LLMs2024
- G-Eval: NLG Evaluation using Gpt-4 with Better Human Alignment2023
- TrojanSQL: SQL Injection against Natural Language Interface to Database2023
- Retrieval Augmentation Reduces Hallucination in Conversation2021
- User-Driven Access Control: Rethinking Permission Granting in Modern Operating Systems2012
- Android permissions demystified2011
- The protection of information in computer systemsProceedings of the IEEE, 1975