PrivilegeDiff: Find IAM Drift Before It Becomes an Incident

2026-11-29来源 dev.toEnglish

The problem

Cloud IAM starts clean. Someone writes a tight policy, least privilege, everything documented. Then a ticket needs a quick fix, a role gets an extra permission 'just for now,' a new service inherits a broad policy, and nobody removes any of it.

Months later, nobody can say what a role is actually allowed to do, or why. That drift is quiet, and it is exactly what attackers look for: an over-permissioned role, a forgotten admin, a service account with far more access than its job needs. Least privilege is easy to declare and hard to maintain without a regular check.

PrivilegeDiff is that check. It finds drift in cloud IAM permissions against a least-privilege baseline.

How it works

PrivilegeDiff is an instruction/workflow skill — a structured SKILL.md workflow you run inside your AI agent. It is free, script-first, and practical. You supply your current IAM policies and your least-privilege baseline, and it works through them in a fixed order:

  1. Compare current permissions to the baseline. What does each role actually have, versus what it should have?
  2. Flag drift. Added permissions, broadened scopes, and roles that no longer match their purpose are listed explicitly, with the difference spelled out.
  3. Rank by risk. Not all drift is equal. A wildcard on a production data store matters more than a read-only extra on a dev bucket, and the output says so.
  4. Produce a remediation list. A clear, prioritised list of what to tighten, remove, or review — ready to hand to the person who owns the role.

The output is a report you can act on, not a dump of raw policy JSON.

Verified proof

Honestly: there are no public dry-run numbers published yet for PrivilegeDiff. It has 0 uses and 0 reviews on Agensi at the time of writing, and no published sample report. I am not going to invent a number of findings, a risk reduction, or a customer story. The honest test is to run it against your own IAM and see whether it surfaces drift you had not noticed.

Honest limits

  • PrivilegeDiff is analysis and reporting. It does not change IAM policies itself. You still apply the fixes, with your own access and change process.
  • It works from the policies and baseline you supply. If your baseline is vague or out of date, the comparison will be too — the skill will surface that, but it cannot invent a correct baseline for you.
  • It is a short skill, around 800 words. It gives you a tight, repeatable analysis process, not a continuous monitoring platform.

Try it

PrivilegeDiff is for cloud and security teams who want a repeatable least-privilege check they can run regularly, without buying another platform first.

Try it on Agensi: https://agensi.io/skills/privilegediff-cloud-iam-drift-and-least-privilege-analyzer

Price: Free. No GitHub repo is published for this skill.

原文:https://www.a8q9.cn/en/article/privilegediff-find-iam-drift-before-it-becomes-an-incident-e305ef.html

相关文章