Detecting Business Email Compromise
Overview
Business Email Compromise (BEC) is a sophisticated fraud scheme where attackers impersonate executives, vendors, or trusted partners to trick employees into transferring funds, sharing sensitive data, or changing payment details. Unlike traditional phishing, BEC often contains no malicious links or attachments, relying purely on social engineering. This skill covers detection techniques using email gateway rules, behavioral analytics, and financial process controls.
When to Use
Trigger phrases:
"detecting business email compromise"
"Business Email Compromise (BEC) is a sophisticated fraud scheme where attackers "
When investigating security incidents that require detecting business email compromise
When building detection rules or threat hunting queries for this domain
When SOC analysts need structured procedures for this analysis type
When validating security monitoring coverage for related attack techniques
Prerequisites
- Email security gateway with BEC detection capabilities
- Understanding of organizational financial processes and approval chains
- Access to email logs and SIEM platform
- Knowledge of social engineering tactics
Key Concepts
This section covers key concepts for detecting business email compromise.
- Ensure all prerequisites are met before proceeding
- Follow the documented workflow steps in sequence
- Record results and any anomalies encountered during this phase
BEC Attack Types (FBI IC3 Classification)
- CEO Fraud: Attacker impersonates CEO, requests urgent wire transfer
- Account Compromise: Employee email compromised, used to request payments from vendors
- False Invoice Scheme: Fake invoices from "vendor" with changed bank details
- Attorney Impersonation: Impersonates legal counsel for urgent confidential transfers
- Data Theft: Requests W-2, tax forms, or PII from HR
Detection Indicators
- Urgency and secrecy language ("confidential", "do not discuss with others")
- New or changed payment instructions
- Executive communication outside normal patterns
- Display name matches executive but email domain differs
- Reply-to address differs from From address
- First-time communication pattern between sender and recipient
- Request for gift cards or cryptocurrency
Workflow
# Example: IOC detection
import re
IOC_PATTERNS = {
"ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
"domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
"hash_md5": r"\b[a-f0-9]{32}\b",
"hash_sha256": r"\b[a-f0-9]{64}\b",
}
def extract_iocs(text: str) -> dict:
return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
- Scope and authorize — confirm written authorization and define target boundaries
- Reconnaissance — enumerate targets, services, and potential attack surfaces
- Exploitation — attempt exploitation of identified vulnerabilities within scope
- Post-exploitation — document access level, lateral movement, and data exposure
- Report and remediate — compile findings with reproduction steps and fix recommendations
Step 1: Configure BEC-Specific Email Rules
- Flag emails with VIP display names from external domains
- Detect financial keywords combined with urgency language
- Alert on first-time sender to finance/accounting staff
- Check for Reply-To domain mismatch
Step 2: Deploy Behavioral Analytics
- Baseline normal communication patterns per user
- Detect anomalous requests (unusual recipient, unusual time, unusual request type)
- Monitor for email forwarding rule changes (T1114.003)
Step 3: Implement Financial Controls
- Dual-authorization for wire transfers above threshold
- Out-of-band verification for payment detail changes (phone callback)
- Vendor payment change verification process
- Finance team training on BEC red flags
Step 4: Monitor for Account Compromise
- Detect impossible travel in email login locations
- Alert on email forwarding rule creation
- Monitor for mailbox delegation changes
- Check for inbox rules hiding BEC-related emails
Step 5: Deploy AI/ML Detection
AI-powered BEC detection uses transformer models (BERT, GPT) and NLP to identify sophisticated impersonation attacks that contain no malicious links or attachments. BERT-based models achieve 98.65% accuracy in BEC detection, with a 25%+ improvement over keyword-based rules.
- Train NLP Models: Deploy transformer-based models for email content analysis. Detect urgency/manipulation language patterns, identify mismatches between sender identity and writing style, analyze sentiment shifts indicating social engineering pressure.
- Configure Behavioral Baselines: AI learns normal communication patterns (who emails whom, frequency, tone). Establish writing style profiles per user (vocabulary, sentence structure). Map typical request types per role (finance processes payments, HR handles PII). Allow 48-hour baseline learning period on historical data.
- Set Detection Policies: VIP impersonation (compare against known executive patterns), vendor impersonation (detect payment change requests from lookalike domains), account compromise (sudden behavior changes), supply chain BEC (trusted partner impersonation). Configure confidence thresholds for auto-block vs. warning vs. analyst review.
- Integrate Response: Auto-quarantine high-confidence detections, add warning banners for moderate confidence, route suspicious emails to SOC queue, feed verdicts back into training data for improvement.
When NOT to Use
- You need to perform the attack to test detection (use performing-* skills)
- Task is about analyzing past incidents (use analyzing-* skills)
- You need to implement detection rules (use implementing-* skills)
- Task is about threat hunting proactively (use hunting-* skills)
- You don't have access to logs or monitoring data
- Task requires incident response (use IR skills)
Red Flags
- Performing actions without explicit written authorization from the asset owner
- Testing against production systems without a defined scope and rules of engagement
- Exceeding the authorized scope of the engagement
- Leaving persistent access mechanisms without explicit approval
- Causing denial-of-service on production systems during testing
Verification
- All steps executed successfully against a test environment before production use
- Output documented with screenshots or logs demonstrating expected behavior
- All exploited vulnerabilities documented with reproduction steps
- Scope boundaries confirmed — only authorized targets were tested
- Remediation recommendations included for every finding
Tools & Resources
- Microsoft Defender for O365: Built-in BEC detection + AI Impostor Classifier
- Proofpoint Email Fraud Defense / Tessian: AI-powered email security with human layer protection
- Abnormal Security: API-based AI email security with behavioral analysis
- Ironscales: AI + human-in-the-loop BEC detection
- Darktrace Email: Self-learning AI for email threat detection
- FBI IC3 BEC Advisory: https://www.ic3.gov/
- FinCEN BEC Advisory: Financial institution guidance
Validation
- BEC detection rules trigger on test scenarios
- Financial controls prevent unauthorized transfers in drills
- Account compromise detection catches simulated attacks
- Reduced BEC susceptibility in awareness assessments
- AI detects BEC test email with no malicious indicators (pure social engineering)
- Writing style analysis identifies impersonation of known executive
- Behavioral baseline flags unusual payment request from compromised account
- Detection rate exceeds traditional rule-based filters by 25%+
Process
- Analyze the task requirements
- Apply domain expertise
- Verify output quality
Anti-Rationalization Table
| Rationalization |
Reality |
| "We are too small to be targeted" |
Automated attacks target everyone. Size does not matter. |
| "Security slows us down" |
A breach slows you down 100x more. Build security in from the start. |
| "We will fix it after launch" |
Vulnerabilities in production are exploited within hours. Fix before deploy. |
1---2name: detecting-business-email-compromise3description: Use when business Email Compromise (BEC) is a sophisticated fraud scheme4 where attackers impersonate executives, vendors, or trusted partners to trick employees5 into transferring funds, sharing sensitive data,. Use when working with detecting6 business email compromise.7domain: cybersecurity8subdomain: phishing-defense9tags:10- phishing11- email-security12- social-engineering13- dmarc14- awareness15- bec16- fraud17version: '1.0'18author: oyi7719license: Apache-2.020atlas_techniques:21- AML.T005222- AML.T008823nist_ai_rmf:24- GOVERN-6.225- MAP-5.226d3fend_techniques:27- Restore Object28- Restore Configuration29- Application Configuration Hardening30- Application Hardening31- Disable Remote Access32nist_csf:33- PR.AT-0134- DE.CM-0935- RS.CO-0236- DE.AE-0237category: cybersecurity38metadata:39 source: https://skillmd.com/skills/oyi77/detecting-business-email-compromise40---4142# Detecting Business Email Compromise4344## Overview45Business Email Compromise (BEC) is a sophisticated fraud scheme where attackers impersonate executives, vendors, or trusted partners to trick employees into transferring funds, sharing sensitive data, or changing payment details. Unlike traditional phishing, BEC often contains no malicious links or attachments, relying purely on social engineering. This skill covers detection techniques using email gateway rules, behavioral analytics, and financial process controls.464748## When to Use49**Trigger phrases:**50- "detecting business email compromise"51- "Business Email Compromise (BEC) is a sophisticated fraud scheme where attackers "525354- When investigating security incidents that require detecting business email compromise55- When building detection rules or threat hunting queries for this domain56- When SOC analysts need structured procedures for this analysis type57- When validating security monitoring coverage for related attack techniques5859## Prerequisites60- Email security gateway with BEC detection capabilities61- Understanding of organizational financial processes and approval chains62- Access to email logs and SIEM platform63- Knowledge of social engineering tactics6465## Key Concepts6667This section covers key concepts for detecting business email compromise.6869- Ensure all prerequisites are met before proceeding70- Follow the documented workflow steps in sequence71- Record results and any anomalies encountered during this phase72### BEC Attack Types (FBI IC3 Classification)731. **CEO Fraud**: Attacker impersonates CEO, requests urgent wire transfer742. **Account Compromise**: Employee email compromised, used to request payments from vendors753. **False Invoice Scheme**: Fake invoices from "vendor" with changed bank details764. **Attorney Impersonation**: Impersonates legal counsel for urgent confidential transfers775. **Data Theft**: Requests W-2, tax forms, or PII from HR7879### Detection Indicators80- Urgency and secrecy language ("confidential", "do not discuss with others")81- New or changed payment instructions82- Executive communication outside normal patterns83- Display name matches executive but email domain differs84- Reply-to address differs from From address85- First-time communication pattern between sender and recipient86- Request for gift cards or cryptocurrency8788## Workflow8990```python91# Example: IOC detection92import re9394IOC_PATTERNS = {95 "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",96 "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",97 "hash_md5": r"\b[a-f0-9]{32}\b",98 "hash_sha256": r"\b[a-f0-9]{64}\b",99}100101def extract_iocs(text: str) -> dict:102 return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}103```1041051. **Scope and authorize** — confirm written authorization and define target boundaries1062. **Reconnaissance** — enumerate targets, services, and potential attack surfaces1073. **Exploitation** — attempt exploitation of identified vulnerabilities within scope1084. **Post-exploitation** — document access level, lateral movement, and data exposure1095. **Report and remediate** — compile findings with reproduction steps and fix recommendations110### Step 1: Configure BEC-Specific Email Rules111- Flag emails with VIP display names from external domains112- Detect financial keywords combined with urgency language113- Alert on first-time sender to finance/accounting staff114- Check for Reply-To domain mismatch115116### Step 2: Deploy Behavioral Analytics117- Baseline normal communication patterns per user118- Detect anomalous requests (unusual recipient, unusual time, unusual request type)119- Monitor for email forwarding rule changes (T1114.003)120121### Step 3: Implement Financial Controls122- Dual-authorization for wire transfers above threshold123- Out-of-band verification for payment detail changes (phone callback)124- Vendor payment change verification process125- Finance team training on BEC red flags126127### Step 4: Monitor for Account Compromise128- Detect impossible travel in email login locations129- Alert on email forwarding rule creation130- Monitor for mailbox delegation changes131- Check for inbox rules hiding BEC-related emails132133### Step 5: Deploy AI/ML Detection134135AI-powered BEC detection uses transformer models (BERT, GPT) and NLP to identify sophisticated impersonation attacks that contain no malicious links or attachments. BERT-based models achieve 98.65% accuracy in BEC detection, with a 25%+ improvement over keyword-based rules.136137- **Train NLP Models**: Deploy transformer-based models for email content analysis. Detect urgency/manipulation language patterns, identify mismatches between sender identity and writing style, analyze sentiment shifts indicating social engineering pressure.138- **Configure Behavioral Baselines**: AI learns normal communication patterns (who emails whom, frequency, tone). Establish writing style profiles per user (vocabulary, sentence structure). Map typical request types per role (finance processes payments, HR handles PII). Allow 48-hour baseline learning period on historical data.139- **Set Detection Policies**: VIP impersonation (compare against known executive patterns), vendor impersonation (detect payment change requests from lookalike domains), account compromise (sudden behavior changes), supply chain BEC (trusted partner impersonation). Configure confidence thresholds for auto-block vs. warning vs. analyst review.140- **Integrate Response**: Auto-quarantine high-confidence detections, add warning banners for moderate confidence, route suspicious emails to SOC queue, feed verdicts back into training data for improvement.141142## When NOT to Use143144- You need to perform the attack to test detection (use performing-* skills)145- Task is about analyzing past incidents (use analyzing-* skills)146- You need to implement detection rules (use implementing-* skills)147- Task is about threat hunting proactively (use hunting-* skills)148- You don't have access to logs or monitoring data149- Task requires incident response (use IR skills)150151152## Red Flags153154- Performing actions without explicit written authorization from the asset owner155- Testing against production systems without a defined scope and rules of engagement156- Exceeding the authorized scope of the engagement157- Leaving persistent access mechanisms without explicit approval158- Causing denial-of-service on production systems during testing159160## Verification161162- All steps executed successfully against a test environment before production use163- Output documented with screenshots or logs demonstrating expected behavior164- All exploited vulnerabilities documented with reproduction steps165- Scope boundaries confirmed — only authorized targets were tested166- Remediation recommendations included for every finding167168## Tools & Resources169- **Microsoft Defender for O365**: Built-in BEC detection + AI Impostor Classifier170- **Proofpoint Email Fraud Defense / Tessian**: AI-powered email security with human layer protection171- **Abnormal Security**: API-based AI email security with behavioral analysis172- **Ironscales**: AI + human-in-the-loop BEC detection173- **Darktrace Email**: Self-learning AI for email threat detection174- **FBI IC3 BEC Advisory**: https://www.ic3.gov/175- **FinCEN BEC Advisory**: Financial institution guidance176177## Validation178- BEC detection rules trigger on test scenarios179- Financial controls prevent unauthorized transfers in drills180- Account compromise detection catches simulated attacks181- Reduced BEC susceptibility in awareness assessments182- AI detects BEC test email with no malicious indicators (pure social engineering)183- Writing style analysis identifies impersonation of known executive184- Behavioral baseline flags unusual payment request from compromised account185- Detection rate exceeds traditional rule-based filters by 25%+186187## Process1881891. Analyze the task requirements1902. Apply domain expertise1913. Verify output quality192193## Anti-Rationalization Table194195| Rationalization | Reality |196|---|---|197| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |198| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |199| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |