Review AI-agent tools and proposed calls for least privilege, bounded parameters, explicit authorization, isolation, and auditable high-impact actions. Use when tools, credentials, scopes, or permissions change.
Use this skill to review an AI agent's tool definitions and proposed tool calls for least privilege, explicit authorization, bounded parameters, and auditable high-impact actions. It covers policy and review artifacts; it does not prove the downstream system enforces the declared permissions or that the agent's intent is benign.
Triggers and prerequisites
Trigger when tools, MCP servers, credentials, scopes, command allowlists, parameter schemas, or high-impact workflows change. Prerequisites: task purpose, tool inventory, caller identity/trust level, granted scopes, target resources, and approval policy.
Decision criteria
Authorize only the least privilege needed for the stated task, with bounded targets, enforceable parameters, and accountable approval for high-impact actions. If enforcement or downstream identity cannot be verified, restrict use and record the assumption rather than treating policy text as proof.
Procedure
State the task's required capabilities and separate read, write, destructive, network, credential, and administrative actions.
Inventory every tool, server, credential, scope, parameter, downstream identity, and reachable resource. Include transitive tool or server behavior.
Compare granted authority with required authority. Remove tools and permissions not necessary for the task; do not use unrestricted shell or wildcard resource access as a default.
Validate parameter schemas and reject undeclared fields, ambiguous resource selectors, unsafe paths, unbounded quantities, and commands outside the task allowlist.
Classify high-impact or irreversible actions. Require independent authorization or human approval before execution, with a clear reviewer and rationale.
Check isolation between trust levels, users, agents, and servers. Review delegation, token lifetime, revocation, and confused-deputy paths.
Require audit records for authorization decision, tool call, target, result, identity, and time. Redact secrets and sensitive payloads from logs.
Probe negative cases: unauthorized tool, over-broad parameter, cross-resource target, expired approval, prompt-injected request, and repeated or cascading calls.
Record residual risk, enforcement assumptions, review trigger, and decision. A policy declaration alone is not runtime proof.
Acceptance checklist
Required capabilities are separated from granted authority.
Tool, server, credential, scope, and downstream identity inventory is complete.
Least-privilege scopes and resource boundaries are explicit.
Parameters reject undeclared, ambiguous, unsafe, or unbounded values.
High-impact actions require independent approval.
Delegation, expiry, revocation, and trust-level isolation are addressed.
Authorization and tool-call audit records are defined with redaction.
Negative and prompt-injection cases were tested or recorded as limitations.
Examples and counterexamples
Good: A tool request needs one repository file, so the review rejects unrestricted filesystem access and checks an out-of-scope path.
Bad: Approve broad shell or wildcard access because the current prompt appears harmless.
Failure modes and recovery
If the required authority cannot be distinguished from the granted authority, stop and escalate. If a tool exposes unrestricted shell or wildcard resources, constrain it or keep it untrusted. If approval identity or expiry cannot be verified, do not execute high-impact actions. If logs contain secrets, revoke and rotate affected credentials and repair the logging boundary.
Validation evidence and provenance
Claims in this skill map to graded findings in docs/research.md:
Least-privilege tool scoping, explicit authorization, and human confirmation for high-impact actions (S6, Moderate): OWASP AI Agent Security and MCP Security cheat sheets; convergent emerging practice.
Standardization direction (S6 fact): NIST AI Agent Standards Initiative signals active standardization; nothing is settled yet.
Source boundary: the domain is young; controls are practitioner guidance, not empirically validated defenses. Theoretical exposure paths are labeled hypotheses, not evidence of exploitation.
Confidence: medium. Lifecycle remains draft pending real-world validation. Freshness: review after tool, identity, or permission-model changes and at least quarterly.
Disconfirmation: incident evidence showing these controls fail against specific attack patterns would require revising the audit criteria; stable standards would upgrade the sources.
Related skills and conflicts
Related: repository-change-verification, dependency-security-audit, secure-coding-review, and prompt-injection-resistance. This skill does not override platform authorization or human approval requirements.
1---2name: tool-authorization-audit3description: Review AI-agent tools and proposed calls for least privilege, bounded parameters, explicit authorization, isolation, and auditable high-impact actions. Use when tools, credentials, scopes, or permissions change.4---56Lifecycle: `draft`78# Tool Authorization Audit910## Purpose and scope1112Use this skill to review an AI agent's tool definitions and proposed tool calls for least privilege, explicit authorization, bounded parameters, and auditable high-impact actions. It covers policy and review artifacts; it does not prove the downstream system enforces the declared permissions or that the agent's intent is benign.1314## Triggers and prerequisites1516Trigger when tools, MCP servers, credentials, scopes, command allowlists, parameter schemas, or high-impact workflows change. Prerequisites: task purpose, tool inventory, caller identity/trust level, granted scopes, target resources, and approval policy.1718## Decision criteria1920Authorize only the least privilege needed for the stated task, with bounded targets, enforceable parameters, and accountable approval for high-impact actions. If enforcement or downstream identity cannot be verified, restrict use and record the assumption rather than treating policy text as proof.2122## Procedure23241. State the task's required capabilities and separate read, write, destructive, network, credential, and administrative actions.252. Inventory every tool, server, credential, scope, parameter, downstream identity, and reachable resource. Include transitive tool or server behavior.263. Compare granted authority with required authority. Remove tools and permissions not necessary for the task; do not use unrestricted shell or wildcard resource access as a default.274. Validate parameter schemas and reject undeclared fields, ambiguous resource selectors, unsafe paths, unbounded quantities, and commands outside the task allowlist.285. Classify high-impact or irreversible actions. Require independent authorization or human approval before execution, with a clear reviewer and rationale.296. Check isolation between trust levels, users, agents, and servers. Review delegation, token lifetime, revocation, and confused-deputy paths.307. Require audit records for authorization decision, tool call, target, result, identity, and time. Redact secrets and sensitive payloads from logs.318. Probe negative cases: unauthorized tool, over-broad parameter, cross-resource target, expired approval, prompt-injected request, and repeated or cascading calls.329. Record residual risk, enforcement assumptions, review trigger, and decision. A policy declaration alone is not runtime proof.3334## Acceptance checklist3536- [ ] Required capabilities are separated from granted authority.37- [ ] Tool, server, credential, scope, and downstream identity inventory is complete.38- [ ] Least-privilege scopes and resource boundaries are explicit.39- [ ] Parameters reject undeclared, ambiguous, unsafe, or unbounded values.40- [ ] High-impact actions require independent approval.41- [ ] Delegation, expiry, revocation, and trust-level isolation are addressed.42- [ ] Authorization and tool-call audit records are defined with redaction.43- [ ] Negative and prompt-injection cases were tested or recorded as limitations.4445## Examples and counterexamples4647Good: A tool request needs one repository file, so the review rejects unrestricted filesystem access and checks an out-of-scope path.4849Bad: Approve broad shell or wildcard access because the current prompt appears harmless.5051## Failure modes and recovery5253If the required authority cannot be distinguished from the granted authority, stop and escalate. If a tool exposes unrestricted shell or wildcard resources, constrain it or keep it untrusted. If approval identity or expiry cannot be verified, do not execute high-impact actions. If logs contain secrets, revoke and rotate affected credentials and repair the logging boundary.5455## Validation evidence and provenance56Claims in this skill map to graded findings in [`docs/research.md`](../../docs/research.md):5758- Least-privilege tool scoping, explicit authorization, and human confirmation for high-impact actions (S6, Moderate): OWASP AI Agent Security and MCP Security cheat sheets; convergent emerging practice.59- Standardization direction (S6 fact): NIST AI Agent Standards Initiative signals active standardization; nothing is settled yet.6061Source boundary: the domain is young; controls are practitioner guidance, not empirically validated defenses. Theoretical exposure paths are labeled hypotheses, not evidence of exploitation.6263Confidence: medium. Lifecycle remains `draft` pending real-world validation. Freshness: review after tool, identity, or permission-model changes and at least quarterly.6465Disconfirmation: incident evidence showing these controls fail against specific attack patterns would require revising the audit criteria; stable standards would upgrade the sources.66## Related skills and conflicts6768Related: `repository-change-verification`, `dependency-security-audit`, `secure-coding-review`, and `prompt-injection-resistance`. This skill does not override platform authorization or human approval requirements.
Run npx skillmds@latest add chloevpin/tool-authorization-audit in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Review AI-agent tools and proposed calls for least privilege, bounded parameters, explicit authorization, isolation, and auditable high-impact actions. Use when tools, credentials, scopes, or permissions change. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ChloeVPin (@chloevpin) published this skill. Their other Agent Skills are listed on their SkillMD profile.