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:PassRoleon 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:PassRolecan 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.
| Platform | Right A | Right B | Why the pair is toxic | Preferred fix |
|---|---|---|---|---|
| AWS | iam: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 roles | Scope PassRole to named role ARNs and add the iam:PassedToService condition |
| AWS | iam:CreateUser, iam:CreateRole or iam:PutUserPolicy | No iam:PermissionsBoundary condition on those actions | The identity can create a new principal with more rights than its own | Delegate with a required permissions boundary and deny edits to the boundary policy |
| AWS | iam:CreateAccessKey or iam:CreateLoginProfile on other users | Those users hold higher privileges | The identity can mint credentials for a more privileged user | Restrict to ${aws:username} or named service users |
| Google Cloud | iam.serviceAccounts.actAs (Service Account User) on a privileged service account | Permission to create or update compute, functions or jobs | The attached service account becomes the identity of the jobs the user starts | Grant Service Account User on specific service accounts, not at project level |
| Google Cloud | iam.serviceAccounts.getAccessToken (Service Account Token Creator) | Target service account holds broad roles such as Editor | Direct impersonation of the service account's access | Remove Editor from default service accounts; grant Token Creator per account with justification |
| Microsoft Entra ID | Application Administrator or Cloud Application Administrator | Any application or service principal holding high Graph application permissions | The admin can add a credential and act as the application | Assign app owner or admin roles scoped to specific apps; move high-privilege apps under tighter administration |
| Microsoft Entra ID | An application granted AppRoleAssignment.ReadWrite.All | Any person or pipeline able to use that application's credential | The app can grant application permissions to any API, including Microsoft Graph, to itself or others | Treat as Tier 0; restrict credential access and alert on every new app role assignment |
| Okta | Help Desk Admin or Org Admin (password and MFA reset) | Reset scope includes groups that hold admin roles in downstream apps | The reset holder can take over an account with more power than their own | Scope reset roles to non-privileged groups; require a second approver for admin resets |
| Okta | App Admin over a federated cloud app (assigns user access) | Group Membership Admin over the group mapped to a cloud admin role | The holder can grant themselves cloud administrator access through the identity provider | Separate app assignment and group membership administration between teams |
| Any platform | Administrative rights on a system | Rights to change or stop that system's audit logging | Actions can be hidden from the people who review them | Send logs to a separate account or tenant that platform admins cannot change |
| CI/CD (any) | Pipeline identity with production deploy rights | Ability for the same identity or its maintainers to edit the pipeline definition and approvals | Unreviewed code reaches production under a trusted identity | Protect 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.
- 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.
- 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.
- 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.
- 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.
- 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
| Situation | Choose | Trade-off |
|---|---|---|
| Platform can express the pair as a condition (AWS PassRole scoping, required permissions boundary) | Prevent with a guardrail in policy or service control policy | Engineering effort and the occasional blocked deployment; lowest residual risk |
| Pair is needed for break-glass or rare operations | Make one side eligible only through just-in-time activation with approval | Slower response; activation logs give strong evidence |
| Pair is needed by a pipeline | Split into two identities (build and deploy) with a review gate between them | More identities to manage; removes the single trusted path |
| Small team where the same few admins must hold both rights | Accept with compensating controls: separate log account, alerting on use, monthly review by someone outside the team | Residual risk documented and signed off by the risk owner |
| Large estate with thousands of identities | Automate detection on every change, route findings to the identity owner, track exceptions with expiry dates | Requires accurate ownership data, which is often the real blocker |
How to implement
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
| Platform | Events that create or use a pair |
|---|---|
| AWS | CloudTrail 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 Cloud | Cloud Audit Logs SetIamPolicy granting Service Account User or Token Creator; GenerateAccessToken calls on privileged service accounts |
| Microsoft Entra ID | Audit log "Add member to role", "Update application: Certificates and secrets management", "Add app role assignment to service principal", "Consent to application" |
| Okta | System 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
| Framework | Reference | How it applies |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-5 Separation of Duties; AC-6 Least Privilege; AC-6(7) Review of User Privileges; AC-2(7) Privileged User Accounts; AU-6; CA-7 | Define conflicting duties, minimise privilege, review and monitor continuously |
| NIST CSF 2.0 | PR.AA-05; DE.CM-03 | Entitlements managed with least privilege and separation of duties; monitor personnel and technology activity |
| CIS Controls v8.1 | Control 5 Account Management; Control 6 Access Control Management | Inventory accounts including service accounts; grant and revoke access on role and need |
| ISO/IEC 27001:2022 Annex A | A.5.3 Segregation of duties; A.5.15 Access control; A.5.18 Access rights; A.8.2 Privileged access rights | Policy basis for conflict rules, provisioning and privileged access |
| MITRE ATT&CK v20 | T1098.001; T1098.003; T1548.005; T1078.004 Cloud Accounts | Adversary 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:PassedToServiceand 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
- AWS: Grant a user permissions to pass a role to an AWS service
- AWS: Permissions boundaries for IAM entities
- Google Cloud: Role for service account authentication
- Google Cloud: Service account impersonation
- Microsoft Learn: Microsoft Entra built-in roles
- Microsoft Learn: Privileged roles and permissions in Microsoft Entra ID
- Microsoft Learn: Microsoft Graph permissions reference
- Okta: Standard administrator roles and permissions
Related NHI Mgmt Group resources: Segregation of Duties Guide · Identity Attack Paths Guide · CIEM vs IGA · AWS IAM Permissions Boundaries Guide · Access Reviews Guide