What you will find here
An alert has just come in: addresses on your domain, sometimes with their password, are circulating on a forum, in a Telegram channel or in Have I Been Pwned. This protocol sets out the order of actions over 24 hours, the checks to run in Microsoft 365 or Google Workspace, and what to do about regulator notification and filing a complaint.
In brief
Before counting accounts, ask where the leak comes from. An old database from a third-party site mainly exposes reused passwords: reset them and check sign-ins. A recent stealer log means a computer is infected and that session cookies, which get around some MFA methods, may have been stolen: revoke the sessions, deal with the computer and look for persistence. Export the sign-in logs in the first hour, because Microsoft Entra ID Free only keeps them for seven days. A credential leak is not automatically a breach to notify to the CNIL (the French data protection authority): it becomes one if the company's personal data may have been accessed with a risk to individuals, and notification must then be made without undue delay and, where feasible, within 72 hours.
First hour: is the leak old or recent?
Start with the source given in the alert: it determines the rest of the protocol.
| Source | What it contains | What an attacker can do with it | Priority |
|---|---|---|---|
| Database from a third-party site (forum, SaaS, online shop) | The work email address and the password used on that site, often hashed | Try that password on your services if it was reused (credential stuffing, MITRE ATT&CK T1110.004) | Medium: reset, check sign-ins |
| Compilation of email / password pairs | Credentials aggregated from several leaks, of unknown age | The same, at scale | Medium to high, depending on the most recent date |
| Stealer log | Passwords saved in the browser, session cookies, VPN configuration files and information about the computer | Sign in as the user, sometimes without going through MFA again while the cookie is valid (T1539, T1550.004) | High: treat as an ongoing compromise |
CERT-FR (the French government CERT, part of ANSSI, France's national cybersecurity agency) sums up the difference: phishing yields one username / password pair, whereas an infostealer extracts from the browser “several login/password pairs, but also active session tokens”. Microsoft's analysis of Lumma Stealer (May 2025) adds VPN files, documents and system metadata. The mechanism is explained in our guide Infostealers: how your employees' credentials end up for sale.
During this first hour:
- Open an incident log. Record the date, time, author and machines for each action, as CERT-FR recommends, on a medium outside the affected system.
- Ask whoever sent the alert for details: collection date, URL associated with each credential (webmail, VPN, SaaS), presence of cookies, information about the machine.
- Export the sign-in logs straight away. Microsoft Entra ID keeps sign-in and audit logs for seven days in the Free edition and 30 days in P1 or P2. CSV or JSON export is available in every edition.
- Do not download the database and do not buy anything. Useful information comes from whoever sent the alert, not from a criminal platform.
- Do not test the leaked password on your services. Reset it, whether it is still valid or not.
Hours 1 to 4: how do you cut off access without reopening it straight away?
Reset the password, then revoke the sessions, from a clean computer. Doing one without the other leaves either the tokens already issued or the ability to sign in again.
Microsoft 365 and Microsoft Entra ID
- If the suspicion is serious, disable the account first: Entra ID > Users > All users, then Account status > Edit and untick Account enabled. Microsoft recommends disabling the account during the investigation.
- Reset the password. In a hybrid environment, do it in on-premises Active Directory, twice if hash theft (pass-the-hash) is possible.
- On the user's Overview page, click Revoke sessions (PowerShell equivalent:
Revoke-MgUserSignInSession). Refresh tokens are invalidated; access tokens already issued remain valid until they expire, after 60 to 90 minutes by default, except for applications that support Continuous Access Evaluation (CAE). - Check the registered MFA methods and remove any the user does not recognise. CERT-FR recommends forcing re-registration.
- Delete app passwords, which the password reset does not revoke.
Google Workspace
- Suspend the user: according to Google, suspension resets their sign-in cookies and OAuth tokens.
- Reset the password, then revoke OAuth 2.0 tokens.
- Without suspending the user, go to Directory > Users, open the user's page and select Security > Sign-in cookies > Reset: this signs them out of browsers and mobile devices. Google notes that this does not sign them out of applications such as Gmail or Google Drive for desktop.
Services outside the directory
Microsoft makes the point: Entra ID cannot revoke a session token issued by an application itself. Handle each service in the log separately, starting with those exposed to the internet: VPN, remote access, non-federated SaaS, administration interfaces. With a stealer, no new password should be typed on the infected computer.
Hours 4 to 12: has the attacker left a door open?
If the account was used, the attacker may have set up access that survives the reset. On every affected account, check:
- Mailbox rules. Automatic forwarding to an external address (T1114.003) or a rule that moves replies to the RSS, Junk Email or Notes folders (T1564.008) are classic signs, cited by Microsoft.
- Consented OAuth applications. Against a malicious application the user has authorised, Microsoft points out that resetting the password or requiring MFA is not enough. Search for the Consent to application activity in the Microsoft Defender portal audit log; an entry can take from 30 minutes to 24 hours to appear.
- Delegations. CERT-FR notes that when a compromised account has delegated rights, the other accounts concerned must also be considered compromised.
- Administrative roles: accounts created, privileges added.
The following commands, taken from Microsoft's documentation, are read-only (replace <UPN> with the user's address):
# Exchange Online: rules (including hidden ones) and forwarding for one mailbox
Connect-ExchangeOnline
Get-InboxRule -Mailbox <UPN> -IncludeHidden | Format-List Name,Enabled,RedirectTo,Forward*,Identity
Get-Mailbox -Identity <UPN> | Format-List Forwarding*Address,DeliverTo*
# All mailboxes with mailbox-level forwarding (inbox rules not included)
Get-Mailbox -ResultSize Unlimited | Where-Object { $_.ForwardingSmtpAddress -or $_.ForwardingAddress } | Format-Table UserPrincipalName,ForwardingSmtpAddress,ForwardingAddress,DeliverToMailboxAndForward
# Microsoft Graph: the user's OAuth consents and MFA methods
Connect-MgGraph -Scopes "Directory.Read.All","UserAuthenticationMethod.Read.All"
Get-MgUserOauth2PermissionGrant -UserId <UPN> -All | Format-List ClientId,ConsentType,Scope
Get-MgUserAuthenticationMethod -UserId <UPN> | Format-List Id,AdditionalProperties
In Google Workspace, third-party app authorisations appear in Reporting > Audit and investigation > OAuth log events. To cut off automatic forwarding in one go, untick Allow users to automatically forward incoming email in Apps > Google Workspace > Gmail > End User Access > Automatic forwarding, or restrict it to internal addresses: according to Google, the forwarding option then disappears from users' Gmail settings.
How do you spot a fraudulent sign-in in the logs?
Filter the account's sign-ins from the collection date onwards and look for anything that does not look like the user. The signals listed by CERT-FR:
- successful sign-ins from an unusual location, IP address, operating system or device;
- sign-ins at unusual times;
- failed sign-ins followed by a successful one;
- MFA errors, or an inconsistent last sign-in date.
In Microsoft Entra, the path is Entra ID > Monitoring & health > Sign-in logs (minimum role: Reports Reader). Check non-interactive sign-ins too, not only interactive ones. In Google Workspace, open Reporting > Audit and investigation > User log events: the Is suspicious attribute flags a successful suspicious sign-in. In the same place, the User signed out due to suspicious session cookie event shows that Google detected a suspicious session cookie and closed the session.
Once you identify a malicious IP address, search for it across all accounts. CERT-FR advises monitoring it rather than blocking it, to see which other accounts the attacker tries to use.
If it is a stealer: what should you do with the infected computer?
Treat the computer as compromised: isolate it, preserve what needs preserving, then reinstall it. CERT-FR recommends looking for the infostealer from antivirus or EDR alerts and, when in doubt, running a full antivirus scan or reinstalling. A clean scan does not prove the computer is healthy: reinstall.
- Before reinstalling, if a complaint or an insurance claim is being considered, keep a copy of the disk or, at the very least, the computer's alerts and logs.
- Every account used on this computer is affected, including those missing from the alert and the employee's personal accounts: let the employee know.
- Look for other computers that triggered the same alert, and for the source of the infection: an attachment, software downloaded outside the usual channels.
- If the computer is personal, ask the employee to reinstall it and review the access allowed from unmanaged devices.
CNIL, complaint, insurer: what is mandatory within 72 hours?
For an organisation in France, two independent 72-hour deadlines may apply: notification to the CNIL and, if you have cyber insurance, filing a complaint. Neither is automatic. The notification duty comes from Article 33 of the GDPR, which applies across the EU and the EEA: outside France, notify your competent (lead) supervisory authority instead. The complaint deadline comes from French insurance law.
The CNIL: a credential leak is not always a breach to notify
The GDPR (Art. 4(12)) covers unauthorised disclosure of, or access to, personal data. Three situations:
- Old database from a third-party site, with no suspicious sign-in on your side. The breach belongs to the third-party site, which is responsible for notifying it. Record your analysis.
- Credential stolen from a company computer. An employee's credential is itself personal data: document the incident in your breach register (Art. 33(5)). Whether to notify depends on what the account gave access to and what the logs show.
- Confirmed access, or access that cannot be ruled out, to a mailbox or files containing personal data (customers, employees, patients). This is a breach. Notify the CNIL without undue delay and, where feasible, no later than 72 hours after becoming aware of it, unless the breach is unlikely to result in a risk to individuals (Art. 33(1)).
The clock starts when you have a “reasonable degree of certainty” that personal data has been compromised: Guidelines 9/2022 of the European Data Protection Board (EDPB) allow a short investigation after an alert from a third party. Article 33(4) allows the notification to be provided in phases.
The risk depends on the data reachable from the account: type, volume, sensitivity. Two EDPB benchmarks (Guidelines 01/2021): passwords hashed with a strong algorithm, with no associated email address, did not require notification (case 06); forwarding rules created in mailboxes of the payments department, which leaked payroll data, presented a high risk that required informing the 99 employees concerned (case 18, Art. 34).
Filing a complaint, and your insurer
If the investigation reveals fraudulent access to your systems or the infection of a company computer, file a complaint at a police station or with the gendarmerie, or send it by registered letter with acknowledgement of receipt to the public prosecutor (“procureur de la République”). For a business insured against cyber risk, Article L. 12-10-1 of the French Insurance Code (“code des assurances”) makes compensation conditional on a complaint filed no later than 72 hours after the business becomes aware of the attack. According to the Direction générale du Trésor (the French Treasury), the complaint does not replace notification to the CNIL. Inform your insurer as well.
For guidance in France: 17Cyber (in French; run by the Police nationale, the Gendarmerie nationale and Cybermalveillance.gouv.fr) offers an online diagnosis and puts victims in touch with professionals. For a large-scale incident, ANSSI publishes the list of qualified security incident response providers (PRIS).
How do you check your own domain with Have I Been Pwned?
Have I Been Pwned (HIBP) lists the addresses on your domain that appear in the breaches it has loaded, provided you prove you control the domain. The steps:
- Add your domain in the HIBP dashboard.
- Prove you control it: DNS TXT record, meta tag on the home page, HTML file on the server, or a link sent to an administrative address on the domain.
- View the result. As of October 2026, the search is free for a domain with no more than 10 breached addresses. Beyond that, you need a paid subscription.
The limits matter, and HIBP documents them itself:
- No passwords are returned: HIBP loads addresses without the corresponding passwords.
- Stealer log data is not included in the free and Core plans: it is reserved for the Pro plans. For these logs, HIBP indexes the address and the domain of the associated site; it provides neither passwords nor cookies.
- It is not real-time monitoring. Stealer logs are loaded in batches, whenever a corpus reaches the service, with no fixed schedule according to its founder. He also warns that an address associated with a domain does not prove the user visited the site.
HIBP measures your historical exposure; it does not replace monitoring of recent logs.
After 24 hours: how do you avoid the next alert?
Reduce the value of a stolen credential, then measure what a compromised account really gives access to.
- Enforce MFA for administrators without exception, then for all accounts: CERT-FR describes rolling it out to everyone as the “only truly effective general measure” against account takeover. For administrators, Microsoft recommends phishing-resistant MFA.
- Restrict access from unmanaged devices, automatic forwarding to external addresses and user consent to third-party applications.
- Archive sign-in logs beyond the retention period of your licence.
- Measure what an attacker could have done with this account (email, file shares, Active Directory): that is the purpose of a penetration test that starts from a standard user account.
Printable checklist for the first 24 hours
First hour
- Incident log opened, outside the affected information system
- Source qualified: third-party database, compilation or stealer log, and collection date
- List of affected accounts and services (URLs)
- Sign-in and audit logs exported
Hours 1 to 4
- Accounts disabled or suspended if the suspicion is serious
- Passwords reset from a clean computer (twice in on-premises AD if needed)
- Sessions revoked: Entra ID (Revoke sessions), Google (suspension or Sign-in cookies)
- OAuth tokens and app passwords revoked
- VPN, remote access and non-federated SaaS handled one by one
Hours 4 to 12
- Mailbox rules, forwarding and delegations checked
- Consented OAuth applications reviewed
- MFA methods checked, unknown ones removed
- Administrative roles and actions checked
- Sign-in logs analysed, indicators searched for across other accounts
Hours 12 to 24
- Infected computer isolated, evidence preserved, reinstallation planned
- Other computers checked (same antivirus or EDR alerts)
- User warned about their personal accounts
- GDPR analysis recorded in the register; CNIL notification if there is a risk
- Complaint and insurer notification if there was fraudulent access or a company computer was infected
After the incident: find out what that access opened up
SSHack does not provide incident response. Our role starts once the incident is closed, with two questions: how far would an attacker have got with this account, and how can you be warned earlier next time? A penetration test that starts from a standard user account answers the first. The technical report, with an executive summary and recommendations prioritised by severity, is presented in a debrief meeting. Stealint answers the second: the platform monitors more than 40 sources (cybercrime forums, marketplaces, Telegram channels) and flags stealer logs containing your organisation's credentials, cookies or sessions.
Frequently asked questions
Should you reset every password in the company?
Not systematically: reset the accounts named in the leak and those used on an infected computer. CERT-FR recommends a company-wide reset of passwords and MFA if several accounts were compromised in the same period.
Does MFA protect an account whose password has leaked?
Against an old third-party site database, largely: the password alone is no longer enough. Against a stealer log, no: a stolen session cookie lets an attacker sign in without going through some MFA methods again (MITRE ATT&CK T1539). You need to revoke the sessions.
Does a credential leak have to be reported to the CNIL?
Not always. If the credentials come from a third-party site and no access to your systems has been observed, the breach belongs to the third-party site. If the company's personal data may have been accessed with a risk to individuals, notification is due without undue delay and, where feasible, within 72 hours. Always record your analysis.
Is Have I Been Pwned enough to monitor your domain?
No. HIBP measures historical exposure and returns no passwords. Its stealer log data is reserved for the Pro plans and loaded in batches, with no fixed schedule.
Further reading
- Infostealers: how your employees' credentials end up for sale, the mechanism upstream of this protocol.
- What an attacker learns about your company before attacking, the OSINT reconnaissance that leaks are part of.
- Active Directory security checklist: checks you can run yourself, useful if the affected account gave access to the internal network.
- Active Directory penetration testing: the test that starts from a standard user workstation.
- Stealint: leak monitoring on cybercrime platforms.
- Data theft by an employee: the first 48 hours (VigiDoc, in French), the counterpart of this guide for an internal leak.
- All SSHack guides.
Sources
- CERT-FR / ANSSI, response sheet CERTFR-2024-RFX-003, Email account compromise: qualification (in French), 15 July 2024, accessed 22 October 2026.
- CERT-FR / ANSSI, response sheet CERTFR-2024-RFX-004, Email account compromise: containment (in French), 15 July 2024, accessed 22 October 2026.
- Microsoft Learn, Revoke user access in an emergency in Microsoft Entra ID, accessed 22 October 2026.
- Microsoft Learn, Respond to a compromised email account in Microsoft 365, accessed 22 October 2026.
- Microsoft Learn, Detect and remediate illicit consent grants, accessed 22 October 2026.
- Microsoft Learn, Microsoft Entra data retention, accessed 22 October 2026.
- Microsoft Learn, Sign-in logs in Microsoft Entra ID and How to download logs in Microsoft Entra ID, accessed 22 October 2026.
- Microsoft Learn, Get-MgUserOauth2PermissionGrant and Get-MgUserAuthenticationMethod, accessed 22 October 2026.
- Microsoft Threat Intelligence, Lumma Stealer: Breaking down the delivery techniques and capabilities of a prolific infostealer, 21 May 2025, accessed 22 October 2026.
- Google Workspace Admin Help, Identify and secure compromised accounts, accessed 22 October 2026.
- Google Workspace Admin Help, Sign a user out of a managed Google Account, accessed 22 October 2026.
- Google Workspace Admin Help, User log events, OAuth log events and Investigate and take action on suspicious session cookies, accessed 22 October 2026.
- Google Workspace Admin Help, Let users automatically forward their own Gmail emails, accessed 22 October 2026.
- MITRE ATT&CK, T1539 Steal Web Session Cookie, T1550.004 Web Session Cookie, T1110.004 Credential Stuffing, T1114.003 Email Forwarding Rule, T1564.008 Email Hiding Rules, accessed 22 October 2026.
- Regulation (EU) 2016/679 (GDPR), Articles 4(12), 33 and 34, EUR-Lex, accessed 22 October 2026.
- EDPB, Guidelines 9/2022 on personal data breach notification, version 2.0, adopted on 28 March 2023, paragraphs 31 to 35, accessed 22 October 2026.
- EDPB, Guidelines 01/2021 on Examples regarding Personal Data Breach Notification, adopted on 14 December 2021, cases 06 and 18, accessed 22 October 2026.
- Direction générale du Trésor (French Treasury), FAQ on the obligation to file a complaint after a cyberattack (Article L. 12-10-1 of the French Insurance Code) (in French), accessed 22 October 2026.
- Cybermalveillance.gouv.fr, Account hacking: what to do? (in French), updated on 20 October 2026, accessed 22 October 2026.
- 17Cyber, online assistance for victims of cybercrime (in French), accessed 22 October 2026.
- ANSSI, qualified security incident response providers (PRIS) (in French), accessed 22 October 2026.
- Have I Been Pwned, Find the Right Plan and FAQs, accessed 22 October 2026.
- Have I Been Pwned Support, How do I verify my domain?, accessed 22 October 2026.
- Troy Hunt, Experimenting with Stealer Logs in Have I Been Pwned, 13 January 2025, and Processing 23 Billion Rows of ALIEN TXTBASE Stealer Logs, 25 February 2025, accessed 22 October 2026.