About Pentest AI
Pentest AI is an MCP server published by 0xSteph in the Security category: open-source AI pentester that proves every finding. Machine oracles re-run each exploit; verified bugs ship a proof capsule you can replay yourself. Conduid read 51 tools from its source: authenticated_scan, browser_inspect, builtin_scan, close_engagement, discover_attack_chains, ensure_tools_installed and 45 more. It is published to PyPI as ptai and runs with uvx.
The repository has 1.9K stars and 347 forks, is licensed MIT, and its last commit was on 16 Nov 2026. The latest release is v1.6.2 (16 Nov 2026): ptai 1.6.2 fixes bug bounty mode. It follows v1.6.1 (3 Nov 2026), and the 5 most recent releases go back to v1.4.0 (2 Sep 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-security, bug-bounty, ctf, cybersecurity, exploit and exploit-chaining.
Install
uvx ptaipip install ptaigit clone https://github.com/0xSteph/pentest-aiTools (51)
authenticated_scanRun a deterministic authenticated web scan (no LLM required).| Parameter | Type | Description |
|---|---|---|
| auth_profile | string | |
| bearer_token | string | |
| engagement_id | string | |
| login_url | string | |
| max_pages | integer | |
| password | string | |
| password_field | string | |
| success_marker | string | |
| success_status | integer | |
| target * | string | |
| timeout_seconds | number | |
| username | string | |
| username_field | string |
browser_inspectInspect a URL with the headless browser.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| url * | string |
builtin_scanRun built-in security scans without requiring any external tools.| Parameter | Type | Description |
|---|---|---|
| scan_type | string | |
| target * | string |
close_engagementClose an engagement and mark it as completed.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
discover_attack_chainsDiscover attack chains from existing findings.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
ensure_tools_installedAudit which of the given tools are installed; optionally install the missing ones.| Parameter | Type | Description |
|---|---|---|
| auto_install | boolean | |
| tools * | array |
generate_detection_rulesGenerate detection rules (Sigma, SPL, KQL) for all discovered attacks.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
generate_reportGenerate a professional pentest report (asynchronous).| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string | |
| format | string | |
| include_detections | boolean | |
| include_pocs | boolean |
get_attack_chainsGet discovered attack chains for an engagement.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
get_campaign_summaryGet aggregated summary across all engagements in a campaign.| Parameter | Type | Description |
|---|---|---|
| campaign_id * | string |
get_configGet current pentest-ai configuration (secrets masked).get_engagement_statusGet the current status of a pentest engagement.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
get_engagement_summaryGet a summary of an engagement including finding counts, chains, and rules.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
get_evidenceRetrieve evidence artifacts for an engagement or specific finding.| Parameter | Type | Description |
|---|---|---|
| as_curl | boolean | for http_request artifacts, parse the captured exchange and emit a copy-pasteable curl one-liner in `curl`. |
| engagement_id * | string | |
| finding_id | string | |
| include_content | boolean | read each artifact's file contents into `content`. |
get_findingsGet findings from current or specific engagement.| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| severity | string | |
| since | string | |
| status | string | |
| url | string |
healthLiveness probe for plugin / dashboard consumers.http_requestSend an arbitrary HTTP request against the engagement's target.| Parameter | Type | Description |
|---|---|---|
| allow_destructive | boolean | |
| auth_profile | string | |
| body | string | |
| engagement_id * | string | |
| headers | object | |
| json_body | object | |
| method * | string | |
| url * | string |
kill_processTerminate a running tool subprocess by PID.| Parameter | Type | Description |
|---|---|---|
| grace_seconds | number | |
| pid * | integer |
list_engagementsList all pentest engagements, optionally filtered by status.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| status_filter | string |
list_pluginsList installed YAML plugins from ~/.pentest-ai/plugins/.list_probesList every registered web probe with its metadata.| Parameter | Type | Description |
|---|---|---|
| bug_class | string | |
| requires_auth_only | boolean |
list_processesList running tool subprocesses tracked by the engine.list_toolsList all available security tools, optionally filtered by category.| Parameter | Type | Description |
|---|---|---|
| category | string |
plan_toolsPredict which security tools will likely be needed for an engagement.| Parameter | Type | Description |
|---|---|---|
| intensity | string | |
| scope | string | |
| target | string |
poll_oobPoll the OOB collaborator server for callbacks raised by recent| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string | engagement to poll for |
| interval | integer | seconds between polls (server default = 5) |
| timeout | integer | total seconds to wait (capped at 300 to prevent runaway) |
prove_attack_chainRe-prove a discovered attack chain end to end and emit one replayable,| Parameter | Type | Description |
|---|---|---|
| chain_id * | string | |
| intensity | string |
query_complianceQuery compliance mapping for an engagement's findings.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string | |
| framework | string |
resume_engagementResume an interrupted engagement from its last checkpoint.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string |
run_probeRun a single registered probe against ``target``. AUTHORIZED TARGETS ONLY.| Parameter | Type | Description |
|---|---|---|
| auth_profile | string | |
| candidate_endpoints | array | |
| engagement_id | string | |
| js_urls | array | |
| probe_name * | string | |
| target * | string |
run_reconStart a reconnaissance scan against a target.| Parameter | Type | Description |
|---|---|---|
| depth | string | |
| target * | string |
run_toolRun a specific security tool against a target.| Parameter | Type | Description |
|---|---|---|
| args | object | |
| target * | string | |
| tool_name * | string |
scan_dns_builtinPerform DNS enumeration (built-in).| Parameter | Type | Description |
|---|---|---|
| target * | string |
scan_headers_builtinAnalyze HTTP security headers (built-in).| Parameter | Type | Description |
|---|---|---|
| target * | string |
scan_paths_builtinScan for common sensitive paths (built-in).| Parameter | Type | Description |
|---|---|---|
| target * | string |
scan_ports_builtinScan common ports on a target (built-in, no nmap required).| Parameter | Type | Description |
|---|---|---|
| target * | string |
scan_secrets_builtinScan HTTP responses for leaked secrets and credentials (built-in).| Parameter | Type | Description |
|---|---|---|
| target * | string |
scan_ssl_builtinCheck SSL/TLS configuration (built-in).| Parameter | Type | Description |
|---|---|---|
| port | integer | |
| target * | string |
select_agentPick the right specialist agent for a target + optional intent hint.| Parameter | Type | Description |
|---|---|---|
| intent | string | |
| target * | string |
set_intensityChange scan intensity (stealth, normal, aggressive) mid-engagement.| Parameter | Type | Description |
|---|---|---|
| engagement_id * | string | |
| intensity * | string |
start_campaignStart a multi-target campaign. Creates and launches one engagement per target.| Parameter | Type | Description |
|---|---|---|
| intensity | string | |
| scope | string | |
| targets * | array |
test_active_directoryRun Active Directory security assessment.| Parameter | Type | Description |
|---|---|---|
| auth_profile | string | |
| credentials | object | |
| domain * | string | |
| target_ip * | string |
test_api_securityRun API security testing (REST + GraphQL) following OWASP API Top 10.| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| spec_url | string | |
| target * | string |
test_cloudRun cloud security assessment.| Parameter | Type | Description |
|---|---|---|
| auth_profile | string | |
| credentials | object | |
| provider * | string | |
| target * | string |
test_credentialsRun authentication testing (default creds, password spray, MFA bypass).| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| target * | string | |
| userlist | string | |
| wordlist | string |
test_mobileRun mobile app security testing (Android or iOS).| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| platform | string | |
| target * | string |
test_privescRun privilege escalation enumeration on a compromised host.| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| platform | string | |
| target * | string |
test_social_engineeringRun a social engineering assessment (phishing simulation, OSINT, DMARC audit).| Parameter | Type | Description |
|---|---|---|
| campaign_type | string | |
| engagement_id | string | |
| target * | string | |
| targets_list | array |
test_vulnerabilitiesRun vulnerability scanning (Nuclei + nikto; nuclei CVE templates are the primary known-CVE path).| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| target * | string | |
| templates | string |
test_web_appRun a full deterministic web application scan against ``target``.| Parameter | Type | Description |
|---|---|---|
| auth_credentials | object | |
| auth_profile | string | |
| focus_areas | array | Restrict to a subset (``sqli``, ``xss``, ``ssrf``, ``idor``, ``auth``, ``api``, ``all``). Defaults to ``["all"]``. |
| intensity | string | ``stealth``, ``safe``, ``normal``, or ``aggressive``. Catch-rate CI and Juice Shop use ``aggressive`` so the ScanProfile rps cap does not turn a 4-minute sweep into a timeout. |
| target * | string |
test_wirelessRun wireless security assessment (WiFi + Bluetooth). Returns| Parameter | Type | Description |
|---|---|---|
| engagement_id | string | |
| interface | string | |
| target * | string |
validate_findingGenerate a safe, non-destructive proof-of-concept for one finding.| Parameter | Type | Description |
|---|---|---|
| finding_id * | string |
Security checks
Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 240 source files and found 2 calls to eval or shell execution, in engine/oob/payloads.py:158 and engine/probes/payloads/library.py:165. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and HTTP with SSEmcp_server/server.py:2116, mcp_server/server.py:2121
- Starts other programs
- 13 callscli/credential_resolvers/op.py:39, cli/mcp_setup.py:108, cli/menu.py:391
- Outbound network calls
- 93 callsagents/llm_redteam/adapter.py:37, agents/llm_redteam/adapter.py:41, agents/llm_redteam/agent.py:68
- Writes or deletes files
- 39 callsmcp_server/auth_local.py:41, mcp_server/server.py:1969, agents/browser/browser_agent.py:117
- Lockfile
- uv.lock
Pattern matches on the source text of 240 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.7K words, fetched 5 days ago. The original in the repository is authoritative.
Read full README