Pipeline Configuration
Thepipeline section of your configuration file controls execution behavior:
Maximum Concurrent Pipelines
During the vulnerability analysis and exploitation phases, Shannon runs multiple specialized agents in parallel. Themax_concurrent_pipelines setting controls how many agents run simultaneously.
Configuration
Maximum number of concurrent vulnerability pipelines (1-5)
How It Works
Shannon has 5 specialized vulnerability analysis agents:- Injection - SQL injection, command injection, etc.
- XSS - Cross-site scripting
- Authentication - Broken authentication
- Authorization - Broken access control
- SSRF - Server-side request forgery
max_concurrent_pipelines: 2 means:
- Agents 1-2 start immediately
- When agent 1 completes, agent 3 starts
- When agent 2 completes, agent 4 starts
- When agent 3 completes, agent 5 starts
- Continue until all complete
When to Adjust Concurrency
Reduce concurrency (1-3) if:- You’re hitting API rate limits frequently
- You want to reduce burst API usage costs
- You have a subscription plan with rolling rate limit windows
- You prefer more predictable API usage patterns
- You want the fastest possible results
- You have a high API rate limit
- You’re not concerned about burst costs
- Your API plan has generous limits
Performance Impact
| Concurrency | Wall-Clock Time | API Burst | Rate Limit Risk |
|---|---|---|---|
| 1 | ~5-7 hours | Very Low | Minimal |
| 2 | ~3-4 hours | Low | Low |
| 3 | ~2-3 hours | Medium | Medium |
| 5 (default) | ~1-1.5 hours | High | Higher |
These estimates assume typical application complexity. Actual times vary based on application size, authentication complexity, and number of vulnerabilities found.
Examples
Example 1: Fastest Execution (Default)
Example 2: Balanced Approach
Example 3: Rate Limit Conscious
Example 4: Maximum API Conservation
Testing Mode
For development and testing, you can enable pipeline testing mode via command-line flag:Testing Mode Behavior
Prompt modifications:- Minimal agent prompts for faster execution
- Reduced context windows
- Simplified analysis
- Initial interval: 10 seconds
- Maximum interval: 10 seconds (no backoff)
- Maximum attempts: 3
- Total timeout: 10 minutes per agent
- Rapid iteration during development
- Configuration validation
- Testing authentication flows
- Debugging issues
- Production security testing
- Real vulnerability assessment
- Comprehensive analysis
- Results you plan to act on
Combining Settings
You can combine pipeline settings with other configuration sections:Monitoring Pipeline Execution
Worker Logs
Temporal Web UI
- Currently executing agents
- Queued agents waiting for slots
- Agent execution history
- Parallel execution timeline
Workflow Progress Query
Advanced: Resume from Checkpoint
Shannon automatically checkpoints progress after each agent completes. If a workflow is interrupted, you can resume from the last checkpoint:- Load the workspace’s
session.json - Identify completed agents
- Skip completed agents
- Resume from the next agent
max_concurrent_pipelines: 5 and 2 agents completed before interruption, Shannon will resume with the remaining 3 agents.
Cost Considerations
Pipeline concurrency affects costs: Higher concurrency (4-5):- More parallel API calls
- Higher burst costs
- Faster results
- Estimated cost: ~$50 USD per run
- Fewer parallel API calls
- Lower burst costs
- Slower results
- Estimated cost: ~$40-45 USD per run
Troubleshooting
”Too many concurrent requests” errors
Problem: Hitting API rate limits with default concurrency Solution: Reduce concurrency:Pipeline taking too long
Problem: Concurrency set too low Solution: Increase concurrency or use default:Some agents not starting
Problem: Earlier agent failed, blocking queue Solution: Check logs for failure reason:Next Steps
Retry Strategies
Configure retry behavior for rate limits
YAML Config Reference
Complete configuration options reference
