Join our Newsletter — 33% off our NHI Course
Home› Guides› Toxic Permission Combinations Guide: Finding Dangerous Entitlement Pairs…
Guide Identity Governance (IGA)

Toxic Permission Combinations Guide: Finding Dangerous Entitlement Pairs Across Cloud and SaaS

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 28 November 2026 15 min read
On this page

Two permissions that look harmless on their own can, when held by the same identity, give that identity far more power than anyone intended. In cloud and SaaS platforms these "toxic combinations" usually let a user or workload borrow another identity's rights: pass a powerful role to a service it controls, add a credential to an application and sign in as it, or reset the MFA of the people who approve its access. Classic segregation of duties work focuses on business processes in ERP systems; this guide applies the same idea to cloud control planes, identity providers and SaaS admin roles, where the pairs are technical and change daily. It covers a starter ruleset for AWS, Google Cloud, Microsoft Entra ID and Okta, how to compute effective permissions, how to detect new combinations, and how to fix them without breaking automation. It is written for identity governance, cloud security and IAM engineering teams. Platforms are listed alphabetically; order is never a ranking.

Key takeaways

  • Toxic means combined, not individually risky. The danger is in the pair: for example AWS iam:PassRole on any role plus permission to create a compute resource, or the Entra Application Administrator role plus an application that already holds high Microsoft Graph permissions.
  • Most cloud pairs are impersonation routes. The identity does not gain new rights directly; it acts as a role, service account or application that has them, so logs may show the borrowed identity, not the person.
  • Evaluate effective permissions, not role names. Group nesting, inherited scopes, permissions boundaries and conditions decide whether a pair is real, so rules must run against resolved entitlements.
  • Machine identities hold most toxic pairs. Pipelines, automation accounts and service principals accumulate broad rights and are rarely reviewed, which is why rules must cover them, not just people.
  • Prevent at grant time, detect continuously. Encode the pairs as guardrails (conditions, boundaries, scoped roles) where the platform allows, and run detection on every entitlement change for the rest.

What makes a permission combination toxic

A combination is toxic when holding both rights lets an identity reach an outcome that policy says should need two people, or more privilege than either right grants alone. Three patterns cover most cloud and SaaS cases:

  • Delegation escalation: one right lets you hand a privileged identity to something you control, and the second lets you create or run that thing. AWS documents that a user with broad iam:PassRole can make a service act with permissions the user does not hold.
  • Credential injection: one right lets you add a secret or certificate to an existing identity, and that identity already holds strong permissions. Microsoft's role reference states that Application Administrator holders can add credentials to an application and use them to impersonate the application's identity, which may be an elevation of privilege over their own role.
  • Control bypass: one right performs a sensitive action and another removes the check on it, such as approving your own access request, resetting the MFA of an administrator, or disabling the audit log of the system you administer.

The business-process side of this (vendor creation plus payment approval, and similar) is covered in the Segregation of Duties Guide, with a ready conflict matrix in the Segregation of Duties Matrix Template. Multi-hop graph paths through Active Directory and Entra are covered in the Identity Attack Paths Guide. This page focuses on pairs you can express as rules and evaluate on every grant.

A starter ruleset across cloud and SaaS

The table lists combinations grounded in each platform's own documentation. Treat it as the first version of your ruleset, then add pairs specific to your estate.

PlatformRight ARight BWhy the pair is toxicPreferred fix
AWSiam:PassRole with Resource: "*"Create or update a compute service resource (for example lambda:CreateFunction, ec2:RunInstances)The identity can run code as any role in the account, including administrative rolesScope PassRole to named role ARNs and add the iam:PassedToService condition
AWSiam:CreateUser, iam:CreateRole or iam:PutUserPolicyNo iam:PermissionsBoundary condition on those actionsThe identity can create a new principal with more rights than its ownDelegate with a required permissions boundary and deny edits to the boundary policy
AWSiam:CreateAccessKey or iam:CreateLoginProfile on other usersThose users hold higher privilegesThe identity can mint credentials for a more privileged userRestrict to ${aws:username} or named service users
Google Cloudiam.serviceAccounts.actAs (Service Account User) on a privileged service accountPermission to create or update compute, functions or jobsThe attached service account becomes the identity of the jobs the user startsGrant Service Account User on specific service accounts, not at project level
Google Cloudiam.serviceAccounts.getAccessToken (Service Account Token Creator)Target service account holds broad roles such as EditorDirect impersonation of the service account's accessRemove Editor from default service accounts; grant Token Creator per account with justification
Microsoft Entra IDApplication Administrator or Cloud Application AdministratorAny application or service principal holding high Graph application permissionsThe admin can add a credential and act as the applicationAssign app owner or admin roles scoped to specific apps; move high-privilege apps under tighter administration
Microsoft Entra IDAn application granted AppRoleAssignment.ReadWrite.AllAny person or pipeline able to use that application's credentialThe app can grant application permissions to any API, including Microsoft Graph, to itself or othersTreat as Tier 0; restrict credential access and alert on every new app role assignment
OktaHelp Desk Admin or Org Admin (password and MFA reset)Reset scope includes groups that hold admin roles in downstream appsThe reset holder can take over an account with more power than their ownScope reset roles to non-privileged groups; require a second approver for admin resets
OktaApp Admin over a federated cloud app (assigns user access)Group Membership Admin over the group mapped to a cloud admin roleThe holder can grant themselves cloud administrator access through the identity providerSeparate app assignment and group membership administration between teams
Any platformAdministrative rights on a systemRights to change or stop that system's audit loggingActions can be hidden from the people who review themSend logs to a separate account or tenant that platform admins cannot change
CI/CD (any)Pipeline identity with production deploy rightsAbility for the same identity or its maintainers to edit the pipeline definition and approvalsUnreviewed code reaches production under a trusted identityProtect pipeline files with required review; separate deploy identity from pipeline editors

Microsoft Entra marks privileged roles and permissions with a PRIVILEGED label (in preview as of November 2026) in the admin center and through Microsoft Graph, which is a useful seed list for Right A. AWS IAM Access Analyzer policy validation raises security warnings such as "Pass role with star in resource" and "Pass role with NotResource", which catch the first AWS row at authoring time. See the IAM Access Analyzer Guide.

Cross-platform combinations

The most damaging pairs often span two systems, which per-platform tools miss.

  • Identity provider plus cloud: a person who can change group membership in the identity provider controls every cloud role mapped to those groups through federation. Join identity provider group data to cloud role mappings before evaluating.
  • SaaS app ownership plus mailbox or file scope: an owner who can add secrets to an integration that holds tenant-wide mail or file permissions controls that data. The Microsoft Midnight Blizzard breach shows the end state: a legacy test OAuth application with elevated access was used to create new applications and grant full_access_as_app, reading mailboxes without signing in as each user.
  • Secrets manager plus workload: read access to a vault path holding a service account key, combined with network access to the system that key unlocks, is an impersonation route even if no IAM policy mentions the user.
  • Access request approver plus requester: where the same person or bot can raise and approve requests in the governance tool, every downstream entitlement inherits that weakness.

Computing effective permissions

A rule on raw role names produces noise and misses. Resolve each identity's effective rights before matching rules.

  1. Collect: export identities, group memberships, role assignments, policies and scopes from each platform: AWS IAM authorisation details and organisations service control policies, Google Cloud IAM policies at organisation, folder and project level, Entra directory role assignments, PIM eligibility and application permission grants, Okta admin role assignments and group rules.
  2. Resolve: expand nested groups, inherited scopes and eligible (just-in-time) assignments. Count eligible roles as held: an identity that can activate a role in minutes holds that pair for risk purposes.
  3. Apply limits: intersect with AWS permissions boundaries and service control policies, and honour conditions. AWS defines effective permissions under a boundary as only what both the identity policy and the boundary allow.
  4. Normalise: map platform permissions to abstract capabilities such as "pass identity", "create compute", "add credential", "reset authenticator", "change audit". Rules are written once against capabilities and work across platforms.
  5. Match and score: evaluate each identity against the ruleset; score by the privilege of the reachable identity, exposure of the holder (human with phishing-resistant MFA versus long-lived key), and whether the right is standing or eligible.

Cloud infrastructure entitlement management (CIEM) tools perform much of this for cloud platforms; identity governance (IGA) tools usually own the SaaS and approval side. See CIEM vs IGA for how to split the work.

Where non-human identities fit

Service principals, service accounts, automation roles and pipeline identities are where toxic pairs collect. They are granted broad rights for convenience, are often owned by nobody, and authenticate with keys that do not require MFA. Google Cloud notes that when a principal authenticates with a service account key, or a workload uses an attached service account, logs show only the service account, which it describes as a privilege escalation and non-repudiation risk. Default Compute Engine and App Engine service accounts are granted the Editor role, which Google advises against in production. Include every non-human identity in the ruleset and assign an owner who answers for its pairs. See the How to find high-privilege Microsoft Graph application permissions guide for one platform-specific hunt.

Prevent, detect or accept: decision guidance

SituationChooseTrade-off
Platform can express the pair as a condition (AWS PassRole scoping, required permissions boundary)Prevent with a guardrail in policy or service control policyEngineering effort and the occasional blocked deployment; lowest residual risk
Pair is needed for break-glass or rare operationsMake one side eligible only through just-in-time activation with approvalSlower response; activation logs give strong evidence
Pair is needed by a pipelineSplit into two identities (build and deploy) with a review gate between themMore identities to manage; removes the single trusted path
Small team where the same few admins must hold both rightsAccept with compensating controls: separate log account, alerting on use, monthly review by someone outside the teamResidual risk documented and signed off by the risk owner
Large estate with thousands of identitiesAutomate detection on every change, route findings to the identity owner, track exceptions with expiry datesRequires accurate ownership data, which is often the real blocker

How to implement

  1. Seed the ruleset (weeks 1 to 2): start with the eleven rows above plus three to five pairs from your own incidents and audit findings. Give each rule an ID, owner, severity and fix pattern.
  2. Build the inventory (weeks 2 to 6): collect and resolve effective permissions for one platform first, typically the cloud with the most production workloads. Include non-human identities from day one.
  3. Run in report-only mode (weeks 6 to 10): evaluate rules, review findings with platform owners, and tune false positives (for example pairs neutralised by a boundary the collector missed). Do not remove access yet.
  4. Remediate by severity: fix the highest-severity standing pairs on machine identities first, then human admins. Change one side of the pair rather than both, test in a non-production account, and keep the prior policy version so the change can be rolled back by reattaching it.
  5. Add guardrails: move fixed patterns into preventive controls: Access Analyzer validation in pipeline checks, required boundaries for delegated administrators, scoped Entra administrative roles, and Okta admin role scoping.
  6. Turn on continuous detection: evaluate on every entitlement change event and on a daily full run. Feed exceptions with expiry dates into access reviews. See the Access Reviews Guide.
  7. Extend: add the next platform and the cross-platform joins (identity provider to cloud, vault to workload).

Detection and measurement

Watch the events that create a pair and the events that use one.

PlatformEvents that create or use a pair
AWSCloudTrail AttachRolePolicy, PutRolePolicy, CreatePolicyVersion, CreateAccessKey, CreateLoginProfile; use of a passed role appears on the receiving action (for example CreateFunction), because PassRole itself is not logged as an API call
Google CloudCloud Audit Logs SetIamPolicy granting Service Account User or Token Creator; GenerateAccessToken calls on privileged service accounts
Microsoft Entra IDAudit log "Add member to role", "Update application: Certificates and secrets management", "Add app role assignment to service principal", "Consent to application"
OktaSystem Log admin role grants, group membership changes on admin-mapped groups, password and MFA resets performed on administrators

Map alerts to ATT&CK T1098.001 Additional Cloud Credentials, T1098.003 Additional Cloud Roles and T1548.005 Temporary Elevated Cloud Access so the SOC can triage them with existing playbooks. If a pair has been used, follow the Cloud Privilege Escalation Incident Playbook.

  • Open toxic pairs by severity: trending down month on month.
  • Share of open pairs held by non-human identities: tracked separately so machine identity fixes are visible.
  • Median days from pair creation to detection: under one day once event-driven evaluation is on.
  • Median days from detection to remediation or approved exception: within your policy target, for example 14 days for high severity.
  • Exceptions past expiry: zero.
  • Guardrail coverage: share of rules enforced preventively rather than detected after the fact.

Common failure patterns

  • Rules on role names only: custom roles, inline policies and nested groups hide the same capabilities under different names.
  • Ignoring eligible assignments: a just-in-time role that can be self-activated without approval is a standing pair in practice.
  • Leaving machine identities out of scope: the riskiest pairs sit on pipelines and service principals with no owner to review them.
  • Treating test tenants and accounts as out of scope: the Midnight Blizzard case began with a legacy test application that had reach into production.
  • Removing both sides at once: breaks automation and erodes trust in the programme; remove one side, test, then tighten.
  • Permanent exceptions: exceptions without expiry dates and named risk owners become the new baseline.

Framework mapping

FrameworkReferenceHow it applies
NIST SP 800-53 Rev 5AC-5 Separation of Duties; AC-6 Least Privilege; AC-6(7) Review of User Privileges; AC-2(7) Privileged User Accounts; AU-6; CA-7Define conflicting duties, minimise privilege, review and monitor continuously
NIST CSF 2.0PR.AA-05; DE.CM-03Entitlements managed with least privilege and separation of duties; monitor personnel and technology activity
CIS Controls v8.1Control 5 Account Management; Control 6 Access Control ManagementInventory accounts including service accounts; grant and revoke access on role and need
ISO/IEC 27001:2022 Annex AA.5.3 Segregation of duties; A.5.15 Access control; A.5.18 Access rights; A.8.2 Privileged access rightsPolicy basis for conflict rules, provisioning and privileged access
MITRE ATT&CK v20T1098.001; T1098.003; T1548.005; T1078.004 Cloud AccountsAdversary use of toxic pairs to add credentials, roles or temporary elevation

Practitioner checklist

  • Write a ruleset of toxic pairs with ID, owner, severity and fix pattern, starting from the table above.
  • Resolve effective permissions, including nested groups, eligible roles, boundaries and conditions.
  • Include every service principal, service account, automation role and pipeline identity.
  • Scope AWS PassRole to named roles with iam:PassedToService and require permissions boundaries for delegated admins.
  • Grant Google Cloud Service Account User and Token Creator per service account, and remove Editor from default service accounts.
  • Scope Entra application administration to specific apps and alert on new credentials on privileged apps.
  • Scope Okta reset roles away from admin groups and split app assignment from group membership administration.
  • Ship audit logs to an account or tenant that platform admins cannot change.
  • Evaluate on every entitlement change and give every exception an expiry date and risk owner.

Standards and references

Related NHI Mgmt Group resources: Segregation of Duties Guide · Identity Attack Paths Guide · CIEM vs IGA · AWS IAM Permissions Boundaries Guide · Access Reviews Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.