{
 "name": "KWC reference dataset",
 "kwc_version": "0.1",
 "status": "draft; the classification is a research proposal",
 "notes": [
  "origin 'documented' means the report cites a source label; it does not mean the record describes one real key.",
  "worked-report records link to a full report that follows report-schema.yaml; described-case records carry reference classes and disposition only.",
  "Source labels such as R20 are resolved in the paper's bibliography."
 ],
 "records": [
  {
   "id": "aead-nonce-reuse",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A VPN gateway encrypts records with AES-256-GCM under a correctly generated key. Its 96-bit nonce is a counter that restarts at zero after a reboot, so two records were encrypted under the same key and nonce. The gateway owner's own security tester used the two records to forge a valid record in the lab. The encryption key itself was not recovered.",
   "validity": "valid",
   "classes": [
    {
     "class": "C1",
     "objective": "forge",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 2,
   "sources": [
    "R42"
   ],
   "report": "examples/aead-nonce-reuse.yaml"
  },
  {
   "id": "aes-all-zero",
   "kind": "worked-report",
   "origin": "synthetic",
   "description": "An AES-128 key is all zero bytes. The generator has been audited and samples uniformly; this is the only key examined. The auditors ran a guessing tool that tries the all-zero key first, and it found the key on its first guess. No attack on full AES treats this key differently from any other.",
   "validity": "valid",
   "classes": [
    {
     "class": "B1",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 2,
   "sources": [],
   "report": "examples/aes-all-zero.yaml"
  },
  {
   "id": "constant-generator",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A firmware image for a router model ships with one RSA-2048 SSH host key that every device uses. The firmware is publicly downloadable, and the private key has been extracted from it and posted. The subject is the host key of one such device.",
   "validity": "valid",
   "classes": [
    {
     "class": "B2",
     "evidence": "demonstrated"
    },
    {
     "class": "C2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R14"
   ],
   "report": "examples/constant-generator.yaml"
  },
  {
   "id": "debian-openssl",
   "kind": "worked-report",
   "origin": "documented",
   "description": "An RSA-2048 SSH host key was generated on a Debian system in 2007 with the OpenSSL package whose random generator was seeded only by the process ID. The defect is located in the source code. The key matches an entry in a published list of all private keys that generator can produce.",
   "validity": "valid",
   "classes": [
    {
     "class": "B2",
     "evidence": "demonstrated"
    },
    {
     "class": "C2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R15"
   ],
   "report": "examples/debian-openssl.yaml"
  },
  {
   "id": "des-weak-key",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A legacy system in a US federal agency encrypts with single DES under the key 0101010101010101, one of the four keys for which encryption and decryption are the same function. FIPS 46-3 was withdrawn in 2005 and DES is no longer approved for protecting federal information.",
   "validity": "valid",
   "classes": [
    {
     "class": "A1",
     "objective": "dist",
     "evidence": "demonstrated"
    },
    {
     "class": "B2",
     "evidence": "indicated"
    },
    {
     "class": "C3",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 2,
   "sources": [
    "R34",
    "R4"
   ],
   "report": "examples/des-weak-key.yaml"
  },
  {
   "id": "ecdsa-biased-nonce-key",
   "kind": "worked-report",
   "origin": "documented",
   "description": "The subject is the long-term ECDSA secp256k1 signing key of the wallet whose nonces always have their top 8 bits zero. An outside researcher collected the wallet's public signatures, ran the lattice attack and recovered the private key. The long-term key itself was generated correctly.",
   "validity": "valid",
   "classes": [
    {
     "class": "C1",
     "objective": "rec",
     "evidence": "demonstrated"
    },
    {
     "class": "C2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R28"
   ],
   "report": "examples/ecdsa-biased-nonce-key.yaml"
  },
  {
   "id": "ecdsa-biased-nonce",
   "kind": "worked-report",
   "origin": "documented",
   "description": "The subject is the per-signature nonce of an ECDSA secp256k1 wallet. Analysis of many signatures shows the nonces always have their top 8 bits zero; a lattice attack on such nonces is known and practical. The wallet's nonce-generation code has not been inspected, but the bias matches a known faulty library.",
   "validity": "valid",
   "classes": [
    {
     "class": "B2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 3,
   "sources": [
    "R28"
   ],
   "report": "examples/ecdsa-biased-nonce.yaml"
  },
  {
   "id": "emudhra-p384",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A certificate authority's ECDSA P-384 issuing key has private scalar 4. An outside researcher's scanner, which already ran a check for small EC private scalars, recovered the scalar from the public key with an interval discrete-log search in a handful of group operations. Several other issuing keys of the same CA also had byte-sized scalars. How the keys came to have these values is not known.",
   "validity": "valid",
   "classes": [
    {
     "class": "A2",
     "objective": "rec",
     "evidence": "demonstrated"
    },
    {
     "class": "B1",
     "evidence": "demonstrated"
    },
    {
     "class": "B2",
     "evidence": "credible"
    },
    {
     "class": "C2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R1",
    "R2",
    "R3",
    "R7"
   ],
   "report": "examples/emudhra-p384.yaml"
  },
  {
   "id": "leaked-key",
   "kind": "worked-report",
   "origin": "synthetic",
   "description": "A code-signing ECDSA P-256 private key was generated inside a hardware security module by an audited generator. Months later an engineer exported it for a migration and committed the file to a public source repository, where it remains visible. Nothing is wrong with the key mathematically.",
   "validity": "valid",
   "classes": [
    {
     "class": "C2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [],
   "report": "examples/leaked-key.yaml"
  },
  {
   "id": "polymac-subset",
   "kind": "worked-report",
   "origin": "documented",
   "description": "The subject is the GHASH authentication key H of an AES-GCM session; it was derived correctly and is uniformly distributed. A forger can choose any set of about 1000 candidate values for H and build a forged message of about 1000 blocks that is accepted exactly when H is in the chosen set. For this key the forger has no information about H, so the chance of success equals the generic forgery bound; no forgery has been produced.",
   "validity": "valid",
   "classes": [
    {
     "class": "A1",
     "objective": "forge",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "investigate",
   "rule": 5,
   "sources": [
    "R24"
   ],
   "report": "examples/polymac-subset.yaml"
  },
  {
   "id": "published-key",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A server's RSA-2048 TLS private key is byte-for-byte the example private key printed in the documentation of a popular web framework. An administrator copied it. Nothing is wrong with the key mathematically.",
   "validity": "valid",
   "classes": [
    {
     "class": "C2",
     "evidence": "demonstrated"
    },
    {
     "class": "B2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R14"
   ],
   "report": "examples/published-key.yaml"
  },
  {
   "id": "roca",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A smart card's RSA-2048 public modulus tests positive for the ROCA fingerprint: its primes have the special form produced by one vendor's library, for which a practical factoring attack is published. Nobody has factored this modulus. The card's provenance has not been checked independently.",
   "validity": "valid",
   "classes": [
    {
     "class": "A2",
     "objective": "rec",
     "evidence": "credible"
    },
    {
     "class": "B2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 2,
   "sources": [
    "R20"
   ],
   "report": "examples/roca.yaml"
  },
  {
   "id": "rsa-1024",
   "kind": "worked-report",
   "origin": "synthetic",
   "description": "A certificate request for a public TLS certificate contains an RSA-1024 key. The key was generated correctly. The CA/Browser Forum TLS Baseline Requirements version 2.3.2, section 6.1.5, require at least 2048 bits. No factoring of this modulus has been attempted.",
   "validity": "valid",
   "classes": [
    {
     "class": "C3",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "reject-by-policy",
   "rule": 4,
   "sources": [],
   "report": "examples/rsa-1024.yaml"
  },
  {
   "id": "rsa-close-primes",
   "kind": "worked-report",
   "origin": "documented",
   "description": "A certificate request for a public TLS certificate contains an RSA-2048 modulus whose two primes are so close that the CA's linter factored it with Fermat's method in under 100 rounds. The CA is not a party authorized to know the private key. The TLS Baseline Requirements 2.3.2, section 6.1.1.3(5.3), require rejection of keys factorable this way. How the key was generated is not known and only this key was seen.",
   "validity": "valid",
   "classes": [
    {
     "class": "A2",
     "objective": "rec",
     "evidence": "demonstrated"
    },
    {
     "class": "C2",
     "evidence": "demonstrated"
    },
    {
     "class": "B2",
     "evidence": "indicated"
    },
    {
     "class": "C3",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R23"
   ],
   "report": "examples/rsa-close-primes.yaml"
  },
  {
   "id": "rsa-shared-prime",
   "kind": "worked-report",
   "origin": "documented",
   "description": "An internet-wide scan computed pairwise GCDs of RSA-1024 moduli from embedded devices. The subject key's modulus shares a prime with another device's modulus, so the scanning researchers now know its factors. Shared primes across devices of one model suggest low entropy at first boot, but the device's generator has not been examined.",
   "validity": "valid",
   "classes": [
    {
     "class": "C1",
     "objective": "rec",
     "evidence": "demonstrated"
    },
    {
     "class": "B2",
     "evidence": "credible"
    },
    {
     "class": "C2",
     "evidence": "demonstrated"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [
    "R19",
    "R30"
   ],
   "report": "examples/rsa-shared-prime.yaml"
  },
  {
   "id": "shared-device-key",
   "kind": "worked-report",
   "origin": "synthetic",
   "description": "An internet scan of one model of IP camera finds that 40,000 devices present the same RSA-2048 TLS public key. The firmware is encrypted and nobody has published or extracted the private key. The vendor has not commented. The subject is the TLS key of one such camera, owned by a hospital. No key-size policy is violated.",
   "validity": "valid",
   "classes": [
    {
     "class": "B2",
     "evidence": "demonstrated"
    },
    {
     "class": "C2",
     "evidence": "credible"
    }
   ],
   "disposition": "treat-as-compromised",
   "rule": 1,
   "sources": [],
   "report": "examples/shared-device-key.yaml"
  },
  {
   "id": "n1-zero-scalar",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A key-import API receives an ECDSA P-256 private key whose scalar is 0. The standard requires the private scalar to lie in [1, n-1].",
   "validity": "invalid",
   "classes": [],
   "disposition": "reject-invalid",
   "sources": []
  },
  {
   "id": "n2-pin-derived",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A storage device derives its AES-256 disk-encryption key as SHA-256 of a 4-digit PIN, with no salt and no other input. This design is stated in the vendor's documentation. The required security level is 256 bits. Nobody has attacked this particular device, and its PIN is not known to anyone but the owner.",
   "validity": "valid",
   "classes": [
    {
     "class": "B2"
    }
   ],
   "disposition": "treat-as-compromised",
   "sources": []
  },
  {
   "id": "n3-wiener",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A device vendor chose RSA-2048 keys with a private exponent d of about 400 bits to speed up signing. An outside security researcher recovered d of one device's key from its public key alone using the continued-fraction attack on small private exponents. The primes were generated correctly, and no key-size or exponent policy applies to this device.",
   "validity": "valid",
   "classes": [
    {
     "class": "A2"
    },
    {
     "class": "B2"
    },
    {
     "class": "C2"
    }
   ],
   "disposition": "treat-as-compromised",
   "sources": []
  },
  {
   "id": "n4-related-key",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A protocol uses a correctly generated AES-256 key and, by design, lets a network attacker obtain encryptions under keys that differ from it by XOR differences of the attacker's choice. The best published related-key attack on full AES-256 in this setting recovers the key in about 2^99.5 time and data, far beyond any attacker's budget. Without the related-key access, no attack better than exhaustive search is known.",
   "validity": "valid",
   "classes": [
    {
     "class": "C1"
    }
   ],
   "disposition": "investigate",
   "sources": []
  },
  {
   "id": "n5-laptop-backup",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "An unencrypted backup of a production TLS private key (ECDSA P-256, generated correctly in an HSM and then exported) is found on a decommissioned laptop that was sold on an online marketplace and later bought back. The buyer had the laptop for three weeks. There is no evidence that the key was used by anyone else.",
   "validity": "valid",
   "classes": [
    {
     "class": "C2"
    }
   ],
   "disposition": "treat-as-compromised",
   "sources": []
  },
  {
   "id": "n6-posthoc-pattern",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "An analyst browsing a list of 50,000 ECDSA P-256 public keys notices that one key's x-coordinate begins with 20 zero bits in hexadecimal. The analyst had not planned to look for this before seeing the list. The key was generated in a certified HSM, no attack is known that uses leading zero bits of a public x-coordinate, and no other check fired.",
   "validity": "valid",
   "classes": [],
   "disposition": "none",
   "sources": []
  },
  {
   "id": "n7-policy-module",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A service presents a correctly generated Ed25519 key that was created in software. The organization's Key Management Policy version 3.1, rule 4.2, states that all production signing keys must be generated inside a FIPS 140-3 validated hardware module and that keys generated elsewhere must be rejected. No attack on the key is known and nobody unauthorized has had access to it.",
   "validity": "valid",
   "classes": [
    {
     "class": "C3"
    }
   ],
   "disposition": "reject-by-policy",
   "sources": []
  },
  {
   "id": "n8-involution-ofb",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A block cipher has a 128-bit key and a 64-bit block. A peer-reviewed paper proves that for 2^64 of its keys encryption is its own inverse, and gives a two-query test for the property. A product encrypts stored records with this cipher in output feedback (OFB) mode, with a public IV per record. The product's owner ran the two-query test on the deployed key, and the key is one of these keys. The key came from an audited uniform generator. No policy applies. The subject is the deployed key.",
   "validity": "valid",
   "classes": [
    {
     "class": "A1"
    }
   ],
   "disposition": "treat-as-compromised",
   "sources": []
  },
  {
   "id": "n9-unsourced-leak",
   "kind": "described-case",
   "origin": "synthetic",
   "description": "A forum post claims that the RSA-2048 TLS private key of a named web server has been leaked. No file, fingerprint or other artifact accompanies the claim, and the server's operator has not commented. The key was generated correctly and is otherwise unremarkable.",
   "validity": "valid",
   "classes": [
    {
     "class": "C2"
    }
   ],
   "disposition": "investigate",
   "sources": []
  }
 ]
}
