{
  "id": "aes-128-ctr",
  "name": "AES-128-CTR",
  "family_id": "aes-ctr",
  "description": "AES-128 in counter mode per NIST SP 800-38A: keystream XOR with an encrypted counter. IND-CPA secure only while each counter block is used at most once per key. The mode is unauthenticated and malleable, so attack records cover the nonce-reuse keystream leak and the PRP-based bound.",
  "status": "intact",
  "parameters": {
    "key_bits": 128,
    "block_bits": 128,
    "counter_bits": 128,
    "authenticated": false,
    "standard": "NIST SP 800-38A"
  },
  "references": [
    {
      "title": "NIST SP 800-38A: Recommendation for Block Cipher Modes of Operation: Methods and Techniques (2001)",
      "url": "https://doi.org/10.6028/NIST.SP.800-38A",
      "authors": [
        "Morris Dworkin"
      ],
      "doi": "10.6028/NIST.SP.800-38A"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "aes-128-ctr-lipmaa-2000-prp-bound",
      "target_id": "aes-128-ctr",
      "title": "CTR-mode IND-CPA bound from AES PRP security (Lipmaa, Rogaway and Wagner 2000)",
      "goal": "security-bound",
      "attack_family": "prf-security-bound",
      "setting": "Provable IND-CPA bound for CTR mode reducing to AES PRP security. The distinguishing advantage grows with the number of blocks encrypted under one key and approaches 1 near 2^64 blocks.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2000-10-10",
      "authors": [
        "Helger Lipmaa",
        "Phillip Rogaway",
        "David Wagner"
      ],
      "references": [
        {
          "title": "Comments to NIST concerning AES Modes of Operations: CTR-mode Encryption (2000)",
          "url": "https://doi.org/10.6028/NIST.SP.800-38A",
          "authors": [
            "Helger Lipmaa",
            "Phillip Rogaway",
            "David Wagner"
          ],
          "doi": "10.6028/NIST.SP.800-38A",
          "quote_location": "Lipmaa, Rogaway and Wagner 2000 CTR analysis (primary paper URL not recorded)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "standard_report",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 64,
        "estimator_version": "PRP-based CTR bound: distinguishing advantage near 1 at about 2^64 blocks (128-bit block)"
      },
      "notes": "Data-volume bound, not a key-recovery attack. Keys must be rotated well before 2^64 blocks."
    },
    {
      "id": "aes-128-ctr-keystream-reuse-xor-leak",
      "target_id": "aes-128-ctr",
      "title": "Keystream reuse in CTR mode leaks the XOR of plaintexts and enables forgery",
      "goal": "plaintext-recovery",
      "attack_family": "nonce-reuse-forgery",
      "setting": "Reusing a counter block under one key makes two ciphertexts XOR to the XOR of their plaintexts, enabling crib-dragging and the recovery of keystream from one known plaintext. Unauthenticated CTR is also malleable.",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2000-10-10",
      "authors": [
        "Helger Lipmaa",
        "Phillip Rogaway",
        "David Wagner"
      ],
      "references": [
        {
          "title": "Comments to NIST concerning AES Modes of Operations: CTR-mode Encryption (2000)",
          "url": "https://doi.org/10.6028/NIST.SP.800-38A",
          "authors": [
            "Helger Lipmaa",
            "Phillip Rogaway",
            "David Wagner"
          ],
          "doi": "10.6028/NIST.SP.800-38A",
          "quote_location": "Lipmaa, Rogaway and Wagner 2000 CTR analysis (primary paper URL not recorded)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "standard_report",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Keystream reuse; no computed cost (schema placeholder)"
      },
      "notes": "Misuse failure, not a break of AES. gate_count_log2: 0 is the schema placeholder for a trivially practical failure with no computed cost."
    }
  ],
  "frontiers": [],
  "dead_ends": []
}
