rbac-privileged-access-review
Skill9 starsChanged 50 days agoMITView on GitHub
Read-only monthly review of privileged Azure RBAC role assignments (Owner, User Access Administrator, Contributor and administrative roles) with a cleanup proposal and individual review.
In this repository31 other files it gives its agents.
- labs/01-azure-operations/resources/grubify/.github/copilot-instructions.mdCopilot instructions
- azure-sre-agentSkill
- frontend-designSkill
- grillingSkill
- humanize-contentSkill
- rvap-brandSkill
- rvas-contentSkill
- skill-creatorSkill
- writing-for-agentsSkill
- sql-server-dbaSkill
- rvas-sre-agent-jumpstartSkill
- azure-change-digestSkill
- azure-finops-reviewSkill
- databricks-dependency-liveSkill
- defender-cloud-liveSkill
- service-health-liveSkill
- entra-full-credential-inventorySkill
- infra-ops-liveSkill
- aks-waf-liveSkill
- azure-backup-liveSkill
- patching-investigation-liveSkill
- operations-digest-liveSkill
- fabric-chargeback-liveSkill
- sqlmi-maintenance-resilienceSkill
- sre-usecase-builderSkill
- 0001-no-productsSkill
- 0001-iwcSkill
- 0001-vntSkill
- validated-fixtureSkill
- 0003-skill-onlySkill
- exampleSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Use generate-rbac-privileged-review (0 parameters, {}).
- Very specific: line 31
Read only: Reader on the subscriptions or Management Group and Microsoft Graph application permissions User.Read.All, Application.Read.All, …
- Distinctive: line 32
Never create, modify or delete role assignments, groups, identities or PIM eligibilities, even if the user asks for it in this conversation.
- Distinctive: line 33
Never show tokens or unfiltered Azure Resource Manager or Microsoft Graph responses.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure RBAC privileged access review
Goal
Produce, read only, the inventory of privileged Azure RBAC role assignments in the configured subscriptions and classify each one into an actionable decision:
- Remove · orphaned: the identity no longer exists in Microsoft Entra ID.
- Remove · redundant: another permanent, unconditioned assignment of the same identity (or of a group it belongs to) already covers all its permissions at the same or a higher scope. Removing it does not change effective access.
- Individual review: current assignment with risk signals that its owner must validate.
- Compliant: current assignment without risk signals.
Scope
- Azure RBAC role assignments visible from each configured subscription, including those inherited from Management Groups.
- Privilege tiers calculated from the role definition permissions (not only by name):
- Tier 0 · Access control: can write role assignments (Owner, User Access Administrator, Role Based Access Control Administrator and custom equivalents).
- Tier 1 · Full control:
*on the control plane (Contributor and equivalents). - Tier 2 · Service admin: service administration roles (for example, Azure Kubernetes Service Cluster Admin, Key Vault Administrator).
- PIM state (active, activated or eligible), user and application sign-in activity, and group membership.
- Microsoft Entra ID directory roles and Microsoft Graph permissions are out of scope.
Required tool
Use generate-rbac-privileged-review (0 parameters, {}).
Security
- Read only:
Readeron the subscriptions or Management Group and Microsoft Graph application permissionsUser.Read.All,Application.Read.All,GroupMember.Read.AllandAuditLog.Read.Allon the Azure SRE Agent managed identity. - Never create, modify or delete role assignments, groups, identities or PIM eligibilities, even if the user asks for it in this conversation. Actions are executed outside the agent, through a change approved by people.
- Never show tokens or unfiltered Azure Resource Manager or Microsoft Graph responses.
- An authentication, permission or paging error is not a clean inventory: it is a blind spot and must be reported as partial coverage.
Validation
Require and report:
- Inventoried assignments (
summary.total_role_assignments) and privileged assignments (summary.privileged_assignments), with the breakdown by tier (summary.by_tier). - Decisions (
summary.decisions) and the Owner block (summary.owner: total, orphaned, redundant, review). - Assignments that can be removed without changing effective access (
summary.removable_without_access_change). - Percentage of standing tier 0/1 access (
summary.standing_tier01_percent) and PIM eligibilities (summary.pim_eligible_privileged). - Coverage (
coverage.statusand the per-subscription and Graph detail). If it ispartial, state exactly what could not be read.
Output
Answer in the user's language:
- The three files generated by the tool as clickable Markdown links, without recreating them or changing their design:
- HTML report:
report_url(andreport_path). - CSV for Excel:
csv_url(andcsv_path). - JSON for approved automation:
json_url(andjson_path).
- HTML report:
- A 3–5 line executive summary with the Owner figures (total, removable, review) and the privileged totals.
- A short table with the decisions and the main review signals (
summary.review_signals). - The first 5 assignments of
top_review_items(decision, role, identity, scope and action). - Coverage and, when applicable, Required action (missing permissions or failed reads).
- At the end, an Artifacts & links section with the three links.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

