Conducting Spearphishing Simulation Campaign
Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.
Overview
Spearphishing simulation is a targeted social engineering attack vector used by red teams to gain initial access. Unlike broad phishing campaigns, spearphishing uses OSINT-derived intelligence to craft highly personalized messages targeting specific individuals. This skill covers developing pretexts, building payloads, setting up email infrastructure, executing the campaign, and tracking results.
When to Use
- When conducting security assessments that involve conducting spearphishing simulation campaign
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Most Often Missed & How to Confirm
- Sending before domain authentication is correct. Missing/incorrect SPF, DKIM, and DMARC alignment lands mail in spam or gets it rejected. Verify all three pass before the first wave.
- No warming/aging of the look-alike domain. Freshly registered domains get category-blocked; age and build reputation (2+ weeks) and submit for categorization.
- Payload never tested against the target's stack. HTML smuggling, ISO/LNK, and OneNote lures must be detonated against the known email gateway + EDR before launch, not on the target.
- Mass-sending instead of waves, which trips volume-based gateway throttling and tips off the SOC.
- Tracking only opens. Opens are noisy (security scanners pre-click); the real signal is credential submission or payload execution.
- How to confirm a hit: the success signal is a tracked credential submission landing in GoPhish/Evilginx (for Evilginx, a captured session cookie that replays past MFA), or a beacon checking in from a target after payload execution. Verify delivery first by sending a seeded test address and confirming inbox placement + DKIM/DMARC pass. Don't conclude a recipient is "safe" on opens alone — confirm whether they submitted creds, executed the payload, or reported the mail to the SOC.
Prerequisites
- Familiarity with red teaming concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Objectives
- Develop convincing pretexts tailored to specific target personnel
- Create weaponized payloads that bypass email security controls
- Set up email delivery infrastructure with proper SPF/DKIM/DMARC configuration
- Execute phishing campaigns with real-time tracking and metrics
- Document results for engagement reporting and security awareness improvement
MITRE ATT&CK Mapping
- T1566.001 - Phishing: Spearphishing Attachment
- T1566.002 - Phishing: Spearphishing Link
- T1566.003 - Phishing: Spearphishing via Service
- T1598.003 - Phishing for Information: Spearphishing Link
- T1204.001 - User Execution: Malicious Link
- T1204.002 - User Execution: Malicious File
- T1608.001 - Stage Capabilities: Upload Malware
- T1608.005 - Stage Capabilities: Link Target
- T1583.001 - Acquire Infrastructure: Domains
- T1585.002 - Establish Accounts: Email Accounts
Workflow
Phase 1: Pretext Development
- Review OSINT findings for target personnel profiles
- Identify current organizational events (mergers, projects, new hires)
- Select pretext theme (IT helpdesk, HR benefits, vendor communication, executive request)
- Craft email templates with appropriate urgency and authority cues
- Create landing pages that mirror target organization's branding
Phase 2: Payload Development
- Select payload type based on target security controls:
- HTML smuggling for email gateway bypass
- Macro-enabled documents (if macros not blocked)
- ISO/IMG files containing LNK payloads
- OneNote files with embedded scripts
- QR codes linking to credential harvesting pages
- Test payload against target's known security stack
- Implement payload obfuscation techniques
- Configure callback to C2 infrastructure
Phase 3: Infrastructure Setup
- Register convincing look-alike domain
- Age domain and build reputation (minimum 2 weeks recommended)
- Configure SPF, DKIM, and DMARC records
- Set up SMTP relay with GoPhish or custom mail server
- Deploy credential harvesting pages with SSL certificates
- Configure tracking pixels and click tracking
Phase 4: Campaign Execution
- Send test emails to verify delivery and rendering
- Launch campaign in waves (avoid mass sending)
- Monitor email delivery rates and opens in real-time
- Track link clicks and credential submissions
- Deploy payloads to users who interact with phishing emails
- Capture screenshots and evidence for reporting
Phase 5: Post-Campaign Analysis
- Calculate campaign metrics (delivery rate, open rate, click rate, credential capture rate)
- Identify users who reported phishing to SOC
- Document bypass of email security controls
- Map successful compromises to MITRE ATT&CK
- Compile findings for engagement report
Tools and Resources
| Tool |
Purpose |
License |
| GoPhish |
Phishing campaign management |
Open Source |
| Evilginx2 |
Real-time credential harvesting with MFA bypass |
Open Source |
| King Phisher |
Phishing campaign toolkit |
Open Source |
| SET (Social Engineering Toolkit) |
Multi-vector social engineering |
Open Source |
| Modlishka |
Reverse proxy phishing |
Open Source |
| CredSniper |
Credential harvesting framework |
Open Source |
| Fierce Phish |
Phishing framework |
Open Source |
Validation Criteria
1---2name: conducting-spearphishing-simulation-campaign3description: Spearphishing simulation is a targeted social engineering attack vector used by red teams to gain initial access. Unlike broad phishing campaigns, spearphishing uses OSINT-derived intelligence to craf4license: Apache-2.05---6# Conducting Spearphishing Simulation Campaign789> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.1011## Overview1213Spearphishing simulation is a targeted social engineering attack vector used by red teams to gain initial access. Unlike broad phishing campaigns, spearphishing uses OSINT-derived intelligence to craft highly personalized messages targeting specific individuals. This skill covers developing pretexts, building payloads, setting up email infrastructure, executing the campaign, and tracking results.141516## When to Use1718- When conducting security assessments that involve conducting spearphishing simulation campaign19- When following incident response procedures for related security events20- When performing scheduled security testing or auditing activities21- When validating security controls through hands-on testing2223## Most Often Missed & How to Confirm2425- **Sending before domain authentication is correct.** Missing/incorrect SPF, DKIM, and DMARC alignment lands mail in spam or gets it rejected. Verify all three pass before the first wave.26- **No warming/aging of the look-alike domain.** Freshly registered domains get category-blocked; age and build reputation (2+ weeks) and submit for categorization.27- **Payload never tested against the target's stack.** HTML smuggling, ISO/LNK, and OneNote lures must be detonated against the known email gateway + EDR before launch, not on the target.28- **Mass-sending instead of waves**, which trips volume-based gateway throttling and tips off the SOC.29- **Tracking only opens.** Opens are noisy (security scanners pre-click); the real signal is credential submission or payload execution.30- **How to confirm a hit:** the success signal is a tracked credential submission landing in GoPhish/Evilginx (for Evilginx, a captured *session cookie* that replays past MFA), or a beacon checking in from a target after payload execution. Verify delivery first by sending a seeded test address and confirming inbox placement + DKIM/DMARC pass. Don't conclude a recipient is "safe" on opens alone — confirm whether they submitted creds, executed the payload, or reported the mail to the SOC.3132## Prerequisites3334- Familiarity with red teaming concepts and tools35- Access to a test or lab environment for safe execution36- Python 3.8+ with required dependencies installed37- Appropriate authorization for any testing activities3839## Objectives4041- Develop convincing pretexts tailored to specific target personnel42- Create weaponized payloads that bypass email security controls43- Set up email delivery infrastructure with proper SPF/DKIM/DMARC configuration44- Execute phishing campaigns with real-time tracking and metrics45- Document results for engagement reporting and security awareness improvement4647## MITRE ATT&CK Mapping4849- **T1566.001** - Phishing: Spearphishing Attachment50- **T1566.002** - Phishing: Spearphishing Link51- **T1566.003** - Phishing: Spearphishing via Service52- **T1598.003** - Phishing for Information: Spearphishing Link53- **T1204.001** - User Execution: Malicious Link54- **T1204.002** - User Execution: Malicious File55- **T1608.001** - Stage Capabilities: Upload Malware56- **T1608.005** - Stage Capabilities: Link Target57- **T1583.001** - Acquire Infrastructure: Domains58- **T1585.002** - Establish Accounts: Email Accounts5960## Workflow6162### Phase 1: Pretext Development631. Review OSINT findings for target personnel profiles642. Identify current organizational events (mergers, projects, new hires)653. Select pretext theme (IT helpdesk, HR benefits, vendor communication, executive request)664. Craft email templates with appropriate urgency and authority cues675. Create landing pages that mirror target organization's branding6869### Phase 2: Payload Development701. Select payload type based on target security controls:71 - HTML smuggling for email gateway bypass72 - Macro-enabled documents (if macros not blocked)73 - ISO/IMG files containing LNK payloads74 - OneNote files with embedded scripts75 - QR codes linking to credential harvesting pages762. Test payload against target's known security stack773. Implement payload obfuscation techniques784. Configure callback to C2 infrastructure7980### Phase 3: Infrastructure Setup811. Register convincing look-alike domain822. Age domain and build reputation (minimum 2 weeks recommended)833. Configure SPF, DKIM, and DMARC records844. Set up SMTP relay with GoPhish or custom mail server855. Deploy credential harvesting pages with SSL certificates866. Configure tracking pixels and click tracking8788### Phase 4: Campaign Execution891. Send test emails to verify delivery and rendering902. Launch campaign in waves (avoid mass sending)913. Monitor email delivery rates and opens in real-time924. Track link clicks and credential submissions935. Deploy payloads to users who interact with phishing emails946. Capture screenshots and evidence for reporting9596### Phase 5: Post-Campaign Analysis971. Calculate campaign metrics (delivery rate, open rate, click rate, credential capture rate)982. Identify users who reported phishing to SOC993. Document bypass of email security controls1004. Map successful compromises to MITRE ATT&CK1015. Compile findings for engagement report102103## Tools and Resources104105| Tool | Purpose | License |106|------|---------|---------|107| GoPhish | Phishing campaign management | Open Source |108| Evilginx2 | Real-time credential harvesting with MFA bypass | Open Source |109| King Phisher | Phishing campaign toolkit | Open Source |110| SET (Social Engineering Toolkit) | Multi-vector social engineering | Open Source |111| Modlishka | Reverse proxy phishing | Open Source |112| CredSniper | Credential harvesting framework | Open Source |113| Fierce Phish | Phishing framework | Open Source |114115## Validation Criteria116117- [ ] Pretext tailored to specific targets with OSINT data118- [ ] Payload tested against email security controls119- [ ] Infrastructure configured with proper email authentication120- [ ] Campaign tracked with delivery and interaction metrics121- [ ] Evidence collected for engagement report122- [ ] Cleanup performed on infrastructure post-campaign