Logo: Auditing Ai Agent Permissions

Auditing Ai Agent Permissions

Organisatioun
UnboundCompute
auditing-ai-agent-permissions

Audit what an AI agent is actually allowed to do versus what its task needs. Covers excessive agency (tools, scopes, and autonomy beyond the job), missing human-in-the-loop gates on irreversible actions, over-broad credentials and their blast radius, sandbox and code-interpreter escape, unfiltered egress, and unbounded resource or spend (denial-of-wallet). Use when granting an agent a tool or scope, reviewing an agent's permission posture, or deciding which actions need approval. The model's restraint is not a control; permissions are.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-ai-agent-permissions
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Ai Agent Permissions an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ai-agent-permissions
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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-ai-agent-permissions .claude/skills/auditing-ai-agent-permissions
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Ai Agent Permissions an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Ai Agent Permissions automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Ai Agent Permissions net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Auditing AI agent permissions: agency is what's left when the prompt defense fails

Prompt-level defenses are probabilistic and bypassable. What remains after an injection succeeds is what the agent is permitted to do, so the durable control is the permission set, not the model's judgment. Auditing agency means comparing every capability the agent holds against what its task actually requires, and gating the actions that cannot be undone.

When to use

  • You are granting an agent a new tool, scope, credential, or autonomous action.
  • You are reviewing an agent's permission and egress posture.
  • You are deciding which actions require human approval and which can run freely.
  • You are scoping a code interpreter or shell an agent can drive.

Scope check

Audit agents and systems you own or are authorized to test. Do not exercise destructive or irreversible actions against systems you do not control. If you can't name the authorization, stop.

The loop

  1. Diff granted capability against required capability. List every tool, scope, credential, and autonomous action the agent has. Beside each, write what the task actually needs. The gap is excessive agency: a summarizer with delete rights, a read task holding a write token, a support bot that can issue uncapped refunds.

  2. Classify actions by reversibility and blast radius. Mark each action reversible or irreversible, low or high impact. Irreversible or high-impact actions (deleting data, sending money or messages externally, changing access, deploying) are the set that needs a gate, no matter how aligned the model seems.

  3. Check human-in-the-loop on the dangerous set. For each irreversible or high-impact action, is there an approval gate, or does the agent execute alone? A gate the agent can auto-approve, pre-approve, or that fires after the effect does not count. The test is whether a human authorizes before the irreversible step.

  4. Test credential blast radius. Does a credential grant more than the tool needs: a broad API key, an admin role, a token valid for other systems? If the agent is compromised through injection, its credentials are the blast radius. Scope each token to the minimum the specific tool requires.

  5. Test the sandbox and egress boundary. If the agent runs code or shell, can that code reach the network, the host filesystem, other tenants, or the agent's own credentials and metadata endpoint? Can any tool send data to an attacker-observable destination? Unfiltered egress plus untrusted input is an exfiltration channel.

  6. Test resource and spend bounds. Can a single task drive unbounded tool calls, model calls, or paid API usage? Without per-task caps, adversarial or injected input turns the agent into a cost-amplification weapon. Confirm caps on calls, spend, and wall-clock time (denial-of-wallet).

  7. Record. Confirm or kill each over-grant in the schema with the minimal fix: drop the tool, scope the token, add the approval gate, filter egress, cap the budget.

Reading agency honestly

  • Default-grant is the anti-pattern. Agents accrete tools, and each is permanent authority until removed. Grant per task, revoke on completion.
  • "The model won't misuse it" is not a control. Injection makes the model act for the attacker; the permission set is what constrains the damage.
  • Reversibility is the axis that matters. Gate the irreversible, let the reversible run. Do not gate everything and train users to click through.
  • Credentials plus egress plus untrusted input is the trifecta. This is the same exposure viewed from the permission side.

Worked example (a confirm and a kill)

Confirm. A support agent holds a token whose role can issue refunds of any amount and read the full user table, though its task is answering FAQs and issuing refunds up to a set cap. No approval gate on refunds; the token also reads unrelated data. An injected ticket drives a max-amount refund. Confirmed excessive agency, high, remediation = scope the token to FAQ plus capped refund, gate refunds above the cap on approval, remove the user-table read.

Kill. A documentation agent has one tool: read-only search over a public docs corpus, no credentials, no writes, no network egress beyond the search backend, a per-task call cap in place. Even fully injected, it can only return public text. Killed, kill_reason = "read-only scope over public data, no credentials, no egress, capped; no irreversible or high-impact action to gate."

Rationalizations to reject

  • "It's convenient to give it broad access now." → Convenience serves the attacker too. Grant per task, not per maybe.
  • "There's a confirmation dialog." → If the agent can auto-confirm or it fires after the effect, it is not a gate.
  • "The sandbox is isolated." → Test the egress and the metadata endpoint; isolation is a claim until you prove it.
  • "No one would spend that much through it." → Denial-of-wallet needs no one, it needs a loop. Cap it.

Executing this in practice

You need the agent's true grant set (tools, scopes, credentials, autonomy), the reversibility and impact of each action, the sandbox and egress configuration, and the resource caps. Any harness that lists the manifest and logs actions works; the required-versus-granted diff and the reversibility gate are the method.

Related

  • auditing-the-lethal-trifecta - the egress and credential legs are permission-level facts this skill minimizes.
  • red-teaming-multi-agent-systems - per-agent authority and delegation bounds in a system of agents.
  • auditing-mcp-tool-integrations - the tool layer whose scopes this skill scopes down.
  • FINDING-SCHEMA.md - source = the over-broad grant, sink = the irreversible or exfiltrating action it enables.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Ai Agent Permissions?

Audit what an AI agent is actually allowed to do versus what its task needs. Covers excessive agency (tools, scopes, and autonomy beyond the job), missing human-in-the-loop gates on irreversible actions, over-broad credentials and their blast radius, sandbox and code-interpreter escape, unfiltered egress, and unbounded resource or spend (denial-of-wallet). Use when granting an agent a tool or scope, reviewing an agent's permission posture, or deciding which actions need approval. The model's restraint is not a control; permissions are.

Firwat Auditing Ai Agent Permissions op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Ai Agent Permissions besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Ai Agent Permissions an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ai-agent-permissions an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Ai Agent Permissions benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Ai Agent Permissions benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Ai Agent Permissions domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Ai Agent Permissions gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇