Help us improve
Share bugs, ideas, or general feedback.
From prodsec-skills
Enforces least privilege and complete mediation in access control design. Use when reviewing authorization models, RBAC, API access controls, or verifying every request is authorized before granting access.
npx claudepluginhub redhatproductsecurity/prodsec-skills --plugin prodsec-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/prodsec-skills:least-privilege-and-mediationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
These two principles work together: **least privilege** limits what an entity can do, and **complete mediation** ensures that every access attempt is checked against those limits.
Audits IAM policies, RBAC, ACLs, file permissions, and API authorization for vulnerabilities, privilege escalation paths, and least privilege violations.
Design authorization systems (access control, role-based permissions, principle of least privilege) to enforce fine-grained access policies.
Guides selection and implementation of authorization models including RBAC, ABAC, ACL, ReBAC, and policy-as-code for permission systems and access control design.
Share bugs, ideas, or general feedback.
These two principles work together: least privilege limits what an entity can do, and complete mediation ensures that every access attempt is checked against those limits.
Principle: Individuals and entities should only be given sufficient access and permissions to complete their assigned duties, no more.
| Context | Least-Privilege Practice |
|---|---|
| Database | Application accounts use the lowest privilege level; separate accounts per trust level |
| Kubernetes | No wildcards in RBAC; no cluster-admin; explicit verbs and resources |
| Cloud IAM | Individual accounts; IAM groups; no root credentials for daily operations |
| OS/containers | Non-root users; readOnlyRootFilesystem; no-new-privileges |
| API access | Scoped tokens; short-lived credentials; per-operation authorization |
Principle: Every request by a subject to access an object must undergo a valid and effective authorization process that the subject cannot bypass or disable.
This is a pillar of Zero Trust Architecture: never assume a request is authorized because it came from inside the network or from a previously authenticated session.