VigiDoc a product by SSHack

Checklist

Employee offboarding: the security checklist for the last 30 days

Resignation, mutual termination, end of a fixed-term contract or dismissal: between the announcement and the last day, the employee keeps their access, their files and their mailbox. This printable checklist tells you what to check, when, and exactly where to look (console, PowerShell command, log) to catch departing employee data theft. It is written by SSHack, an offensive security firm and the publisher of the VigiDoc DLP software.

By the SSHack team · Published · Updated · about 15 minutes to read

In brief

The security side of an employee departure comes down to four stages: as soon as it is announced, inventory their access and data; during the notice period, check what goes out (USB drives, email to a personal address, forwarding rules, web uploads, downloads); on the last day, cut all access and collect the equipment; after the departure, keep the logs and look for forgotten access. The HR side of a departure does not protect data: this checklist covers the security side, with the exact place to check each item. Microsoft 365 and Windows keep useful traces, but some disappear after 7 to 30 days, and none of them lists the files copied to a USB drive unless auditing was enabled beforehand. These checks are done within the framework already announced to employees, proportionately.

To print it or save it as a PDF: Ctrl + P. Only the article is printed, with its checkboxes.

Why the notice period is the time to watch

During a notice period, the employee works normally, with their access, their computer and their mailbox. They know what the customer files, price lists and plans are worth. Taking data out requires no technical skill: a USB drive, an email to their own address, an upload to a file sharing service.

In France, among the 100 CISOs surveyed by Proofpoint for its Voice of the CISO 2026 report, 36% say their organization suffered a significant data loss (versus 43% in 2025). All of them, 100% of the CISOs concerned, say departing employees played a part. More figures, each with its source, are collected in our page Insider data leaks: the 2026 numbers (in French).

Standard offboarding procedures are written by HR: end-of-contract paperwork, badge return, final pay. On the IT side, they often boil down to "disable the account on the last day". What matters is what happened before, and part of the evidence disappears a few weeks later.

The framework: check without covert surveillance

Before any check

Rules depend on the country: check your local employment and privacy law (GDPR in the EU) before monitoring a departing employee. As an example, in France a system that collects information about an employee must be disclosed to them beforehand (article L1222-4 of the French Labor Code), be justified and proportionate according to the CNIL (France's data protection authority) and, in companies with 50 or more employees, have gone before the works council (CSE). In practice, rely on the IT acceptable use policy already distributed and on logs that already exist; do not secretly install a tool the day someone resigns. Messages and files identified as personal are generally subject to specific rules. For anything involving evidence, disciplinary action or a criminal complaint, talk to your lawyer and HR: this checklist covers the technical side only.

Who does what: HR, IT or security, manager

Nothing works unless information flows between these three roles. In a small business, one person may hold two of them.

Division of tasks during a departure
WhenHRIT or security (CISO)Manager
AnnouncementInforms IT the same day: end date, type of departure, any release from working the notice periodInventories accounts and access; removes unnecessary rights; checks mail forwardingLists the employee's folders, data and business tools; organizes the handover
Notice periodHands over a written reminder of the IT policy and the confidentiality obligationChecks outgoing data every week, within the announced frameworkReports unusual behavior; moves useful files to shared spaces
Last dayHas the equipment return form signedDisables accounts at the agreed time; revokes sessions, MFA and VPN; converts the mailboxLists shared accounts and supplier portals the employee knew; takes over their mailbox and files
AfterArchives the file; brings in the lawyer if a doubt arisesExports logs; reviews access at D+7 and D+30Tells customers and suppliers about the new contact

Step 1: as soon as the departure is announced

The trigger is the same for every departure: resignation received, mutual termination signed, dismissal notified, end of a fixed-term contract or retirement date set. ANSSI, France's national cybersecurity agency, asks for departure procedures to be defined in coordination with human resources: without a signal from HR on the same day, none of what follows is possible.

Step 2: during the notice period, channel by channel

Check each item at least once a week, and more often in the last week. Record every check (date, result, who did it). The Exchange Online commands below run after Connect-ExchangeOnline; replace the address with the employee's.

USB drives and external disks

Windows keeps a record of connected drives (USBSTOR registry key, the setupapi.dev.log file, and event 6416 if the Audit PNP Activity policy is enabled). It does not keep the list of copied files, unless removable storage auditing (Audit Removable Storage, event 4663) was enabled before the copy. Details, and what these traces prove or do not prove: How to tell if an employee copied files to a USB drive.

A phone connected in file transfer mode (MTP) does not get a drive letter: it escapes the controls designed for USB drives.

Emails sent to a personal address

The simplest move is to email attachments to yourself. Exchange Online message trace lists outgoing messages (date, recipient, subject) over 90 days, in 10-day windows. It does not show the content of attachments, but the message size flags a large file. In the Exchange admin center: Mail flow > Message trace, sender equal to their address, outbound direction. In PowerShell:

Get-MessageTraceV2 -SenderAddress firstname.lastname@yourcompany.com -StartDate (Get-Date).AddDays(-10) -EndDate (Get-Date) -ResultSize 5000 |
  Where-Object { $_.RecipientAddress -notlike "*@yourcompany.com" } |
  Sort-Object Received |
  Format-Table Received, RecipientAddress, Subject, Size -AutoSize

Personal webmail opened in the browser does not go through Exchange: a file attached from that webmail shows up in none of these logs.

VigiDoc Dashboard, Outlook section for one computer: six sent emails with date, subject, recipient and attachment; two sent to a personal address, one of them in alert on the keyword "tarif" (price list).
The Outlook section for one computer in the VigiDoc Dashboard during a notice period: two emails to a personal address, with their attachments, including the price list that triggers an alert. Sample data from a French setup.

Automatic forwarding rules (Outlook and Exchange)

A rule that forwards all messages, or only those from one customer, to a personal address runs silently until the last day, and sometimes after. There are two mechanisms: inbox rules, created in Outlook or Outlook on the web, and forwarding set on the mailbox itself (ForwardingSmtpAddress), which the user can turn on in Outlook on the web (Settings > Mail > Forwarding).

# Mailbox rules that forward or redirect
Get-InboxRule -Mailbox firstname.lastname@yourcompany.com -IncludeHidden |
  Where-Object { $_.ForwardTo -or $_.ForwardAsAttachmentTo -or $_.RedirectTo } |
  Format-List Name, Enabled, ForwardTo, ForwardAsAttachmentTo, RedirectTo

# Forwarding set on the mailbox itself
Get-Mailbox -Identity firstname.lastname@yourcompany.com |
  Format-List ForwardingSmtpAddress, ForwardingAddress, DeliverToMailboxAndForward

# Rules created or changed in the last 30 days (unified audit log)
Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-30) -EndDate (Get-Date) -UserIds firstname.lastname@yourcompany.com -Operations New-InboxRule,Set-InboxRule,UpdateInboxRules -SessionCommand ReturnLargeSet

Web uploads and personal cloud storage

WeTransfer, personal Google Drive or Dropbox, webmail: the file leaves through the browser over HTTPS. Without TLS inspection on the proxy, you only see the site name and, depending on the device, the volume sent.

Bulk downloads: SharePoint, OneDrive, CRM, shares

Before copying, you have to gather. A spike in downloads from SharePoint, OneDrive, the CRM or a network share is often the first visible sign. The Microsoft 365 unified audit log records downloads (FileDownloaded) and syncs to the computer by the OneDrive app (FileSyncDownloadedFull). Number of files per day:

Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-30) -EndDate (Get-Date) -UserIds firstname.lastname@yourcompany.com -Operations FileDownloaded,FileSyncDownloadedFull -SessionCommand ReturnLargeSet -ResultSize 5000 |
  Group-Object { ([datetime]$_.CreationDate).ToString('yyyy-MM-dd') } |
  Sort-Object Name |
  Format-Table Name, Count

Printing

Where to look, channel by channel

Traces available without a dedicated tool, and what they do not show
ChannelWhere to checkWhat is missing
USB drive, external diskUSBSTOR registry key, setupapi.dev.log, event 6416The copied files, unless 4663 auditing was enabled beforehand
Email through ExchangeMessage trace (90 days), unified audit logThe content of attachments
Forwarding rulesGet-InboxRule, Get-Mailbox, auto forwarded messages reportLittle, provided you check in time
Webmail, WeTransfer, personal cloudProxy, firewall, browser historyThe name and content of the files sent
SharePoint, OneDriveUnified audit log (180 days)What happens to the file once downloaded
PrintingEvent 307 (log must be enabled)The printed content
Photo of the screen with a phoneNo traceEverything

Depending on your license, Microsoft 365 also offers its own DLP rules; what is and is not included is covered in DLP and Microsoft 365 Business Premium.

Step 3: the last day

Set a time with HR and the manager: access is cut at the end of the final meeting, not the next day. Disabling the account is not enough: according to Microsoft, an access token already issued stays valid until it expires (one hour by default), hence the session revocation.

Accounts, sessions and access

# On-premises Active Directory
Disable-ADAccount -Identity jsmith
Set-ADAccountPassword -Identity jsmith -Reset -NewPassword (Read-Host -AsSecureString "New random password")

# Microsoft Entra ID (Microsoft Graph PowerShell module)
Connect-MgGraph -Scopes "User.ReadWrite.All","Directory.AccessAsUser.All"
$User = Get-MgUser -UserId firstname.lastname@yourcompany.com
Update-MgUser -UserId $User.Id -AccountEnabled:$false
Revoke-MgUserSignInSession -UserId $User.Id
Get-MgUserRegisteredDevice -UserId $User.Id -All | ForEach-Object { Update-MgDevice -DeviceId $_.Id -AccountEnabled:$false }

Equipment

Mailbox and files

Microsoft suggests converting the mailbox to a shared mailbox: the manager or successor can access it, and the license can be removed if the mailbox is under 50 GB. Microsoft documents two pitfalls. Inbox rules are kept after the conversion, so a forwarding rule keeps working. And if the password is not reset, the old username and password still give access to the shared mailbox.

Set-Mailbox -Identity firstname.lastname@yourcompany.com -Type Shared
Add-MailboxPermission -Identity firstname.lastname@yourcompany.com -User manager@yourcompany.com -AccessRights FullAccess -InheritanceType All

Step 4: after the departure

Microsoft 365 logs have short default retention periods. A doubt can surface weeks later (a customer who leaves, a competitor who answers a tender with your prices): export the logs before they disappear. Deleting the account also starts the countdown for the mailbox and the OneDrive.

Default retention periods in Microsoft 365
LogDefault retentionWhere to view it
Entra ID sign-in logs7 days (Entra ID Free), 30 days (P1 or P2)Microsoft Entra admin center, Sign-in logs
Unified audit log (Audit Standard)180 daysMicrosoft Purview portal, Audit solution, or Search-UnifiedAuditLog
Exchange Online message trace90 days, searchable in 10-day windowsMail flow > Message trace, or Get-MessageTraceV2
Auto forwarded messages report90 days (summary page)Mail flow reports in the Exchange admin center
Mailbox of a deleted account, no hold30 daysMicrosoft 365 admin center (restore the user)
OneDrive of a deleted account30 days by default, configurableSharePoint admin center

If a doubt arises

A suspicious email, a download spike, an unknown USB drive: do not confront the employee and do not touch the computer. The first hours are for preserving evidence (computer set aside, mailbox placed on hold, logs exported), then rebuilding the timeline before handing over to a lawyer. The detailed protocol: Employee data theft: the first 48 hours (in French).

What VigiDoc adds during a notice period

Native logs tell you that a drive was plugged in or that an email went out; they do not tell you which files. VigiDoc, detection-only DLP software for Windows endpoints, logs every file copied to a USB drive or external disk and keeps an encrypted copy, captures emails sent from Outlook with their attachments and the attachments added in Gmail and Outlook on the web, and collects Chrome, Edge and Firefox browsing history. An alert appears in the Dashboard when a keyword you defined (a customer name, a project name, "confidential") shows up in a copied file, an email subject, an attachment or a visited page. It detects and alerts, without blocking anything.

Its limits, stated plainly: among webmail services, it only sees Gmail and Outlook on the web attachments, not the message text; it does not see content uploaded to WeTransfer (only the page visit), printing, cloud sync or phones in file transfer mode. It does not look back in time, except for the last 7 days of Outlook email: install it across your fleet, within the framework announced to employees, before the next departure. Logs and captured files stay on your server. To see what goes out during the next notice period, try VigiDoc for 30 days.

Frequently asked questions

Should you cut an employee's access as soon as they announce their departure?

Not all of it: during the notice period, the employee is still working and needs part of their access. Remove right away what no longer serves their duties (admin rights, other departments' shares, unnecessary remote access), then cut everything on the last day, at the time agreed with HR. For a contentious departure or when the employee is released from working their notice, cut access the same day.

How can you tell if an employee is forwarding their email to a personal address?

In Exchange Online, Get-InboxRule lists the rules in their mailbox, and Get-Mailbox shows forwarding set on the mailbox itself (ForwardingSmtpAddress). The auto forwarded messages report in the Exchange admin center shows forwarding to external domains over 90 days. Emails sent manually to a personal address appear in message trace, without the content of the attachments.

Can you find out which files an employee copied to a USB drive before leaving?

Not with the traces Windows keeps by default: they show which drive was plugged in and when, not which files were copied. Removable storage auditing (event 4663) must have been enabled before the copy, or a tracking tool such as DLP software must have been running during the notice period.

What should you do with a departing employee's mailbox?

In Microsoft 365, the usual approach is to convert it to a shared mailbox and give access to the manager or successor. Reset the account password, because the old one still gives access to the shared mailbox, and delete forwarding rules, which are kept after the conversion. Without a license, a shared mailbox is limited to 50 GB.

Is it legal to monitor an employee during their notice period?

It depends on your country's employment and privacy law (GDPR in the EU). In France, it is allowed within the framework already announced to employees: the system must have been disclosed to them beforehand (article L1222-4 of the French Labor Code), stay proportionate to its purpose and, in companies with 50 or more employees, have gone before the works council (CSE). Before using the logs as evidence or for disciplinary action, consult a lawyer.

How long should you keep logs after an employee leaves?

As long as needed to clear up any doubt, within the retention period announced to employees. Microsoft 365 default retention periods are short: 7 or 30 days for Entra ID sign-ins depending on the license, 90 days for message trace, 180 days for the audit log. Export whatever expires before your checks are complete.

Sources