New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Detecting Business Email Compromise

Free

AI-driven detection of sophisticated email impersonation attacks.

Get this skill

Free · Opens the source repo

What Detecting Business Email Compromise does

Detecting Business Email Compromise (BEC) with AI leverages advanced machine learning and natural language processing techniques to identify impersonation attacks that traditional security measures often miss. This skill focuses on analyzing writing styles, behavioral patterns, and contextual anomalies to determine the authenticity of emails. By employing BERT-based models, it achieves a high accuracy rate of 98.65% in detecting BEC attempts, significantly outperforming conventional keyword-based filters. This capability is particularly crucial as BEC attacks are increasingly relying on social engineering tactics, which do not typically involve malicious links or attachments.

The skill is designed for security operations center (SOC) analysts, cybersecurity teams, and organizations looking to enhance their email security posture. It provides a structured approach to building detection rules and threat-hunting queries specific to BEC incidents. By integrating with existing email security platforms, such as Microsoft Defender or Abnormal Security, users can deploy AI models that learn from historical email data, establishing behavioral baselines for normal communication patterns.

The workflow involves several key steps: deploying an AI email security platform, configuring behavioral baselines, training NLP models for BEC detection, and integrating the detection process with response workflows. Each step is critical for ensuring that the system can accurately identify deviations from established norms, flagging potential BEC attempts for further investigation. This skill not only enhances detection capabilities but also provides tools for automated responses to suspected threats, thereby streamlining the security incident response process.

In summary, this skill is a valuable addition for organizations aiming to bolster their defenses against BEC attacks. By utilizing AI and behavioral analytics, it addresses the limitations of traditional email security measures, providing a proactive approach to identifying and mitigating sophisticated impersonation threats.

When to use it

Use this skill when analyzing email security incidents or building detection rules for business email compromise.

When not to use it

This skill may not be suitable for environments without AI-powered email security platforms or those lacking historical email data for training.

What you can build with it

Investigating Security Incidents

When a potential BEC incident is reported, this skill can analyze the email in question to determine if it exhibits characteristics of impersonation.

Building Detection Rules

Security teams can use this skill to create tailored detection rules based on historical data and behavioral patterns specific to their organization.

Enhancing SOC Operations

SOC analysts can utilize this skill to automate the identification of BEC threats, allowing for more efficient incident response and threat management.

How to install Detecting Business Email Compromise

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/detecting-business-email-compromise-with-ai --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

Detecting Business Email Compromise with AI

Overview

AI-powered BEC detection uses machine learning, NLP, and behavioral analytics to identify sophisticated impersonation attacks that contain no malicious links or attachments. Traditional rule-based filters miss these attacks because BEC relies purely on social engineering. Modern AI approaches analyze writing style, tone, vocabulary, grammatical patterns, and behavioral context to determine if an email genuinely comes from the stated sender. BERT-based models achieve 98.65% accuracy in BEC detection, and AI-enhanced platforms show a 25% increase in phishing identification over keyword-based rules.

When to Use

  • When investigating security incidents that require detecting business email compromise with ai
  • 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

  • AI-powered email security platform (Abnormal Security, Tessian, Microsoft Defender)
  • Historical email data for baseline training (minimum 30 days)
  • Integration with email platform (Microsoft 365 or Google Workspace)
  • SIEM for alert correlation and investigation
  • Understanding of BEC attack types (FBI IC3 classification)

Workflow

Step 1: Deploy AI Email Security Platform

  • Select API-based solution (Abnormal Security, Tessian, Ironscales) or enhance existing SEG
  • Connect to Microsoft Graph API or Google Workspace API
  • Allow 48-hour baseline learning period on historical email data
  • Configure integration to scan inbound, outbound, and internal email
  • Verify API permissions for message access and remediation

Step 2: Configure Behavioral Baselines

  • AI learns normal communication patterns: who emails whom, frequency, tone
  • Establish writing style profiles for each user (vocabulary, sentence structure)
  • Map typical request types per role (finance processes payments, HR handles PII)
  • Baseline email metadata: typical sending times, devices, locations
  • Flag deviations from established baselines as anomalous

Step 3: Train NLP Models for BEC Detection

  • Deploy transformer-based models (BERT, GPT) for email content analysis
  • Detect urgency and manipulation language patterns
  • Identify mismatches between sender identity and writing style
  • Analyze sentiment shifts indicating social engineering pressure
  • Classify email intent: information request, payment request, credential request

Step 4: Configure Detection Policies

  • VIP impersonation: AI compares new email against known executive communication patterns
  • Vendor impersonation: detect payment change requests from vendor lookalike domains
  • Account compromise: detect sudden changes in employee email behavior
  • Supply chain BEC: monitor for impersonation of trusted partners
  • Configure confidence thresholds for auto-block vs. warning banner vs. analyst review

Step 5: Integrate with Response Workflow

  • Auto-quarantine high-confidence BEC detections
  • Add warning banners for moderate-confidence detections
  • Route suspicious emails to SOC analyst queue for review
  • Integrate with SOAR for automated response playbooks
  • Feed BEC verdicts back into training data for model improvement

Tools & Resources

  • Abnormal Security: API-based AI email security with behavioral analysis
  • Microsoft Defender for O365: Built-in AI anti-BEC with Impostor Classifier
  • Tessian (Proofpoint): AI-powered email security with human layer protection
  • Ironscales: AI + human-in-the-loop BEC detection
  • Darktrace Email: Self-learning AI for email threat detection

Validation

  • AI detects test BEC 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
  • NLP correctly classifies urgency manipulation in test scenario
  • False positive rate below 0.05% after baseline training
  • Detection rate exceeds traditional rule-based filters by 25%+

Frequently asked questions about Detecting Business Email Compromise

Similar skills