Vuln Chain Composer
The strategic brain. Correlates individual vulnerabilities into devastating multi-step exploit chains.
Important
CRITICAL: This skill produces offensive security analysis. Only use with explicit authorization on the target systems.
Instructions
Step 1: Import Findings
Accept vulnerability data from:
- JSON output from webapp-exploit-hunter, api-breaker, cloud-pivot-finder
- Manual finding descriptions from the user
- Attack tree data from attack-path-architect
- Mixed sources - consolidate everything
python scripts/import_findings.py --input {findings_dir_or_files}
Normalize all findings to a common format:
- Vulnerability type (SQLi, XSS, SSRF, IDOR, etc.)
- Location (domain, URL, parameter)
- Severity (standalone)
- PoC (if available)
- Prerequisites (authentication level, specific conditions)
Step 2: Cross-Domain Correlation
python scripts/correlate.py --findings {normalized_findings}
Analyze relationships between findings:
Same-Origin Chains:
- XSS on subdomain A + sensitive cookies scoped to parent domain = session hijack on all subdomains
- SSRF on subdomain B + internal API access = data exfiltration via internal endpoints
- Open redirect on auth endpoint + OAuth callback = token theft
Trust-Based Chains:
- Subdomain takeover + same cookie scope = full session hijack
- CI/CD access + deployment pipeline = production RCE
- Cloud metadata via SSRF + IAM overprivilege = full cloud compromise
Credential-Based Chains:
- SQL injection + password hashes = credential cracking + account takeover
- .env file exposure + database credentials = direct data access
- IDOR on user profile + email exposure = targeted phishing + account takeover
Escalation Chains:
- Low-privilege IDOR + mass assignment = privilege escalation to admin
- Self-XSS + CSRF = weaponized stored XSS affecting other users
- Rate limit bypass + brute-force + OTP bypass = authentication bypass
Step 3: Chain Construction
python scripts/build_chains.py --correlations {correlation_data}
For each identified chain:
- Define the chain narrative: Clear story from initial access to final impact
- List each step with:
- Vulnerability exploited
- Specific URL/parameter
- What is gained at this step
- How it enables the next step
- Map dependencies: What must succeed for the chain to work
- Identify alternatives: If one step is fixed, is there a bypass?
- Calculate chain feasibility: Product of individual step probabilities
Step 4: Impact Recalculation
python scripts/calculate_impact.py --chains {chains_file}
Recalculate severity based on chain context:
Impact Amplifiers:
- Self-XSS (Low) + CSRF chain = Stored XSS affecting others (High)
- Info disclosure (Low) + credential reuse = Account takeover (Critical)
- SSRF (Medium) + cloud metadata = Full infrastructure access (Critical)
- IDOR (Medium) + PII access + mass enumeration = Data breach (Critical)
CVSS Recalculation: For each chain, calculate:
- Attack Complexity: Based on number of steps and prerequisites
- Privileges Required: Based on initial access requirements
- User Interaction: Based on whether victim action is needed
- Scope: Changed if chain crosses trust boundaries
- Confidentiality/Integrity/Availability impact of the FINAL outcome
Step 5: PoC Generation
python scripts/generate_chain_poc.py --chain {chain_file}
For each confirmed chain, generate:
- Step-by-step reproduction guide with screenshots descriptions
- Automated PoC script (Python) that:
- Executes each step in sequence
- Passes data between steps (tokens, cookies, IDs)
- Validates each step succeeded before continuing
- Generates evidence at each step
- curl command sequence for manual reproduction
- Video script: Narrated steps for recording a PoC video
Step 6: Bug Bounty Report Generation
python scripts/generate_report.py --chains {chains_file} --format {platform}
Platform-optimized reports for:
- HackerOne format: Title, severity, description, steps to reproduce, impact, remediation
- Bugcrowd format: Similar with VRT classification
- Generic format: Professional pentest report style
Report structure per chain:
## Title
[Compelling, impact-focused title]
## Severity
[Recalculated severity with justification]
## Summary
[2-3 sentences: what it is, why it matters, what an attacker gains]
## Affected Assets
[List of all domains/endpoints involved]
## Steps to Reproduce
[Numbered steps with exact URLs, payloads, expected results]
## Proof of Concept
[curl commands or script]
## Impact
[Business impact: what data is at risk, what actions are possible]
## Attack Scenario
[Realistic attack narrative from attacker's perspective]
## Remediation
[Fix recommendations for EACH vulnerability in the chain]
## Chain Visualization
[ASCII diagram of the attack flow]
Step 7: Alternative Path Analysis
For each chain, document:
- If Step N is fixed: Does an alternative path exist?
- Minimal fix set: What is the minimum number of fixes to break ALL chains?
- Defense in depth: Which controls would detect/prevent each step?
- Monitoring recommendations: What logs/alerts would catch this chain in action?
Error Handling
Insufficient Findings for Chaining
If findings are isolated with no chainable relationships:
- Report individual findings with standalone severity
- Suggest additional testing that might reveal chain opportunities
- Note: "No chain identified, but testing X, Y, Z might reveal connections"
Unverified Chain Steps
If some steps in a chain haven't been tested:
- Mark the chain as "theoretical" or "partially verified"
- Clearly indicate which steps are confirmed vs assumed
- Provide testing instructions for unverified steps
Examples
Example 1: Full Chain Analysis
User says: "I found XSS on blog.example.com, SSRF on docs.example.com, and an open S3 bucket. Chain these."
Actions:
- Import all three findings
- Check cookie scope across subdomains
- Check if SSRF can reach S3 internal endpoint
- Build chains: XSS -> cookie theft -> access to docs -> SSRF -> S3
- Calculate impact of full chain (Critical)
- Generate PoC and report
Example 2: Bug Bounty Report
User says: "Generate a HackerOne report for this chain of findings"
Actions:
- Load the chain data
- Write compelling title and summary
- Format steps to reproduce with exact payloads
- Include curl commands as PoC
- Calculate and justify severity
- Add remediation recommendations
- Output markdown ready to paste into HackerOne
Example 3: What-If Analysis
User says: "If they fix the XSS, can we still get to the S3 bucket?"
Actions:
- Remove XSS from available findings
- Re-run correlation with remaining findings
- Check for alternative initial access paths
- Report: alternative chains exist/don't exist
- Recommend which fixes break the most chains