Microsoft Security · Incident response
Compromised Microsoft 365 account: contain, investigate and recover with evidence
An unknown forwarding rule, messages the user does not recognise or a suspicious sign-in can reveal a compromised Microsoft 365 account. Changing the password belongs in the response, but does not establish the incident’s scope or remove every access route. Recovery needs containment, persistence review and tests that allow the account to return to work with understood risk and clearly documented outstanding questions.
What should you do about a compromised Microsoft 365 account?
Identify the account and limit access through the incident procedure. Revoke sessions and change credentials at the correct identity source without sending the new password to the affected mailbox. Review authentication methods, rules, forwarding, applications and privileges. Investigate activity and scope, correct persistence routes and verify secure access, email and follow-up before closing the case.
This guide helps IT and security organise response. It does not replace investigation of a complex incident or propose running an indiscriminate script across the tenant. Every action needs a confirmed identity, authorised operator and record. Where the account supports critical processes, coordinate continuity while limiting risk. Urgency should shape priorities without removing evidence review or turning a successful password reset into an unjustified conclusion that the incident is over.
Compromised Microsoft 365 account: confirm the target and preserve context
Record account identity, object identifier and function. A visible address may be an alias or belong to a shared mailbox used by several people. Do not disable the first account resembling the reported name. Relate the event to the identity that authenticated and affected resources, particularly where delegation or multiple administrative accounts exist. An unambiguous target allows operators to contain the intended account without unnecessarily interrupting another person’s work.
Capture the symptom, time and time zone. Preserve references to alerts, messages and suspicious changes. Separate observations from assumptions: a sign-in from another location may need review but does not independently establish who acted or what they did. A communication the user does not recognise deserves investigation even without a high-severity alert. Keep initial hypotheses visible as hypotheses until additional evidence supports a stronger conclusion.
Contact the person through an established channel separate from the suspect mailbox. If an attacker retains access, they may read instructions or answer as the user. Verify identity through the support procedure and agree how recovery will be communicated. Do not send new passwords, registration codes or investigation information through the channel whose security is being assessed. Establish a contact route that remains available while the account is contained.
Initial case record
- Account, object and related resources.
- Symptom and first available evidence.
- Investigation interval and time zone.
- Incident owner and operators.
- Impact on email, applications and processes.
- Containment decisions and observed outcomes.
Containment should not wait for a finished report. Preserve evidence that can be collected without unjustified delay and record actions as you proceed. When changing suspicious configuration, retain its reference or state first where practical. Documentation does not mean keeping a dangerous route active to obtain a perfect screenshot. The procedure needs to support both tasks with clear priorities and an understandable sequence of decisions.
Limit access and check the outcome
For an affected account, Microsoft recommends disabling the user during investigation. Apply the measure through your procedure and confirm identity beforehand. Record the decision, time and dependencies. If operational limitations exist, the team needs an agreed alternative and explicit risk assessment. Do not assume a password change has the same effect in every scenario. The case should explain which containment is active and which limitation still requires follow-up.
Revoke sign-in sessions and refresh tokens using supported actions. Then check outcomes and consider the involved applications. An application may control its own session, and Entra cannot directly revoke a cookie it issued. Response should address access within those applications when necessary. Do not promise that one action instantly closes every session across every service. Record the applications requiring separate handling and assign responsibility for confirming their access state.
Identify the identity source before changing credentials. Cloud-only, synchronised and federated accounts require different coordination. In hybrid environments, follow the current sequence for the local source and verify propagation. Do not change credentials only in the most convenient portal if that system does not determine the effective credential. Recovery should leave a consistent, verified authentication route, with evidence that the change reached the systems involved.
Use the secure channel defined in your procedure. Check the device used for recovery too. If it remains affected, entering new credentials can expose them again.
Review authentication and recovery routes
Examine registered methods and changes during the suspicious interval. An attacker may add a method enabling return even after a password change. Compare with information confirmed by the user and available records. Remove unrecognised methods through the authorised procedure while retaining references. Prepare legitimate registration and verify the user can complete authentication safely. The result needs to establish which methods remain active and how their legitimacy was confirmed.
Review older options present in the environment, including application passwords where used. Do not assume they automatically disappear after an ordinary password change. Recovery should address the account’s effective access routes rather than only its familiar sign-in screen. Document which methods remain and who confirmed their necessity. A route that rarely appears in support cases can still matter when assessing how an attacker might retain access.
Requiring MFA is an important improvement but does not independently explain the incident’s origin. Application consent, stolen sessions or other routes may be involved. Investigate evidence before concluding that a weak password was the sole cause. Our Microsoft Entra MFA guide helps prepare registration and recovery. Keep preventive improvements separate from the conclusions that can actually be supported about the current incident.
Rules and forwarding need more than one screen
Check mailbox forwarding and inbox rules, including hidden rules through supported tools. Look for unknown destinations and actions moving or deleting messages to hide communications. An innocuous rule name can conceal relevant behaviour. Review complete conditions and actions, determining whether changes correspond to a confirmed legitimate need. Support should not classify a rule solely from its display name or the folder it appears to target.
Preserve suspicious state before removal where practical and record the correction. Removing a rule does not retrieve previously forwarded messages or automatically reverse earlier actions. Investigation needs the activity period and affected communications. Avoid closing the incident merely because the external destination has disappeared from current configuration. Retain evidence allowing the team to explain what was corrected and what consequences still require review.
Examine related delegation and configuration changes where evidence warrants it. Do not remove every legitimate permission by default, interrupting processes and losing context about normal mailbox use. Compare against expected state and known owners. Remediation should correct the unauthorised route while explaining the permissions that remain necessary. If expected state is unclear, assign a focused review rather than quietly treating either all access or no access as the answer.
Consented applications and privileges need their own review
Review applications accessing account data and granted permissions. An illicitly authorised application may require a different remedy from a user session. Identify the grant, scope and resources, then use the appropriate mechanism to remove improper access. Keep references supporting investigation of what the application could do while permissions existed. Its presence should be linked to evidence and the relevant business service, rather than assessed only by its name.
A familiar name or professional icon does not establish legitimacy. Compare the application with inventory and the service owner. Where uncertainty remains, keep the case open and assess appropriate containment. Avoid indiscriminately deleting organisation-wide applications when the incident concerns a specific grant. The action should respond to demonstrated scope and the identified persistence route, with a record of any legitimate service dependencies affected by remediation.
Check administrative roles and relevant assignments. If the account had privileges, expand investigation to changes made using them. Removing a role does not reverse prior configuration or independently remove other access created during the interval. Record the capability that existed and evidence reviewed. A compromised administrative account requires an impact assessment consistent with its permissions, including changes that may continue affecting other users after the original account is contained.
| Route | What to review | What it does not independently resolve |
|---|---|---|
| Credentials | Source and effective change | An application with independent permissions |
| Sessions | Revocation and service-specific behaviour | Every application’s own session |
| Authentication methods | Registrations and unrecognised methods | Information already extracted |
| Rules, forwarding and messages | Reversing earlier sending | |
| Applications and roles | Grants and privileged changes | Undoing every completed action |
Investigate a timeline rather than one alert
Review sign-ins and audit activity over an interval beginning before the first known symptom. Expand it where evidence reveals earlier activity. Record filters and time zones so queries can be repeated. Do not confuse alert time with the confirmed start of compromise. The timeline should relate access, changes and resource use, leaving uncertain periods visible. This also helps another investigator understand why a particular interval was selected.
In sign-in records, examine outcomes, applications, addresses and available authentication details. An IP address or approximate location does not identify a person by itself. Compare VPN context, legitimate activity and other events. Keep conclusions proportionate to evidence. A striking field can direct review without becoming the definitive explanation for the incident. Record supporting observations and contradictory information rather than omitting events that do not fit the initial hypothesis.
Microsoft 365 auditing can support review of email, SharePoint and OneDrive activity according to coverage and permissions. Licensing and retention determine what information is available. Verify these conditions before promising complete reconstruction. If an interval lacks sufficient records, state the limitation. Absence of accessible evidence is not evidence that no activity occurred. An investigation report should distinguish verified events, reasonable hypotheses and questions that the available records cannot answer.
Sent email and affected people
Review communications sent during the interval, message trace and available resources to identify recipients. Sent Items should not be the sole source. Identify suspicious requests to change information, files or links, coordinating response with process owners. Communications to third parties should reflect reviewed scope and use the incident’s authorised channels. Avoid distributing an unreviewed account of events that may change as the investigation establishes additional facts.
Where information access is suspected, record confirmed resources, possible resources and those that could not be reviewed. Distinguish reading, downloading, sharing and modification where evidence supports it. Do not present every document accessible to the account as necessarily extracted. That distinction supports proportionate decisions and an accurate explanation to business owners. Keep the reasoning behind scope assessment so later evidence can update it without rewriting the incident from memory.
Relate the account to devices and other identities
If the entry route may involve a device, coordinate investigation before restoring access. A new password does not correct a device that continues capturing information. Equally, do not assume every account compromise implies endpoint malware. Use signals and context to determine which assets need review, with clear owners for identity, email and devices. Their work should remain connected through the case rather than producing separate conclusions nobody reconciles.
Review related accounts where evidence indicates propagation, shared use or privileges. Follow observed connections rather than turning investigation into an undiagnosed mass change. Prioritise by risk and impact. Our guide to auditing and monitoring Entra users helps prepare visibility before an incident. That preparation should establish both the records available and the process for retrieving them under time pressure.
Restore the account against verifiable criteria
Before enabling access, confirm measures applied and persistence review. The user should authenticate with legitimate credentials and methods from an appropriate environment. Check required applications and email state. If sending was restricted because of abuse, restoring that capability needs its own review after resolving compromise. Do not simply remove the restriction under commercial pressure. Recovery should establish why the account is ready to return and which separate restrictions still need attention.
- Identity and credential source confirmed.
- Containment and revocation documented.
- Methods, rules and forwarding reviewed.
- Applications and privileges checked.
- Investigation scope and limitations recorded.
- Device and recovery route considered.
- Legitimate access and required services validated.
- Follow-up and responsibilities defined.
Use agreed access and email tests without forwarding dangerous samples or sensitive documents just to prove functionality. Record outcomes and times. Recovery combines availability and security: the user can work, and the team knows which routes were corrected. If significant uncertainty remains, record who approves return and which follow-up will reduce it. The decision should be understandable to someone who did not participate in the recovery call.
A closure review that finds the missing step
Imagine a password is changed and the user returns to work, but a rule forwarding certain replies remains. The complete review identifies the rule, its activity period and related messages, removes it and repeats tests. This is an illustrative scenario, rather than a real customer case. It explains why restoring sign-in does not resolve every consequence of compromise or establish that all persistence routes have been removed.
Follow-up and improvements the team can maintain
Define a window for reviewing access, configuration changes and related signals. If activity returns, do not automatically dismiss it as a remnant of the previous incident. Check the event and the measure expected to prevent it. Give support a summary of expected configuration and escalation so follow-up does not depend on remembering every discussion. Retain ownership until the agreed checks have been completed and outstanding questions transferred appropriately.
Turn confirmed causes into concrete work: review authentication methods, adjust consent handling, improve alerts or correct a recovery route. Distinguish improvements from remediation already applied. Each task needs an owner and outcome verification. A generic best-practice list is less useful than a few changes linked to evidence explaining how the incident happened. The final record should allow the team to assess whether those changes address the observed cause.
Review team preparation too. Could operators identify the correct account? Did they have permission to act? Was a secure user contact route available? Did they know which applications maintain their own sessions? Rehearse these dependencies using test accounts and agreed scope. Useful speed comes from prepared decisions and verifiable outcomes, rather than taking many actions without understanding their effect. A controlled exercise can expose a missing dependency before another real incident.
Frequently asked questions
Is a password change enough?
No. Review sessions, methods, configuration, applications and scope. Measures should address the case’s access and persistence routes.
Does MFA rule out compromise?
No. Other routes exist, including sessions and consent grants. Investigate evidence and establish how access occurred.
Does removing a rule reverse forwarded messages?
No. It addresses future behaviour according to the correction. Investigate the period and affected messages separately.
Does zero suspicious events guarantee no access?
No. Check coverage, retention and filters. Record investigation limits and the conclusions supported by available evidence.
Official documentation
- Responding to compromised email accounts
- Access revocation and session limits
- Managing authentication methods
- Illicit consent grants
- Sign-in logs
- Audit search
Prepare a response your team can verify
MSAdvance can review identity and email security, prepare containment and recovery procedures and help validate dependencies with your team. We work remotely with agreed scope, owners and evidence that supports better ongoing operations.






