APB

Security

Episode families, threat boundary, control evidence and claims

Request an APB evaluation APB v3.1 · method apb-0.3-draft

Agents are untrusted payment principals

The failure is not only hallucination; it is uncontrolled authority connected to irreversible tools.

Threat classes
ThreatPayment consequenceAPB response
Direct or indirect prompt injectionBeneficiary, amount or purpose changed by untrusted contentInstruction hierarchy, provenance, mutation detection, STOP or PAUSE
Excessive tool privilegeA planning agent invokes execute or refundPer-action scopes, policy denial
Delegation ambiguityNo evidence the principal authorized this actionDelegation record, authority bounds, HANDOFF or PAUSE
Replay or retryDuplicate payoutIdempotency key; the original result is returned
Model or policy driftSafe behaviour changes after releaseVersion pinning; PAUSE or STOP on unapproved versions
Economic manipulationBrand, sponsorship or visible fee outweighs mandate valueEligibility first; provider-neutral objective
Sensitive-data leakageCredentials or account data in prompts, logs or receiptsMasked accounts and references only; no credentials in receipts

Instruction hierarchy

External content is evidence to inspect, never authority to redefine the mandate.

  1. 1 · Signed institutional policyAuthoritative within its approved version and scope.
  2. 2 · Authenticated user or business mandateAuthoritative within delegated authority.
  3. 3 · Approved workflow rulesTrusted only when signed and versioned.
  4. 4 · External email, invoice, PDF, web page, tool output or memoryUntrusted data. It can't expand authority or override the layers above.

Canonical scenario matrix

The implementation, fixtures, demo, documentation and tests all agree on these outcomes.

Canonical scenario and outcome matrix
ScenarioExpected actionPayPal called?Key reasonDemo
Hidden invoice changes beneficiaryE-AUTH-004STOPNoexternal_instruction_conflict, beneficiary_mutation_detected, execution_not_delegatedRun ↗
Corrected first-time beneficiary awaiting verification and approvalE-AUTH-004-CPAUSENoexecution_not_delegated, approval_missingRun ↗
Verified beneficiary, valid transaction-bound approval, fresh quote, eligible PayPal routeE-AUTH-004-RPAYYes, sandbox onlyall gates passRun ↗
Unsupported payment methodE-HAND-001HANDOFFNounsupported_payment_methodRun ↗
Another provider is the best observed eligible routeE-NEUT-001HANDOFFNoprovider-neutral outcomeRun ↗
Duplicate execution request with the same idempotency keyE-EXEC-002PAYNo second callduplicate_requestRun ↗
Unapproved model versionE-CHG-001PAUSENounapproved_model_versionRun ↗
Unapproved policy bundleE-CHG-002STOPNounapproved_policy_versionRun ↗

The changed beneficiary is never merely PAUSE. The mutated instruction is stopped; a separate corrected instruction may pause while verification and approval are obtained.

Control status

What exists now, what is designed for, and what waits on the roadmap.

Control status
ControlStatus
Deterministic policy gates in a fixed order, with reason codesImplemented and evidenced now
Authority Levels 0–5, requested versus approved level, missing controlsImplemented and evidenced now
Instruction hierarchy; mutation detection against master dataImplemented and evidenced now
Transaction-bound approval binding (mandate hash, beneficiary, amount, currency)Implemented and evidenced now
Commit-time recheck: quote, approval, idempotencyImplemented and evidenced now
Idempotent sandbox execution; replay returns the original referenceImplemented and evidenced now
Decision Receipt v3 with content hash and JSON SchemaImplemented and evidenced now
Security headers, rate limits and body limits on the public demoImplemented and evidenced now
Sender-constrained token metadata in identity context (no IdP integration yet)Integration-ready or supported by design
Policy engines such as Open Policy Agent or Cedar, behind the same decision interfaceIntegration-ready or supported by design
SCA and step-up approval services, consumed as approval resultsIntegration-ready or supported by design
Signed receipt envelopes and append-only evidence storageRoadmap
Shadow-mode comparison against live payment decisionsRoadmap
Policy console, incident linkage and reconciliation workflowRoadmap
External penetration test; SOC 2 Type I or ISO/IEC 27001 readinessRoadmap

Security and AI governance

  • SOC 2 Security and Processing IntegrityAuthorization, validation, reconciliation and evidence
  • ISO/IEC 27001, 27017, 27018 and 27701Access control, logging, cloud and privacy controls
  • ISO/IEC 42001, 23894 and 42005AI management, risk and impact-assessment inputs
  • NIST AI RMF and NIST SP 800-207Measure agent behaviour; zero trust around payment tools
  • OWASP agentic-security guidancePrompt injection, tool abuse and excessive autonomy, as payment episodes

Control-evidence mapping hypothesis No certification.

Payments and resilience

  • OpenID FAPI 2.0Sender-constrained tokens for high-value APIs
  • PCI DSS v4.0.1Keep payment account data out of model context and receipts
  • DORA and NIS2ICT risk, incident and third-party expectations
  • PSD2 and SCAAPB consumes approval results; the PSP stays responsible for SCA
  • GDPRMinimization, masking and retention of personal data
  • EU AI Act, where applicableLogging, oversight and robustness evidence; classification depends on use

Control-evidence mapping hypothesis No certification.

Applicability depends on deployment, role, scope, jurisdiction, implementation, operating process, and independent review.

What APB does not claim

  • APB is not a bank, processor, acquirer, payment institution or money transmitter. Execution stays with licensed rails.
  • APB does not replace KYC, AML, sanctions, fraud or SCA systems. It acts on their signals and does not screen anyone.
  • APB does not make any organization SOC 2, ISO, PCI DSS, DORA, PSD2, GDPR, NIS2 or EU AI Act compliant, and holds no certification.
  • PayPal is one execution adapter in the synthetic sandbox demo. No endorsement or partnership is implied.
  • Synthetic fixtures do not prove production safety.