AegisAI Perspectives · 180

How does a company stop phishing sent from a compromised internal account?

Disable the hijacked account, revoke its sessions, block it from sending, then delete what it sent from every colleague's inbox in Gmail or Microsoft 365.

TL;DR
Answer
To stop phishing sent from a compromised internal account, disable the account and revoke its sessions, confirm it cannot send, then delete every message it sent from each colleague's mailbox before anyone else opens one.
Who it's for
If you run IT at a company of 20 to 500 people on Google Workspace or Microsoft 365, with a small team and no SOC, work in this order.
Watch out for
Mail from a real colleague's account passes every sender check, and Gmail lets internal mail skip spam filters when Bypass spam filters for internal senders is on.
What AegisAI does
AegisAI agents read sign-ins and mailbox activity per account, and raise one explained finding when behavior stops matching the owner.
Book a demo

See it on your own Google Workspace or Microsoft 365 tenant. No MX change.

Or get the Q3 2026 State of the AI Attack report (free, instant download)

Not ready for a demo? Check your domain.

How does a company stop phishing sent from a compromised internal account?

Stop the account from sending, then delete what it already sent from every colleague's mailbox. Microsoft says disabling the compromised account is preferred and highly recommended until the investigation is complete1. AegisAI weighs suspicious internal sends per account, together with impossible travel, new devices and inbox rule changes23.

If you run IT at a company of 20 to 500 people on Google Workspace or Microsoft 365, with a small team and no SOC, work through the steps below in order. The signals that point to a hijacked sender are on the account takeover protection page.

Key takeaways

  • Attackers often use a compromised user's mailbox to send to recipients inside and outside the organization2.
  • Google recommends turning off Bypass spam filters for messages received from internal senders for all organizational units, so internal mail is filtered for spam too15.
  • Safe Links covers mail between colleagues through the setting Apply Safe Links to email messages sent within the organization, in Defender for Office 365 Plan 1 and Plan 29.
  • A Gmail user can send 2,000 messages a day before the limit stops them12, so the limit is not your containment.
  • Zero-hour auto purge searches only the last 48 hours of delivered email10.

The short answer

QuestionAnswer
How does a company stop phishing sent from a compromised internal account?Disable the account and revoke its sessions, confirm it cannot send, then delete what it sent from every recipient mailbox316
What do Google and Microsoft check on mail between colleagues?Gmail filters internal mail for spam unless Bypass spam filters for messages received from internal senders is on. Microsoft 365 checks outbound mail for spam and unusual sending activity5, and Safe Links covers internal mail when its internal setting is on
What stops the account from sending more?In Gmail, a user who reaches a sending limit cannot send for up to 24 hours13. In Microsoft 365, an outbound spam policy restricts a user who reaches a limit7
How do you remove what it already sent?Gmail: the Delete messages action in the security investigation tool. Microsoft 365: Threat Explorer, with the Search and Purge role14
When can the account send again?After the investigation is complete, when you remove the user from the Restricted entities page4

What you can do by the end

  • Block a hijacked account from sending in Gmail and Microsoft 365, in the right order.
  • Delete every message the account sent from each colleague's mailbox.
  • Turn on scanning for mail between colleagues on both platforms.

Short on time? Watch the explainer, or book a demo.

Why does phishing from a colleague's account get through?

The real account emails colleagues. Every sender check passes, because it genuinely is that account sending22. SPF, DKIM and DMARC have nothing to fail. MITRE ATT&CK names this Internal Spearphishing (T1534): adversaries may take advantage of the trusted internal account to trick more victims19.

The account is also a sender for mass phishing. AegisAI reports 38x more AI Dragnet attacks sent from hijacked accounts in its Q3 2026 report, 0.2% to 7.7%, on data from 1 July to 2 September 202625. The report defines an AI Dragnet attack as phishing that blasts one AI-written template at as many organizations as possible, often within minutes. Internal spearphishing cannot be easily mitigated with preventive controls, since it is based on the abuse of system features20.

How the takeover itself happens is in email account takeover, step by step. How to spot it from the sign-ins is in how to spot a hijacked mailbox when MFA did not stop the attacker.

Treat the first internal phishing report as a compromised account, not as a spam complaint.

How do you contain the account in the first hour?

Work from the account to the mailboxes, then back to the account. Steps 1 to 3 stop new mail. Steps 4 and 5 remove what was delivered.

  1. Disable the account. Microsoft says disabling it is preferred and highly recommended until the investigation is complete. In Google Workspace, reset the password, then reset the user's sign-in cookies18.

  2. Revoke active sessions. Revoking them immediately invalidates any active access using the stolen credentials, with the Revoke-MgUserSignInSession command.

  3. Confirm the account cannot send. A restricted Microsoft 365 user is restricted from sending email, but can still receive email8. A Gmail user who hits a sending limit can still receive email.

  4. Find every recipient. In Gmail, search Gmail log events in the security investigation tool. Those events need Frontline Plus, Enterprise Plus or Education Plus, and the Security center administrator privilege17. In Microsoft 365, Threat Explorer is in Plan 2 and Real-time detections is in Plan 111.

  5. Delete the messages from every mailbox. In Gmail, use Delete messages on the search results. In Threat Explorer, deleting messages from mailboxes needs the Search and Purge role. Do not wait for zero-hour auto purge: it searches only the last 48 hours and does not notify users when it moves a message.

  6. Ask each colleague who opened the message whether they entered a password. Treat every yes as a second compromised account and start again at step 1.

  7. Audit what the account changed while it was hijacked, before you give it back. In Microsoft 365, run Get-InboxRule with -IncludeHidden in Exchange Online PowerShell to list every Inbox rule, run Get-Mailbox to check mailbox forwarding, then review the audit logs in the Microsoft Defender portal.

  8. Lift the sending block last. After the investigation is complete, remove the user from the Restricted entities page.

Do step 5 before step 7, so colleagues stop clicking while you audit.

What do Google and Microsoft check on mail between colleagues?

Both platforms check internal mail, but two settings decide how much. The table lists each control a hijacked sender meets, with the edition or plan the vendor page names.

Setting or stepPlatformWhat it doesWhat it does not doEdition or licence
Bypass spam filters for messages received from internal sendersGmailWhen on, internal mail skips Gmail spam filters; Google recommends it off for all organizational unitsDoes not filter internal mail while it is onNot named on the cited page
Daily sending limit per user accountGmailCaps a user account at 2,000 messages per day, applied over a rolling 24 hoursDoes not remove mail already delivered; the user can still receiveNot named on the cited page
Delete messages in the security investigation toolGmailFinds every user who received a message and deletes it from their inboxesGmail log events are not in other editionsFrontline Plus, Enterprise Plus, Education Plus
Outbound spam protectionMicrosoft 365Checks outbound email for spam and unusual sending activityDoes not delete what was deliveredAll organizations with cloud mailboxes
Set an internal message limitMicrosoft 365Sets the maximum number of internal recipients per hour, from 0 to 10000; 0 uses the service defaults6Does not block sending until a limit is reachedAll organizations with cloud mailboxes
Restricted entitiesMicrosoft 365Restricts the user from sending emailDoes not stop the user receiving emailAll organizations with cloud mailboxes
Apply Safe Links to email messages sent within the organizationMicrosoft 365Applies the Safe Links policy to messages between internal senders and internal recipientsDoes not apply to internal mail while it is offDefender for Office 365 Plan 1 and Plan 2
Zero-hour auto purgeMicrosoft 365Moves delivered malicious emailSearches only the last 48 hours; does not notify usersNot listed here
Threat ExplorerMicrosoft 365Finds delivered messages and deletes them from mailboxesDoes not delete messages without the Search and Purge roleDefender for Office 365 Plan 2

Check the two internal settings, Bypass spam filters for messages received from internal senders and Apply Safe Links to email messages sent within the organization, before the next incident.

How AegisAI handles this

AegisAI agents read sign-ins and mailbox activity per account, and raise one explained finding when behavior stops matching the owner21. Impossible travel, new devices, inbox rule changes and suspicious internal sends, weighed together per account23. Early access runs on the connection you already have, review-only, with no MX change24.

Book a demoSee account takeover protection

See your own records: Check your domain.

What does one incident look like?

One incident runs in the same order: disable the account, revoke its sessions, find every delivered copy, delete them all, then ask the people who opened one. The example below is fictional.

Illustrative, fictional. A 120 person company runs Microsoft 365. At 9:10 a finance coordinator's account sends a shared document lure to 60 colleagues. The admin disables the account at 9:25 and revokes its sessions. Threat Explorer finds 60 delivered copies and 4 opened ones. The admin deletes all 60, then asks the 4 openers about passwords. One says yes, so that account goes back to step 1.

Illustrative example, figures are fictional.

Run this order on a test account before you need it.

How to measure it in 30 days

Track three numbers after each internal phishing incident.

  • Minutes from the first internal phishing report to the account being unable to send, checked against the Restricted entities page in Microsoft 365 or the account status in Google Workspace.
  • Share of recipient mailboxes cleared, from the investigation tool results or Threat Explorer.
  • Organizational units with Bypass spam filters for messages received from internal senders on, from the Gmail settings health page.

To see what a finding on a hijacked sender looks like, talk to the team. On day 30, compare minutes to block with the number of colleagues who opened the message.

Questions people ask

How does a company stop phishing sent from a compromised internal account?

Disable the account, revoke its sessions, confirm it cannot send, then delete its messages from every recipient mailbox. AegisAI raises one explained finding when an account's behavior stops matching the owner.

Does Gmail scan email sent between employees?

Yes, unless Bypass spam filters for messages received from internal senders is on. Google recommends turning it off for all organizational units, so mail from internal senders is filtered for spam.

Does Microsoft 365 check internal email for phishing links?

Microsoft 365 checks outbound email for spam and unusual sending activity. Safe Links checks links in mail between colleagues only when Apply Safe Links to email messages sent within the organization is on.

Will zero-hour auto purge remove the messages for me?

Do not rely on it. It searches only the last 48 hours of delivered email and does not notify users when it moves a message. Delete the messages yourself in Threat Explorer.

Why does the hijacked account still receive email after it is blocked?

A sending block stops sending only. A restricted Microsoft 365 user can still receive email, and a Gmail user who hits a sending limit can still receive email. Disable the account to stop the rest.

Sources

  1. (Microsoft Learn, Respond to a compromised email account in Microsoft 365, updated 17 July 2026, read 20 November 2026)
  2. (Microsoft Learn, Configure outbound spam policies, updated 10 August 2026, read 20 November 2026)
  3. (Microsoft Learn, Remove blocked users from the Restricted entities page, updated 30 October 2026, read 20 November 2026)
  4. (Microsoft Learn, Set up Safe Links policies, updated 3 July 2026, read 20 November 2026)
  5. (Microsoft Learn, Zero-hour auto purge, updated 1 June 2026, read 20 November 2026)
  6. (Microsoft Learn, About Threat Explorer and Real-time detections, updated 8 September 2025, read 20 November 2026)
  7. (Google Workspace Admin Help, Monitor the health of your Gmail settings, read 20 November 2026)
  8. (Google Workspace Admin Help, Gmail sending limits in Google Workspace, read 20 November 2026)
  9. (Google Workspace Admin Help, Investigate reports of malicious emails, read 20 November 2026)
  10. (Google Workspace Admin Help, Reset a user's password, read 20 November 2026)
  11. (MITRE ATT&CK, Internal Spearphishing, Technique T1534, version 1.4, last modified 12 May 2026, read 20 November 2026)
  12. (AegisAI Perspectives, Email account takeover: how it works, step by step, read 20 November 2026)
  13. (AegisAI, Account Takeover Protection, read 20 November 2026)
  14. (AegisAI, Q3 2026 State of the AI Attack Report, data window 1 July to 2 September 2026, read 20 November 2026)
  15. (AegisAI Perspectives, How to spot a hijacked mailbox when MFA did not stop the attacker)
  16. (AegisAI, Book a demo)

Recent posts

Every email, investigated.