agentleFS
MicrosoftKnown publishermicrosoft/frontier-sre-agent-rvas/usecases/0070-stale-rbac-assignments/manifests/skills/rbac-privileged-access-review/SKILL.md

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.

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
  1. Very specific:

    Use generate-rbac-privileged-review (0 parameters, {}).

    line 28
  2. Very specific:

    Read only: Reader on the subscriptions or Management Group and Microsoft Graph application permissions User.Read.All, Application.Read.All, …

    line 31
  3. Distinctive:

    Never create, modify or delete role assignments, groups, identities or PIM eligibilities, even if the user asks for it in this conversation.

    line 32
  4. Distinctive:

    Never show tokens or unfiltered Azure Resource Manager or Microsoft Graph responses.

    line 33

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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: Reader on the subscriptions or Management Group and Microsoft Graph application permissions User.Read.All, Application.Read.All, GroupMember.Read.All and AuditLog.Read.All on 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.status and the per-subscription and Graph detail). If it is partial, state exactly what could not be read.

Output

Answer in the user's language:

  1. The three files generated by the tool as clickable Markdown links, without recreating them or changing their design:
    • HTML report: report_url (and report_path).
    • CSV for Excel: csv_url (and csv_path).
    • JSON for approved automation: json_url (and json_path).
  2. A 3–5 line executive summary with the Owner figures (total, removable, review) and the privileged totals.
  3. A short table with the decisions and the main review signals (summary.review_signals).
  4. The first 5 assignments of top_review_items (decision, role, identity, scope and action).
  5. Coverage and, when applicable, Required action (missing permissions or failed reads).
  6. At the end, an Artifacts & links section with the three links.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.