Consent is a permission grant with its own lifecycle
An agency identifies an unrecognised OAuth application with delegated permissions to staff mail and cloud files. The app may be an unsanctioned workflow tool, a legitimate service lacking an approval record or a malicious consent grant. A user logging in with MFA does not validate the application’s requested scopes. Before mass revocation, preserve the application identifier, publisher details, consent actor, permissions, tenant configuration, service principal, grant time and available sign-in logs. Distinguish delegated user permissions from application permissions, because their reach and revocation paths differ.
Determine the real exposure
List which mailboxes, files or directory functions the grant could reach in the context of the authorising account. Broad scope descriptions are an initial clue, not proof that the application downloaded every permitted record. Correlate app sign-ins, API requests and audit events to identify actual activity. Check whether an existing refresh token remains valid after a user password change and whether the service principal continues to run independent of that user. Where the application accesses a critical approval workflow, understand the operational dependency before disabling it without a replacement.
Contain the grant, not all collaboration
The preferred action may be to revoke the unapproved app’s consent and tokens, remove or disable its service principal and investigate affected accounts. Confirm the precise sequence supported by the identity platform. Avoid a blanket ban that unexpectedly blocks essential citizen-service processing if a narrower control can close the exposure. Establish a short-lived, approved alternative for business-critical integrations. Document the effect on automated workflows, outstanding tasks and staff who used the app legitimately. A denied future consent prompt is not evidence that already issued tokens have ceased working.
Test retained access and alternative paths
Use a synthetic mailbox and file repository in a test tenant. Grant the trial application limited permissions, then revoke it through the intended process and attempt the same API operations with a retained access token and refresh token. Confirm the expected expiry and denial behaviour under the platform’s actual rules. Repeat for any app-only role if that mode is supported. Review whether a second enterprise application, delegated account or automation identity can recreate the same access path without approval. Avoid testing against real staff correspondence where it is not necessary.
Improve the approval and monitoring boundary
Create a request process that records business purpose, named owner, requested scopes, data categories, supplier assurance, duration and renewal date. Limit ordinary users’ ability to approve risky permissions according to the agency’s agreed policy. Monitor new grants, unusual scope expansion and dormant apps that retain broad access after the sponsoring project closes. Keep the service principal inventory aligned with procurement and contract closure. A high count of OAuth grants is less meaningful than the number whose permissions, owner and observed activity can be explained.
Report facts with suitable uncertainty
The incident summary should distinguish an unapproved grant, token use, confirmed API retrieval and actual disclosure of sensitive records. Where the agency cannot recover sufficient audit logs, record the uncertainty and decide further assessment accordingly. The relevant privacy, records and legal teams should determine whether notification or retention obligations apply to the facts. Close only after the suspicious grant no longer provides the prohibited access, essential workflows use approved replacements and a negative test demonstrates effective revocation. Staff should have a safe, workable route for new applications rather than relying on informal consent prompts.
Separate application trust from user enthusiasm
A user may approve a calendar or note-taking app because it appears harmless, while the application requests broad mailbox read access that is unnecessary for its stated feature. Review requested permissions against the specific business need, vendor identity and data handling terms. Limit admin consent to accountable roles and provide a quick route for staff to obtain legitimate tools. Otherwise people may switch to personal accounts, weakening the visibility that the consent restriction was meant to create. A denied consent event can be a valuable feedback signal about an unmet operational need.
Prove revocation at the API rather than the portal
An administrator removing an application from a tenant dashboard may not immediately terminate all active tokens, depending on platform behaviour. The incident playbook should call out how to revoke delegated grants, disable service principals, invalidate tokens where supported and check API logs for further activity. Measure the interval between the action and denied requests using the synthetic test application. If a grant previously touched sensitive files, preserve object and permission records for assessment before deleting every trace. The completion decision should name what data access was established, not extrapolate from the app’s requested scopes alone.
Additional operational assurance
For a grant that was genuinely used, maintain a short evidence matrix showing which API resources were accessed, when, under which principal and with what result. A grant alone establishes potential reachability, while a successful API retrieval supports a narrower but stronger claim about activity. Check whether application logs expose the records requested and whether retention covers the relevant period. The agency’s communications should say what is known and what remains unknown. If another application must be approved to restore a necessary workflow, apply the same minimum-scope test before granting the replacement permissions.
Sources and further reading
How Next Defence supports this work
Next Defence can help teams assess OAuth grant scope, token persistence, approved alternatives and application revocation with synthetic data. Engagements are scoped to authorised systems and the organisation’s operational and legal requirements.