Learn · Specialist
AI Security & PQC
Quantum threats to AI systems — data pipeline protection, model weight security, agent authentication, agentic commerce, and encryption at scale.
For you, every role: what this means
- Executive / Business Leader
- Step 1's Data Protection Analyzer lists where training data and model weights are protected by quantum-vulnerable cryptography today: stolen now, readable the day a large quantum computer arrives, which is the exposure to put beside your AI investment.
- Developer / Engineer
- Run the Data Protection Analyzer over an AI pipeline, then Step 3's model-weight encryption, key wrapping and signing configuration and Step 6's agent-to-agent protocol design: they are the touch points your code changes.
- Researcher / Academic
- Step 2's Data Authenticity Verifier and Step 5's Agentic Commerce Simulator model synthetic-data contamination and agent transactions under a quantum overlay, a threat model the literature is still writing.
- IT Ops / DevOps
- Step 4's authentication architectures and delegation chains for agents, and Step 6's protocol design, are the pieces that go into production; the analyzer in Step 1 is the inventory to run first.
Every AI system depends on a data pipeline — the flow from raw data ingestion through preprocessing, storage, training, and inference. Each stage involves cryptographic operations that protect data confidentiality and integrity. With the advent of cryptographically relevant quantum computers (CRQCs), these protections face an existential threat.
Harvest Now, Decrypt Later (HNDL)
Adversaries can intercept and store encrypted training data today, then decrypt it when a CRQC becomes available. For proprietary datasets worth millions in curation costs, this is a direct intellectual property theft vector. The data's value outlives the encryption protecting it.
Cryptographic Touchpoints
Data Ingestion
TLS key exchange (ECDH → ML-KEM)
Channel harvest exposes raw training data
Data Signing
Manifest signatures (ECDSA → ML-DSA)
Forged manifests enable data poisoning
Storage Encryption
Key wrapping (RSA → ML-KEM)
HNDL on encrypted datasets
Model Output
Model signing (RSA/ECDSA → ML-DSA)
Tampered models produce biased outputs
replaces ECDH for key exchange, and replaces ECDSA/RSA for digital signatures.
Check off all sections and mark this reading done.
As AI-generated content spreads across the internet, researchers have asked what happens when models are trained on data produced by other models. The result known as is conditional, not universal. Shumailov et al. found that training on model-generated content caused irreversible defects, where the tails of the original data distribution disappear, in the settings they studied (variational autoencoders, Gaussian mixture models and language models). Gerstgrasser et al. found that replacing real data with each generation's synthetic data tends toward collapse, while accumulating synthetic data alongside the original real data avoided it in their experiments. Synthetic data can also help: the phi-1 code model was trained on filtered web data together with synthetically generated textbooks and exercises. The risk therefore depends on how real and synthetic data are mixed, not on synthetic data as such. Provenance records help you know what you are training on and let you select and review it; they do not by themselves determine training quality.
One Illustrative Collapse Scenario (fictional numbers)
Cryptographic Defenses
- : Signed metadata embedded in content files — signer identity, creation tool, edit assertions. A consumer can check who signed the claims and whether the signed content was altered; a valid signature does not show that content is accurate or human-made.
- Cryptographic provenance chains: Hash-chain-based data lineage tracking where each transformation appends a signed entry to an append-only log.
- AI watermark detection: Identifying invisible watermarks embedded by AI generators (SynthID, statistical LLM watermarks) to flag content that carries one; finding no watermark proves nothing.
PQC Imperative
Provenance signatures must outlive the data they protect — potentially decades. Provenance records signed with ECDSA, RSA-PSS or Ed25519 (the signature algorithms C2PA 2.4 allows) become forgeable post-CRQC, allowing retroactive injection of synthetic data into verified datasets. Migrating to signatures removes that quantum forgery risk for the signature algorithm. Trust in the signer, its key management and what its claims say remains a separate question.
Check off all sections and mark this reading done.
are the crown jewels of an AI organization — billions of parameters representing multi-million dollar intellectual property (IP). Protecting this IP from Harvest-Now-Decrypt-Later (HNDL) attacks requires ML-KEM wrapping for confidentiality and ML-DSA signing for integrity to ensure long-term protection.
Three Layers of Protection
Encryption at Rest
Model files encrypted with AES-256-GCM, keys wrapped with ML-KEM. Even if storage is compromised, weights remain protected.
Encryption in Transit
Model distribution via TLS 1.3 with hybrid key exchange. Prevents interception during deployment to inference endpoints.
Encryption in Use
Model loaded inside a Trusted Execution Environment (TEE) — weights decrypted only within hardware-isolated memory.
Model Signing & Attestation
Just as code signing verifies software integrity, model signing uses digital signatures to prove a model has not been tampered with. Frameworks like Sigstore (cosign) and in-toto are adding support for ML-DSA signatures on model artifacts. This creates a record: who trained the model, on what data, when, and with what hyperparameters.
See also: Confidential Computing & TEEs for hardware-enforced model protection during inference.
Check off all sections and mark this reading done.
represents a paradigm shift — autonomous agents acting on behalf of users, making decisions, executing transactions, and communicating with other agents without continuous human oversight. This creates entirely new cryptographic challenges: how do you authenticate a machine? How do you delegate authority securely? How do agents trust each other?
Machine Identity vs Human Identity
AI agents need cryptographic credentials — certificates, tokens, keys — that are not tied to a human session. Unlike a user who logs in once, an agent may operate for hours or days, delegating sub-tasks to other agents, each needing its own verifiable identity.
Delegation Chains
In a delegation design like this one, each hop carries a signed — a cryptographic credential granting limited authority with scope, expiration, and a signature chain back to the original delegating human.
Agentic Commerce
When agents transact on behalf of users — purchasing goods, negotiating contracts, managing subscriptions — a signature alone is not enough. One sample architecture, not a requirement of any standard: sign each order so it can be attributed, protect payment details in transit, and check every delegation hop. A signature shows which key signed; the system must also establish identity (which agent this is), authorization (what it may do, within what scope and until when), replay protection (nonces or timestamps) and key governance (issuance, rotation and revocation). In a post-quantum design ML-DSA can supply the signatures and ML-KEM the key establishment, with a symmetric cipher encrypting the data: a KEM generates a shared secret key and a symmetric scheme encrypts under it (NIST SP 800-227).
Quantum Threat to Agent Systems
Agent communication channels harvested today can be decrypted post-CRQC to reconstruct entire transaction histories, business strategies, and negotiation patterns. Long-lived agent credentials (certificates with 1-year validity) are exposed once a CRQC exists: it could forge the agent's identity and impersonate it. That is a forgery risk, not harvest-now-decrypt-later, which concerns encrypted data (NIST IR 8547, final October 2026 — deprecates quantum-vulnerable public-key algorithms after 2030 and disallows them after 2035; EO 14412 and OMB M-26-15 set earlier civilian federal deadlines of 31 December 2030 for key establishment and 31 December 2031 for digital signatures).
Related: API Security & JWT for PQC migration patterns for JWT/DPoP tokens.
Check off all sections and mark this reading done.
AI systems operate at a scale that challenges conventional cryptographic approaches — training datasets measured in petabytes, billions of inference requests per day, thousands of models across global deployments. That scale turns key scope (per object, per dataset or per tenant), channel protection and model-integrity checks into design decisions rather than fixed rules.
Privacy-Preserving Machine Learning
Homomorphic Encryption
Scheme- and parameter-dependentCompute on encrypted data without decrypting. Common libraries use ring learning-with-errors schemes, and the Homomorphic Encryption Standard gives separate parameter tables for classical and quantum attack-cost estimates. Quantum resistance therefore depends on the scheme and the parameters chosen, and is an estimate rather than a proof. Channels and key management still need their own protection.
Federated Learning
Depends on the protection usedParticipants share model updates (gradients) instead of raw data. Shared gradients can leak training data (Zhu et al., Deep Leakage from Gradients), so deployments add protection such as secure aggregation, homomorphic encryption or differential privacy. Whether the channels and key agreement inside those protections are quantum-vulnerable has to be checked for each deployment.
Secure MPC
Depends on the constructionJoint computation without revealing inputs. Protocols differ: the Chou-Orlandi oblivious transfer is a tweak of Diffie-Hellman key exchange, so a quantum computer would break it, while other constructions rest on different assumptions. Check the assumptions of the protocol you actually use.
Differential Privacy
Not a cryptographic schemeCalibrated noise limits what any observer of the output can learn about one individual (NIST SP 800-226). It is not an encryption scheme, so it does not protect data in transit or at rest, and it depends on a trust model: in the central model the data curator must be trusted, and in the local model each individual adds noise before sending.
Key Management at Scale
One common design is a hierarchical KMS with envelope encryption: root keys wrap intermediate keys, which wrap data encryption keys (DEKs), and can be the KEM used to establish the wrapping keys higher in the hierarchy. This is a sample architecture, not a requirement: how many keys you manage, what each key covers and how it is wrapped follow your threat model and the volume of data each key protects.
Check off all sections and mark this reading done.
LLMs and code assistants are increasingly used to accelerate a PQC migration: finding crypto call-sites, drafting CBOM entries, suggesting algorithm swaps, and rewriting config. They are powerful, but cryptographic changes are exactly where a confident-but-wrong suggestion is most dangerous. Treat AI as a drafting tool behind a mandatory human-review gate — never an unattended committer of cryptographic change.
- Surfacing candidate crypto call-sites for human triage.
- Drafting CBOM entries and migration-ticket boilerplate.
- Summarising vendor docs and standards for reviewers.
- Any algorithm or parameter selection (e.g. ML-KEM vs hybrid).
- Generated key-management or crypto-config code.
- Anything merged into production crypto paths.
Tag every AI-assisted migration change with its provenance — which tool/model produced the suggestion and who reviewed and approved it. This audit trail is what lets a reviewer (and a future auditor) distinguish a verified human decision from an unverified machine suggestion.
Source: Applied Quantum PQC Migration Framework §5.7 (AI-assisted migration).
Check off all sections and mark this reading done.
Ready for the Workshop?
Explore 7 interactive tools: audit AI pipelines, verify data authenticity, configure model protection, design agent authentication, simulate agentic commerce, build agent-to-agent protocols, and plan PQC migration at scale.
Try it
Step 1: Data Protection Analyzer
Audit AI pipeline crypto operations — identify quantum-vulnerable touchpoints and HNDL exposure at each stage.Step 2: Data Authenticity Verifier
Evaluate fictional tool observations and compare accuracy with recall. Distinguish provenance claims from content truth and fictional model-collapse scores.Step 3: Model Weight Vault
Configure encryption, key wrapping, and signing for model weights. Compare classical vs PQC overhead.
Your comments on AI Security & PQC(0)
Stored on this device only. A comment never counts toward your progress.
Related resources
- ModuleCode SigningML-DSA model signing, Sigstore cosign, and in-toto attestation
- ModuleConfidential ComputingTEE-based model protection and PQC attestation during inference
- ModuleAPI Security & JWTPQC token signing for AI API authentication and agent identity
- ModuleKMS & PQCPQC key hierarchies for AI model encryption and signing keys
- ModuleCrypto AgilityAlgorithm-agnostic AI pipeline design for PQC algorithm rollout
- Library documentTransition to Post-Quantum Cryptography Standards
- Library documentPQ/T Hybrid Composite Signatures for JOSE and COSE
- Library documentMerkle Tree Agent Certificates (MTAC): Batch-Issued Post-Quantum Identity Credentials for AI Agents
- Library documentN-PAMP: Native Post-Quantum Agent Messaging Protocol
- Library documentRFC 9846 — The Transport Layer Security (TLS) Protocol Version 1.3
Production Tool Capabilities & Verification ChecklistAI/ML Security Architects & MLOps Engineers
Capabilities to require in your production tools:
- Cryptographic signing of AI model weights, datasets, and training provenance (C2PA, SLSA/in-toto, Sigstore, OpenSSF Model Signing) using `ML-DSA-65/87` or `SLH-DSA` where the tooling supports it (Cosign ML-DSA is experimental; C2PA 2.4 specifies no PQC algorithms) to prevent model poisoning and supply-chain tampering.
- Protection of proprietary training corpora and inference prompts/RAG vectors in transit via hybrid TLS 1.3 (`X25519MLKEM768`) and at rest via `AES-256-GCM` with `ML-KEM` envelope encryption.
- Confidential GPU/TEE enclave attestation for high-sensitivity model weights.
How to evaluate in your environment
Sign a serialized model checkpoint (`.safetensors` / ONNX) with `ML-DSA-65`, verify signature before inference loading, and test rejection of tampered weight bytes.
Production evidence to collect
Signed model manifest, inference loader verification log, and vector-database TLS 1.3 cipher audit.
Completing this Hub module and its browser-based sample exercises teaches the technical and governance decision criteria for your role; it does not test, validate, or certify your deployed production systems.
Record evidence for your environment
Identify the tested build and configuration. Use reference IDs for observations. For a proposed exclusion, record the system boundary or rule and why it excludes this build.
Evidence missing. 0 of 3 requirements have a reference or scope rationale.
Learning module content can be inaccurate. Please double-check its information. Report inaccuracies in PQC Today GitHub Discussions.