
Spearphishing Simulation Campaign
FreeRun targeted spearphishing simulations for security testing.
Free · Opens the source repo
What Spearphishing Simulation Campaign does
The Spearphishing Simulation Campaign skill provides a comprehensive framework for conducting targeted spearphishing attacks, which are essential for red teams looking to assess the security posture of organizations. This skill leverages open-source intelligence (OSINT) to create personalized phishing messages aimed at specific individuals, allowing security professionals to simulate real-world attack scenarios effectively. By developing convincing pretexts and weaponized payloads, users can evaluate the effectiveness of security controls and raise awareness about phishing threats within their organizations.
This skill encompasses several critical phases, starting with pretext development, where users gather OSINT to craft tailored messages that resonate with the target audience. Following this, users can create various payloads designed to bypass email security measures, such as HTML smuggling and macro-enabled documents. The skill also guides users through the setup of email infrastructure, including SPF, DKIM, and DMARC configurations, ensuring that the phishing emails appear legitimate.
Once the campaign is executed, the skill provides real-time tracking of email delivery, opens, and interactions, enabling users to gather valuable metrics. Post-campaign analysis is also included, allowing users to assess the effectiveness of the simulation, document findings, and identify areas for improvement in security awareness training. This skill is particularly useful for security professionals conducting authorized security assessments, incident response activities, or regular security audits.
By utilizing this skill, organizations can gain insights into their vulnerabilities and enhance their defenses against social engineering attacks, ultimately leading to a more robust security posture.
When to use it
Use this skill when conducting authorized security assessments or testing the effectiveness of security controls against targeted phishing attacks.
When not to use it
This skill is not suitable for unauthorized testing or environments without proper authorization, as it is designed for ethical security assessments only.
What you can build with it
Conducting a Security Assessment
Use the skill to simulate spearphishing attacks during a security assessment to evaluate the effectiveness of existing security controls.
Training Security Awareness
Deploy the skill as part of a security awareness program to educate employees about the risks of spearphishing and improve their response to such attacks.
Incident Response Testing
Utilize the skill to test incident response procedures by simulating a spearphishing attack and assessing the organization's reaction.
How to install Spearphishing Simulation Campaign
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/conducting-spearphishing-simulation-campaign --agent claude-code2. 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 mukul975Conducting 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
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
- Pretext tailored to specific targets with OSINT data
- Payload tested against email security controls
- Infrastructure configured with proper email authentication
- Campaign tracked with delivery and interaction metrics
- Evidence collected for engagement report
- Cleanup performed on infrastructure post-campaign
Frequently asked questions about Spearphishing Simulation Campaign
Similar skills
Cloudflare Security Audit
Perform authorized security audits on codebases.
Authenticated Scan with OpenVAS
Perform deep vulnerability scans using OpenVAS with credentials.
Active Directory Penetration Test
Conduct focused AD penetration tests with ease.
Active Directory BloodHound Analysis
Visualize Active Directory attack paths and risks.
Orchestrating LLM Attacks with PyRIT
Automate multi-turn adversarial attacks against LLMs.
Operating Sliver C2
Deploy and manage Sliver C2 for red-team engagements.
