Complete guide to generating realistic multi-stage attack campaigns with AI-powered narrative generation.
- Overview
- Quick Start
- Campaign Types
- AI-Powered Features
- Realistic Campaign Mode
- MITRE ATT&CK Integration
- Configuration
- Use Cases
- Troubleshooting
The attack campaign generator creates sophisticated, multi-stage attack scenarios that simulate real-world threat actor behavior with:
- 4 Campaign Types: APT, Ransomware, Insider Threats, Supply Chain
- AI-Powered Narratives: Contextual attack stories and motivations
- MITRE ATT&CK Mapping: Complete technique coverage
- Realistic Mode: Simulates actual detection rates and defensive responses
- Theme Integration: Consistent entity naming across campaign events
# Generate APT campaign with MITRE mapping
yarn start generate-campaign apt --mitre --count 100
# Generate ransomware campaign with theme
yarn start generate-campaign ransomware --theme marvel --count 150
# Generate realistic insider threat campaign
yarn start generate-campaign insider --realistic --count 75
# Generate supply chain attack campaign
yarn start generate-campaign supply_chain --count 200# Realistic APT with AI narratives and MITRE mapping
yarn start generate-campaign apt --realistic --ai --mitre --count 200
# Themed ransomware campaign with session view support
yarn start generate-campaign ransomware --theme marvel --session-view --count 100
# Complex supply chain attack with visual analysis
yarn start generate-campaign supply_chain --visual-analyzer --mitre --count 150Simulates nation-state and advanced threat actor campaigns:
Attack Stages:
- Initial Access: Spear phishing, watering hole attacks
- Persistence: Registry modification, scheduled tasks
- Lateral Movement: Network reconnaissance, credential theft
- Data Exfiltration: File collection and C2 communication
Example:
yarn start generate-campaign apt --realistic --mitre --count 200Simulates ransomware deployment and encryption campaigns:
Attack Stages:
- Initial Compromise: Malicious attachments, RDP brute force
- Reconnaissance: Network discovery, file enumeration
- Encryption: File encryption, shadow copy deletion
- Extortion: Ransom note deployment, payment demands
Example:
yarn start generate-campaign ransomware --theme marvel --realistic --count 150Simulates malicious insider activities:
Attack Stages:
- Privilege Abuse: Accessing unauthorized resources
- Data Collection: Systematic file access and copying
- Evasion: Covering tracks, log manipulation
- Exfiltration: Data theft via various channels
Example:
yarn start generate-campaign insider --realistic --count 100Simulates supply chain compromise attacks:
Attack Stages:
- Vendor Compromise: Third-party system infiltration
- Code Injection: Malicious code insertion
- Distribution: Compromised software deployment
- Activation: Backdoor activation and persistence
Example:
yarn start generate-campaign supply_chain --mitre --count 175AI creates contextual attack stories and motivations:
{
"campaign": {
"name": "Operation Silent Storm",
"description": "Sophisticated APT campaign targeting financial institutions",
"motivation": "Economic espionage and credential harvesting",
"attribution": "APT29-style tactics with novel persistence mechanisms"
}
}AI ensures logical attack flow and realistic timing:
- Temporal Consistency: Events follow realistic timelines
- Tactical Evolution: Attacks adapt based on defensive responses
- Operational Security: Attackers modify behavior to avoid detection
Realistic mode simulates actual enterprise detection capabilities:
yarn start generate-campaign apt --realistic --count 200Detection Characteristics:
- Early Stages: Low detection rates (10-30%)
- Persistence: Medium detection rates (40-60%)
- Lateral Movement: Higher detection rates (60-80%)
- Exfiltration: Variable detection based on controls
- Alert Fatigue: Realistic false positive generation
- Investigation Delays: Simulated response times
- Incomplete Visibility: Some activities remain undetected
yarn start generate-campaign apt --mitre --count 150Technique Mapping:
- Initial Access: T1566 (Phishing), T1190 (Exploit Public-Facing Application)
- Persistence: T1053 (Scheduled Task), T1547 (Boot or Logon Autostart)
- Defense Evasion: T1055 (Process Injection), T1070 (Indicator Removal)
- Lateral Movement: T1021 (Remote Services), T1078 (Valid Accounts)
Each campaign type uses appropriate MITRE techniques:
- APT: Heavy focus on persistence and lateral movement
- Ransomware: Emphasis on impact and defense evasion
- Insider: Privilege escalation and collection techniques
- Supply Chain: Initial access and persistence focus
Customize campaign generation through various options:
# Campaign type selection
--campaign-type <apt|ransomware|insider|supply_chain>
# Realism controls
--realistic # Enable realistic detection rates
--detection-rate 0.3 # Set custom detection rate (0.0-1.0)
# Integration options
--mitre # Add MITRE ATT&CK mappings
--ai # Enable AI narrative generation
--theme <theme_name> # Apply consistent theming
# Output controls
--count <number> # Number of events to generate
--session-view # Generate compatible process logs
--visual-analyzer # Enable visual analysis featuresCampaigns support consistent entity naming:
# Marvel-themed APT campaign
yarn start generate-campaign apt --theme marvel --count 100
# Generates entities like:
# - Usernames: tony.stark, peter.parker
# - Hostnames: stark-industries-web01, avengers-hq-dc01
# - Processes: shield-security.exe, arc-reactor-monitor.exeCreate realistic attack scenarios for analyst training:
yarn start generate-campaign apt --realistic --mitre --count 500Validate detection capabilities across attack stages:
yarn start generate-campaign ransomware --count 200 --visual-analyzerGenerate complex scenarios for IR team practice:
yarn start generate-campaign insider --realistic --ai --count 300Test correlation rules and alert prioritization:
yarn start generate-campaign supply_chain --mitre --count 400Generated campaigns include realistic progression metrics:
- Dwell Time: Average time between stages
- Success Rates: Probability of stage completion
- Detection Probability: Likelihood of defensive detection
- Impact Assessment: Potential business impact scores
- Working Hours: Higher activity during business hours
- Off-Hours: Reduced but persistent background activity
- Weekend Patterns: Minimal legitimate activity with anomalous events
Issue: Events don't form coherent attack narrative Solution: Ensure sufficient event count for complete campaign (100+ events)
Issue: Generated events lack MITRE technique mappings
Solution: Always use --mitre flag for technique attribution
Issue: All campaign events trigger alerts
Solution: Use --realistic flag to simulate actual detection rates
- Batch Processing: Campaigns generated in batches for memory efficiency
- Index Management: Automatic index pattern handling
- Progress Reporting: Real-time generation status updates
Generate campaigns across multiple environments:
yarn start generate-campaign apt --environments 10 --count 1000Link campaign events through entity relationships:
- Shared Infrastructure: Common C2 servers and domains
- Credential Reuse: Compromised accounts across multiple systems
- Tool Signatures: Consistent malware and technique patterns
Ready to simulate sophisticated attack campaigns? Start with yarn start generate-campaign apt --realistic --mitre --count 200 for a comprehensive APT simulation!