IAM interview questions · Architecture and scenarios
An admin account is compromised. What do you do first?
In plain wordsSomeone stole the master key: first lock the doors and change the locks, then see what they touched, then work out how they got it.
How it works
Contain: disable the account, revoke all sessions and refresh tokens, reset credentials and MFA methods, and check for persistence the attacker may have added: new MFA devices, app registrations with secrets, OAuth consents, mailbox rules, new admin accounts, federation trust changes. Use break-glass accounts if needed.
Investigate: sign-in and audit logs to build a timeline, what was accessed or changed, which other accounts were touched. Coordinate with the incident response team and legal (notification duties under GDPR or NIS2).
Recover and improve: restore safe configuration, then fix the root cause (phishing-resistant MFA for admins, JIT instead of standing admin, alerts on privileged changes).
A concrete example
A global admin approves a fake push at 02:13. By 02:30 the attacker has added a new MFA phone and created an app registration with Mail.Read for all users. Resetting the password alone would leave both in place: the attacker keeps reading mail through the app. The right answer removes the device, deletes the app and its consent, and revokes tokens.
See it in action: a shared computer
Mistakes to avoid
- Only resetting the password.
- Deleting the account and losing evidence.
They may also ask you
- Which logs would you look at first?
- How do you prevent this from happening again?
- Go deeper
- Session →
- Refresh token →