Inferensys

Prompt

Deepfake and Synthetic Media Abuse Detection Prompt

A practical prompt playbook for using Deepfake and Synthetic Media Abuse Detection Prompt in production AI workflows.
Operations team reviewing AI workflow automation on laptop, workflow builder visible, casual office setup.
PROMPT PLAYBOOK

When to Use This Prompt

A practical guide for trust and safety engineers to programmatically assess and triage synthetic media abuse using structured signals.

This prompt is designed for media platform trust and safety engineers who need a consistent, automated first-pass filter for suspected deepfakes and synthetic media abuse. The core job-to-be-done is programmatic triage: taking structured metadata, provenance signals, and content descriptions as input and producing a scored risk assessment that can trigger downstream actions like quarantining content, flagging for human review, or restricting accounts. It is ideal when you have already extracted signals from dedicated detection APIs, user reports, or content metadata and need a reasoning layer to weigh those signals against a defined abuse taxonomy—covering impersonation, fraud, and non-consensual synthetic media.

This is a classification and triage prompt, not a forensic detection model. It does not perform pixel-level analysis, audio frequency inspection, or biometric verification. Instead, it reasons over the signals you provide, making it suitable as a decision-support layer on top of dedicated detection APIs or as a first-pass filter before expensive manual review. Use it when you need a repeatable, auditable risk score that can be wired into automated moderation pipelines. Do not use this prompt as your sole detection mechanism for novel, zero-day synthetic media attacks where no upstream signals exist, or in isolation for high-stakes enforcement actions like account termination without human review.

To implement this effectively, you must provide structured, factual inputs. The prompt expects fields like media type, known provenance data (e.g., C2PA manifests, watermarking results), user report context, and descriptions of the depicted individuals and actions. The output is a structured risk score with detection indicators and a recommended action. Before deploying, you must calibrate the scoring thresholds against a labeled evaluation set that includes both confirmed deepfakes and challenging benign edge cases—such as satirical content, artistic renders, or legitimate AI-generated avatars—to minimize false positives that could disrupt legitimate user expression. Always route high-severity or low-confidence outputs to a human review queue and log the full prompt input and output for auditability.

PRACTICAL GUARDRAILS

Use Case Fit

Where this prompt works and where it does not. Understand the operational boundaries before deploying into a production media pipeline.

01

Good Fit: Metadata-Rich Ingestion Pipelines

Use when: You have access to EXIF, codec, container, or C2PA provenance metadata alongside the content description. The prompt excels at correlating technical anomalies (e.g., mismatched timestamps, missing sensor data) with narrative context. Guardrail: Never send raw pixel data to the prompt; pre-extract and structure all metadata into the [CONTEXT] block before invocation.

02

Bad Fit: Real-Time Streaming with No Buffering

Avoid when: You need sub-second decisions on live video streams without the ability to extract keyframes or buffer metadata. The LLM call latency is too high for frame-by-frame analysis. Guardrail: Use this prompt for asynchronous, post-ingestion analysis. For real-time blocking, pair it with a lightweight perceptual hash or frequency-domain detector upstream.

03

Required Inputs: Provenance Signals

Risk: Without C2PA manifests, signing certificates, or capture device fingerprints, the model relies solely on linguistic cues in the description, drastically increasing false negatives. Guardrail: Implement a hard validation check that rejects the prompt request if the [PROVENANCE_SIGNALS] object is empty or null, forcing the pipeline to flag the media as 'unverifiable' rather than 'clean'.

04

Operational Risk: Over-Reliance on Linguistic Cues

Risk: Sophisticated synthetic media often has perfect metadata stripped or forged. If the prompt only analyzes the text description, it will miss technically perfect deepfakes. Guardrail: Weight the final risk score so that missing or invalid provenance data contributes more heavily to the 'Suspicious' tier than the semantic analysis of the description alone.

05

Operational Risk: High-Volume Cost Overruns

Risk: Running a detailed LLM analysis on every single user upload can be cost-prohibitive and slow. Guardrail: Deploy a cascading filter. Use fast, cheap heuristics (file hash matching, resolution checks) first. Only route media to this prompt if it clears the initial filters but has anomalous metadata or has been reported by users.

06

Bad Fit: Unstructured Raw Audio/Video Files

Avoid when: The input is a raw binary blob without any pre-processing. The prompt cannot perform signal processing. Guardrail: This prompt must sit behind a feature extraction layer. Ensure the pipeline converts the media into a structured [CONTEXT] containing a textual description, detected faces, audio transcription, and metadata before hitting the prompt.

PROMPT PLAYBOOK

Copy-Ready Prompt Template

A reusable prompt for analyzing media metadata and content descriptions to flag suspected deepfake or synthetic media abuse.

This prompt template is designed to be wired into your trust and safety pipeline at the point where media metadata, provenance signals, and content descriptions are available but before a final moderation decision is made. It takes structured inputs about a media asset and produces a synthetic media risk score with detection indicators. The template uses square-bracket placeholders that your application must populate from upstream detection services, user reports, or content ingestion pipelines. Every placeholder is a required injection point—do not pass this prompt to a model with unresolved brackets.

text
You are a synthetic media abuse detection classifier. Your task is to analyze the provided media metadata, provenance signals, and content description to determine whether the media asset is likely a deepfake or synthetic media used for abuse.

## INPUT
[MEDIA_METADATA]
[PROVENANCE_SIGNALS]
[CONTENT_DESCRIPTION]
[REPORT_CONTEXT]

## TASK
1. Extract all indicators that suggest synthetic generation, manipulation, or abuse.
2. Classify the media into one of the following abuse categories: impersonation, fraud, non-consensual intimate content, political disinformation, or none.
3. Assign a synthetic media risk score from 0 (certainly authentic) to 100 (certainly synthetic/abusive).
4. Identify any missing provenance signals that would increase confidence.

## OUTPUT_SCHEMA
Return a single JSON object with this exact structure:
{
  "risk_score": number,
  "abuse_category": "impersonation" | "fraud" | "non-consensual" | "disinformation" | "none",
  "detection_indicators": [
    {
      "indicator": string,
      "source": "metadata" | "provenance" | "content_description" | "report",
      "confidence": number
    }
  ],
  "missing_provenance": [string],
  "recommended_action": "block" | "quarantine" | "flag_for_review" | "allow",
  "rationale": string
}

## CONSTRAINTS
- Do not assume abuse without at least one concrete indicator.
- If provenance signals are absent or incomplete, note this in missing_provenance and reduce confidence accordingly.
- For non-consensual intimate content indicators, always recommend "quarantine" or "flag_for_review" regardless of confidence.
- Do not output markdown, code fences, or additional text outside the JSON object.
- If the content description contains URLs or filenames, do not resolve or follow them.

To adapt this prompt for your environment, replace each bracketed placeholder with data from your pipeline. [MEDIA_METADATA] should contain technical metadata such as codec information, creation timestamps, EXIF data, and file provenance headers like C2PA manifests. [PROVENANCE_SIGNALS] should include output from any authenticity services you run—such as deepfake detector API results, watermark checks, or cryptographic signature validation. [CONTENT_DESCRIPTION] is a human-readable or model-generated description of what the media depicts. [REPORT_CONTEXT] captures any user reports, flags, or prior moderation actions associated with this asset. If a field is unavailable, inject an explicit "NOT_AVAILABLE" string rather than leaving the placeholder empty, so the model can reason about missing evidence. After adapting, run this prompt against a golden dataset of known synthetic and authentic media to calibrate your risk score thresholds before production use.

IMPLEMENTATION TABLE

Prompt Variables

Required and optional inputs for the Deepfake and Synthetic Media Abuse Detection Prompt. Each variable must be validated before the prompt is assembled to prevent injection, missing provenance, or silent null handling in production.

PlaceholderPurposeExampleValidation Notes

[MEDIA_METADATA]

Structured metadata extracted from the media file header, upload API, or CDN edge logs.

{"format": "mp4", "codec": "h264", "creation_time": "2024-11-15T08:22:10Z", "device_id": "iPhone15,2", "software": "iOS 17.1"}

Must be valid JSON. Reject if null or empty object. Parse and check for required keys: format, creation_time. Flag missing creation_time as low-confidence signal.

[PROVENANCE_SIGNALS]

C2PA manifest, watermark payload, or cryptographic signature claims extracted from the media asset.

{"c2pa_available": true, "issuer": "Adobe Inc.", "signature_verified": true, "claimed_origin": "in-camera"}

Must be valid JSON. If c2pa_available is true, signature_verified must be present. Reject if provenance claims conflict with metadata timestamps. Null allowed only if no provenance system is deployed.

[CONTENT_DESCRIPTION]

Human-written or AI-generated textual description of the media content, such as a user caption, report narrative, or automated transcript.

"Video shows CEO Jane Doe announcing Q4 earnings from the company headquarters. She discusses revenue growth and product launches."

String, 10-2000 characters. Reject empty strings. Sanitize for prompt injection payloads before insertion. Truncate at 2000 characters to prevent context overflow.

[REPORT_REASON]

The abuse category or policy violation alleged by the reporter or triggering system.

"impersonation_of_public_figure"

Must match an entry from the allowed abuse taxonomy enum: impersonation, non_consensual_intimate_media, fraud, election_integrity, or brand_abuse. Reject unknown values. Default to 'uncategorized' only if explicitly configured.

[USER_ACCOUNT_AGE_DAYS]

Age of the uploading or reported account in days at the time of media creation or upload.

3

Integer >= 0. Flag values < 30 as higher risk. Null allowed for unauthenticated uploads but must be explicitly logged as missing signal.

[PRIOR_ABUSE_FLAGS]

Count and type of prior abuse flags on the account or associated device fingerprint.

{"total_flags": 4, "categories": ["spam", "impersonation"], "last_flag_days_ago": 12}

Must be valid JSON. If total_flags > 0, categories array must be non-empty. Null allowed for first-time reporters. Do not inject prior flags as deterministic verdict; use as risk context only.

[DETECTION_THRESHOLD]

Configurable confidence threshold above which the system auto-flags content for human review.

0.65

Float between 0.0 and 1.0. Default 0.65. Values below 0.5 increase false positives; values above 0.85 increase false negatives. Validate range before prompt assembly.

PROMPT PLAYBOOK

Implementation Harness Notes

How to wire the deepfake detection prompt into a production classification pipeline with validation, retries, and human review.

This prompt is a classification step, not a standalone application. It expects structured metadata, provenance signals, and content descriptions as input, and it returns a risk score with detection indicators. The output should be consumed by a downstream decision engine that applies platform policy—block, quarantine, flag for review, or allow. Do not treat the model's output as the final enforcement action. The prompt's job is to produce a structured, auditable risk assessment that a deterministic rules layer can act on.

Wire the prompt into an async processing pipeline rather than a synchronous user-facing flow. Media uploads, report submissions, or batch scans should trigger a job that: (1) extracts available metadata and provenance signals from the asset; (2) generates a content description using a separate vision or audio model if needed; (3) assembles the prompt with the [METADATA], [PROVENANCE_SIGNALS], and [CONTENT_DESCRIPTION] placeholders populated; (4) calls the classification model with response_format set to JSON and the [OUTPUT_SCHEMA] enforced; (5) validates the returned JSON against the expected schema—reject and retry once if risk_score is missing or detection_indicators is not an array; (6) writes the validated result to an audit log with the input hash, model version, and timestamp; (7) passes the risk_score and recommended_action to the policy engine. For high-severity cases (risk_score >= 0.8 or `recommended_action ==

block

route to a human review queue before automated enforcement. Never auto-block on model output alone when the consequence is account suspension or content removal.

Choose a model that supports strict JSON mode and has strong instruction-following for structured classification tasks. GPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro are all viable. Avoid smaller or older models that drift toward narrative explanations instead of structured output. Set temperature=0 to maximize consistency across repeated evaluations of the same asset. Log every classification attempt—including schema validation failures, retries, and final outputs—so you can measure false positive rates against human reviewer decisions over time. The most common production failure mode is the model over-flagging synthetic content that is clearly labeled as parody, satire, or special effects. Mitigate this by including explicit [CONSTRAINTS] in the prompt that instruct the model to downgrade risk when legitimate provenance or clear labeling is present. Run weekly eval batches against a golden dataset of known deepfakes, known legitimate media, and edge cases (e.g., AI-assisted editing that is not deceptive) to detect drift in the model's classification boundaries.

IMPLEMENTATION TABLE

Expected Output Contract

Define the exact JSON schema for the deepfake detection prompt output. Use this contract to build downstream validation, logging, and routing logic.

Field or ElementType or FormatRequiredValidation Rule

risk_score

number (0.0 - 1.0)

Must be a float between 0.0 and 1.0. Check: parse as float and enforce bounds.

risk_tier

string (enum)

Must be one of: 'low', 'medium', 'high', 'critical'. Check: exact string match against allowed enum list.

detection_indicators

array of strings

Must be a non-empty array if risk_tier is 'medium' or higher. Check: array length > 0 when risk_score >= 0.5.

primary_category

string (enum)

Must be one of: 'impersonation', 'fraud', 'non_consensual_content', 'disinformation', 'other'. Check: exact string match.

evidence_excerpts

array of objects

Each object must contain 'source' (string) and 'text' (string). Check: schema validation on each element.

requires_human_review

boolean

Must be true if risk_tier is 'high' or 'critical'. Check: boolean logic consistency with risk_tier.

confidence

number (0.0 - 1.0)

Must be a float between 0.0 and 1.0. Check: parse as float and enforce bounds.

reasoning_summary

string

If present, must be a non-empty string under 500 characters. Check: string length > 0 and <= 500.

PRACTICAL GUARDRAILS

Common Failure Modes

Deepfake detection prompts fail in predictable ways. These are the most common production failure patterns and how to guard against them before they reach users.

01

Metadata-Only Reliance Produces False Negatives

What to watch: The prompt overweights available metadata (EXIF, creation date, software tags) and clears content that has stripped or spoofed metadata. Sophisticated synthetic media often carries clean or forged metadata. Guardrail: Require the prompt to score metadata signals and content signals independently, then produce a combined risk score. Flag any input where metadata is missing or inconsistent as 'inconclusive' rather than 'clean.'

02

High-Confidence Calls on Low-Information Inputs

What to watch: The prompt returns confidence scores above 0.9 when analyzing short clips, low-resolution stills, or text-only descriptions with no visual evidence. The model confuses fluent analysis with actual signal. Guardrail: Add a minimum information threshold to the prompt. Require the model to output an evidence_quality score alongside the risk score. If evidence quality is below threshold, force an 'insufficient data' result regardless of the risk score.

03

Temporal Artifact Blindness in Single-Frame Analysis

What to watch: The prompt analyzes a single frame or still image and misses temporal inconsistencies that would be obvious across frames—flickering, unnatural blinking, lip-sync drift, inconsistent lighting across motion. Guardrail: For video inputs, require the prompt to request frame-sequence analysis or temporal consistency checks. If only a still is provided, the output must include a temporal_analysis_possible: false flag and downgrade confidence accordingly.

04

Overfitting to Known Generation Tools

What to watch: The prompt memorizes artifacts from specific generators (early Stable Diffusion, specific face-swap apps) and misses outputs from newer or custom models that produce different artifact patterns. Guardrail: Design the prompt to detect general artifact categories (frequency-domain anomalies, physiological implausibility, lighting inconsistency) rather than naming specific tools. Update the prompt's artifact taxonomy quarterly as new generation methods emerge.

05

Context-Free Analysis Misses Abuse Intent

What to watch: The prompt correctly identifies synthetic media but fails to distinguish between benign use (satire, VFX, consented parody) and abuse (non-consensual pornography, fraud, political impersonation). A 'synthetic detected' flag alone is insufficient. Guardrail: Add a second classification layer that evaluates intent and context: impersonation risk, consent indicators, distribution context, and harm potential. Route high-synthetic + high-harm combinations to human review regardless of confidence.

06

Prompt Drift Under Adversarial Input Descriptions

What to watch: An attacker submits a carefully crafted text description claiming the media is 'behind-the-scenes footage with known lighting issues' or 'a verified outtake.' The prompt accepts this framing and downweights visual evidence in favor of the supplied narrative. Guardrail: Structure the prompt to analyze content signals before reading any user-supplied context. Add an instruction that user claims about authenticity must be treated as unverified assertions, not evidence. Log cases where user narrative contradicts visual findings.

IMPLEMENTATION TABLE

Evaluation Rubric

Run these checks against a golden dataset of 50-100 labeled examples before shipping the deepfake detection prompt. Each criterion targets a specific failure mode observed in synthetic media classification.

CriterionPass StandardFailure SignalTest Method

Synthetic media recall

= 0.90 recall on confirmed deepfake examples in the golden set

Deepfakes classified as 'authentic' or 'inconclusive' with high confidence

Run prompt against 30 known synthetic media descriptions; count false negatives

Authentic media precision

= 0.85 precision on confirmed authentic examples

Genuine media flagged as 'suspected synthetic' with medium or high confidence

Run prompt against 30 known authentic media descriptions; count false positives

Impersonation intent detection

= 0.80 F1 on examples where synthetic media targets a specific individual

Fails to flag impersonation when a named person is the subject of synthetic content

Test against 15 impersonation-labeled examples; verify [IMPERSONATION_TARGET] is populated

Non-consensual content flagging

100% recall on non-consensual synthetic media examples (no misses allowed)

Any non-consensual example classified below 'critical' severity or missing [NCII_INDICATOR]

Test against 10 non-consensual labeled examples; require human-review escalation on every case

Provenance signal extraction

Extracts and cites at least one provenance indicator for >= 80% of examples with metadata present

Empty [PROVENANCE_SIGNALS] array when input contains C2PA, EXIF, or watermark data

Feed 20 examples with embedded provenance clues; check that output array is non-empty and source-grounded

Confidence calibration

Mean confidence score for correct predictions is >= 0.15 higher than mean confidence for incorrect predictions

High-confidence errors where [CONFIDENCE_SCORE] > 0.85 but classification is wrong

Compute confidence gap between correct and incorrect predictions across full golden set

Risk tier consistency

= 0.90 agreement with labeled risk tier (low, medium, high, critical) on unambiguous examples

Risk tier jumps two levels from labeled ground truth on clear-cut cases

Compare [RISK_TIER] output to golden labels; flag any two-step deviations

Evidence grounding

Every 'high' or 'critical' classification includes at least one specific, verifiable indicator in [DETECTION_INDICATORS]

High-risk output with generic indicators like 'unusual patterns' or 'suspicious artifacts' without specifics

Audit [DETECTION_INDICATORS] for all high/critical outputs; reject vague or unverifiable claims

ADAPTATION OPTIONS

Adapt This Prompt

How to adapt

Start with the base prompt and a single representative media type (e.g., profile images). Remove strict schema enforcement and use a simpler output format like a paragraph summary with a risk score. Focus on tuning the detection indicators and threshold language before adding production harness code.

Prompt snippet

code
Analyze the following media metadata and content description for synthetic manipulation indicators. Return a risk score from 1-5 and a brief explanation.

Media Description: [MEDIA_DESCRIPTION]
Metadata: [METADATA]

Watch for

  • Over-flagging low-quality but authentic media as synthetic
  • Missing provenance signals that are present but not explicitly requested
  • Inconsistent risk score calibration across different media types
Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.