Offboarding Departing Employees: Mailboxes, Sessions and Forgotten Access

Disable the account, then close the gaps

Year-end brings departures, contractors rolling off and role changes. The paperwork usually gets done. The access often does not. A mailbox that stays active, a session that stays signed in, or an app consent nobody remembers can sit quietly for months. A departed employee’s account is just as useful to an attacker as a current one.

The gap: accounts that outlive people

HR typically owns the departure. IT owns the identity, the mailbox and the apps. Each side assumes the other finished the job. The result is an account that looks disabled in one place but still has live sessions, registered authentication methods, forwarding rules or app grants somewhere else.

The gap: accounts that outlive people

Microsoft’s guidance on responding to a compromised email account is a useful model. Offboarding and containment share many steps: cut access, end sessions, and check what was left behind.

Decide first: routine or sensitive?

Ask one question before you start: is this a routine departure, or a sensitive one, such as a dispute, suspected data removal or a privileged user? If it is sensitive, start preservation immediately, in parallel with disabling sign-in. That means a mailbox hold, a log export and device imaging, handled by a second person or a responder while the account is being contained.

Sign-in is not held back for imaging or exports. Containment starts as soon as the decision is made, and evidence capture runs alongside it.

Order of operations

1. Disable sign-in for the account at the time of departure.

2. Revoke sessions and refresh tokens, so existing sign-ins stop working. Disabling an account does not necessarily end tokens that were already issued, which is why this step matters.

3. Review and remove registered MFA methods and devices. A lingering phone or authenticator registration can be a way back in if the account is later re-enabled or reset.

4. Reset the password to a long random value that nobody holds.

5. Export logs for sensitive departures: sign-in and audit records for recent activity, in parallel with the steps above.

Mailbox: forwarding, delegation, retention

Check the mailbox before you convert, delete or reassign it:

Mailbox: forwarding, delegation, retention
  • Forwarding and inbox rules. Look for forwarding to outside addresses and rules that move or delete mail. These are also a common attacker persistence trick, so treat unexpected ones seriously.
  • Delegation. Review the Full Access, Send As and Send on Behalf permissions the user holds on other mailboxes, and who holds them on theirs.
  • Shared mailbox and group membership. Remove the user from shared mailboxes and distribution groups.
  • Retention. Decide whether to keep the mailbox as a shared mailbox, place it on hold or archive it, per your retention policy, before licenses are removed. Removing the license first may put the data at risk.

Apps: consents and service accounts

Review the OAuth consents the user granted and remove those that are unused or unfamiliar. Look at app registrations, automation and service accounts the person owned or created, then reassign ownership or retire them. Credentials in scripts, shared password stores and scheduled tasks tied to the person commonly need rotating too.

Devices and remote access

Retrieve or retire laptops and phones per policy. Decide whether a device should be wiped or preserved before you remove it from management. Revoke VPN, remote-access and vendor portal access, and rotate shared passwords the person knew.

A 10-line checklist HR and IT both sign

1. Departure date recorded, marked routine or sensitive.

2. Sign-in disabled, sessions and refresh tokens revoked.

3. Registered MFA methods and devices reviewed and removed.

4. Password reset.

5. In parallel, do not delay items above: mailbox hold and log export, if sensitive.

6. Forwarding, inbox rules and delegation reviewed.

7. Shared mailbox and group membership removed.

8. OAuth consents, owned apps and service accounts reviewed.

9. Devices and remote access retired, wiped or preserved per policy.

10. Mailbox retained or archived before license removal; HR and IT sign and date.

If an offboarded account does turn out to have been misused, our BEC and M365 investigation work starts from the same sequence.

Message us to talk through your offboarding plan.


Discover more from Core-Infosec

Subscribe to get the latest posts sent to your email.

Picture of Core Watch

Core Watch

Practical security guidance from Core-Infosec.

Read More