Security operations

How to Identify Privilege Escalation in SaaS Apps (Detection Guide)

Attackers rarely stay at the access they started with. Here is how to spot them climbing the ladder in your SaaS apps — and stop them.

Cysoro Security TeamPublished · 9 min read
User read-only Admin group added Global admin alert SECURITY OPERATIONS Privilegeescalation Spot the climb, stop the breach.
Quick answer

You identify privilege escalation in SaaS apps by watching audit logs for privilege-changing events: role grants, new API keys, added application owners, new OAuth permissions and group membership changes. Alert on every grant of a broad role, compare the actor and source against their normal behavior, and join each grant to a change record. A grant with no ticket, an unusual actor, or a new credential on a privileged app is the signal to investigate.

Key takeaways

  • Privilege escalation in SaaS apps shows up in audit logs as role grants, new credentials, new owners and OAuth permission changes.
  • Alert on every broad role grant, and on any privilege change that has no ticket, unusual actor or unusual source.
  • OAuth apps and service principals are a common escalation path because they survive password resets.

Attackers who get a foothold rarely stay at the access they started with. They add a policy to the account they control, create a second access key, or add themselves to an admin group — because standing permission outlasts a stolen password.

What is privilege escalation in SaaS apps?

Privilege escalation is when a user, application or attacker gains more access than they started with. In SaaS apps it usually happens through admin panels, APIs and OAuth permissions, not through operating system exploits.

MITRE ATT&CK describes the core behavior as account manipulation: any action that preserves or modifies access to a compromised account, such as modifying credentials or permission groups. That framing is useful because it covers attackers, insiders and honest mistakes — all three produce the same audit events.

There are two directions. Vertical escalation is gaining higher privileges, such as a normal user becoming an admin. Horizontal escalation is gaining the same level of access as another user, such as reading another customer's data. Both matter, but vertical escalation is usually the more damaging one, because it opens the whole tenant.

How does privilege escalation happen in SaaS apps?

Privilege escalation in SaaS apps usually follows one of a few patterns. The attacker starts with a low-privilege account — phished, bought, or a forgotten test account — and then uses whatever that account can already do to reach something more powerful.

Common paths include: a user who can manage groups adds themselves to an admin group; an account with permission to manage applications adds a new secret to a privileged app and logs in as that app; an OAuth application is granted a powerful permission and then uses it to assign admin roles; or a service account with broad permissions is used to create new access keys.

The OAuth path deserves special attention. Applications and service principals in Microsoft Entra ID authenticate with client secrets or certificates. Anyone who can update an application's credentials can add a new secret and then authenticate as that application, inheriting its permissions. That access is not subject to user MFA or most Conditional Access policies, and it survives a password reset of the account the attacker started from.

The privilege escalation ladder 1 Foothold Phished or stale low-privilege account 2 Find a path Group, app or role the account can change 3 Escalate Add a role, key or app credential 4 Persist New access survives password resets Break the chain at step 2: limit who can change roles, groups and app credentials.
The four steps of a SaaS privilege escalation. Illustration by Cysoro.

Which audit events should you watch?

Every privileged system has an audit trail for privilege changes. AWS records IAM and STS API calls in CloudTrail. GitHub keeps an audit log for organizations. Kubernetes can record API requests with audit logging. Your own application should log role grants too — the OWASP Logging Cheat Sheet lists user administration actions, changes to privileges and the use of administrative privileges among events worth logging.

Start with this list, then add the equivalents in each system you run:

EventWhere it appearsWhy it matters
Role assignmentEntra ID, AWS IAM, Google Cloud, GitHubDirect grant of admin power
Group membership changeEntra ID, Google Workspace, GitHubGroups often carry admin roles
New API key or credentialAWS CreateAccessKey, Entra ID app secretsNew long-lived access for the attacker
New application ownerEntra ID app registrationsOwner can add credentials to the app
OAuth permission grantEntra ID, Google WorkspaceApp gains power to act on data
Policy or trust changeAWS AssumeRole policy, Entra ID trustChanges who can assume a role
Role or binding creationKubernetes RBACCreates new privileged access in the cluster

In AWS, the key API calls are AttachUserPolicy and AttachRolePolicy, which attach a managed policy; PutUserPolicy, which adds or updates an inline policy; CreateAccessKey, which creates a new access key; AddUserToGroup, which adds a user to a group; and UpdateAssumeRolePolicy, which changes who can assume a role. All of them change who can do what.

In Microsoft Entra ID, watch for role assignments, adding service principal credentials, adding an owner to an application, and granting the RoleManagement.ReadWrite.Directory permission to an application. That last one is especially dangerous: an app with that permission can assign administrative roles to users, which is a classic escalation chain.

How do you identify privilege escalation step by step?

Privilege changes are rare compared with most other events, so they are a good place to alert. The trick is knowing which of them were expected. Follow these six steps to build a detection routine that works.

  1. Collect the audit logs in one place. Cloud control plane, identity provider, source host, Kubernetes API server and your application's admin actions. Without them there is nothing to query.
  2. Maintain a list of privilege-changing event names. Start from the table above and add the equivalents in each system: org role changes in GitHub, role binding creation in Kubernetes, admin flag updates in your database.
  3. Query for them and classify the actor. For each event, note who did it, what changed, when, and from where. A person, a service account and an application are different kinds of actor.
  4. Keep an allowlist of expected actors. A deployment pipeline that grants a role to a service on every release is expected. A person changing permissions at 3 a.m. is not. Compare the actor and source with the last 30 days of changes by the same actor.
  5. Score the change by blast radius. A grant of AdministratorAccess, a new key on a root or break-glass identity, or a role that can assume other roles matters more than adding a read-only policy.
  6. Join to change records. If every legitimate grant has a ticket or pull request number in a tag or comment, alert on grants that do not. A grant with no ticket is the strongest single signal.

Alert on every grant of the broadest roles — the volume is low enough to review manually. For narrower grants, alert on deviation: an actor who has never granted a permission before, a source IP or country not seen for that actor, or a grant outside normal hours. The Sazabi detection guide sets out this approach in detail.

Triaging a privilege change alert Was the grant expected? Check the ticket, the actor and the last 30 days. If no ticket: is the actor new to this action, or is the source unusual? If yes: treat as an incident — freeze the grant, revoke new credentials, investigate. If no: record the grant, link the ticket, and add the actor to the allowlist. Always: check what the new access was used for after the grant.
A triage flow for privilege change alerts. Illustration by Cysoro.

Why are OAuth apps and service principals so risky?

OAuth applications and service principals are a common escalation path because they behave differently from user accounts. They authenticate with secrets or certificates, not with a password and MFA, and they can hold powerful permissions — including the ability to read all mail, create users and assign roles.

The two-event chain to watch is: first, an application receives a powerful permission such as RoleManagement.ReadWrite.Directory; then, shortly afterwards, that same application uses the permission to assign an administrative role to a user. Each event on its own can be legitimate. The correlation — same application, specific sequence, short time window — is the signal.

Watch also for new credentials added to an application or service principal, and for new owners added to an application. Owners can add credentials to the object, so a new owner of a privileged application is an indirect but complete path to its permissions. The Forestall detection rule for added service principal credentials describes this pattern and its MITRE mapping to T1098.001.

Mitigation is straightforward: keep privileged directory roles and high-impact Graph permissions off service principals, limit who can own or administer applications, and review application owners and credentials regularly. Remove the secret or certificate that was added, check both the application registration and the service principal, and undo what was done as the application.

What is different about SaaS apps versus servers?

On a server, privilege escalation usually means exploiting a vulnerability to become root. In SaaS apps, it usually means using a legitimate feature in a way the designers did not intend — granting a role, consenting to an OAuth app, or changing a group. No exploit is needed, which is why the audit log is your main detection tool.

SaaS apps also share a tenant. A privilege change in one app can affect data across the whole tenant, and a compromised admin in one SaaS product can often pivot to others through single sign-on. That is why a grant in a "low-risk" app still deserves review if the app holds a privileged role.

Finally, SaaS apps change constantly. New features add new permissions, new integrations add new OAuth apps, and new employees add new admin accounts. Review privileged roles, app permissions and owners on a regular schedule — quarterly at minimum — not only after an incident.

What should you do when you find privilege escalation?

Act fast, but in the right order: contain first, then investigate, then fix the root cause. Reversing a grant before you understand it can destroy evidence; leaving it in place lets the attacker keep working.

  1. Freeze the new access. Revoke the new credential, remove the role grant or disable the application, and note the exact time you did it.
  2. Preserve the audit trail. Export the relevant audit logs before they rotate, and record the actor, the source and the timeline.
  3. Check what the access was used for. Look at what the new role or credential did after the grant: files read, users created, roles assigned, data exported.
  4. Reset the compromised account. Change the password, revoke sessions, and check for new mail-forwarding rules, new MFA devices and new API keys.
  5. Remove the path. Tighten who can grant roles, manage applications and add owners. Require approval for broad grants.
  6. Review for persistence. Check for other new credentials, owners, OAuth grants and scheduled tasks the attacker may have left behind.

If money or customer data was affected, follow your incident response plan and consider reporting to law enforcement. If the escalation involved a vendor's SaaS product, report the abuse to the vendor as well.

How do you prevent privilege escalation in SaaS apps?

Prevention is mostly about removing standing privilege and adding approval. The fewer accounts that can grant power, and the shorter the time any grant lasts, the smaller the attack surface.

  • Use just-in-time access. Make admin roles eligible rather than permanently assigned, with approval, MFA and a time limit.
  • Limit who can grant roles. Only a small group should be able to assign admin roles, manage applications or add owners.
  • Require approval for broad grants. A second approver for AdministratorAccess or Global Administrator stops a single compromised account from escalating.
  • Review privileged roles regularly. Remove stale admins, unused service principals and forgotten OAuth grants every quarter.
  • Separate duties. The person who can grant a role should not be the person who approves their own grant.
  • Monitor continuously. Alert on every broad grant and on any grant with no ticket, as described above.

Privileged access management platforms help here by vaulting admin credentials, granting just-in-time access and recording sessions. Our best PAM solutions guide compares the leading platforms for teams that want to put these controls in place.

For the wider set of controls that belong around this work — backups, updates, device security and access reviews — see our small business cybersecurity checklist.

The bottom line

Privilege escalation in SaaS apps leaves a trail in the audit log — role grants, new credentials, new owners and OAuth permission changes. Collect those logs, alert on the broad grants, and investigate every grant that has no ticket, an unusual actor or an unusual source.

Start today: list your privileged roles and the people who can grant them, then turn on alerting for the events in the table above. You can check whether your own passwords have appeared in known breaches with the free pwned password checker.

Frequently asked questions

What is privilege escalation in SaaS apps?

Privilege escalation is when a user, app or attacker gains more access than they started with, for example by adding themselves to an admin group, granting a role, or adding a credential to a privileged application. In SaaS apps it usually happens through admin panels, APIs and OAuth permissions rather than through operating system exploits.

How do you detect privilege escalation?

Collect audit logs from your identity provider, SaaS admin consoles and cloud control plane in one place, then alert on privilege-changing events such as role grants, new API keys, new application owners and OAuth permission grants. Score each event by the actor, the source and the size of the permission granted.

What is the most common privilege escalation path in Microsoft 365?

A common path is through applications and service principals. Anyone who can manage an application's credentials can add a new secret or certificate and then authenticate as that application, inheriting its permissions. That access survives a password reset of the account the attacker started from.

What audit events should I watch for privilege escalation?

Watch for role assignments, group membership changes, new API keys and credentials, new application owners, OAuth consent grants, policy changes and trust modifications. In AWS these include AttachUserPolicy, PutUserPolicy, CreateAccessKey and AddUserToGroup; in Entra ID they include role assignments and adding service principal credentials.

Can an insider cause privilege escalation by accident?

Yes. Insiders and mistakes produce the same audit events as attackers, such as granting a broad role to the wrong person or adding a credential to the wrong app. Detection that works for all three is more useful than detection tuned only to attackers.

How do I stop privilege escalation in SaaS apps?

Remove standing admin rights and use just-in-time access, limit who can grant roles and manage applications, require approval for broad grants, review privileged roles regularly, and alert on every grant that has no change ticket. Least privilege and approval workflows are the strongest preventive controls.

What is the difference between vertical and horizontal privilege escalation?

Vertical privilege escalation is gaining higher privileges, such as a normal user becoming an admin. Horizontal privilege escalation is gaining the same level of access as another user, such as reading another customer's data. Both matter in SaaS apps, but vertical escalation is usually the more damaging one.

Should I alert on every role grant?

Yes, for the broadest roles. Privilege changes are rare compared with most other events, so the volume is low enough to review manually. For narrower grants, alert on deviation: an actor who has never granted that permission before, an unusual source, or a grant outside working hours.

Sources

  1. Sazabi — Privilege Escalation Detection: Audit Events to Watch
  2. MITRE ATT&CK — Technique T1098: Account Manipulation
  3. Forestall — Credentials Added to an Application or Service Principal
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against MITRE ATT&CK T1098 account manipulation, Microsoft Entra ID audit activities and practitioner detection guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free