Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pensarai/apex/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Blackbox Pentest API orchestrates a full penetration testing workflow that combines attack surface discovery with targeted exploitation. It automatically spawns multiple specialized agents to test discovered targets in parallel. Key Features:- Two-phase workflow: reconnaissance then exploitation
- Supports both blackbox and whitebox testing modes
- Automatic target prioritization and agent spawning
- Parallel execution with configurable concurrency
- Comprehensive finding deduplication
- Automatic report generation
runPentestAgent
Run the deterministic pentest workflow (blackbox or whitebox based on input). Workflow Phases:- Phase 1: Runs attack surface discovery (whitebox workflow or blackbox agent)
- Phase 2: Spawns targeted pentest agents for each discovered target
- Phase 3: Aggregates results and generates report
Parameters
Configuration for the pentest workflow
Response
All vulnerability findings discovered during the pentest
Absolute path to the session’s findings directory
Absolute path to the session’s POC scripts directory
Path to the generated pentest report (null if not generated)
Usage Examples
Workflow Details
Phase 1: Attack Surface Discovery
The workflow begins by discovering the attack surface:- Blackbox mode (default): Runs external reconnaissance using web scraping, DNS enumeration, port scanning, and browser automation
- Whitebox mode (when
cwdprovided): Analyzes source code to extract API endpoints, routes, and pages
Phase 2: Parallel Exploitation
The workflow spawns multipleTargetedPentestAgent instances (default: 10 concurrent) to test each target:
- Each agent receives specific targets and objectives from Phase 1
- Agents run in parallel with bounded concurrency
- Findings are automatically deduplicated via shared registry
- Progress is tracked via subagent callbacks
Phase 3: Result Aggregation
After all agents complete:- All findings are collected from the session’s findings directory
- A comprehensive pentest report is generated (if applicable)
- Results are returned with paths to findings, POCs, and reports
Related APIs
Attack Surface
Run attack surface discovery separately
Targeted Pentest
Test specific targets without discovery
Authentication
Authenticate before pentesting
Patching
Generate patches for vulnerabilities

