>Sudo Savvy logo sudo-savvy:~$

~/tools/bec-checker

>BEC Checker

Investigating a suspected Business Email Compromise? Enter the account's email address (UPN) and, as your investigation progresses, flag the IPs, malicious senders and phishing URLs you find. Every hunt query below updates live and narrows to them. Pick your hunting platform, Microsoft Defender XDR (Advanced Hunting, Timestamp) or Microsoft Sentinel (Log Analytics, TimeGenerated), and the queries rewrite themselves with the right table and column names. It starts from what Microsoft already alerted on, then covers access-origin triage, the lure that started it, mail objectives, OAuth consent phishing, and attacker device-code / device & MFA registration persistence; the portal steps cover what KQL can't reach. Nothing is sent anywhere: this all runs in your browser. Powered by the >SudoTrace BEC module.

./configure --investigation
🔍 not sure which data sources you have? Detect them

Run this one query in your portal. Any table it returns is one you have (Rows > 0 = data in the last 7 days); tables missing from the results are ones your tenant/licence doesn't provide (isfuzzy=true skips them instead of erroring). Then tick the boxes above to match.

Entra ID P2 EntraIdSignInEvents · EntraIdSpnSignInEvents · SigninLogs (risk fields)
Defender for Office 365 EmailEvents · EmailUrlInfo · EmailAttachmentInfo · UrlClickEvents · EmailPostDeliveryEvents
Defender for Endpoint DeviceLogonEvents
Defender for Cloud Apps CloudAppEvents · OAuthAppInfo
Defender for Identity / UEBA IdentityInfo
Entra ID P1 or P2 MicrosoftGraphActivityLogs. Graph activity logs need a P1/P2 licence and a diagnostic setting streaming them to the workspace. GraphAPIAuditEvents is the Defender-side equivalent and is not licensed this way.
no extra licence AuditLogs · GraphAPIAuditEvents · base SigninLogs · OfficeActivity · SecurityAlert / AlertEvidence. Licence is only one gate: these still need the ingestion configured (Entra diagnostic export, or the Office 365 connector for OfficeActivity), permission to query them, and data actually landing in your window.
resets the account, window and every IOC. Your platform and licence choices are kept
© 2026 >Sudo Savvy