agentleFS
vinayaklatthevinayaklatthe/microsoft-security-skills/skills/entra-permissions-management/SKILL.md

entra-permissions-management

Skill175 starsChanged 6 months agoMITView on GitHub

Guidance for Microsoft Entra Permissions Management (CIEM) — discovers, right-sizes, and monitors permissions across Microsoft Azure, AWS, and Google Cloud. Covers cloud onboarding, the Permission Creep Index (PCI), generating least-privilege policies from observed activity, on-demand permission grants, and workload identity coverage. WHEN: Entra Permissions Management, CIEM, multicloud permissions, Permission Creep Index, PCI, right-size permissions, unused permissions, least privilege across AWS GCP Azure, cloud entitlement management, over-privileged workload identity, IAM right-sizing, multicloud IAM posture. DO NOT USE for Azure-only RBAC role choice (use azure-role-selector) or Defender for Cloud security posture (use defender-for-cloud-hardening).

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Don't right-size break-glass / emergency access roles: Document the exceptions.

    line 78
  2. Distinctive:

    PCI is a risk score, not a permissions count: Don't compare identities on permission count alone - 5 high-privilege unused beats 50 …

    line 79
  3. Distinctive:

    "Apply auto-generated policies directly to production": - Test workload first.

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Microsoft Entra Permissions Management

Microsoft Entra Permissions Management is a Cloud Infrastructure Entitlement Management (CIEM) solution that provides visibility and control over permissions for identities, actions, and resources across Microsoft Azure, AWS, and Google Cloud in a single pane.

When to use

Discovering and reducing excessive, unused, and over-privileged cloud permissions across a multicloud estate, driving toward least privilege. Use this skill when the estate spans multiple clouds; for Azure-only RBAC choice use azure-role-selector.

Map the goal to the right CIEM action

If the goal is...UseNotes
Quantify how over-privileged each identity isPermission Creep Index (PCI)0-100; > 65 = high risk
Find unused permissions per identityActivity-based right-sizing reportCompares granted vs used over 90 days
Generate a least-privilege policy from observed activityAuto-generated policy (right-sizing)Per identity per cloud
Grant elevated permission temporarilyOn-demand permissions requestApproval-based, time-bound
Detect anomalous permission usageAnomaly detection alertsFirst-time-seen action, mass action
Catch over-privileged workload identityNon-human identity reportService principals, IAM roles, GCP SAs

Rule of thumb: start with PCI > 65 identities and the non-human identity report. Service principals and machine identities typically hold the largest gap between granted and used permissions and rarely fight back when you right-size them.

Approach

  1. Onboard each cloud — Connect Azure subscriptions (single or multiple), AWS accounts (per-account or AWS Organizations), and GCP projects. Permissions Management collects entitlement and activity data via read-only roles. Verify: data collector status = green for each cloud account; activity events flowing within 24 hours.
  2. Baseline for 90 days — Don't right-size based on 7 days of activity. Quarterly business cycles (month-end close, audit) need full coverage. Verify: "data collection period" shows ≥ 90 days before remediation work.
  3. Sort by PCI - top 20 first — Start with the 20 highest-PCI identities, not the longest list of unused permissions. PCI prioritises by risk (granted breadth + privilege weight), not just count. Verify: top 20 PCI list reduced by ≥ 50 points cumulative after first sprint.
  4. Tackle non-human identities first — Service principals, AWS IAM roles, GCP service accounts. They don't complain when you remove unused permissions and they're often the most over-privileged. Verify: non-human identity PCI distribution shifts left (lower) month over month.
  5. Right-size with auto-generated policies — Use the activity-based policy generator instead of writing JSON manually. Review the diff, apply to a test workload, then production.
  6. Enable on-demand permissions — For high-privilege but rarely-needed permissions, convert standing access to on-demand request flow. Reduces standing risk dramatically.
  7. Monitor + alert — Anomaly detection on first-time-seen action and mass actions. Stream alerts to Sentinel for SOC correlation.

Guardrails

  • Validate activity baselines cover a representative period (90 days minimum) before aggressively right-sizing. Anything less misses quarterly or month-end-only workflows and causes outages.
  • Test in a non-production workload first. A right-sized policy that breaks a CI/CD pipeline at 02:00 is worse than the over-privilege.
  • Treat machine/workload identities explicitly - they often hold the largest unused permission gap and rarely fight back when you right-size them. Address them first.
  • Coordinate remediation with workload owners. Right-sizing without informing the owner of the service account causes outages and erodes trust in the programme.
  • Don't right-size break-glass / emergency access roles. Document the exceptions.
  • PCI is a risk score, not a permissions count. Don't compare identities on permission count alone - 5 high-privilege unused beats 50 low-privilege unused.

Common anti-patterns

  • "Right-size after 2 weeks of data" - Misses month-end. Outage.
  • "Start with the easiest report" - Many small wins, no risk reduction. Sort by PCI.
  • "Right-size humans first because there are more of them" - Humans push back; non-humans don't. Non-humans usually carry the highest unused privilege.
  • "Apply auto-generated policies directly to production" - Test workload first.
  • "Onboard only one cloud at a time over months" - Loses the multicloud visibility that is the entire point. Onboard all clouds in the same sprint.
  • "PCI dashboard only - no remediation" - Visibility without action. Track PCI delta monthly as the KPI.

Example prompts

  • Onboard our Azure, AWS, and GCP environments to Entra Permissions Management.
  • Show the top 20 identities by Permission Creep Index and propose a remediation order.
  • Generate a least-privilege policy for our CI/CD service principal based on 90 days of activity.
  • Find non-human identities with PCI > 65 and right-size the top 5.
  • Set up on-demand permission requests for elevated AWS roles.
  • Stream Permissions Management anomaly alerts into Sentinel.

Microsoft Learn

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.