🔗 Attack Chains
Comprehensive attack chain documentation showing step-by-step exploitation paths from initial access to target compromise. Each chain includes tools, techniques, and mitigation strategies.
Attack chains (also known as Kill Chains) document the complete exploitation path from initial reconnaissance to achieving the attack objective. Understanding these chains helps offensive and defensive security professionals.
🌐 Web Application Attack Chains
Chain 1: SQLi to RCE
CriticalFull compromise via SQL injection to remote code execution
- Reconnaissance
Discover SQL injection entry point via parameter fuzzing
- Enumeration
Determine database type, version, and column count via UNION SELECT
- Discovery
Find web root path from database error messages or file read
- Webshell Upload
Write PHP/ASP webshell via INTO OUTFILE with path traversal
- Command Execution
Execute OS commands via HTTP requests to uploaded webshell
- Persistence
Add cron job or SSH key for persistent access
Chain 2: XSS to Account Takeover
HighStored XSS exploited to steal session cookies
- Discovery
Identify stored XSS in comment/review field
- Payload Crafting
Create cookie stealing JavaScript payload
- Injection
Submit payload in vulnerable form field
- Wait
Admin/user visits page containing payload
- Cookie Capture
JavaScript executes, sending session to attacker
- Session Hijack
Use stolen cookie to authenticate as victim
Chain 3: SSRF to Cloud Takeover
CriticalExploit SSRF to extract cloud credentials and compromise infrastructure
- Discovery
Identify SSRF in URL parameter or image upload
- Metadata Access
Request cloud metadata service (169.254.169.254)
- Credential Extraction
Retrieve IAM credentials from metadata endpoint
- AWS CLI Setup
Configure AWS credentials for target account
- Lateral Movement
Access S3 buckets, Lambda functions, or other services
- Data Exfiltration
Download sensitive data from cloud storage
Chain 4: File Upload to RCE
HighBypass file upload restrictions to gain shell access
- Discovery
Identify file upload functionality
- Fingerprinting
Determine allowed extensions and content validation
- Bypass Attempt
Try double extensions, null bytes, or polyglot files
- Webshell Upload
Upload web shell disguised as image or document
- Shell Activation
Access uploaded shell via direct URL
- Post-Exploitation
Enumerate and pivot to internal network
Chain 5: IDOR to Privilege Escalation
MediumExploit insecure direct object references to access unauthorized data
- Discovery
Identify endpoints with object IDs (user profile, documents)
- Parameter Tampering
Modify IDs in requests to access other users' resources
- Horizontal Enum
Enumerate IDs to map accessible objects
- Vertical Escalation
Find admin endpoints or privileged operations
- Data Access
Access sensitive documents, financial records
- Account Manipulation
Modify settings, passwords, or permissions
Chain 6: Open Redirect to Phishing
MediumLeverage open redirect for credential harvesting
- Discovery
Identify open redirect in return URL parameter
- Phishing Page Creation
Clone legitimate login page
- Payload URL
Construct redirect URL to phishing page
- Social Engineering
Send phishing URL via email or message
- Credential Harvest
Victim enters credentials on fake page
- Session Hijack
Use credentials to access real application
🔌 API Attack Chains
Chain 7: API BOLA to Mass Data Breach
HighExploit broken object level authorization in REST API
- API Discovery
Enumerate API endpoints via documentation or crawling
- Auth Analysis
Authenticate as regular user, capture tokens
- ID Enumeration
Test endpoints with different object IDs
- BOLA Exploitation
Access other users' resources by modifying IDs
- Scripting
Automate ID enumeration to extract all data
- Exfiltration
Download complete dataset
Chain 8: JWT Authentication Bypass
HighForge JWT tokens to escalate privileges
- Token Analysis
Extract JWT from authentication responses
- Algorithm Assessment
Determine if "none" algorithm or weak secret is used
- Signature Bypass
Use none algorithm or crack weak secret
- Claim Manipulation
Modify role/permissions to admin
- Token Forgery
Generate new valid token with elevated privileges
- Admin Access
Access admin endpoints with forged token
🌍 Network Attack Chains
Chain 9: Phishing to Domain Admin
CriticalFull Active Directory compromise via credential phishing
- Reconnaissance
Gather employee emails via OSINT
- Phishing Campaign
Create convincing email with malicious link/attachment
- Initial Access
Victim enters credentials on fake Office 365 login
- FOIA Attack
Extract tokens, access OAuth applications
- Kerberoasting
Request service account TGS tickets
- Password Cracking
Crack weak service account passwords offline
- Domain Dominance
Use service account to modify AD, add new admin
Chain 10: WiFi to Internal Network
HighCompromise WPA2/WPA3 network to pivot to internal systems
- Wardriving
Identify target wireless networks
- Handshake Capture
Deauth clients, capture WPA handshake
- Password Cracking
Crack WPA password using dictionary/rules
- Network Access
Connect to wireless network
- Reconnaissance
Scan internal network, identify services
- Lateral Movement
Exploit vulnerabilities in internal hosts
- Persistence
Establish VPN or reverse shell
Chain 11: SMB Relay to Domain Admin
CriticalRelay SMB authentication to compromise servers
- Responder Setup
Configure SMB relay with LLMNR/NBT-NS poisoning
- Network Poisoning
Poison LLMNR/NBT-NS requests on network
- Credential Capture
Intercept NTLMv2 hash from victim
- Relay Attack
Relay hash to target server with SMB signing disabled
- Local Admin
Gain local administrator access on target
- Privilege Escalation
Escalate to Domain Admin via LAPS or Kerberoast
☁️ Cloud Attack Chains
Chain 12: Lambda Backdoor Creation
HighCreate persistent backdoor in AWS Lambda functions
- IAM Enum
Enumerate current user's Lambda permissions
- Lambda Access
Get permissions to create/update Lambda functions
- Backdoor Function
Create malicious Lambda with reverse shell
- Trigger Setup
Configure CloudWatch trigger for persistence
- Execution
Trigger function via CloudWatch event
- C2 Channel
Establish command and control via Lambda
Chain 13: S3 Bucket Misconfiguration
MediumExploit public S3 bucket to access sensitive data
- Bucket Discovery
Find S3 buckets via DNS, Shodan, or guessing
- Access Testing
Test if bucket is publicly accessible
- Enumeration
List bucket contents with AWS CLI
- Data Analysis
Identify sensitive files (backups, configs, keys)
- Download
Download interesting files to local system
- Key Extraction
Extract API keys, credentials from downloaded files
📱 Mobile Attack Chains
Chain 14: Android APK to Data Theft
HighReverse engineer Android app to steal sensitive data
- APK Acquisition
Download APK from app store or device
- Static Analysis
Decompile APK, analyze code for API keys/secrets
- Certificate Pinning
Identify and bypass SSL pinning
- Runtime Analysis
Hook app with Frida to extract runtime data
- Data Extraction
Extract tokens, credentials from memory/storage
- Lateral Movement
Use extracted credentials on other platforms
🛡️ Chain Mitigation Strategies
Each attack chain should be disrupted at multiple points. Focus on early-stage prevention to stop attacks before they reach critical stages.
| Chain Stage | Prevention | Detection | Response |
|---|---|---|---|
| Reconnaissance | Minimize information exposure, rotate credentials | Monitor DNS queries, port scans | Block source IPs, alert SOC |
| Initial Access | MFA, least privilege, input validation | Login anomaly detection, WAF alerts | Lock accounts, rotate credentials |
| Execution | Endpoint protection, application whitelisting | EDR telemetry, process monitoring | Isolate endpoint, collect forensics |
| Persistence | Harden systems, monitor startup items | Detect new scheduled tasks, registry changes | Remove persistence mechanisms |
| Privilege Escalation | Least privilege, patch management | Monitor admin group changes | Audit admin accounts, rotate passwords |
| Lateral Movement | Network segmentation, strong auth | Monitor lateral traffic, SMB usage | Isolate affected segments |