Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man prompt-injection-surface

/prompt-injection-surface(1)

agentutility / prooflayer / prompt-injection-surface
PRICE / CALL
$0.03
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
prooflayer
CATEGORY
ai
STATUS
live
NAME
prompt-injection-surface ai prompt injection surface scanner / llm call-site audit / unsanitized user input in prompts detector / system-message mixing flag / unb…
SYNOPSIS
POST https://x402.org/v1/prompt-injection-surface
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

AI prompt injection surface scanner / LLM call-site audit / unsanitized user input in prompts detector / system-message mixing flag / unbounded completion detector / AI app safety scan / pre-deploy AI risk gate. Walks .ts/.tsx/.js/.jsx/.py/.mjs/.cjs source files, locates LLM SDK call sites (anthropic, openai, @ai-sdk/*, google generative), and flags user input flowing into prompts without sanitization, calls without max_tokens caps, system/user prompt mixing, and LLM output used unvalidated in fetch/exec/eval. Returns 0-100 score, per-finding kind/severity/path/line/evidence/recommendation, and a Venice plain-English verdict. Dual input: {repo: 'owner/name'} (tree-walk, capped 500 files) or {files: [{path, content}, …]}.

OUTPUTresponse shape
fieldtypedescription
scorenumberOverall prompt-injection risk score from 0 to 100, with higher meaning more unsafe LLM call sites detected.
risk_levelstringBucketed verdict like low, medium, high, or critical derived from the score and severity mix.
findingsarrayArray of issues with kind, severity, file path, line number, code evidence, and a fix recommendation.
signalsobjectCounts of detected patterns: unsanitized user input, missing max_tokens, system/user mixing, unvalidated LLM output sinks.
summarystringVenice plain-English verdict explaining the top risks and what to fix before deploying the AI app.
metadataobjectScan metadata including files walked, LLM SDKs detected, repo or files-mode source, and scan duration.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/prompt-injection-surface \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# install once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the prompt-injection-surface tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
securityai-safetyprompt-injectionllmprooflayer
env
VENICE_API_KEY
methods
POST
cluster
prooflayer
price
$0.03 USDC per call
ADJACENTother endpoints in prooflayer
endpointdescriptionprice
ai-content-detectorAI content detector / GPT detector / ChatGPT plagiarism checker.$0.03
dep-risk-summaryrepo dependency risk audit / package.json + lockfile vetter / unpinned dep detector / transitive dep counter / requirements.txt audit / p…$0.03
github-repo-healthGitHub repo health score / open-source maintainability checker.$0.03
package-risk-npmnpm package risk score / supply-chain scanner / typosquat detector.$0.03
db-migration-riskDB migration risk audit / SQL migration safety check / DROP COLUMN detector / unsafe ALTER TABLE detector / Postgres CREATE INDEX CONCURR…$0.02
deploy-config-riskdeploy config audit / Dockerfile lint / vercel.json hardening / wrangler.toml review / docker-compose.yml safety / fly.toml secrets check…$0.02
secrets-exposure-checksecrets exposure scan / hardcoded API key detector / .env-committed-key audit / Next.js client env leak detector / pre-deploy secret gate.$0.02
pypi-package-riskPyPI package risk score / Python supply-chain scanner.$0.01
SEE ALSO
agentutility(7) · prooflayer(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org