Two Frames Matter: A Temporal Attack for Text-to-Video Model Jailbreaking

Moyang Chen, Zonghao Ying, Wenzhuo Xu, Quancheng Zou, Deyue Zhang, Dongdong Yang, Xiangzheng ZhangarXiv 2026

TL;DR

Text-to-Video (T2V) models suffer from a unique safety vulnerability called "temporal trajectory infilling." By providing a fragmented prompt that only describes benign-looking start and end frames, attackers can exploit the model's internal priors to autonomously generate harmful intermediate video content. The proposed Two Frames Matter (TFM) framework leverages this flaw to consistently bypass text and video safety filters across major commercial platforms.

What Problem Does This Paper Address?

Safety alignment in Text-to-Video (T2V) models usually focuses on filtering out explicit keywords from the input prompt or checking the final output video frames. Existing jailbreak methods typically rewrite unsafe prompts into clever paraphrases to evade text filters. However, these methods miss a video-specific weakness: how T2V models handle time.

The authors identify a temporal trajectory infilling vulnerability. When a prompt is fragmented—meaning it only specifies sparse boundary conditions (the start and end states) and leaves the intermediate evolution underspecified—the model relies on its learned world knowledge to fill in the blanks. If the start and end states implicitly hint at a harmful progression, the model will autonomously reconstruct a trajectory containing unsafe intermediate frames. Because the input prompt text looks completely benign to standard text filters, it slips right through.

Methods

The authors introduce TFM (Two Frames Matter), a black-box, two-stage framework that systematically exploits this temporal completion behavior:

  1. Temporal Boundary Prompting (TBP): This stage takes an originally unsafe, temporally structured prompt and strips out all intermediate frame descriptions. It retains only the first and last frames as boundary conditions, leaving the intermediate timeline completely blank.
  2. Covert Substitution Mechanism (CSM): To ensure the boundary descriptions themselves don't trigger any alarms, an LLM rewrites them. It replaces explicit sensitive terms with semantically aligned but highly ambiguous or implicit alternatives, lowering the prompt's "explicitness score."
Figure 2: Overview of the proposed TFM framework. TFM consists of two LLM-guided stages: (1) Temporal Boundary Prompting (TBP), which enforces sparsity by retaining only boundary frames, and (2) Covert Substitution Mechanism (CSM), which implicitly rewrites sensitive content while preserving semantic intent.

Datasets

The authors evaluated their approach using T2VSafetyBench, a benchmark designed for assessing safety issues in T2V generation. Because the original dataset contains a mix of pristine prompts and prompts already altered by other attack methods, the authors curated a clean subset. They filtered out unique, natural language prompts and randomly selected 50 prompts across each of the 14 safety categories (including pornography, violence, gore, political sensitivity, and misinformation), resulting in a final evaluation set of 700 unsafe prompts.

Key Insights and Ideas

  • The "In-Between" is the Danger Zone: T2V models don't just generate static images; they are trained to understand motion, physics, and progression over time. By giving them a safe "State A" and a safe "State B", the model's attempt to smoothly transition between the two can spontaneously generate an unsafe midpoint.
  • A Clear Division of Labor: Ablation studies revealed that TBP and CSM serve entirely different but complementary roles. TBP manipulates the model's temporal inference pathway (crucial for bypassing filters in categories like Sequential Action), while CSM handles the surface-level text camouflage (crucial for Pornography).
  • Order of Operations Matters: The attack is highly sensitive to execution order. Applying TBP before CSM (the canonical order) works significantly better because it establishes the sparse temporal scaffold first, allowing the LLM to optimize substitutions specifically for the boundary frames without disrupting temporal coherence.

Key Results

TFM achieved the highest average Attack Success Rate (ASR) across all evaluated commercial systems, outperforming strong baselines like VEIL, DACA, and RAB.

  • Quantitative Performance: On Hailuo, TFM achieved a 60.0% average ASR (a +12.0% absolute gain over the strongest baseline, VEIL). On Pixverse, it reached 52.0% (+7.0% over VEIL). On Kling and Seedance, it hit 49.0% and 45.0% respectively.
  • Category-Specific Devastation: The attack was incredibly effective in heavily guarded categories. For instance, it achieved a 96.0% ASR for Pornography on Hailuo and 94.0% on Kling. It also showed strong performance in non-visual categories like Political Sensitivity (70.0% on Hailuo) and Gore (96.0% on Kling).
Table 2: Comparison of Attack Success Rate (ASR) on T2V models across 14 safety categories.

Limitations and Future Work

  • Black-Box Volatility: Because commercial T2V providers constantly update their safety pipelines and models behind the scenes, the absolute ASR numbers can vary over time.
  • Sparse Frame Sampling: To evaluate video safety, the authors sampled one frame every half-second. This protocol might miss transient unsafe content that occurs between the sampled frames, or conversely, over-penalize borderline cases.
  • The Need for Temporally Aware Defenses: The core takeaway is that current defenses are too shallow. Future guardrails must look beyond prompt surface forms and static frame inspections, and instead account for model-driven completion behaviors across time.

Summary updated

BibTeX
@misc{chen2026two,
  author = {Moyang Chen and Zonghao Ying and Wenzhuo Xu and Quancheng Zou and Deyue Zhang and Dongdong Yang and Xiangzheng Zhang},
  title = {{Two Frames Matter: A Temporal Attack for Text-to-Video Model Jailbreaking}},
  year = {2026},
  eprint = {2603.07028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.07028},
}
Figure