Detect and block spearphishing emails that use personalized, researched content to evade generic spam filters, by configuring email security gateway (SEG) impersonation protection, URL rewriting, attachment sandboxing, and custom detection rules in Microsoft Defender for Office 365, Proofpoint, Mimecast, or Barracuda. Use when hardening a mail gateway against targeted phishing or investigating a suspected spearphishing campaign.
Start a fresh conversation. Replace the highlighted placeholders.
Use detecting-spearphishing-with-email-gateway to harden [email gateway and tenant] against targeted spearphishing, configuring impersonation, URL, attachment, custom-rule, alerting, and SIEM protections; provide the resulting configuration and validation plan.
Required inputs
[email gateway and tenant]
User-approved starter prompt based on a pinned source version; check current skill requirements before running. Task evidence ↗
SKILL.md
name: detecting-spearphishing-with-email-gatewaydescription: Detect and block spearphishing emails that use personalized, researched content to evade generic spam filters, by configuring email security gateway (SEG) impersonation protection, URL rewriting, attachment sandboxing, and custom detection rules in Microsoft Defender for Office 365, Proofpoint, Mimecast, or Barracuda. Use when hardening a mail gateway against targeted phishing or investigating a suspected spearphishing campaign.domain: cybersecuritysubdomain: phishing-defensetags: - phishing- email-security- social-engineering- dmarc- awareness- spearphishing- email-gatewayversion: '1.0'author: mahipallicense: Apache-2.0nist_csf: - PR.AT-01- DE.CM-09- RS.CO-02- DE.AE-02mitre_attack: - T1566.001- T1566.002- T1204.001- T1204.002mitre_f3: version: '1.1' tactics: - reconnaissance - initial-access - stealth - resource-development techniques: - id: T1660 name: Phishing tactic: initial-access source: attack - id: T1598 name: Phishing for Information tactic: reconnaissance source: attack - id: T1672 name: Email Spoofing tactic: stealth source: attack - id: F1032 name: Impersonate Official tactic: initial-access source: f3 - id: F1031 name: Impersonate Account Holder tactic: initial-access source: f3 - id: F1020.002 name: 'Create Fake Materials: Fake Website' tactic: resource-development source: f3
Detecting Spearphishing with Email Gateway
Overview
Spearphishing targets specific individuals using personalized, researched content that bypasses generic spam filters. Email security gateways (SEGs) like Microsoft Defender for Office 365, Proofpoint, Mimecast, and Barracuda provide advanced detection capabilities including behavioral analysis, URL detonation, attachment sandboxing, and impersonation detection. This skill covers configuring these gateways to detect and block targeted phishing attacks.
When to Use
When investigating security incidents that require detecting spearphishing with email gateway
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
Access to email security gateway admin console
Understanding of email flow architecture (MX records, transport rules)
Familiarity with SPF/DKIM/DMARC authentication
Knowledge of common spearphishing techniques and pretexts
Key Concepts
Spearphishing Characteristics
Targeted recipients: Specific individuals, often executives or finance staff
Researched pretexts: References to real projects, colleagues, or events