What does a deepfake detection API architecture look like?
Most failed deployments put a detector in the middle of a flow and treat its score as the decision. A sturdier design splits the work into stages, each with an owner, an input and output contract, and defined behaviour when it fails. The table describes a reference design for onboarding, account recovery and claims workflows.
The stages can run in one service or many. What matters is that each boundary is explicit, so a change to a threshold does not require a model change, and a model upgrade does not silently alter business outcomes.
| Stage | Responsibility | Output contract | If it fails |
|---|---|---|---|
| Trusted capture | Collect media from the device camera or microphone through an SDK with integrity checks | Media plus capture metadata and integrity indicators | Reject or recapture; never fall back to an unprotected upload |
| Intake and validation | Check format, size, duration and quality; assign a request ID and media hash | Accepted job or a quality rejection with a reason code | Return a reason to the client; do not send to analysis |
| Detection analysis | Run deepfake and manipulation models | Unified score, per-signal scores, model version | Job marked failed or timed out, distinct from any score |
| Evidence store | Persist results, versions and hashes under retention rules | Immutable evidence record linked to the request ID | Hold the decision until evidence is written |
| Policy engine | Combine detection with other risk signals and apply versioned rules | Action: approve, step up, review or decline, with policy version | Default to the workflow's documented fallback |
| Review and audit | Route uncertain or high-impact cases to people; record outcomes | Reviewer decision, reason and time | Escalate cases that exceed queue time limits |

How do detection results enter fraud-decision workflows?
Detection output is one input to a risk decision. In a typical onboarding flow, the policy engine receives the unified deepfake score and per-signal scores, plus document checks, device reputation, velocity data and account history. It then maps the combination to an action. A clean selfie from a known device may pass straight through; a moderate face-manipulation score on a new device with a mismatched IP region may trigger a step-up; a high generative-model score on a high-value account goes to a reviewer.
Write the mapping as versioned rules or a model with its own release process, and store the policy version on every decision. When a regulator, auditor or customer asks why an application was declined, you can show the evidence, the rule that applied and who reviewed it. For US financial institutions, FinCEN's November 2024 alert on deepfake fraud asks for a specific key term in related suspicious activity reports, so the case record should link the detection evidence to any SAR reference.
Video and long audio usually run asynchronously. The client submits a job, the pipeline analyses it, and the result reaches the decision service through a signed webhook or a polling endpoint. Deliveries can repeat, so the decision service must process each result idempotently, keyed on the request ID.
Why should job state be separate from the detection result?
A common bug treats no result as a pass. If the analysis times out, the media was unreadable or the request expired, the pipeline has learned nothing about authenticity. Mixing those states into the score field, for example by returning zero, makes a failed analysis look like a confident genuine result.
Keep two fields. Job state records the lifecycle: received, processing, completed, failed, expired. Result meaning appears only when the job is completed and includes the score, the per-signal evidence, any quality warning and the model version. The policy engine should have explicit rules for every non-completed state, and monitoring should count them, because a rise in failures is often the first sign of an attack that targets the pipeline rather than the model.
How should the architecture protect capture from injection attacks?
An excellent detector still loses if the attacker controls what it receives. Injection attacks replace the camera feed with synthetic video through virtual cameras, emulators or hooked apps, so the media never passed through a real sensor. NIST SP 800-63A-4, the 2025 revision of the US identity proofing guidelines, requires credential service providers to implement injection protection and modified-media controls in remote attended proofing at IAL1 and IAL2, and CEN/TS 18099:2024 sets out how to detect biometric data injection attacks and test those defences.
In practice, capture through a mobile SDK that checks device and app integrity gives the pipeline more to work with than an unconstrained browser upload. Server-side analysis should still assume some injected media gets through and look for manipulation and generative-model traces in every submission.
How should the pipeline be tested before launch?
Test the pipeline as a state machine, not only the model as a classifier. Every stage should be exercised with inputs that make it fail, and every failure should produce the documented action rather than a silent pass.
- Submit unreadable, oversized and very short media and confirm intake rejects them with a reason code.
- Force analysis timeouts and confirm the decision service applies the fallback and records it.
- Deliver the same webhook twice and out of order and confirm one decision results.
- Change a threshold in staging and confirm decisions carry the new policy version.
- Replay known fakes, including injected streams, through the full flow and check the final action, not only the score.
Where NeuroVerify sits in this architecture
NeuroVerify is Neural Defend's analysis stage packaged as one API call. It accepts a face image, video or audio clip and runs six signals in a single request: Visual Safety Screening, Live Presence Verification, Face Manipulation Detection, AI Generative Model Analysis, AI Pixel-Level Manipulation and AI Content Compliance. It returns one unified risk score with signal-level evidence, and your policy decides the action. Eligible image requests complete in under 200 ms p95 under defined test conditions.
Integration follows the capture and backend split above. Mobile SDKs for Android (Kotlin), iOS (Swift) and Flutter handle capture; backend SDKs for Python, TypeScript and Node.js, Go and Java, a REST API and an MCP server for AI agents handle analysis calls. Neural Defend describes integration as two lines of code and going live in under 24 hours. NeuroVerify does not analyse ID documents, so document checks stay with your existing provider. The same models can run as a managed cloud API, in a private cloud or VPC, in a secure container, on-premises or air-gapped.
On the public VendorBench-100 benchmark, which tests 36 systems on 100 adversarial still images, Neural Defend ranked first with an MCC of 0.876 against 0.646 for the next vendor. That benchmark covers still images only; test video, audio and injection resistance on your own traffic.
Evidence boundary
Limitations
- The reference stages are a design pattern; regulated institutions must map them to their own model risk, data protection and outsourcing rules.
- Capture-side integrity checks reduce but do not eliminate injection attacks, especially on rooted or emulated devices.
- VendorBench-100 measures still-image detection only; video, audio and injection resistance need separate testing.
- Latency figures depend on media size, network path and deployment model.
Source record
Sources and references
- National Institute of Standards and TechnologyNIST SP 800-63A-4: Identity Assurance Level RequirementsVerified October 19, 2026.
- Estonian Centre for Standardisation (EVS)CEN/TS 18099:2024 Biometric data injection attack detectionVerified October 19, 2026.
- National Institute of Standards and TechnologyReducing Risks Posed by Synthetic Content: An Overview of Technical Approaches to Digital Content TransparencyVerified August 7, 2026.
- Financial Crimes Enforcement NetworkFIN-2024-Alert004: Fraud Schemes Involving Deepfake Media Targeting Financial InstitutionsPublished November 13, 2024. Verified August 7, 2026.
- arXivVendorBench-100: A Unified Cross-Paradigm Benchmark for Deepfake Image DetectionPublished July 29, 2026. Verified October 19, 2026.







