Logo : Auditing Declared Vs Used Permissions

Auditing Declared Vs Used Permissions

Organisation
UnboundCompute
auditing-declared-vs-used-permissions

Find the consent gap in an agent skill or MCP server: the distance between the permissions and capabilities it declares and what its bundled code and instructions actually exercise. Covers over-broad grants a skill requests but never uses, capabilities it exercises without declaring, and grants that are used but still wider than the task needs. Read the declared surface in frontmatter or manifest, inventory the real behavior, and diff the two in both directions. Use when reviewing a skill or server before install, or auditing least privilege across an agent's installed set. An over-broad or undeclared grant is the finding.

Présentation

ÉditeurUnboundCompute
Dépôtsecurity-agent-skills
Nom de la compétenceauditing-declared-vs-used-permissions
Étoiles
27
Forks
8
Fichiers inclus
Instructions uniquement
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par UnboundCompute sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Auditing Declared Vs Used Permissions dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-declared-vs-used-permissions
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-declared-vs-used-permissions .claude/skills/auditing-declared-vs-used-permissions
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Auditing Declared Vs Used Permissions dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Auditing Declared Vs Used Permissions dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Auditing Declared Vs Used Permissions n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Auditing declared versus used permissions: the consent gap is the bug

A user grants a skill the permissions it asks for. The question no one checks is whether it needs them. A skill that requests shell access and never shells out, or network access and never makes a call, has widened the user's blast radius for nothing, and a compromise or a later update inherits that headroom. Worse is the other direction: a skill that acts beyond what it declared. This skill measures the gap between the grant and the use, in both directions.

When to use

  • You are reviewing a skill, an MCP server, or a marketplace entry before install.
  • You are auditing least privilege across an agent's installed skills and tools.
  • You want to right-size a grant, not just confirm the artifact runs.

Scope check

Audit skills and servers you own or are authorized to review. Inspect the bundled code statically; run it only in a contained environment. If you can't name the authorization, stop.

The loop

  1. Read the declared permission surface. Collect exactly what the artifact asks for: the allowed-tools or capability list in frontmatter or manifest, the scopes it requests, the network, filesystem, and process access it declares. This is the consent the user is asked to give. Record it as the grant set.

  2. Inventory what the code and instructions actually exercise. Walk the bundled scripts and the instruction text and record the real capabilities used: which tools are invoked, whether it spawns a process, opens a socket, reads outside its own directory, or reaches the network. Prefer tracing the flow over a string grep, so an aliased or indirect call is not missed. This is the use set.

  3. Diff for over-grants: declared but never used. Subtract use from grant. Every capability requested and never exercised is an over-grant: pure headroom the user consented to for no delivered function. This is the common consent gap and the easiest least-privilege win.

  4. Diff the other direction: used but not declared. Subtract grant from use. A capability the code exercises without declaring is worse than an over-grant: the artifact acts beyond the consent it requested. Treat undeclared reach, especially network or process, as a high-signal finding.

  5. Weigh the used grants that remain. A capability that is both declared and used can still be excessive. Ask whether the task needs the full scope or a narrower one: write to one directory rather than the filesystem, one host rather than the open network. Name the least-privilege version.

  6. Confirm and record. Confirm each over-grant by showing the capability is never exercised, and each undeclared use by tracing the call. Kill the lead when a grant is genuinely exercised at the scope requested. Record the declared set, the used set, the direction of the gap, and the least-privilege grant.

Where the consent gap opens

  • Requested is not needed. The grant list is a request, not a requirement. Measure it against real use before you accept it.
  • Undeclared reach is the worse half. A skill acting past its declaration broke consent, not just tidiness. Trace network and process capabilities specifically.
  • Copy-paste inflates grants. Manifests cloned from a template carry capabilities the author never used. The unused ones are the tell.
  • Headroom is what a compromise inherits. An over-grant is dormant until the skill is subverted or updated, then it is the attacker's budget. Right-size now.

Worked example (a confirm and a kill)

Confirm. A skill's manifest requests process execution and open network access. Tracing the bundled code, it only reads a local file and formats it: it never spawns a process and never opens a socket. Both grants are pure headroom. Separately, the code reads an environment secret it never declared needing. Confirmed over-broad grant plus undeclared read, high, remediation = drop the process and network grants, declare and justify the secret read or remove it, and scope every remaining grant to the task.

Kill. A skill declares read access to one directory and network access to one named host. Tracing the code, it reads only that directory and calls only that host, both needed for its stated function, nothing wider. Declared, used, and already scoped. Killed, kill_reason = "each grant is exercised at the declared scope and no narrower scope covers the task."

Rationalizations to reject

  • "It might need those permissions later." → Then it declares them later. Grant what the shipped code uses, not what a future version might.
  • "The extra scope is harmless." → It is dormant blast radius a compromise inherits. Harmless until it is not.
  • "It only reads one secret it did not declare." → Undeclared reach is a broken consent boundary regardless of size. Declare it or remove it.
  • "The manifest came from a template." → Then it was never sized to this skill. That is the reason to audit it, not to trust it.

Executing this in practice

You need the declared grant surface from the frontmatter or manifest, a trace of what the bundled code and instructions actually exercise (calls, processes, sockets, file reads), and a way to diff the two sets in both directions. A view that follows calls through aliases and indirection beats a string grep, because an undeclared capability is easiest to hide behind one. The two-way diff and the least-privilege rewrite are the method.

Related

  • vetting-skills-before-install - the flagship that runs this permission audit as one step before an install verdict.
  • auditing-ai-agent-permissions - the runtime least-privilege view of an agent's own tools; this skill is the install-time view of a packaged skill.
  • auditing-skill-and-mcp-instructions - the instruction-text lint that pairs with this permission diff to vet an artifact.
  • FINDING-SCHEMA.md - source = the declared grant, sink = the capability the code exercises or fails to declare.

Foire aux questions

À quoi sert la compétence IA Auditing Declared Vs Used Permissions ?

Find the consent gap in an agent skill or MCP server: the distance between the permissions and capabilities it declares and what its bundled code and instructions actually exercise. Covers over-broad grants a skill requests but never uses, capabilities it exercises without declaring, and grants that are used but still wider than the task needs. Read the declared surface in frontmatter or manifest, inventory the real behavior, and diff the two in both directions. Use when reviewing a skill or server before install, or auditing least privilege across an agent's installed set. An over-broad or...

Pourquoi utiliser Auditing Declared Vs Used Permissions sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Auditing Declared Vs Used Permissions se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Auditing Declared Vs Used Permissions dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-declared-vs-used-permissions. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Auditing Declared Vs Used Permissions ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Auditing Declared Vs Used Permissions ?

Autant que vous le souhaitez. Vous pouvez utiliser Auditing Declared Vs Used Permissions avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Auditing Declared Vs Used Permissions est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par UnboundCompute sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇