Consent Phishing: Investigating a Suspicious OAuth App

You reset the password, closed the ticket, and the attacker is still reading the mailbox. That's consent phishing, and it catches a lot of new analysts. Here's how to work it.

Consent phishing tricks a user into approving an attacker's app, which then gets its own token-based access to their mailbox or files, no password needed. Judge the app by its publisher and permissions, not its name. Revoking the consent and its tokens is the containment. A password reset alone leaves the attacker in.

The alert

From the Cyber Blues Entry track. The identity provider logs a new app consent from a user in Legal:

  • App: "Secure Mail Backup," publisher unverified, not on the company's approved-app list.
  • Permissions: read mail, send mail, read and write mail, and offline_access.
  • How: the user clicked an email saying "Action required: re-authorize your mailbox" and approved the prompt. The sign-in at that moment came from an outside IP they'd never used.
  • Since then: the app has read mail twice. No password change. The consent and its refresh token are still active.

Your call: a 60-second check

Before you read on, answer these three:

  1. Is the name "Secure Mail Backup" evidence either way?
  2. Which single permission means the access keeps going without the user?
  3. If you reset the password right now, does the app lose access?

The answers are in the triage below.

The triage

Read the permissions, not the name. A reassuring name costs the attacker nothing.

CheckHereWhy it matters
PublisherUnverifiedAnyone can register an app with any name
Mail.SendGrantedThe app can send phishing as this user
offline_accessGrantedA refresh token keeps access going on its own
Allow-listNot on itNobody in IT approved this app

An unknown publisher asking for broad mail access is malicious until proven otherwise. So: (1) no, the name proves nothing; (2) offline_access; (3) no. The app never used the password. Revoke the consent and tokens, then check what mail it read and whether it sent anything.

Weak answer vs. strong answer

The answer that loses the interviewThe answer that gets the callback
"Looks like a backup app the user installed. Reset the password to be safe.""Unverified publisher, broad mail scopes, not on our allow-list, approved from a phishing link. I'd revoke the consent and tokens, because a password reset won't remove the app's access, then check the two reads and any sends."

Mentor note

A token is not a password. Whenever access was granted rather than stolen, ask what the grant gave away, and take that back first.

What would a hiring manager ask?

  • "How is consent phishing different from credential phishing?"
  • "Which of these permissions worries you most, and why?"
  • "Why doesn't a password reset contain this?"
  • "How would you tell a legitimate business app from a malicious one?"

Related reading

Another place attackers hide in a mailbox: suspicious inbox forwarding rules. Tokens that outlive passwords: session token theft.

Today's rep

Reading about triage isn't the same as doing it. Take one free case in the Entry courses: make the call, explain it, and get coached on your reasoning.

Start the free Entry courses →

FAQ

What is OAuth consent phishing?

An attack that tricks a user into granting a malicious app permission to their account, so the attacker gets access through the app's tokens instead of the user's password.

Does MFA stop consent phishing?

No. The user signs in and approves the app themselves, so MFA is satisfied. The app's access then continues on its own tokens.

How do you remove a malicious OAuth app?

Revoke its consent and tokens, remove it from the tenant, check what data it accessed, and block it so it can't be approved again.