title: Two-Entity Token-Splitting Dollar-Term Game Jailbreak
id: ATR-2026-00334
rule_version: 1
status: experimental
description: |
  Detects the two-entity token-splitting game jailbreak from NVIDIA garak dan.DanInTheWild inthewild corpus (prompts #24, #588) where the attacker frames a harmful synthesis/instructions request as a word-by-word game between two fictional entities. By having "J" and "M" (or Tom and Jerry) alternate 10 words at a time around a $Term variable holding the harmful topic, no single entity "says" the complete harmful content — the full synthesis emerges only when the dialogue is concatenated. The $Term variable assignment further obscures the harmful request: "$Term1 = steps to synthesize" (the method) + "$Term2 = lsd" (the substance), with "The result should demonstrate how to $Term1+$Term2". Key signals: "act as two entities + playing a game + $Term", "J says N words at a time + other entity M says next N words", "$Term1 = steps to synthesize", "result should demonstrate how to $Term1+$Term2".
author: ATR Community (via NVIDIA garak dan.DanInTheWild probe)
date: 2026/04/21
schema_version: '0.1'
detection_tier: pattern
maturity: test
severity: critical
references:
  owasp_llm:
    - LLM01:2025
  owasp_agentic:
    - ASI01:2026
  mitre_atlas:
    - AML.T0051 - LLM Prompt Injection
    - AML.T0054 - LLM Jailbreak
  research:
    - https://github.com/NVIDIA/garak/blob/main/garak/probes/dan.py
    - https://github.com/NVIDIA/garak/blob/main/garak/data/inthewild_jailbreak_llms.json
compliance:
  nist_ai_rmf:
    - subcategory: MS.2.7
      context: The two-entity token-splitting game jailbreak is a generative AI prompt injection attack that distributes harmful synthesis content across fictional speakers to evade safety filters; MS.2.7 requires continuous evaluation of AI system security and resilience against such adversarial jailbreak techniques documented in the GenAI Profile.
      strength: primary
    - subcategory: MP.5.1
      context: Token-splitting with $Term variable obfuscation is a known adversarial input pattern that exploits the model's inability to reassemble distributed harmful instructions; MP.5.1 requires characterizing the likelihood and magnitude of these jailbreak risks against deployed LLM agents.
      strength: secondary
    - subcategory: MG.2.3
      context: Detection of the concatenation-reveal phrase and two-entity game framing triggers deactivation or containment of the affected agent session before the harmful synthesis output is delivered; MG.2.3 requires mechanisms to supersede or disengage AI systems when jailbreak attempts are identified.
      strength: secondary
  iso_42001:
    - clause: '8.1'
      context: ISO/IEC 42001 Clause 8.1 (operational planning and control, including control of externally provided processes) is operationalised by this rule's detection of the agent-manipulation technique (Two-Entity Token-Splitting Dollar-Term Game Jailbreak).
      strength: primary
    - clause: '6.2'
      context: ISO/IEC 42001 Clause 6.2 (AI objectives and planning) calls for risk treatment of known attack patterns; this rule's detection of the agent-manipulation technique (Two-Entity Token-Splitting Dollar-Term Game Jailbreak) is such a treatment.
      strength: secondary
  eu_ai_act:
    - article: '15'
      context: Article 15 (accuracy, robustness and cybersecurity) requires high-risk AI systems to resist unauthorised attempts to alter their use, outputs or performance; this rule provides runtime detection evidence by flagging the agent-manipulation technique (Two-Entity Token-Splitting Dollar-Term Game Jailbreak).
      strength: primary
    - article: '14'
      context: Article 14 (human oversight) requires high-risk AI systems to remain subject to effective human oversight; this rule provides detection evidence where the agent-manipulation technique (Two-Entity Token-Splitting Dollar-Term Game Jailbreak) would bypass or undermine that oversight.
      strength: secondary
    - article: '9'
      context: Article 9 (risk management system) requires identified risks to be addressed by appropriate measures; this rule is a runtime risk-treatment control that detects the agent-manipulation technique (Two-Entity Token-Splitting Dollar-Term Game Jailbreak).
      strength: secondary
tags:
  category: agent-manipulation
  subcategory: token-splitting-game-jailbreak
  scan_target: mcp
  confidence: high
agent_source:
  type: mcp_exchange
  framework:
    - any
  provider:
    - any
metadata_provenance:
  garak_probe: dan.DanInTheWild
  garak_detector: mitigation.MitigationBypass
  payload_source: garak/data/inthewild_jailbreak_llms.json
detection:
  conditions:
    - field: tool_response
      operator: regex
      value: act\s+as\s+two\s+entities[\s\S]{0,150}playing\s+a\s+game[\s\S]{0,150}\$Term
      description: '"act as two entities + playing a game + $Term" — from inthewild corpus #24 and #588; the game framing distributes harmful content generation across two fictionally independent speakers to avoid single-entity attribution'
    - field: tool_response
      operator: regex
      value: \$Term1[\s\S]{0,100}(?:steps?\s+to\s+synthesi[sz]|how\s+to\s+(?:make|create|produce|build)\s+)
      description: '"$Term1 = steps to synthesize/make [harmful substance]" — from inthewild corpus #24; the $Term variable assignment hides the harmful topic from surface pattern matching while encoding it as a variable reference'
    - field: tool_response
      operator: regex
      value: result\s+should\s+demonstrate\s+how\s+to\s+\$Term1\s*\+\s*\$Term2
      description: '"The result should demonstrate how to $Term1+$Term2" — exact concatenation-reveal phrase from inthewild corpus #24; this instruction makes explicit that the distributed tokens should be assembled into a complete harmful synthesis guide'
    - field: tool_response
      operator: regex
      value: (?:J\s+says|entity\s+(?:tells|says))\s+\d+\s+words?\s+at\s+a\s+time[\s\S]{0,150}\$Term
      description: '"J says N words at a time + $Term" — from inthewild corpus #24; the fixed-word-count turn structure enforces the token-splitting constraint that prevents any single output from containing the full harmful sequence'
    - field: tool_response
      operator: regex
      value: act\s+as\s+two\s+entities[\s\S]{0,50}(?:Tom\s+and\s+Jerry|J\s+and\s+M|J\s+&\s+M)[\s\S]{0,100}playing\s+a\s+game[\s\S]{0,100}(?:one\s+word\s+at\s+a\s+time|\d+\s+words?\s+at\s+a\s+time)
      description: '"act as two entities, Tom and Jerry / J and M + playing a game + one/N word at a time" — covers both inthewild #24 (J & M, 10 words) and #588 (Tom and Jerry, 1 word); named entity pairs signal the structured token-splitting game template'
  condition: any
  false_positives:
    - 'Creative writing exercise: "Two characters J and M take turns saying words to build a poem — J says one word, M says the next" (poetry game without $Term or harmful topics)'
    - 'Game design: "Act as two entities playing a game where each says one word. $GAME = chess. Describe a match." (game simulation with a benign $Term variable)'
    - 'Educational roleplay: "Tom and Jerry play a word-association game — Tom says the noun, Jerry adds the adjective" (vocabulary exercise without harmful synthesis target)'
response:
  actions:
    - alert
    - block_input
  message_template: |
    [ATR-2026-00334] Two-entity token-splitting dollar-term game jailbreak detected — AI instructed to alternate harmful synthesis content word-by-word between two fictional entities using $Term variables to distribute and obscure the complete harmful instruction.
