pqc-bench / tasks.jsonl
PredictiveManish
PQC-Eval v1.0.0 dataset
a56b67b
Raw History Blame Contribute Delete
65.8 kB
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "dbg-barrett-rounding", "tier": "debugging", "type": "code", "tags": ["ml-kem", "modular-reduction", "bug"], "prompt": "This Barrett reduction is subtly wrong: it disagrees with the ML-KEM\nspecification for some inputs. Find the defect, fix it, and return the full\ncorrected module (keep the name `barrett_reduce`). Return one Python code block.\n\n```python\nQ = 3329\ndef barrett_reduce(a):\n v = ((1 << 26) + Q // 2) // Q\n t = (v * a) >> 26\n t *= Q\n return a - t\n```\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 BarrettReduce rounding term", "held_out": false, "gold": "```python\nQ = 3329\ndef barrett_reduce(a):\n v = ((1 << 26) + Q // 2) // Q\n t = (v * a + (1 << 25)) >> 26\n t *= Q\n return a - t\n```\n", "checker": "graders/checks/barrett.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "dbg-byteencode-endian", "tier": "debugging", "type": "code", "tags": ["ml-kem", "serialisation", "bug"], "prompt": "This ByteEncode_12 implementation uses big-endian bit packing, so it\ndisagrees with FIPS 203, which is little-endian. Fix it and return the full\ncorrected module (keep the name `byteencode12`). One Python code block.\n\n```python\ndef byteencode12(a):\n out = bytearray()\n acc = 0\n nb = 0\n for x in a:\n acc = (acc << 12) | (x & 0xFFF)\n nb += 12\n while nb >= 8:\n nb -= 8\n out.append((acc >> nb) & 0xFF)\n return bytes(out)\n```\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 ByteEncode_12 is little-endian", "held_out": false, "gold": "```python\ndef byteencode12(a):\n out = bytearray()\n acc = 0\n nb = 0\n for x in a:\n acc |= (x & 0xFFF) << nb\n nb += 12\n while nb >= 8:\n out.append(acc & 0xFF)\n acc >>= 8\n nb -= 8\n return bytes(out)\n```\n", "checker": "graders/checks/byteencode.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "dbg-cbd-swap", "tier": "debugging", "type": "code", "tags": ["ml-kem", "sampling", "bug"], "prompt": "This SamplePolyCBD_eta=2 implementation is wrong: it computes a - c using\nthe two bit-halves in the wrong order, so every coefficient has the wrong\nsign. Fix it and return the full corrected module (keep the name `cbd2`).\nOne Python code block.\n\n```python\nQ = 3329\ndef cbd2(b):\n bits = []\n for byte in b:\n for j in range(8):\n bits.append((byte >> j) & 1)\n out = []\n for i in range(256):\n a = bits[4*i+2] + bits[4*i+3]\n c = bits[4*i] + bits[4*i+1]\n out.append((a - c) % Q)\n return out\n```\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 SamplePolyCBD bit ordering", "held_out": false, "gold": "```python\nQ = 3329\ndef cbd2(b):\n bits = []\n for byte in b:\n for j in range(8):\n bits.append((byte >> j) & 1)\n out = []\n for i in range(256):\n a = bits[4*i] + bits[4*i+1]\n c = bits[4*i+2] + bits[4*i+3]\n out.append((a - c) % Q)\n return out\n```\n", "checker": "graders/checks/cbd.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "dbg-compress-floor", "tier": "debugging", "type": "code", "tags": ["ml-kem", "compression", "bug"], "prompt": "The `compress_d` below rounds in the wrong direction, so it disagrees with\nFIPS 203 for many inputs. Fix `compress_d` (leave `decompress_d` if it is\nalready correct) and return the full corrected module. One Python code block.\n\n```python\nQ = 3329\ndef compress_d(x, d):\n return ((x << d) // Q) & ((1 << d) - 1)\ndef decompress_d(y, d):\n return (y * Q + (1 << (d - 1))) >> d\n```\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 Compress_d uses rounding, not truncation", "held_out": false, "gold": "```python\nQ = 3329\ndef compress_d(x, d):\n return (((x << d) + Q // 2) // Q) & ((1 << d) - 1)\ndef decompress_d(y, d):\n return (y * Q + (1 << (d - 1))) >> d\n```\n", "checker": "graders/checks/compress.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "dbg-implicit-reject-order", "tier": "debugging", "type": "code", "tags": ["ml-kem", "decapsulation", "bug"], "prompt": "This implicit-rejection function hashes the inputs in the wrong order. The\nspecification is K_bar = SHAKE256(z || c, 32). Fix it and return the full\ncorrected module (keep the name `implicit_reject`). One Python code block.\n\n```python\nimport hashlib\ndef implicit_reject(z, c):\n return hashlib.shake_256(c + z).digest(32)\n```\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 implicit rejection hashes z then c", "held_out": false, "gold": "```python\nimport hashlib\ndef implicit_reject(z, c):\n return hashlib.shake_256(z + c).digest(32)\n```\n", "checker": "graders/checks/implicit_reject.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "dbg-invntt-scaling", "tier": "debugging", "type": "code", "tags": ["ml-kem", "ntt", "bug"], "prompt": "The inverse NTT below omits a final step, so NTT followed by inverse NTT is\nnot the identity modulo q. Fix `invntt` and return the full corrected module\n(keep both `ntt` and `invntt`). One Python code block.\n\n```python\nQ = 3329\ndef _br7(i):\n return int(format(i, \"07b\")[::-1], 2)\nZETAS = [pow(17, _br7(i), Q) for i in range(128)]\n\ndef ntt(a):\n a = list(a); k = 1; length = 128\n while length >= 2:\n for start in range(0, 256, 2 * length):\n zeta = ZETAS[k]; k += 1\n for j in range(start, start + length):\n t = (zeta * a[j + length]) % Q\n a[j + length] = (a[j] - t) % Q\n a[j] = (a[j] + t) % Q\n length //= 2\n return a\n\ndef invntt(a):\n a = list(a); k = 127; length = 2\n while length <= 128:\n for start in range(0, 256, 2 * length):\n zeta = ZETAS[k]; k -= 1\n for j in range(start, start + length):\n t = a[j]\n a[j] = (t + a[j + length]) % Q\n a[j + length] = (zeta * (a[j + length] - t)) % Q\n length *= 2\n return a\n```\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 inverse NTT includes final scaling by 128^-1 mod q", "held_out": false, "gold": "```python\nQ = 3329\ndef _br7(i):\n return int(format(i, \"07b\")[::-1], 2)\nZETAS = [pow(17, _br7(i), Q) for i in range(128)]\n\ndef ntt(a):\n a = list(a); k = 1; length = 128\n while length >= 2:\n for start in range(0, 256, 2 * length):\n zeta = ZETAS[k]; k += 1\n for j in range(start, start + length):\n t = (zeta * a[j + length]) % Q\n a[j + length] = (a[j] - t) % Q\n a[j] = (a[j] + t) % Q\n length //= 2\n return a\n\ndef invntt(a):\n a = list(a); k = 127; length = 2\n while length <= 128:\n for start in range(0, 256, 2 * length):\n zeta = ZETAS[k]; k -= 1\n for j in range(start, start + length):\n t = a[j]\n a[j] = (t + a[j + length]) % Q\n a[j + length] = (zeta * (a[j + length] - t)) % Q\n length *= 2\n return [(x * 3303) % Q for x in a]\n```\n", "checker": "graders/checks/invntt.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "fullscheme-mlkem-encaps", "tier": "engineering", "type": "repo", "tags": ["full-scheme", "ml-kem", "kat", "fips-203"], "prompt": "`fixtures/mlkem-encaps` provides `primitives.py` with H (SHA3-256), G\n(SHA3-512), KDF (SHAKE256) and `k_pke_encrypt(ek, m, r)`, plus `kat.json`\nwith fixed vectors and `check_kat.py`.\n\nThe current `encaps.py` is wrong — it applies a key-derivation step that\nFIPS 203 removed:\n\n```python\nfrom primitives import H, G, KDF, k_pke_encrypt\n\ndef encaps(ek, m):\n kr = G(m + H(ek))\n K, r = kr[:32], kr[32:]\n c = k_pke_encrypt(ek, m, r)\n return KDF(K + H(c)), c\n```\n\nImplement FIPS 203 ML-KEM encapsulation so that `encaps(ek, m)` returns\n`(shared_secret, ciphertext)` matching the KAT vectors. Do not import or\ncall the reference implementation (kyber_py).\n\nReturn the complete corrected `encaps.py` in one Python code block.\n\nRepository contents:\n\n### primitives.py\n```\n\"\"\"Primitives available to the implementation under test.\n\nProvided so the task is about FIPS 203 encapsulation logic, not about\nre-deriving SHA-3 or the K-PKE layer.\n\"\"\"\n\nimport hashlib\n\nfrom kyber_py.ml_kem import ML_KEM_512 as _K\n\n\ndef H(x: bytes) -> bytes:\n return hashlib.sha3_256(x).digest()\n\n\ndef G(x: bytes) -> bytes:\n return hashlib.sha3_512(x).digest()\n\n\ndef KDF(x: bytes, n: int = 32) -> bytes:\n return hashlib.shake_256(x).digest(n)\n\n\ndef k_pke_encrypt(ek: bytes, m: bytes, r: bytes) -> bytes:\n return _K._k_pke_encrypt(ek, m, r)\n\n```", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 ML-KEM encapsulation returns K directly (no KDF(K||H(c)) step)", "held_out": false, "gold": "```python\nfrom primitives import H, G, k_pke_encrypt\n\n\ndef encaps(ek, m):\n kr = G(m + H(ek))\n K, r = kr[:32], kr[32:]\n c = k_pke_encrypt(ek, m, r)\n return K, c\n```\n", "repo": {"fixture": "fixtures/mlkem-encaps", "mode": "kat", "target": "encaps.py", "context_files": ["primitives.py"], "run": ["python3", "check_kat.py"], "timeout": 120}}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "repo-cbom", "tier": "engineering", "type": "repo", "tags": ["cbom", "cyclonedx", "inventory"], "prompt": "Produce a CycloneDX-style Cryptographic Bill of Materials (CBOM) for the\nrepository `fixtures/svc-indirect`.\n\nRequirements:\n - `bomFormat` is exactly \"CycloneDX\"; include a `specVersion`.\n - `components` is a non-empty list.\n - Each component has a `name` and `cryptoProperties.assetType`.\n - The inventory must include the MD5 hash and the RSA-2048 signing asset.\n\nReturn only the JSON object.\n\nRepository contents:\n\n### service.py\n```\n\"\"\"Application service. Crypto is used INDIRECTLY via crypto.provider.\"\"\"\n\nfrom crypto import provider\n\n\ndef register_user(username: str, password: str) -> dict:\n return {\"user\": username, \"pw_hash\": provider.hash_password(password)}\n\n\ndef issue_token(token: str) -> bytes:\n return provider.sign_token(token)\n\n```\n\n### crypto/provider.py\n```\n\"\"\"Crypto provider used by the service. Usage here is direct.\"\"\"\n\nimport hashlib\n\n\ndef hash_password(password: str) -> str:\n return hashlib.md5(password.encode()).hexdigest()\n\n\nclass RSA2048:\n def sign(self, data: bytes) -> bytes:\n return b\"sig:\" + data\n\n\n_SIGNER = RSA2048()\n\n\ndef sign_token(token: str) -> bytes:\n return _SIGNER.sign(token.encode())\n\n```\n\n### config.yaml\n```\nsigning:\n algorithm: rsa-2048\nhashing:\n algorithm: md5\n\n```", "sources": ["https://cyclonedx.org/capabilities/cbom/"], "basis": "CycloneDX cryptographic-asset schema for CBOM output", "held_out": false, "difficulty": 3, "track": "cbom", "gold": "{\n \"bomFormat\": \"CycloneDX\",\n \"specVersion\": \"1.6\",\n \"components\": [\n {\"type\": \"cryptographic-asset\", \"name\": \"MD5\",\n \"cryptoProperties\": {\"assetType\": \"algorithm\",\n \"algorithmProperties\": {\"primitive\": \"hash\", \"executionEnvironment\": \"software\"}}},\n {\"type\": \"cryptographic-asset\", \"name\": \"RSA-2048\",\n \"cryptoProperties\": {\"assetType\": \"algorithm\",\n \"algorithmProperties\": {\"primitive\": \"signature\", \"executionEnvironment\": \"software\"}}}\n ]\n}\n", "repo": {"fixture": "fixtures/svc-indirect", "mode": "artifact", "target": "cbom.json", "context_files": ["service.py", "crypto/provider.py", "config.yaml"], "run": ["python3", "check_cbom.py"]}}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "repo-discover-crypto", "tier": "engineering", "type": "repo", "tags": ["audit", "discovery", "crypto-hygiene"], "prompt": "You are auditing the repository in `fixtures/audit-app`. Identify the\nweak-cryptography findings in `app.py`: the RSA key-size constant, the\nhardcoded key, and the weak password hash.\n\nFor each finding, give the file name and the identifier involved.\n\nRepository contents:\n\n### app.py\n```\n\"\"\"Toy service with deliberately weak crypto, used as an audit fixture.\n\nThis is fixture code, not benchmark code. It is meant to be found and fixed.\n\"\"\"\n\nimport hashlib\n\nKEY_BITS = 1024\n_HARDCODED_KEY = b\"0123456789abcdef\"\n\n\ndef get_key():\n return _HARDCODED_KEY\n\n\ndef hash_password(password: str) -> str:\n return hashlib.md5(password.encode()).hexdigest()\n\n```", "sources": ["https://csrc.nist.gov/pubs/sp/800/131/a/r2/final"], "basis": "Crypto hygiene: RSA key size, hardcoded secrets, weak hashes (NIST guidance)", "held_out": false, "gold": "Findings in app.py:\n1. KEY_BITS = 1024 — RSA modulus too small; must be at least 2048 bits.\n2. _HARDCODED_KEY — a secret key embedded in source; load it from the\n environment (APP_KEY) instead.\n3. hash_password uses hashlib.md5 — broken hash; use SHA-256.\n", "repo": {"fixture": "fixtures/audit-app", "mode": "discovery", "context_files": ["app.py"], "expected": ["KEY_BITS", "HARDCODED_KEY", "md5"]}}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "repo-discover-indirect", "tier": "engineering", "type": "repo", "tags": ["discovery", "indirect-usage", "evidence"], "prompt": "Audit the repository `fixtures/svc-indirect`. Cryptographic use is partly\nINDIRECT: `service.py` calls into `crypto/provider.py`, and some algorithms\nare selected in `config.yaml`.\n\nReport every cryptographic finding, including indirect usage. Return JSON:\n\n{\"findings\": [\n {\"file\": \"<path>\", \"symbol\": \"<function/class/identifier>\",\n \"algorithm\": \"<md5|rsa-2048|...>\", \"operation\": \"<hash|sign|config|...>\",\n \"line\": <int>, \"evidence\": \"<short justification>\"}\n]}\n\nReturn only the JSON object.\n\nRepository contents:\n\n### service.py\n```\n\"\"\"Application service. Crypto is used INDIRECTLY via crypto.provider.\"\"\"\n\nfrom crypto import provider\n\n\ndef register_user(username: str, password: str) -> dict:\n return {\"user\": username, \"pw_hash\": provider.hash_password(password)}\n\n\ndef issue_token(token: str) -> bytes:\n return provider.sign_token(token)\n\n```\n\n### crypto/provider.py\n```\n\"\"\"Crypto provider used by the service. Usage here is direct.\"\"\"\n\nimport hashlib\n\n\ndef hash_password(password: str) -> str:\n return hashlib.md5(password.encode()).hexdigest()\n\n\nclass RSA2048:\n def sign(self, data: bytes) -> bytes:\n return b\"sig:\" + data\n\n\n_SIGNER = RSA2048()\n\n\ndef sign_token(token: str) -> bytes:\n return _SIGNER.sign(token.encode())\n\n```\n\n### config.yaml\n```\nsigning:\n algorithm: rsa-2048\nhashing:\n algorithm: md5\n\n```", "sources": ["https://csrc.nist.gov/pubs/cswp/39/cryptographic-agility-and-interoperability/final"], "basis": "Cryptographic asset discovery incl. indirect usage (NIST CSWP 39 / CBOM practice)", "held_out": false, "difficulty": 3, "track": "discovery", "gold": "{\"findings\": [\n {\"file\": \"crypto/provider.py\", \"symbol\": \"hash_password\", \"algorithm\": \"md5\",\n \"operation\": \"hash\", \"line\": 7, \"evidence\": \"hashlib.md5 in provider\"},\n {\"file\": \"crypto/provider.py\", \"symbol\": \"RSA2048\", \"algorithm\": \"rsa-2048\",\n \"operation\": \"sign\", \"line\": 10, \"evidence\": \"RSA signer class\"},\n {\"file\": \"service.py\", \"symbol\": \"hash_password\", \"algorithm\": \"md5\",\n \"operation\": \"hash\", \"line\": 6, \"evidence\": \"calls provider.hash_password\"},\n {\"file\": \"service.py\", \"symbol\": \"sign_token\", \"algorithm\": \"rsa-2048\",\n \"operation\": \"sign\", \"line\": 10, \"evidence\": \"calls provider.sign_token\"},\n {\"file\": \"config.yaml\", \"symbol\": \"signing.algorithm\", \"algorithm\": \"rsa-2048\",\n \"operation\": \"config\", \"line\": 2, \"evidence\": \"signing algorithm configured\"}\n]}\n", "repo": {"fixture": "fixtures/svc-indirect", "mode": "discovery", "context_files": ["service.py", "crypto/provider.py", "config.yaml"], "expected_findings": [{"file": "crypto/provider.py", "symbol": "hash_password", "algorithm": "md5", "operation": "hash"}, {"file": "crypto/provider.py", "symbol": "RSA2048", "algorithm": "rsa-2048", "operation": "sign"}, {"file": "service.py", "symbol": "hash_password", "algorithm": "md5", "operation": "hash"}, {"file": "service.py", "symbol": "sign_token", "algorithm": "rsa-2048", "operation": "sign"}, {"file": "config.yaml", "symbol": "signing.algorithm", "algorithm": "rsa-2048", "operation": "config"}]}}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "repo-patch-crypto", "tier": "engineering", "type": "repo", "tags": ["patch", "remediation", "crypto-hygiene"], "prompt": "The repository `fixtures/audit-app` has weak cryptography in `app.py` and a\nfailing test suite in `tests/test_app.py`.\n\nCurrent app.py:\n\n```python\nimport hashlib\n\nKEY_BITS = 1024\n_HARDCODED_KEY = b\"0123456789abcdef\"\n\ndef get_key():\n return _HARDCODED_KEY\n\ndef hash_password(password: str) -> str:\n return hashlib.md5(password.encode()).hexdigest()\n```\n\nRewrite `app.py` so the tests pass:\n - KEY_BITS must be at least 2048.\n - get_key() must read APP_KEY from the environment and raise RuntimeError\n when it is unset.\n - hash_password must use SHA-256.\n\nReturn the complete corrected `app.py` in one Python code block.\n\nRepository contents:\n\n### tests/test_app.py\n```\n\"\"\"Tests that fail until the crypto misuse in app.py is fixed.\"\"\"\n\nimport hashlib\nimport importlib\nimport os\nimport sys\nimport unittest\n\nsys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))\n\n\nclass CryptoHygiene(unittest.TestCase):\n def setUp(self):\n import app\n self.app = importlib.reload(app)\n\n def test_rsa_key_bits_at_least_2048(self):\n self.assertGreaterEqual(self.app.KEY_BITS, 2048)\n\n def test_key_comes_from_environment(self):\n os.environ[\"APP_KEY\"] = \"x\" * 32\n try:\n self.assertEqual(self.app.get_key(), b\"x\" * 32)\n finally:\n del os.environ[\"APP_KEY\"]\n with self.assertRaises(RuntimeError):\n self.app.get_key()\n\n def test_password_hash_is_sha256(self):\n self.assertEqual(self.app.hash_password(\"abc\"),\n hashlib.sha256(b\"abc\").hexdigest())\n\n\nif __name__ == \"__main__\":\n unittest.main()\n\n```", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf", "https://csrc.nist.gov/pubs/sp/800/131/a/r2/final"], "basis": "Remediation: RSA >= 2048 bits, secrets from env, SHA-256 for passwords", "held_out": false, "gold": "```python\nimport hashlib\nimport os\n\nKEY_BITS = 2048\n\n\ndef get_key() -> bytes:\n value = os.environ.get(\"APP_KEY\")\n if not value:\n raise RuntimeError(\"APP_KEY is not set\")\n return value.encode()\n\n\ndef hash_password(password: str) -> str:\n return hashlib.sha256(password.encode()).hexdigest()\n```\n", "repo": {"fixture": "fixtures/audit-app", "mode": "patch", "target": "app.py", "context_files": ["tests/test_app.py"], "run": ["python3", "-m", "unittest", "discover", "-s", "tests", "-v"]}}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-barrett", "tier": "implementation", "type": "code", "tags": ["ml-kem", "modular-reduction"], "prompt": "ML-KEM uses Barrett reduction with q = 3329 to map an integer a to the\nrepresentative congruent to a mod q in the range (-q/2, q/2]. The standard\nroutine is:\n\n v = ((1 << 26) + q // 2) // q\n t = (v * a + (1 << 25)) >> 26\n t *= q\n return a - t\n\nImplement a module-level Python function:\n\n barrett_reduce(a: int) -> int\n\nmatching this routine exactly (including for negative a).\nReturn a single Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 BarrettReduce with q = 3329", "held_out": false, "gold": "```python\nQ = 3329\n\ndef barrett_reduce(a):\n v = ((1 << 26) + Q // 2) // Q\n t = (v * a + (1 << 25)) >> 26\n t *= Q\n return a - t\n```\n", "checker": "graders/checks/barrett.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-bitrev7", "tier": "implementation", "type": "code", "tags": ["ml-kem", "ntt"], "prompt": "ML-KEM uses BitRev7(i): reverse the 7-bit binary representation of the index i,\nfor 0 <= i < 128. For example BitRev7(1) = 64 and BitRev7(3) = 96.\n\nImplement a module-level Python function:\n\n bitrev7(i: int) -> int\n\nReturn a single Python code block containing only this function.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 BitRev7 used by the NTT", "held_out": false, "gold": "```python\ndef bitrev7(i):\n r = 0\n for b in range(7):\n r |= ((i >> b) & 1) << (6 - b)\n return r\n```\n", "checker": "graders/checks/bitrev.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-bytedecode12", "tier": "implementation", "type": "code", "tags": ["ml-kem", "serialisation", "fips-203"], "prompt": "Implement FIPS 203 ByteDecode_12: unpack 384 bytes into 256 coefficients\n(12 bits each, little-endian), the inverse of ByteEncode_12.\n\nImplement a module-level Python function:\n\n bytedecode12(b: bytes) -> list[int]\n\nReturn one Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 ByteDecode_12", "held_out": false, "gold": "```python\ndef bytedecode12(b):\n out = []\n acc = 0\n nb = 0\n i = 0\n while len(out) < 256:\n while nb < 12:\n acc |= b[i] << nb\n i += 1\n nb += 8\n out.append(acc & 0xFFF)\n acc >>= 12\n nb -= 12\n return out\n```\n", "checker": "graders/checks/bytedecode.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-byteencode12", "tier": "implementation", "type": "code", "tags": ["ml-kem", "serialisation", "fips-203"], "prompt": "Implement FIPS 203 ByteEncode_12: pack 256 coefficients (each 12 bits, in\n[0, 3329)) into 384 bytes using little-endian bit packing.\n\nImplement a module-level Python function:\n\n byteencode12(a: list[int]) -> bytes\n\nReturn one Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 ByteEncode_12", "held_out": false, "gold": "```python\ndef byteencode12(a):\n out = bytearray()\n acc = 0\n nb = 0\n for x in a:\n acc |= (x & 0xFFF) << nb\n nb += 12\n while nb >= 8:\n out.append(acc & 0xFF)\n acc >>= 8\n nb -= 8\n return bytes(out)\n```\n", "checker": "graders/checks/byteencode.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-cbd2", "tier": "implementation", "type": "code", "tags": ["ml-kem", "sampling", "fips-203"], "prompt": "FIPS 203 defines SamplePolyCBD_eta. For eta = 2, the input is 128 bytes\n(1024 bits) and the output is 256 coefficients.\n\nImplement a module-level Python function:\n\n cbd2(b: bytes) -> list[int]\n\nreturning the 256 coefficients reduced modulo q = 3329 (i.e. integers in\n[0, 3329)). Return one Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 SamplePolyCBD with eta=2", "held_out": false, "gold": "```python\nQ = 3329\n\ndef cbd2(b):\n bits = []\n for byte in b:\n for j in range(8):\n bits.append((byte >> j) & 1)\n out = []\n for i in range(256):\n a = bits[4*i] + bits[4*i+1]\n c = bits[4*i+2] + bits[4*i+3]\n out.append((a - c) % Q)\n return out\n```\n", "checker": "graders/checks/cbd.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-compress", "tier": "implementation", "type": "code", "tags": ["ml-kem", "compression"], "prompt": "FIPS 203 (ML-KEM) defines, for q = 3329 and 0 <= x < q:\n\n Compress_d(x) = round( (2^d / q) * x ) mod 2^d\n Decompress_d(y) = round( (q / 2^d) * y )\n\nImplement two module-level Python functions:\n\n compress_d(x: int, d: int) -> int\n decompress_d(y: int, d: int) -> int\n\nThey must match the specification exactly for d in {1, 4, 10, 11}.\nReturn a single Python code block containing only these functions.\nDo not print anything.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 Compress_d / Decompress_d definitions", "held_out": false, "gold": "```python\nQ = 3329\n\ndef compress_d(x, d):\n return (((x << d) + Q // 2) // Q) & ((1 << d) - 1)\n\ndef decompress_d(y, d):\n return (y * Q + (1 << (d - 1))) >> d\n```\n", "checker": "graders/checks/compress.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-implicit-reject", "tier": "implementation", "type": "code", "tags": ["ml-kem", "decapsulation", "fips-203"], "prompt": "In ML-KEM decapsulation, if the re-encryption check fails the algorithm\nreturns an implicit-rejection value K_bar = SHAKE256(z || c, 32), where z is\nthe 32-byte decapsulation key component and c is the ciphertext.\n\nImplement a module-level Python function:\n\n implicit_reject(z: bytes, c: bytes) -> bytes\n\nreturning the 32-byte value. Return one Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 implicit rejection K_bar = SHAKE256(z||c,32)", "held_out": false, "gold": "```python\nimport hashlib\n\ndef implicit_reject(z, c):\n return hashlib.shake_256(z + c).digest(32)\n```\n", "checker": "graders/checks/implicit_reject.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-validate-ek", "tier": "implementation", "type": "code", "tags": ["ml-kem", "input-validation", "secure-coding"], "prompt": "An ML-KEM-768 encapsulation key is exactly 1184 bytes. Implement a\nmodule-level function that rejects malformed keys before use:\n\n validate_ek(ek: bytes) -> bool\n\nreturning True only when the key length is exactly 1184 bytes, and False\notherwise. Return one Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 ML-KEM-768 encapsulation key length = 1184 bytes", "held_out": false, "gold": "```python\ndef validate_ek(ek):\n return len(ek) == 1184\n```\n", "checker": "graders/checks/validate_ek.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "impl-zetas", "tier": "implementation", "type": "code", "tags": ["ml-kem", "ntt", "constants"], "prompt": "ML-KEM's number-theoretic transform uses the 128-entry table\n\n zetas[i] = 17^BitRev7(i) mod 3329, i = 0 .. 127\n\nwhere BitRev7 reverses the 7-bit representation of i.\n\nImplement a module-level function:\n\n zetas() -> list[int]\n\nreturning this list of 128 integers. Return a single Python code block.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 NTT zeta table zetas[i] = 17^BitRev7(i) mod 3329", "held_out": false, "gold": "```python\nQ = 3329\n\ndef bitrev7(i):\n r = 0\n for b in range(7):\n r |= ((i >> b) & 1) << (6 - b)\n return r\n\ndef zetas():\n return [pow(17, bitrev7(i), Q) for i in range(128)]\n```\n", "checker": "graders/checks/zetas.py"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "judge-falcon-risk", "tier": "judgment", "type": "rubric", "tags": ["fn-dsa", "implementation-risk"], "prompt": "Your team must ship a PQC signature scheme. A colleague proposes FALCON/FN-DSA\nbecause its signatures are the smallest. What implementation risks should you\nweigh before agreeing, and what would you recommend?\n", "sources": ["https://falcon-sign.info/", "https://www.nist.gov/news-events/news/2024/08/announcing-approval-three-federal-information-processing-standards-fips"], "basis": "FN-DSA floating-point sampling; FIPS 206 still in development", "held_out": false, "gold": "FN-DSA (FALCON) does give the smallest signatures, but the cost is\nimplementation risk. It relies on floating-point FFT Gaussian sampling, and\nmaking that constant-time is notoriously hard; floating-point non-determinism\nacross platforms also threatens reproducibility. These factors raise the risk of\nside-channel leakage and correctness bugs. ML-DSA is simpler to implement\nsafely, at the cost of larger signatures. I would only agree to FN-DSA with a\nwell-vetted reference implementation and an independent side-channel audit.\n", "rubric": [{"id": "floating-point", "desc": "identifies floating-point FFT sampling", "weight": 1, "match_any": ["floating-point", "floating point", "fft"]}, {"id": "side-channel", "desc": "raises constant-time / side-channel difficulty", "weight": 1, "match_any": ["gaussian", "sampling", "side-channel", "side channel", "constant-time"]}, {"id": "determinism", "desc": "notes cross-platform non-determinism / portability risk", "weight": 1, "match_any": ["determinism", "non-determinism", "platform", "portability"]}, {"id": "alternative", "desc": "notes ML-DSA is simpler to implement safely", "weight": 1, "match_any": ["ml-dsa", "dilithium", "simpler"]}, {"id": "mitigation", "desc": "recommends a vetted reference implementation and/or audit", "weight": 1, "match_any": ["vetted", "review", "audit", "reference implementation"]}], "must_not": [["falcon is easy to implement", "no side-channel risk"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "judge-iot-signature", "tier": "judgment", "type": "rubric", "tags": ["ml-dsa", "slh-dsa", "engineering-tradeoff"], "prompt": "You must add digital signatures to a battery-powered sensor that sends small\n(~200 byte) telemetry frames over a low-bandwidth LoRa link. Compare\nML-DSA-44 and SLH-DSA-128s and recommend one, with reasoning.\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf", "https://nvlpubs.nist.gov/nistpubs/fips/NIST.FIPS.205.pdf"], "basis": "FIPS 204 (ML-DSA) vs FIPS 205 (SLH-DSA) signature sizes and assumptions", "held_out": false, "gold": "Recommend ML-DSA-44 (Dilithium). Its signatures are about 2.4 KB, while\nSLH-DSA-128s signatures are roughly 7.9 KB; on a 200-byte LoRa frame the extra\nbandwidth and energy cost of SLH-DSA is significant for a battery-powered\nsensor. ML-DSA rests on module-lattice assumptions, which are less conservative\nthan SLH-DSA's reliance only on hash security, but the lattice assumptions\nbehind ML-KEM and ML-DSA are the best-studied post-quantum assumptions and are\ndeployed at scale. If bandwidth were abundant I would pick SLH-DSA for its\nminimal assumptions; here bandwidth and energy dominate. Both need constant-time\nimplementation care.\n", "rubric": [{"id": "recommends-ml-dsa", "desc": "recommends ML-DSA-44 (or a clearly reasoned equivalent)", "weight": 1, "match_any": ["ml-dsa-44", "dilithium"], "not_match_any": ["reject ml-dsa", "not recommend ml-dsa", "would not recommend ml-dsa", "against ml-dsa", "use slh-dsa", "prefer slh-dsa"]}, {"id": "quantifies-size", "desc": "quantifies the signature-size gap (ML-DSA ~2.4KB vs SLH-DSA ~7.9KB)", "weight": 1, "match_any": ["2.4", "2420", "7.9", "7856", "signature size", "kb"]}, {"id": "notes-hash-only", "desc": "notes SLH-DSA relies only on hash security (most conservative)", "weight": 1, "match_any": ["hash security", "only on hash", "conservative", "minimal assumption"]}, {"id": "considers-constraint", "desc": "weighs bandwidth/energy of the constrained link", "weight": 1, "match_any": ["bandwidth", "energy", "lora", "constrained", "power"]}, {"id": "acknowledges-assumption-gap", "desc": "acknowledges lattice assumptions are less conservative than hash-only", "weight": 1, "match_any": ["less conservative", "lattice assumption", "module-lattice", "best-studied", "well-studied"]}], "must_not": [["slh-dsa is lattice", "sphincs+ is lattice", "slh-dsa uses lattices"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "judge-tls-kem", "tier": "judgment", "type": "rubric", "tags": ["ml-kem", "mceliece", "deployment-tradeoff"], "prompt": "A large e-commerce site is choosing a KEM for TLS 1.3. Compare ML-KEM-768\nagainst Classic McEliece and recommend one, considering real deployment.\n", "sources": ["https://developers.cloudflare.com/ssl/post-quantum-cryptography/", "https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf"], "basis": "ML-KEM deployment in TLS; Classic McEliece not selected (NIST IR 8545)", "held_out": false, "gold": "Recommend a hybrid of X25519 and ML-KEM-768 for TLS 1.3. ML-KEM-768 has a\n~1.2 KB encapsulation key and ~1.1 KB ciphertext, which fits comfortably in a\nTLS handshake. Classic McEliece has a public key around 1 MB, which bloats the\nhandshake and any certificate carrying it and is impractical at e-commerce\nscale. McEliece is more conservative — code-based, with decades of study — but\nits key size rules it out for mass TLS. Running the hybrid keeps classical\nsecurity if ML-KEM is later broken while adding quantum security; the added\nbytes are modest.\n", "rubric": [{"id": "recommends-mlkem-or-hybrid", "desc": "recommends ML-KEM-768 or a hybrid containing it", "weight": 1, "match_any": ["ml-kem-768", "hybrid"]}, {"id": "notes-mceliece-size", "desc": "notes Classic McEliece's very large public key (~1 MB)", "weight": 1, "match_any": ["mceliece", "1 mb", "megabyte", "large public key", "huge key"]}, {"id": "notes-handshake-impact", "desc": "explains handshake/certificate bandwidth impact", "weight": 1, "match_any": ["handshake", "certificate", "bandwidth", "size"]}, {"id": "hybrid-rationale", "desc": "explains hybrid rationale (classical + quantum security)", "weight": 1, "match_any": ["hybrid", "classical security", "x25519"]}, {"id": "notes-mceliece-conservative", "desc": "acknowledges McEliece is more conservative (code-based, decades of study)", "weight": 1, "match_any": ["conservative", "code-based", "decades"]}], "must_not": [["mceliece has small keys", "ml-kem is broken"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-falcon-hard", "tier": "knowledge", "type": "mcq", "tags": ["fn-dsa", "implementation"], "prompt": "Which PQC signature scheme requires floating-point FFT Gaussian sampling, making\nconstant-time implementation notably hard?\nAnswer with the single letter only.\n\nA) ML-DSA\nB) SLH-DSA\nC) FN-DSA (FALCON)\nD) LMS\n", "sources": ["https://falcon-sign.info/"], "basis": "FALCON/FN-DSA uses floating-point FFT Gaussian sampling", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-fips-number", "tier": "knowledge", "type": "mcq", "tags": ["standards", "ml-dsa"], "prompt": "Which FIPS standard specifies ML-DSA (the Dilithium signature scheme)?\nAnswer with the single letter only.\n\nA) FIPS 203\nB) FIPS 204\nC) FIPS 205\nD) FIPS 206\n", "sources": ["https://www.federalregister.gov/documents/2024/08/14/2024-17956/announcing-issuance-of-federal-information-processing-standards-fips-fips-203-module-lattice-based"], "basis": "FIPS 204 specifies ML-DSA (Federal Register notice)", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-hybrid-why", "tier": "knowledge", "type": "mcq", "tags": ["deployment", "hybrid"], "prompt": "Why do real deployments (e.g. TLS, Signal) run hybrid key exchange such as\nX25519 + ML-KEM rather than ML-KEM alone?\nAnswer with the single letter only.\n\nA) ML-KEM is slower than X25519 alone\nB) To retain classical security if ML-KEM is broken, and gain quantum security if X25519 is broken\nC) Because ML-KEM cannot be used on its own\nD) To reduce total key size\n", "sources": ["https://developers.cloudflare.com/ssl/post-quantum-cryptography/", "https://signal.org/blog/pqxdh/"], "basis": "Hybrid key exchange rationale (X25519 + ML-KEM) in real deployments", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-kyberslash", "tier": "knowledge", "type": "mcq", "tags": ["ml-kem", "implementation", "side-channel"], "prompt": "\"KyberSlash\" (2023-24) was which of the following?\nAnswer with the single letter only.\n\nA) A break of the underlying Module-LWE problem\nB) A timing side-channel in some reference implementations caused by secret-dependent division\nC) A universal forgery against ML-DSA\nD) A quantum key-recovery attack\n", "sources": ["https://kyberslash.cr.yp.to/"], "basis": "KyberSlash: secret-dependent division timing issue in some implementations", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-mlkem-512-level", "tier": "knowledge", "type": "mcq", "tags": ["ml-kem", "parameters", "security-level"], "prompt": "ML-KEM-512 targets which NIST security category?\nAnswer with the single letter only.\n\nA) Category 1\nB) Category 3\nC) Category 5\nD) Category 2\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203: ML-KEM-512 targets NIST category 1", "held_out": false, "answer": "A", "gold": "A"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-mlkem-768-eksize", "tier": "knowledge", "type": "mcq", "tags": ["ml-kem", "parameters", "sizes"], "prompt": "What is the encapsulation (public) key size of ML-KEM-768, in bytes?\nAnswer with the single letter only.\n\nA) 800\nB) 1184\nC) 1568\nD) 2400\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf"], "basis": "FIPS 203 parameter sets and key/ciphertext sizes", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-mlkem-basis", "tier": "knowledge", "type": "mcq", "tags": ["ml-kem", "security-basis"], "prompt": "ML-KEM (FIPS 203) derives its security from which computational problem?\nAnswer with the single letter only.\n\nA) Integer factorisation\nB) Module Learning With Errors (Module-LWE)\nC) Decoding random linear codes\nD) Supersingular isogeny problems\n", "sources": ["https://csrc.nist.gov/pubs/fips/203/final"], "basis": "FIPS 203 abstract: ML-KEM security relates to Module-LWE", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-rainbow-break", "tier": "knowledge", "type": "mcq", "tags": ["multivariate", "attacks", "history"], "prompt": "Rainbow (a multivariate signature scheme) was broken in 2022 by Beullens.\nWhat was the core of the attack?\nAnswer with the single letter only.\n\nA) A key-recovery attack exploiting the differential structure of the central map\nB) A large-scale quantum computer\nC) A timing side-channel in the reference implementation\nD) Grover's algorithm on the private key\n", "sources": ["https://eprint.iacr.org/2022/214"], "basis": "Beullens 2022 'Breaking Rainbow Takes a Weekend on a Laptop'", "held_out": false, "answer": "A", "gold": "A"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-sike-break", "tier": "knowledge", "type": "mcq", "tags": ["isogeny", "attacks", "history"], "prompt": "SIKE (an isogeny-based KEM) was broken in 2022. Which class of attack did it?\nAnswer with the single letter only.\n\nA) Lattice reduction (BKZ)\nB) A torsion-point / glue-and-split attack on SIDH\nC) Grover's quantum search\nD) Differential fault analysis\n", "sources": ["https://eprint.iacr.org/2022/975"], "basis": "Castryck-Decru 2022 key-recovery attack on SIDH/SIKE", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "know-slhdsa-basis", "tier": "knowledge", "type": "mcq", "tags": ["slh-dsa", "security-basis"], "prompt": "SLH-DSA (SPHINCS+, FIPS 205) bases its security on which assumption?\nAnswer with the single letter only.\n\nA) Module-LWE\nB) Hardness of decoding random linear codes\nC) Only the security of an underlying hash function\nD) NTRU lattice problems\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/fips/NIST.FIPS.205.pdf"], "basis": "FIPS 205: SLH-DSA is stateless hash-based", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "scen-firmware-signing", "tier": "scenarios", "type": "rubric", "tags": ["cnsa-2.0", "firmware", "stateful-signatures"], "prompt": "You must design firmware signing to meet CNSA 2.0. Which signature algorithms\napply, and what operational constraint do they impose that a lattice signature\nwould not?\n", "sources": ["https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF", "https://csrc.nist.gov/pubs/sp/800/208/final"], "basis": "CNSA 2.0 requires LMS/XMSS (SP 800-208) for firmware signing", "held_out": false, "gold": "CNSA 2.0 requires LMS or XMSS per NIST SP 800-208 for software and firmware\nsigning. These are stateful hash-based signatures: each one-time key index\nmust be used exactly once, so the signing system must reliably track and never\nreuse state. That constraint is why signing is expected to run in hardware\n(HSM) and is a poor fit for a large, distributed set of signers. By contrast\nML-DSA and SLH-DSA are stateless. CNSA 2.0 targets exclusive use of these\nsigning algorithms by 2030 (support and prefer by 2025).\n", "rubric": [{"id": "names-lms-xmss", "desc": "names LMS and/or XMSS from SP 800-208", "weight": 1, "critical": true, "match_any": ["lms", "xmss", "800-208"]}, {"id": "stateful", "desc": "identifies that these are stateful (must track one-time key index)", "weight": 1, "critical": true, "match_any": ["stateful", "one-time key", "state management", "key index", "must not reuse"]}, {"id": "hardware", "desc": "notes signing should be in hardware / state must not be reused", "weight": 1, "match_any": ["hardware", "hsm", "reuse", "state management"]}, {"id": "contrast", "desc": "contrasts with ML-DSA/SLH-DSA which are stateless", "weight": 1, "match_any": ["stateless", "ml-dsa", "slh-dsa"]}, {"id": "timeline", "desc": "notes the CNSA 2.0 signing deadline (exclusive by 2030)", "weight": 1, "match_any": ["2030", "2025"]}], "must_not": [["lms is stateless", "xmss does not need state"], ["not stateful", "no one-time key", "does not require state"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "scen-india-bank-migration", "tier": "scenarios", "type": "rubric", "tags": ["india", "banking", "migration-plan"], "prompt": "You advise a large Indian bank that must plan its post-quantum migration.\nWhich requirements and timelines actually apply to it, and what should it do\nfirst? Be specific about the Indian framework.\n", "sources": ["https://www.dst.gov.in/static/uploads/2026/07/dba5f97fa8f4c8db5ef668306548a470.pdf", "https://tec.gov.in/pdf/TR/Final%20technical%20report%20on%20migration%20to%20PQC%2028-03-25.pdf", "https://cert-in.org.in/PDF/TechnicalGuidelines-on-SBOM,QBOM&CBOM,AIBOM_and_HBOM_ver2.0.pdf"], "basis": "India DST/NQM Task Force timelines; TEC 910018:2025; CERT-In CBOM/QBOM", "held_out": false, "gold": "India's framework applies through several bodies. The DST/National Quantum\nMission Task Force sets phased timelines: CII sectors such as banking should\nhit foundations by 2027, high-priority migration by 2028, and full PQC\nadoption by 2029 (other enterprises 2028/2030/2033). These are proposed\nroadmap milestones, not a regulatory mandate: the report states its framework\nis not itself binding and enables sectoral regulators to set their own\ntimelines. The L1-L4 testing and certification framework is described in that\nDST report, through its TEC-led sub-group; TEC 910018:2025 is the separate\ntechnical migration report. CERT-In's v2.0 guidelines require a Cryptographic\nBOM (CBOM) and Quantum BOM (QBOM) for cryptographic assets. Planning should\nfollow an \"assume-breach\" stance because of harvest-now-decrypt-later risk.\nThe first step is a cryptographic inventory/discovery across the estate,\nprioritising long-lived sensitive data. Whether the CII milestones apply\ndepends on whether the entity is formally designated critical information\ninfrastructure rather than merely being a bank; sectoral regulators determine\napplicability.\n", "rubric": [{"id": "cites-tec", "desc": "references India's TEC / DST-NQM framework or TEC 910018:2025", "weight": 1, "match_any": ["tec", "dst", "national quantum mission", "910018"]}, {"id": "cites-timeline", "desc": "gives the CII timelines (2027/2028/2029) or enterprise 2028/2030/2033", "weight": 1, "match_any": ["2027", "2028", "2029", "2033"]}, {"id": "cites-cbom", "desc": "references CERT-In CBOM/QBOM requirement", "weight": 1, "critical": true, "match_any": ["cbom", "qbom", "bill of materials", "cryptographic bill"]}, {"id": "assume-breach", "desc": "mentions harvest-now-decrypt-later / assume-breach", "weight": 1, "match_any": ["harvest", "hndl", "assume-breach", "store now"]}, {"id": "first-step", "desc": "recommends a cryptographic inventory/discovery as the first step", "weight": 1, "match_any": ["inventory", "discovery", "asset", "cryptographic inventory"]}, {"id": "cii-designation", "desc": "distinguishes designated CII from the banking sector generally", "weight": 1, "critical": true, "match_any": ["designated", "critical information infrastructure", "if designated", "applicability", "sectoral regulator"]}], "must_not": [["there is no indian guidance", "india has no pqc policy"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "scen-ssh-fleet", "tier": "scenarios", "type": "rubric", "tags": ["openssh", "operations"], "prompt": "Your server fleet runs OpenSSH 9.6. A security review asks whether your SSH\ntraffic is post-quantum safe. What is the actual situation and what should\nyou do?\n", "sources": ["https://www.openssh.org/txt/release-9.9", "https://www.openssh.org/txt/release-10.0", "https://www.openssh.org/pq.html"], "basis": "OpenSSH 9.9/10.0 post-quantum KEX defaults", "held_out": false, "gold": "OpenSSH 9.6 already negotiates post-quantum key exchange by default: since\n9.0 the default has been the hybrid sntrup761x25519-sha512, so your SSH\nsessions are likely already PQ-protected for key agreement. The newer hybrid\nmlkem768x25519-sha256 was added in 9.9 and became the default in 10.0. Hybrid\nmeans the session is secure if either X25519 or the PQ algorithm holds.\nRecommended action: upgrade toward 10.x and verify with `ssh -Q kex` and your\nKexAlgorithms config. Note 10.1 warns when a non-PQ key exchange is selected.\n", "rubric": [{"id": "explains-default", "desc": "explains sntrup761x25519 has been default since 9.0 (so likely PQ KEX already)", "weight": 1, "match_any": ["sntrup", "9.0", "already", "default since"]}, {"id": "mlkem", "desc": "notes mlkem768x25519 added in 9.9 / default in 10.0", "weight": 1, "match_any": ["mlkem", "9.9", "10.0"]}, {"id": "hybrid-reason", "desc": "explains hybrid keeps security if either algorithm breaks", "weight": 1, "match_any": ["hybrid", "either", "both", "x25519"]}, {"id": "action", "desc": "recommends upgrading and/or verifying KexAlgorithms", "weight": 1, "match_any": ["upgrade", "kexalgorithms", "ssh -q kex", "config"]}, {"id": "warning", "desc": "mentions 10.1 warns on non-PQ key exchange", "weight": 1, "match_any": ["10.1", "warn", "warning"]}], "must_not": [["ssh does not support post-quantum", "openssh has no pqc"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "scen-tls-gap", "tier": "scenarios", "type": "rubric", "tags": ["tls", "deployment", "signatures"], "prompt": "Your CDN reports that roughly half of client connections now negotiate\npost-quantum key exchange, but post-quantum signatures are at essentially\nzero. Explain why, and what the remaining gap means for you.\n", "sources": ["https://cacm.acm.org/news/post-quantum-tls-finished-the-easy-half/", "https://developers.cloudflare.com/ssl/post-quantum-cryptography/"], "basis": "IMC 2026 measurement: PQ key exchange ~49%, PQ signatures ~0%", "held_out": false, "gold": "The two halves of TLS moved at different speeds. Key exchange is deployed:\nbrowsers and CDNs negotiate the hybrid X25519MLKEM768 (codepoint 0x11ec),\nwhich protects against harvest-now-decrypt-later. Signatures are not: PQ\ncertificates are rare because of size, PKI and root-store hurdles, so\nauthentication still relies on classical ECC/RSA. Key exchange protects\nconfidentiality of captured traffic; signatures protect authentication now.\nThe gap means your sessions are confidential against future decryption but\nstill authenticated classically. Plan for PQ certificates and crypto-agility.\n", "rubric": [{"id": "kex-vs-sig", "desc": "distinguishes key exchange (deployed) from signatures (not deployed)", "weight": 1, "match_any": ["key exchange", "key agreement", "signature"]}, {"id": "x25519mlkem", "desc": "names X25519MLKEM768 as the negotiated group", "weight": 1, "critical": true, "match_any": ["x25519mlkem768", "mlkem768", "0x11ec"]}, {"id": "why-sig-hard", "desc": "explains why PQ certificates/signatures lag (size, PKI, root stores)", "weight": 1, "match_any": ["certificate", "pki", "root store", "size", "bandwidth"]}, {"id": "hndl-scope", "desc": "notes key exchange addresses harvest-now-decrypt-later, signatures address authentication", "weight": 1, "match_any": ["harvest", "hndl", "authentication", "store now"]}, {"id": "action", "desc": "recommends planning for PQ certificates / crypto-agility", "weight": 1, "match_any": ["crypto-agility", "agility", "plan", "merkle", "certificate"]}], "must_not": [["post-quantum signatures are widely deployed", "pq certificates are standard today"]]}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-anssi-hybrid", "tier": "standards", "type": "mcq", "tags": ["anssi", "france", "hybrid"], "prompt": "In ANSSI's post-quantum transition roadmap, how should post-quantum\nalgorithms be used during phases 1 and 2?\nAnswer with the single letter only.\n\nA) Optionally and standalone\nB) Mandatorily in hybrid with a classical algorithm\nC) Not at all\nD) Only for signatures\n", "sources": ["https://messervices.cyber.gouv.fr/documents-guides/EN_Position.pdf"], "basis": "ANSSI: hybrid mandatory in phases 1-2", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-bsi-keyagreement", "tier": "standards", "type": "mcq", "tags": ["bsi", "germany", "timeline"], "prompt": "Per BSI TR-02102-1 (2026), until when does BSI recommend classical asymmetric\nkey agreement on its own (i.e. not hybrid)?\nAnswer with the single letter only.\n\nA) End of 2031 (end of 2030 for highest-sensitivity use)\nB) End of 2035\nC) End of 2028\nD) There is no limit\n", "sources": ["https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR02102/BSI-TR-02102.pdf?__blob=publicationFile", "https://www.bsi.bund.de/DE/Service-Navi/Presse/Pressemitteilungen/Presse2026/260211_Ende_klassischer_Verschluesselungsverfahren.html"], "basis": "BSI TR-02102-1: classical key agreement alone to end 2031 (2030 highest)", "held_out": false, "answer": "A", "gold": "A"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-cnsa-browser", "tier": "standards", "type": "mcq", "tags": ["cnsa-2.0", "timeline"], "prompt": "By which year must web browsers and servers exclusively use CNSA 2.0\nalgorithms?\nAnswer with the single letter only.\n\nA) 2027\nB) 2030\nC) 2033\nD) 2035\n", "sources": ["https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF", "https://pqcstatus.com/articles/cnsa-2-0-timeline/"], "basis": "CNSA 2.0: browsers/servers exclusive use by 2033", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-cnsa-firmware", "tier": "standards", "type": "mcq", "tags": ["cnsa-2.0", "firmware-signing", "sp-800-208"], "prompt": "CNSA 2.0 requires which algorithms for software and firmware signing?\nAnswer with the single letter only.\n\nA) ML-DSA-87\nB) SLH-DSA\nC) LMS / XMSS (NIST SP 800-208)\nD) RSA-PSS\n", "sources": ["https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF"], "basis": "CNSA 2.0 firmware/software signing uses LMS/XMSS (SP 800-208)", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-cnsa-kem", "tier": "standards", "type": "mcq", "tags": ["cnsa-2.0", "nsa", "parameters"], "prompt": "Which parameter set does NSA's CNSA 2.0 require for key establishment?\nAnswer with the single letter only.\n\nA) ML-KEM-512\nB) ML-KEM-768\nC) ML-KEM-1024\nD) X25519 alone\n", "sources": ["https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF"], "basis": "CNSA 2.0 requires ML-KEM-1024 for key establishment", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-cnsa-signatures", "tier": "standards", "type": "mcq", "tags": ["cnsa-2.0", "signatures", "ml-dsa"], "prompt": "Which algorithm does CNSA 2.0 require for general-purpose digital\nsignatures (as distinct from software/firmware signing)?\nAnswer with the single letter only.\n\nA) ML-DSA-87\nB) LMS\nC) RSA-3072 with PSS\nD) ECDSA P-384\n", "sources": ["https://media.defense.gov/2025/May/30/2003728741/-1/-1/0/CSA_CNSA_2.0_ALGORITHMS.PDF"], "basis": "CNSA 2.0: ML-DSA-87 for general signatures; LMS/XMSS for firmware signing", "held_out": false, "answer": "A", "gold": "A"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-hqc-role", "tier": "standards", "type": "mcq", "tags": ["hqc", "nist", "kem"], "prompt": "NIST selected HQC in March 2025 for which role?\nAnswer with the single letter only.\n\nA) To replace ML-KEM as the primary KEM\nB) A backup KEM based on error-correcting codes, as a hedge against ML-KEM weakness\nC) A new signature scheme\nD) A hash function\n", "sources": ["https://www.nist.gov/news-events/news/2025/03/nist-selects-hqc-fifth-algorithm-post-quantum-encryption", "https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf"], "basis": "NIST selected HQC as backup code-based KEM (Mar 2025)", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-india-certin-cbom", "tier": "standards", "type": "mcq", "tags": ["india", "cert-in", "cbom", "scope"], "prompt": "CERT-In's v2.0 SBOM/QBOM/CBOM guidelines direct the CBOM/QBOM requirement at\nwhich organisations?\nAnswer with the single letter only.\n\nA) Every organisation in India, without exception\nB) Government, public-sector and essential-services organisations (and their suppliers), for relevant procurements, developments and integrations\nC) Only private banks\nD) Only foreign vendors\n", "sources": ["https://cert-in.org.in/PDF/TechnicalGuidelines-on-SBOM,QBOM&CBOM,AIBOM_and_HBOM_ver2.0.pdf"], "basis": "CERT-In v2.0 scopes CBOM/QBOM to government, public-sector and essential-services orgs and suppliers", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-india-cii-timeline", "tier": "standards", "type": "mcq", "tags": ["india", "dst", "timeline"], "prompt": "Per India's DST/National Quantum Mission Task Force, by which year should\nCII (critical information infrastructure) sectors reach full PQC adoption?\nAnswer with the single letter only.\n\nA) 2027\nB) 2028\nC) 2029\nD) 2033\n", "sources": ["https://www.dst.gov.in/static/uploads/2026/07/dba5f97fa8f4c8db5ef668306548a470.pdf", "https://www.thehindu.com/news/national/critical-sectors-must-have-quantum-safe-encryption-urges-task-force/article71029610.ece"], "basis": "DST/NQM: CII full PQC adoption by 2029", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-india-l1l4-source", "tier": "standards", "type": "mcq", "tags": ["india", "dst", "certification"], "prompt": "Which document sets out India's L1-L4 assurance levels for post-quantum\ntesting and certification?\nAnswer with the single letter only.\n\nA) TEC 910018:2025\nB) The DST / National Quantum Mission Task Force report (February 2026), via its TEC-led sub-group\nC) CERT-In's v2.0 SBOM/QBOM guidelines\nD) An RBI circular\n", "sources": ["https://www.dst.gov.in/static/uploads/2026/07/dba5f97fa8f4c8db5ef668306548a470.pdf"], "basis": "DST Task Force report (Feb 2026) describes the L1-L4 framework via its TEC-led sub-group", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-india-mandate", "tier": "standards", "type": "mcq", "tags": ["india", "dst", "policy-vs-mandate"], "prompt": "Are the DST Task Force's PQC migration milestones (CII sectors\n2027/2028/2029) a legally binding regulatory mandate for every Indian bank?\nAnswer with the single letter only.\n\nA) Yes, they are legally binding\nB) No - they are proposed roadmap milestones; the framework is explicitly not itself a regulatory mandate\nC) Only for public-sector banks\nD) Only after 2030\n", "sources": ["https://www.dst.gov.in/static/uploads/2026/07/dba5f97fa8f4c8db5ef668306548a470.pdf"], "basis": "DST report: proposed framework is not a regulatory mandate; regulators set timelines", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-india-tec-framework", "tier": "standards", "type": "mcq", "tags": ["india", "tec", "migration"], "prompt": "India's TEC document TEC 910018:2025 is best described as what?\nAnswer with the single letter only.\n\nA) A legally binding ban on RSA\nB) A technical report on migration to post-quantum cryptography\nC) A QKD-only mandate\nD) A proprietary algorithm suite\n", "sources": ["https://tec.gov.in/pdf/TR/Final%20technical%20report%20on%20migration%20to%20PQC%2028-03-25.pdf"], "basis": "TEC 910018:2025 is a technical migration report (not the L1-L4 framework)", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-nist-disallow", "tier": "standards", "type": "mcq", "tags": ["nist", "ir-8547", "timeline"], "prompt": "Under NIST IR 8547 (final, October 2026), when will quantum-vulnerable\npublic-key cryptography be disallowed under NIST standards and guidelines?\nAnswer with the single letter only.\n\nA) After 2030\nB) After 2035\nC) Immediately\nD) After 2040\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf"], "basis": "NIST IR 8547: deprecate after 2030, disallow after 2035", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-nist-hva", "tier": "standards", "type": "mcq", "tags": ["nist", "eo-14412", "timeline"], "prompt": "Under the accelerated US federal schedule (EO 14412 / OMB M-26-15), high-value\nassets must adopt post-quantum key establishment by which date?\nAnswer with the single letter only.\n\nA) 31 December 2028\nB) 31 December 2030\nC) 31 December 2033\nD) 31 December 2035\n", "sources": ["https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf"], "basis": "IR 8547 / EO 14412: high-value assets key establishment by 31 Dec 2030", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-openssh-default", "tier": "standards", "type": "mcq", "tags": ["openssh", "deployment"], "prompt": "In which OpenSSH release did mlkem768x25519-sha256 become the default key\nexchange algorithm?\nAnswer with the single letter only.\n\nA) 9.0\nB) 9.9\nC) 10.0\nD) 10.1\n", "sources": ["https://www.openssh.org/txt/release-10.0", "https://www.openssh.org/pq.html"], "basis": "mlkem768x25519-sha256 default in OpenSSH 10.0", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-pq-sig-adoption", "tier": "standards", "type": "mcq", "tags": ["deployment", "measurement", "tls"], "prompt": "According to the 2026 IMC large-scale TLS measurement, roughly what share of\nobserved domains used post-quantum *signature* algorithms?\nAnswer with the single letter only.\n\nA) 0%\nB) 25%\nC) 50%\nD) 90%\n", "sources": ["https://cacm.acm.org/news/post-quantum-tls-finished-the-easy-half/"], "basis": "IMC 2026: ~0% post-quantum signature adoption observed", "held_out": false, "answer": "A", "gold": "A"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-pq3-level", "tier": "standards", "type": "mcq", "tags": ["apple", "pq3", "deployment"], "prompt": "Apple describes iMessage PQ3 as reaching which security \"level\" (Apple's\nown framing)?\nAnswer with the single letter only.\n\nA) Level 1\nB) Level 2\nC) Level 3\nD) Level 4\n", "sources": ["https://security.apple.com/blog/imessage-pq3/"], "basis": "Apple iMessage PQ3 described as Level 3 security", "held_out": false, "answer": "C", "gold": "C"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-signal-kem", "tier": "standards", "type": "mcq", "tags": ["signal", "pqxdh", "deployment"], "prompt": "Signal's PQXDH protocol combines X25519 with which key encapsulation\nmechanism?\nAnswer with the single letter only.\n\nA) NTRU\nB) CRYSTALS-Kyber\nC) Classic McEliece\nD) HQC\n", "sources": ["https://signal.org/blog/pqxdh/"], "basis": "Signal PQXDH combines X25519 with CRYSTALS-Kyber", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-tls-codepoint", "tier": "standards", "type": "mcq", "tags": ["tls", "deployment", "hybrid"], "prompt": "Which TLS codepoint identifies the hybrid key agreement X25519MLKEM768?\nAnswer with the single letter only.\n\nA) 0x6399\nB) 0x11ec\nC) 0x1301\nD) 0x001d\n", "sources": ["https://developers.cloudflare.com/ssl/post-quantum-cryptography/", "https://security.googleblog.com/2024/09/a-new-path-for-kyber-on-the-web.html"], "basis": "X25519MLKEM768 = TLS codepoint 0x11ec", "held_out": false, "answer": "B", "gold": "B"}
{"_canary": "PQC-EVAL-CANARY-2026-11-27 :: do not train on this dataset :: predictivemanish.github.io", "id": "std-uk-ncsc-2028", "tier": "standards", "type": "mcq", "tags": ["ncsc", "uk", "timeline"], "prompt": "Per UK NCSC migration timelines, what should organisations have completed\nby 2028?\nAnswer with the single letter only.\n\nA) Full migration to PQC\nB) Discovery and an initial migration plan\nC) Standalone post-quantum signatures everywhere\nD) Retirement of all RSA keys\n", "sources": ["https://www.ncsc.gov.uk/guidance/pqc-migration-timelines"], "basis": "NCSC: discovery + initial plan by 2028", "held_out": false, "answer": "B", "gold": "B"}