/sessions
Overview
The /sessions command displays all your saved penetration testing sessions, allowing you to review past tests, resume interrupted assessments, and track your security testing history over time.
Usage
What are Sessions?
Sessions in Apex represent individual penetration testing runs. Each session contains:
- Test Configuration: Target details, scope, and parameters
- Progress State: What has been tested and what remains
- Findings: All discovered vulnerabilities and issues
- Test Logs: Complete audit trail of testing activities
- Metadata: Timestamps, duration, AI model used
Sessions are automatically saved during testing, so you never lose your work even if testing is interrupted.
Session Management
When you run /sessions, you’ll see a list of all saved sessions with:
Automatically generated or custom name for the test
The application or domain that was tested
In Progress, Completed, or Paused
When the session was created or last updated
Total time spent on the assessment
Number of vulnerabilities discovered
Resuming Sessions
To resume a previous testing session:
Pro Tip: Resume sessions when you need to continue multi-day comprehensive assessments or retest after fixes have been applied.
Use Cases
Multi-Day Assessments
For large applications requiring extended testing:
Regression Testing
Verify that security fixes haven’t introduced new issues:
Continuous Security Testing
Track security posture over time:
- Weekly Scans: Compare findings week-over-week
- Release Testing: Test each release and track improvements
- Trend Analysis: Identify security trends and patterns
Session Information
Each session provides detailed information:
Test Configuration
Target Details
- Primary URL or domain
- Scope definition
- In-scope/out-of-scope systems
- API endpoints included
Authentication
- Credentials used
- User roles tested
- Token information
- Session cookies
Test Parameters
- Testing mode (Quick Test or Thorough Pentest)
- AI model used
- Aggressiveness level
- Rate limiting settings
Findings Summary
- Total vulnerabilities found
- Severity breakdown
- Vulnerability types
- Critical issues requiring immediate attention
Test Results
Access comprehensive results from each session:
Detailed write-ups of each security issue
Working POCs to demonstrate vulnerabilities
Fix recommendations for each issue
What was tested and coverage metrics
Managing Sessions
Organizing Sessions
Keep your sessions organized:
- Naming Convention: Use descriptive names (e.g., “ProductionAPI-Q4-2025”)
- Tagging: Add tags for easy filtering (e.g., “compliance”, “pre-production”)
- Archiving: Archive old sessions to keep the list clean
- Deletion: Remove test sessions that are no longer needed
Session States
Sessions can be in different states:
Exporting Session Data
Export session results for documentation or integration:
Export Formats
PDF Report
Best for: Executive reporting and compliance documentation
Includes:
- Executive summary
- Detailed findings
- Proof-of-concepts
- Remediation recommendations
- Appendices with technical details
JSON
Best for: Tool integration and programmatic access
Contains:
- Structured vulnerability data
- Test metadata
- Raw findings
- API-friendly format
CSV
Best for: Spreadsheet analysis and tracking
Columns:
- Vulnerability name and type
- Severity and CVSS score
- Affected components
- Status and remediation
Markdown
Best for: Documentation and knowledge bases
Formatted for:
- README files
- Wiki pages
- Documentation sites
- GitHub/GitLab issues
SARIF
Best for: CI/CD and security tool integration
Compatible with:
- GitHub Advanced Security
- Azure DevOps
- GitLab Security Dashboards
- Other SARIF-compatible tools
Session Comparison
Compare multiple sessions to track security improvements:
Best Practices
Session Management Tips:
- Use descriptive names for easy identification
- Save sessions regularly during long assessments
- Export results after each completed test
- Archive old sessions to keep the list manageable
- Review sessions before retesting to understand previous findings
- Track metrics over time to measure security improvements
Retention and Storage
Sessions are stored locally on your machine in the Apex configuration directory. Ensure you have adequate disk space for session storage, especially for long-running comprehensive tests.
Storage Location
Session data is typically stored at:
Backup Sessions
Backup important sessions:
Troubleshooting
Session won't resume
Issue: Cannot resume a saved session
Solutions:
- Check that the session file isn’t corrupted
- Verify API credentials are still valid
- Ensure the target is still accessible
- Try exporting data and starting a new session
Missing sessions
Issue: Previous sessions don’t appear in the list
Solutions:
- Check the session storage directory
- Verify file permissions
- Look in archived sessions
- Check if sessions were created under a different user
Export fails
Issue: Cannot export session results
Solutions:
- Ensure you have write permissions in the export directory
- Check available disk space
- Verify the session data is complete
- Try a different export format