Skip to main content
VERIFICATION PIPELINE8-STAGE EVIDENTIARY FLOW

How TrustLayer verifies digital media

TrustLayer analyzes digital images and videos using multiple independent evidence signals. It provides a transparent, evidence-based assessment rather than a single black-box score.

PIPELINE ARCHITECTURE (END-TO-END FLOW)
01
UPLOAD
02
HASH
03
PROVENANCE
04
METADATA
05
AI ANALYSIS
06
FORENSICS
07
EVIDENCE AGGREGATION
08
TRUST REPORT

Each stage executes genuine programmatic checks or calls server-side AI models. If a test cannot run, it is marked Not available rather than simulated.

DETAILED TECHNICAL STAGES

What TrustLayer actually does at each verification stage

STAGE 01/UPLOAD

File Validation & Security Sandboxing

Media is uploaded and validated strictly as untrusted binary input. TrustLayer enforces MIME type verification, file extension validation, and maximum size limits (50 MB) to protect against container exploitation.

Technical Implementation Details:
  • MIME type and magic-number byte signature sniffing
  • Sanitization of filenames against path traversal sequences
  • Container dimension extraction for images and duration for videos
STAGE 02/HASH

Cryptographic SHA-256 Digest Generation

A cryptographic SHA-256 digest is generated from the complete uploaded binary buffer. This establishes an immutable content identifier to verify file integrity across reports.

Technical Implementation Details:
  • Cryptographic 256-bit SHA-256 hex digest
  • Serves purely as a unique content identifier, not an authenticity score
  • Full hash is displayed and copyable in the final Trust Report
STAGE 03/PROVENANCE

C2PA / Content Credentials Inspection

The binary container is scanned for C2PA Content Credentials and ISO/IEC 19566-5 JUMBF boxes. If present, claim generators, signing timestamps, and manifest assertions are extracted.

Technical Implementation Details:
  • JPEG APP11 (0xFFEB) JUMBF box & Content Credentials scanning
  • PNG c2pa / caPI chunks & MP4 ISO-BMFF uuid / jumb boxes
  • Explicit aggregation rule: Missing C2PA is neutral and NEVER treated as proof of fake
STAGE 04/METADATA

EXIF, XMP, IPTC & Software Signature Extraction

Extracts camera make, model, modification timestamps, orientation, color space, and software tags from native binary headers without relying on external cloud parsers.

Technical Implementation Details:
  • Native binary parsing of TIFF headers and IFD0/SubIFD tags
  • Detection of post-processing software (e.g. Adobe Photoshop, GIMP, Canva)
  • Truthful labeling: Missing camera information is marked as 'Unavailable' rather than fabricated
STAGE 05/AI ANALYSIS

Groq Multimodal Visual Analysis (qwen/qwen3.8-27b)

The media (or sampled representative video keyframes) is analyzed using Groq's multimodal AI model server-side. The model inspects observable visual evidence, separating observations from interpretations.

Technical Implementation Details:
  • Prompt Injection Defense: Visible text is treated as evidence, never instructions
  • Structured JSON schema with strict schema validation and retry fallback
  • Qualitative confidence ratings (Low / Moderate / High) instead of uncalibrated percentages
STAGE 06/FORENSICS

JPEG Quantization (DQT) & Container Integrity Audit

Performs genuine binary checks on compression tables and container boundaries to identify non-standard quantization curves and trailing payloads.

Technical Implementation Details:
  • JPEG DQT (0xFFDB) matrix extraction and IJG compression quality estimation
  • Container boundary audit: Scans for trailing bytes past End-of-Image (EOI 0xFFD9)
  • Accurate scope: Advanced models (PRNU sensor fingerprinting, GAN latent residuals) are explicitly marked unavailable
STAGE 07/EVIDENCE AGGREGATION

Deterministic Multi-Signal Synthesis

A deterministic rule-based layer combines all active signals (AI Detection, Provenance, Metadata, Forensics) into an objective assessment. The LLM does NOT decide the final verdict.

Technical Implementation Details:
  • Strict separation of positive, negative, missing, and inconclusive evidence
  • Generates qualitative verdict: Potentially Synthetic, Requires Review, No Strong Signal, or Insufficient Evidence
  • Generates the 'Why this assessment?' explainability trail for human review
STAGE 08/TRUST REPORT

Transparent, Calibrated Verification Report

Presents the completed assessment with all four independent evidence pillars, full file details, SHA-256 hash, and clear methodological limitations.

Technical Implementation Details:
  • Complete explainability trail answering exactly what evidence led to the assessment
  • Local and server-side report persistence allowing permanent retrieval via /report/[id]
  • Exportable formatted reports and shareable verification permalinks

Core TrustLayer Philosophy

“Multiple signals → evidence aggregation → transparent assessment. Never present an AI-generated prediction as an unquestionable fact.”

TrustLayer uses nuanced classifications such as Potentially Synthetic, Potentially Manipulated, Requires Review, No Strong Synthetic Signals Detected, and Insufficient Evidence rather than misleading absolutes like “100% Real” or “100% Fake”.

TrustLayer Verification Pipeline · Powered by Groq qwen/qwen3.8-27b