DEV Community

Shambhavi Sharma
Shambhavi Sharma

Posted on

Consensus-guard

ConsensusGuard: Real-Time Multimodal Biometric & Deepfake Verification for High-Stakes Video Calls

As remote work and virtual boardrooms become standard, live video calls are routinely used to authorize high-stakes actions such as wire transfers, vendor bank updates, mergers, and privileged credential resets. However, modern generative AI has made real-time voice cloning and face-swap deepfakes accessible enough to deceive human participants—most notably demonstrated in multi-million-dollar corporate impersonation scams. Single-factor security checks are no longer adequate: a synthesized voice can bypass audio-only verification, while a screen-replay attack or deepfake avatar can fool weak visual checks.

ConsensusGuard addresses this vulnerability by acting as a real-time, consent-first security sidecar for live video conferencing platforms like Google Meet. Built as a Manifest V3 Chrome Extension paired with a Python FastAPI backend, ConsensusGuard enforces a strict 2/2 Quorum policy—requiring both biometric voice identity and live visual authenticity to pass simultaneously before an executive session is approved.

How It Works
The system separates capture, orchestration, and forensic inference across three lightweight layers so live WebRTC calls suffer zero frame drops or audio lag:

Consent-First Client Capture (Chrome Extension MV3):
Privacy is built into the workflow. Nothing is recorded in the background; media capture starts only when a participant explicitly selects an executive role (CFO, COO, VP, or HOL) and clicks Start Scan. Using Chrome’s tabCapture API and an offscreen worker (offscreen.js), the extension records rolling audio segments and periodic video frames, displaying live status indicators (Loading..., Match, Authentic, and APPROVED (2/2)) inside the popup UI.

Executive Voice Identity & Deepfake Detection (/api/verify/audio):
Selecting a role such as CFO does not grant implicit trust—it instructs the FastAPI backend which enrolled executive speaker profile to verify against. Audio segments are validated and checked for both biometric speaker similarity and synthetic voice artifacts, ensuring the speaker’s voice matches the registered executive and originates from a live human rather than a text-to-speech clone.

Lightweight Video Forensics (/api/verify/video):
Instead of requiring heavy cloud GPUs on every client machine, video_service.py runs fast CPU-friendly forensics using OpenCV and NumPy. It transforms captured frames into the frequency domain via a 2D Fast Fourier Transform (2D-FFT) to detect generative upsampling grids and moiré screen-replay patterns, while isolating facial skin regions in YCrCb/HSV color space to evaluate texture consistency and inter-frame motion dynamics.

2/2 Quorum Enforcement & Audit Trail:
If both voice identity and video authenticity pass, Quorum resolves to APPROVED (2/2). If either signal fails or becomes inconclusive, Quorum halts at ON_HOLD (1/2) or BLOCKED. All raw audio and video buffers are processed ephemerally in memory and discarded immediately after scoring, while cryptographic request IDs, timestamps, scores, and Quorum outcomes are logged to a downloadable Compliance Audit Report—providing enterprises with verifiable protection against real-time deepfake fraud.

Top comments (0)