06. Security and Production Operations
Cryptographic Architecture, KMS & Threat Model
How FurlPay defends money-moving paths: explicit threat boundaries, Cloud KMS transactionGuard signing checks, OAuth 2.1 + DPoP proof-of-possession, WebAuthn origin pinning, fail-closed storage controls, and clear shared responsibility.
Software controls vs. formal certifications
This page documents cryptographic and architectural controls enforced in code. Technical controls alone do not constitute third-party SOC 2 certification, PCI DSS attestation, or regulatory licensing; independent legal and compliance sign-off is required per jurisdiction.
Threat model & control responsibility matrix
| Control | Threat Mitigated | Enforcement Point | On Failure / Misconfig | Responsibility Split |
|---|---|---|---|---|
| Environment Key Guard | Accidentally running tests with production credentials | requireSandboxAuth | Immediate HTTP 403 wrong_environment before DB lookup | FurlPay enforces prefix isolation; customer isolates test vs prod env vars |
Cloud KMS transactionGuard | Arbitrary ETH value drain or unauthorized contract call | kmsAccount.ts + packages/transaction-guard | Refuses signature before KMS RPC; production halts with 503 settlement_disarmed | FurlPay enforces calldata/chain whitelist; operator provisions KMS keys |
| OAuth 2.1 + PKCE + DPoP | Bearer token exfiltration or replay from another host | /api/mcp + dpop.ts | Rejects missing thumbprint/replayed jti; write tools require HITL URL | FurlPay verifies DPoP proof & scopes; host protects private DPoP key |
AP2 + x402-guard | Agent prompt injection, replay race, or budget overdraft | @furlpay/x402-guard F1–F5 | HTTP 403/429; nonces stay locked cleanly after timeouts | User sets signed mandate caps; FurlPay enforces caps server-side |
| Raw-Byte HMAC-SHA256 / SHA-512 | Webhook spoofing or replay attacks | X-FurlPay-Signature | Constant-time verify fails; timestamp outside +/-300s rejected (SHA-256 on live merchant/partner webhooks; SHA-512 on sandbox tests) | FurlPay signs raw bytes; subscriber verifies BEFORE JSON re-serialization |
| Fail-Closed Controls & Rate Limits | Spending during Redis/KV outage or brute force | ops/controls + FAIL_CLOSED_BUCKETS | Writes return 503; read discovery falls back to Postgres mirror | Operator monitors /status and triggers emergency FURLPAY_MONEY_KILL_SWITCH |
Proof of Reserves, step-up approvals & disclosure
WebAuthn passkeys authenticate users and approvers using configured relying-party origins—never deriving wallet keys. Circle user-controlled MPC wallets delegate PIN/biometric shares through Circle W3S SDK challenges. Proof of Reserves snapshots publish under /por, and vulnerabilities should be reported via our Responsible Disclosure Policy.
| Capability | Status | Evidence |
|---|---|---|
| HS256 sessions, DPoP replay cache & WebAuthn step-up | VERIFIED_PRODUCTION | Enforced across authenticated routes via requireUser, dpop.ts, and claimStepUpWithMethod. |
| Cloud KMS signer + transactionGuard enforcement | IMPLEMENTED_NOT_DEPLOYED | In development: signing paths fail closed when KMS credentials are absent. |
| Confidential computing enclaves & formal external audit reports | PLANNED | Internal ratchets run in CI; external attestation reports are pending publication. |
Security endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/check | Verify system security and storage readiness. |
| POST | /api/security/mfa | Manage WebAuthn/TOTP MFA enrollment and step-up posture. |
| POST | /api/security/lock | Emergency account lock endpoint requiring verified authorization. |
| POST | /api/attestation/challenge | Request client integrity / biometric attestation challenge. |
Did this page help?
Edit this page on GitHub