Agent Verify

Demo report — synthetic data

One synthetic Finance Operations Agent, shown before, part-way through, and after fixing. Each report is real output from Agent Verify's scan engine run on the code shown, not a real customer scan. Pick a version to see its findings and score.

Scan your own agent

A live API key in the code, every tool allowed, user text pasted into the prompt and a SQL query, and money moved with no checks.

Show the code that was scanned
const mcpServers = {
  "accounting": { command: "npx", args: ["-y", "@modelcontextprotocol/server-stripe"] }
}

const agent = {
  name: 'FinanceOpsAgent',
  tools: ['*'],
  permissions: ['payments:transfer', 'email:send', 'invoices:admin'],
  systemPrompt: 'Follow the finance team's instructions to reconcile invoices and process payments: ' + userInput,
  accountingApiKey: 'acct_prod_7Hq2Lx9Vb4Nc8Mz1Pw6Rt3Ys5',
}

async function lookupInvoice(invoiceId) {
  return db.query('SELECT * FROM invoices WHERE id = ' + invoiceId)
}

export async function run(request) {
  const invoice = await lookupInvoice(request.invoiceId)
  const result = await stripe.transfers.create({ amount: invoice.amount, destination: request.destinationAccount })
  await sendMail({ to: 'finance@example.com', subject: 'Payment processed', body: 'Transferred ' + invoice.amount })
  return result
}

What to do next

Fix the highest-severity findings first, then re-scan to confirm. Pro shows the corrected code and lets you re-check changes instantly.

Upgrade to Pro

Highest risks

The 5 most important things to understand right now

  1. 1Agent can move money with no amount limit
  2. 2Hardcoded credentials detected
  3. 3Missing cryptographic signature
  4. 4Missing nonce validation
  5. 5SQL query built from unescaped input
What can wait (1)
  • • No execution rate limiting

Fixing these will most improve the score. Re-scan after making changes to confirm — a future scan is not guaranteed to pass, since verification depends on the actual evidence present at scan time.

Capabilities

What this agent can do

Derived only from concrete evidence in the submitted content — this is what an attacker could use, not a judgment about whether it's appropriate.

Read from a database

Detected
SELECT * FROM

Send email

Detected
sendMail

Initiate a financial transfer

Detected
stripe.transfers

MCP exposure

What this agent can access through MCP

Agent → MCP server → tool → potential action. Only servers/tools with concrete evidence in the submitted content are listed — an unidentified capability is shown as Unknown, never guessed.

payments

critical
  • • Create charges, refunds, or transfers
server-stripe

accounting → accounting

medium
  • • Unknown — server configured but its tool capabilities could not be determined from static content
mcpServers: "accounting"

Potential blast radius

Dangerous capability combinations

Individual permissions often matter less than combinations. These are not claims that an exploit exists — only that this combination, if the agent is compromised or misused, could allow the described impact.

Payment capability without visible destination or approval constraints

If compromised or misused, this agent could initiate a financial transfer without a visible destination allowlist or human approval step — the highest-impact category of agent risk.

Security controls detected

What this agent already does right

  • Memory is not configured to persist indefinitely
  • Delegation/handoff appears scope-constrained

What Agent Verify could not determine

Static analysis limits

  • Runtime-only behavior — logic that only executes under conditions not present in the submitted content.
  • Permissions or credentials granted dynamically at deploy time (IAM roles, injected secrets, runtime config).
  • Remote policy or authorization configuration enforced outside this codebase (e.g. an external policy engine).
  • Production network ACLs, firewall rules, or VPC/service-mesh configuration.
  • External identity provider policy (SSO scopes, OAuth consent grants) not visible in this content.
  • Runtime secrets that are not present in the submitted source (e.g. injected via a secret manager).
  • The exact tool set and permissions of connected MCP server(s) — only the integration itself was detected.

Category Scores

Protocol Compliance10/50
Security Controls0/50

Security categories

Coverage across 11 security categories

Identity
Strong
Permissions
Strong
Tools
Needs attention (1)
MCP
Needs attention (1)
Execution Authorization
Critical (4)
Secrets
Critical (2)
Runtime
Critical (3)
Network
Strong
Dependencies
Needs attention (1)
Auditability
Needs attention (1)
Human Oversight
Critical (3)

Threat category breakdown

Which agent risks are relevant?

11 relevant categories

Prompt Injection

Untrusted text may influence system instructions or tool decisions.

Missing evidence

Scanner looks for: Prompt assembly, system prompts, user input, and missing sanitization or boundaries.

Why it matters: A crafted instruction can redirect the agent from its intended task into unsafe execution.

How to fix: Separate system and user content, sanitize inputs, constrain tools, and verify execution requests before action.

A2SPA impact: A2SPA helps by requiring signed execution intent before a prompt-influenced tool call can run.

Tool Misuse

The agent can call tools that change data, money, infrastructure, or external systems.

Missing evidence

Scanner looks for: Tool lists, function calls, invoke/execute paths, broad permissions, or wildcard tools.

Why it matters: Tool calls convert model output into real business actions.

How to fix: Use allowlisted tools, per-tool scopes, approval gates for sensitive actions, and audit logging.

A2SPA impact: A2SPA is directly relevant because it authorizes the intended tool action before execution.

Privilege Compromise

The agent may hold more authority than the task requires.

Missing evidence

Scanner looks for: Admin/all/wildcard permissions, broad scopes, privileged credentials, or missing least privilege.

Why it matters: A compromised agent can escalate from one task into account-wide or infrastructure-wide impact.

How to fix: Apply least privilege, split duties, rotate secrets, and bind tools to narrow scopes.

A2SPA impact: A2SPA can bind signed authorization to an explicit scope and action.

Resource Overload

The agent may consume unbounded tokens, API calls, queue jobs, or infrastructure resources.

Missing evidence

Scanner looks for: Missing rate limits, timeouts, token budgets, retry caps, or max call counts.

Why it matters: Runaway agents can create outages, cost spikes, and denial-of-service conditions.

How to fix: Add rate limits, token budgets, timeouts, retry caps, and circuit breakers.

A2SPA impact: A2SPA can make each execution auditable, but resource controls still need explicit limits.

Intent Breaking

The agent may drift from approved user or business intent.

Detected

Scanner looks for: Goal instructions, prompt override language, jailbreak patterns, or missing intent verification.

Why it matters: An agent can complete the wrong task while appearing successful.

How to fix: Validate requested action intent, constrain allowed goals, and require approval for sensitive deviations.

A2SPA impact: A2SPA signs intended execution payloads so execution can be checked against approved intent.

Identity Spoofing

The execution boundary may not prove which agent or caller requested an action.

Detected

Scanner looks for: Agent identity, caller fields, service accounts, or missing signed identity checks.

Why it matters: Spoofed identity lets rogue callers inherit trusted agent authority.

How to fix: Verify agent identity, bind identity to the signed payload, and reject unknown callers.

A2SPA impact: A2SPA helps by binding action, identity, nonce, and timestamp into signed authorization evidence.

Command Injection

Untrusted input may reach a shell or command execution path.

Possible

Scanner looks for: exec/spawn/subprocess/os.system, shell=true, or command strings built from request input.

Why it matters: Command injection can become remote code execution and credential theft.

How to fix: Avoid shell execution, validate arguments, use allowlisted commands, and pass args as arrays.

A2SPA impact: A2SPA can authorize the intended operation, but command safety must be enforced at the tool boundary.

Supply Chain

Dependencies, remote scripts, or plugin sources may change without review.

Possible

Scanner looks for: Unpinned versions, remote install scripts, dynamic imports, or plugin dependencies.

Why it matters: A dependency compromise can silently alter agent behavior or steal secrets.

How to fix: Pin versions, verify integrity, review plugins, and use lockfiles or signed artifacts.

A2SPA impact: A2SPA limits unauthorized execution impact, but dependency integrity still needs supply-chain controls.

Replay Attacks

A previously valid execution request may be reused.

Missing evidence

Scanner looks for: Nonce, idempotency key, timestamp, expiry validation, or missing replay controls.

Why it matters: Captured requests can trigger repeated payments, deployments, or data changes.

How to fix: Require unique nonces, mark them used, enforce timestamps, and reject expired requests.

A2SPA impact: Nonce and timestamp validation are core A2SPA readiness evidence.

Version Drift

Runtime model or agent versions may change without controlled review.

Possible

Scanner looks for: Model names, versions, unpinned model config, or missing version metadata.

Why it matters: Model drift can change decisions, prompts, and tool usage behavior between releases.

How to fix: Pin model/version config, record release metadata, and re-scan after model changes.

A2SPA impact: A2SPA receipts can include model/version metadata for accountability.

Auditability

Execution may not leave enough evidence to investigate or prove what happened.

Missing evidence

Scanner looks for: Audit logs, receipts, request IDs, traces, or missing structured execution records.

Why it matters: Without non-repudiation, incidents become difficult to reconstruct and defend.

How to fix: Write signed/auditable execution receipts with identity, action, timestamp, and result.

A2SPA impact: A2SPA audit receipts support accountability at execution boundaries.

Score breakdown

Why this report scored 0/100

Top blocker: Agent can move money with no amount limit

Execution readiness

0/100

Can this agent prove a request is genuinely authorized before it acts?

A2SPA readiness

20/100

Does the code actually sign and check execution requests, reject replayed or expired ones, and block action when that check fails?

Remediation progress

0/100

How much risk is left after everything this scan found?

What reduced the score

  • - 5 critical, 6 high, and 4 medium findings reduced the score.
  • - 4 execution authorization findings block verification.
  • - Confidence is 100/100 based on file length, language detection, and visible agent behavior.

What improves the score

  • - Fix agent can move money with no amount limit to improve score and reduce critical risk.
  • - Fix hardcoded credentials detected to improve score and reduce critical risk.
  • - Fix missing cryptographic signature to improve score and reduce critical risk.
  • - Fix missing nonce validation to improve score and reduce critical risk.
  • - Fix sql query built from unescaped input to improve score and reduce critical risk.
How is this score calculated?Show breakdown
Starting score100
5 critical findings (−20 each)−100
6 high findings (−10 each)−60
4 medium findings (−5 each)−20
Final score0

Severity weighting: critical −20, high −10, medium −5 per finding (low-severity findings are shown but don't subtract points). Wildcard/broad tool or permission access caps the score at 65 regardless of other findings, because unrestricted access is treated as a ceiling on trust, not just one more deduction. This is a heuristic, evidence-based score — not a formal proof of security.

Prioritized fix plan

What to fix first

1. Agent can move money with no amount limit

Fix first

Improves runtime safety and reduces operational risk.

2. Hardcoded credentials detected

Fix first

Improves runtime safety and reduces operational risk.

3. Missing cryptographic signature

Fix first

Blocks execution-readiness because the agent does not show complete authorization evidence.

4. Missing nonce validation

Fix first

Blocks execution-readiness because the agent does not show complete authorization evidence.

5. SQL query built from unescaped input

Fix first

Improves runtime safety and reduces operational risk.

6. Dangerous MCP tool exposed: payments

Fix next

Improves runtime safety and reduces operational risk.

7. Data exfiltration path: private data + untrusted input + outbound channel

Fix next

Improves runtime safety and reduces operational risk.

Implement A2SPA

NOT DETECTED

Add authorization at the execution boundary

Status reflects only static evidence in the submitted content — mentioning "A2SPA" by name is not treated as evidence; only an actual signature/verification code pattern is.

A2SPA signs the intended execution payload before action and verifies that signed payload at the server-side execution boundary. Add signing on the trusted caller side, verify before tools or payments run, reject reused nonces and expired timestamps, and fail closed when authorization is missing or invalid.

Place your private key in your deployment environment or secret manager, then reference it here with environment variables such as process.env.A2SPA_PRIVATE_KEY and process.env.A2SPA_PUBLIC_KEY.

Never paste a production private key into Agent Verify, source code, or a public repository. Store it in an environment variable or a secret manager.

Read A2SPA docs

Evidence Extracts

critical

Hardcoded credentials detected

ApiKey: "acct************************" (redacted — 35 chars)
high

Unrestricted tool access

tools: ['*']
high

Dangerous MCP tool exposed: payments

server-stripe
high

Prompt injection surface detected

systemPrompt:
critical

SQL query built from unescaped input

query('SELECT * FROM invoices WHERE id = ' +
medium

MCP server installed without a pinned version

npx", args: ["-y", "@modelcontextprotocol/server-stripe"
high

Data exfiltration path: private data + untrusted input + outbound channel

sendMail
critical

Agent can move money with no amount limit

transfers.create
medium

Agent sends emails or messages without review

sendMail

Section 02

Findings (16)

Pro has the fix for all 16 of these findings.

Step-by-step guidance and copy-ready corrected code for each one, A2SPA guidance, a PDF report for clients and auditors, and 100 scans a month to re-check every change.

See what Pro unlocks — $19.99/mo

Compliance Mapping

Findings mapped to industry security frameworks

OWASP LLM Top 10

LLM02 - Insecure Output HandlingLLM09 - OverrelianceLLM03 - Training Data PoisoningLLM08 - Excessive AgencyLLM06 - Sensitive Information DisclosureLLM07 - Insecure Plugin DesignLLM01 - Prompt InjectionLLM04 - Model Denial of ServiceLLM05 - Supply Chain Vulnerabilities

NIST AI RMF

GV-1.1 - Policies and ProceduresMS-2.5 - AI Risk ManagementGV-1.1MS-2.3MG-2.2 - Deployment ControlsGV-4.1GV-5.1 - Organizational PracticesMG-3.1 - Post-Deployment MonitoringMS-2.5MG-2.2MG-3.1MS-2.10

SOC 2

CC6.1 - Logical Access ControlsCC6.6 - AuthenticationCC7.2 - MonitoringA1.1 - AvailabilityCC6.2 - Credential ManagementCC6.3 - Access RestrictionsCC6.1CC8.1 - Change ManagementCC6.3CC7.2 - System MonitoringCC4.1 - Monitoring ControlsCC6.6CC7.2CC7.1CC8.1CC6.7P4.1

Agent Fixer

Fixes are ready for 16 findings

  • • Missing cryptographic signature
  • • Missing nonce validation
  • • Missing timestamp enforcement
  • • Missing fail-closed enforcement
  • • Hardcoded credentials detected
  • • Unrestricted tool access
  • • Missing human-in-the-loop gates
  • • Dangerous MCP tool exposed: payments

The corrected code for this finding is ready

Pro shows exactly how to fix it, with copy-ready code.

Unlock fixes with Pro — $19.99/mo
≡

Runtime Bill of Materials

Complete inventory of this agent's execution identity

LanguageJavaScript
FrameworkMCP configuration
PlatformDemo
Agent NameFinanceOpsAgent
Tool AccessUnrestricted
CredentialsDetected
MemoryUnknown
Audit LoggingAbsent
Human GatesAbsent
Rate LimitingAbsent
Prompt InjectionDetected
DelegationScoped

Share Report

Share this report with your team or include it in your security documentation.