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 Targeted Pentest API provides focused penetration testing capabilities for specific targets and objectives. Unlike the full workflow, this API allows you to test individual endpoints or features with precise testing goals. Key Features:- Focused testing on specific targets
- Custom testing objectives per target
- Automatic PoC script generation
- Finding deduplication across runs
- Sandbox support for isolated execution
- Browser automation for complex testing scenarios
runTargetedPentestAgent
Run a targeted penetration test against a specific target with defined objectives. Testing Methodology:- PLAN: State objectives and outline testing approach
- VERIFY: Confirm target is reachable and understand baseline behavior
- PREPARE: Research payloads and attack techniques
- TEST: Execute targeted attacks methodically
- EXPLOIT: Create proof-of-concept scripts
- DOCUMENT: Document confirmed vulnerabilities
- FINISH: Submit final summary
Parameters
Configuration for the targeted pentest agent
Response
All vulnerability findings discovered during the test
Absolute path to the session’s findings directory where JSON reports are stored
Absolute path to the session’s POC scripts directory
Usage Examples
Testing Guidelines
Writing Effective Objectives
Objectives should be specific, actionable, and focused: Good objectives:"Test SQL injection in username parameter on login endpoint""Check for authentication bypass via JWT token manipulation""Test for IDOR vulnerabilities on user profile update (PUT /api/users/:id)""Test XSS in post content and comment fields"
"Test the API"(too broad)"Find vulnerabilities"(not actionable)"Security test"(no specific target)
Available Testing Capabilities
The agent has access to these testing tools:- execute_command: Run shell commands (curl, custom scripts, exploit tools)
- http_request: Make HTTP requests with custom headers/body
- browser_navigate: Load pages in a headless browser
- browser_click: Interact with buttons and links
- browser_fill: Fill form fields
- browser_screenshot: Capture visual evidence
- document_vulnerability: Document confirmed findings
- create_poc: Generate proof-of-concept exploit scripts
Authentication Handling
If the session has authentication data (from prior auth or manual setup):- The agent automatically includes cookies and headers in all requests
- Authentication is preserved across HTTP requests and browser actions
- Session expiration is detected and reported
Related APIs
Blackbox Pentest
Full workflow with discovery + exploitation
Attack Surface
Discover targets before testing
Authentication
Authenticate before testing
Patching
Generate patches for findings

