Deactivate a compromised app registration by removing or disabling its credentials, revoking its access where possible, and preventing further token use from the application identity. Then investigate what the app could access, review sign-in and audit activity, and replace the application with a clean registration if needed. Treat related secrets and certificates as exposed.
What deactivation actually means for an Entra ID app registration
In microsoft entra id, “deactivating” a compromised app registration is really about cutting off every path the application has to authenticate, obtain tokens, and continue acting. That usually means removing client secrets and certificates, preventing consent or role use that keeps the app effective, and deciding whether the safest outcome is revocation, replacement, or full rebuild of the registration.
Start by treating the application identity as potentially trusted by other systems. If the app had Microsoft Graph, SharePoint, mailbox, or tenant-wide permissions, the blast radius can be broader than the registration itself, so the response needs to cover both the app object and every downstream permission or token it may have been using.
The practical goal is to make the old app identity unusable without assuming the compromise is contained. That often includes removing credentials, disabling or deleting the enterprise application or service principal where appropriate, and confirming that no automation, pipeline, or integration still depends on the compromised identity.
Which access paths and secrets must be cut off first?
The first priority is the material that lets the app keep authenticating: secrets, certificates, federated credentials, and any other token-bearing trust path. If an attacker has already stolen one of those, leaving even one valid credential in place can preserve access after you think the app is “disabled.”
For app registrations, it is also important to review whether the application has been granted privileged app roles, delegated permissions, or admin consent that extends beyond what the owner intended. An app with excessive permissions may need its grants removed before the registration can be considered safe again. NHIMG’s Azure RBAC and Service Principals Guide is useful here because the access problem is often the combination of app credentials and role assignment, not the app object alone.
If the compromised registration was used in cloud workloads or CI/CD, also check whether the same credential was reused elsewhere. Reuse turns a single compromise into a broader identity problem, especially when the same secret, certificate, or workload token can reach multiple subscriptions or tenants. The Cloud Workload Identity Guide is a good reference for understanding where static credentials should be removed and replaced with stronger workload identity patterns.
How do you confirm the app is no longer usable?
After the immediate credential cut-off, validate that the application can no longer get tokens and cannot complete the workflows it used before. That means testing the authentication path, checking for surviving secrets or certificates, and confirming that any service principals, role assignments, or consent grants that made the app powerful have been removed or narrowed.
You should also inspect sign-in logs, audit logs, and Microsoft Entra activity for evidence of abuse before and after the compromise window. Look for unusual consent events, unexpected token issuance, new credentials added to the app, or access to APIs and resources that do not match normal app behavior.
When the app was integrated with a third party, review whether the external system needs a clean replacement registration rather than a simple credential reset. NHIMG’s Entra ID Applications and Consent Guide helps when the question is not just “is the app disabled?” but “what consent and downstream access did it already receive?”
Risk and Threat Considerations
A compromised app registration is risky because it can survive user password resets and continue operating through valid application credentials. If the app had broad API access, an attacker may use it as a quiet, persistent foothold for data access, mailbox access, or tenant manipulation.
Failure mechanism: Attackers often retain access by preserving one valid secret, certificate, or consented permission path, even after defenders think the app has been shut down.
Impact: The result can be ongoing unauthorized access, hidden data exfiltration, lateral movement into connected systems, or re-entry through the same identity if the compromised registration is later re-enabled.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5 sets the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | App secrets and certificates must be revoked or rotated after compromise. |
| AC-6 — Least Privilege | Compromised app permissions should be narrowed or removed to reduce blast radius. | |
| AU-6 — Audit Review, Analysis, and Reporting | Logs are needed to confirm misuse and scope the compromise. | |
| Recommendation — Rotate or revoke application authenticators and remove any surviving credential material. Reduce the app to the minimum permissions needed or remove access entirely. Review audit and sign-in logs for anomalous app activity and token use. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | App access must be governed and withdrawn when trust is lost. |
| A.5.17 — Authentication information | Secrets and certificates used by the app are authentication information requiring protection and replacement. | |
| Recommendation — Withdraw the compromised app’s access rights and reissue only approved permissions. Replace exposed authentication information and invalidate any compromised material. | ||
Practitioner Guidance
What to verify: Confirm that every credential tied to the app has been removed or rotated, then verify token issuance actually stops. If the app still authenticates anywhere, treat the incident as active rather than contained.
Decision rule: If the registration held privileged or wide-scoped permissions, prefer rebuilding a clean app registration over trying to preserve the old one. That reduces the chance that a hidden grant, reused secret, or stale certificate survives the response.
What good looks like: The compromised app cannot authenticate, no longer has useful permissions, and its prior access paths are documented so the replacement is deliberately re-issued rather than accidentally re-granted.
Practitioner takeaway: For compromised app registrations, deactivation is not a single switch, it is the removal of every trust path that would let the old application identity keep acting.
Related resources from NHI Mgmt Group
- How do you configure app consent policies in Microsoft Entra ID?
- How do you detect device registration without MFA in Microsoft Entra ID?
- What should you monitor to detect compromised user accounts in Microsoft Entra ID?
- How do you run a passkey or Microsoft Authenticator registration campaign in Microsoft Entra ID?