least-privilege-access-design

least-privilege-access-design is a skill for Claude Code from bookforge-ai/bookforge-skills. It costs 138 tokens per session (6,016 once invoked), scanned B, original, CC-BY-SA-4.0.

A guide for limiting each user or service to only the access it needs, known as least privilege.

In plain words
What is it for?
Use it to classify sensitive data and APIs, define approvals, choose narrow interfaces, and plan emergency access.
Why use it?
It reduces the damage caused by stolen accounts, mistakes, or overly broad permissions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the building-secure-and-reliable-systems plugin — 14 skills shipped together

Good fit Use it to classify sensitive data and APIs, define approvals, choose narrow interfaces, and plan emergency access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bookforge-ai/bookforge-skills/least-privilege-access-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bookforge-ai/bookforge-skills --skill least-privilege-access-design
Clone the repo
git clone --depth 1 https://github.com/bookforge-ai/bookforge-skills

Made for: Claude Code.

Or install building-secure-and-reliable-systems, the plugin that ships this one along with the rest of its 14 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for least-privilege-access-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/bookforge-ai/bookforge-skills/least-privilege-access-design/github.svg)](https://agentmods.dev/skills/bookforge-ai/bookforge-skills/least-privilege-access-design)
Your own site
<a href="https://agentmods.dev/skills/bookforge-ai/bookforge-skills/least-privilege-access-design"><img src="https://agentmods.dev/badge/skills/bookforge-ai/bookforge-skills/least-privilege-access-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for least-privilege-access-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/bookforge-ai/bookforge-skills/least-privilege-access-design"><img src="https://agentmods.dev/badge/skills/bookforge-ai/bookforge-skills/least-privilege-access-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00138 $0.06016
Opus 5 $0.00069 $0.03008
Sonnet 5 $0.00028 $0.01203
Haiku 4.5 $0.00014 $0.00602

Measured 11d ago against content hash 065bf0b605a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

least-privilege-access-design scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- SSH ForceCommand entries, sudo rules, or `.authorized_keys` files
books/building-secure-and-reliable-systems/skills/least-privilege-access-design/SKILL.md · 364 lines

The source is not reproduced here

Licensed CC-BY-SA-4.0

The repository is licensed CC-BY-SA-4.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 364 lines · 138 tokens per session scan B 065bf0b605a3

Subscribe to this mod's changes

least-privilege-access-design is a skill published in the GitHub repository bookforge-ai/bookforge-skills (35 stars, last pushed 4mo ago), licensed CC-BY-SA-4.0. It adds 138 tokens to every session and 6,016 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

exploiting-broken-function-level-authorization

Tests APIs for Broken Function Level Authorization (BFLA) vulnerabilities where regular users can invoke administrative functions or access privileged API endpoints by directly calling them. The tester identifies admin and privileged endpoints, then attempts to access them with regular user credentials by manipulating…

xalgorix/xalgorix · 108 tokens

implementing-rbac-hardening-for-kubernetes

Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.

xalgorix/xalgorix · 41 tokens

Auth Bypass Tester

Comprehensive authentication and authorization bypass testing including session hijacking, privilege escalation, JWT manipulation, and access control verification.

PramodDutta/qaskills · 27 tokens

frontmcp-authorities

Use when implementing authorization and access control for FrontMCP tools, resources, prompts, or skills, deciding who may invoke what. Covers the RBAC, ABAC, and ReBAC models and when to choose each; JWT claims mapping per identity provider (Auth0, Keycloak, Okta, Cognito, Frontegg); reusable named authority…

agentfront/frontmcp · 165 tokens

building-role-mining-for-rbac-optimization

Apply bottom-up and top-down role mining techniques to discover optimal RBAC roles from existing user-permission assignments, reducing role explosion and enforcing least privilege.

26zl/cybersec-toolkit · 40 tokens

cis-aws-compute-12.4

Ensure least privilege is used with Lambda function access.

CyberStrikeus/CyberStrike · 19 tokens