AIセキュリティポータル K Program

Generation of Cryptography Algorithms Using AI Agents

Share
Abstract
Designing a new cryptographic algorithm for a stated security requirement, such as resistance to a cryptanalytically relevant quantum computer (CRQC), is today an expert-driven and slow process. This paper introduces \emph{generative cryptography}: the automatic, or semi-automatic, generation of candidate cryptographic algorithms from a stated goal, the hardness assumptions the goal needs, and the hard mathematical problems that support those assumptions. In the semi-automatic mode, AI models act as a \emph{crypto copilot} that assists a human team. We define the elements of a cryptography artifact and describe a discovery pipeline in which assumptions, problems and algorithms are determined or generated and then validated using agentic frameworks, retrieval-augmented generation, fine-tuned models, automated testing, automated theorem proving, adversarial AI agents and human experts. We describe the generation as nineteen steps, from the interpretation of a request to the packaging and documentation of the algorithm, carried out by three cooperating multi-agent systems for generation, for testing and validation, and for patching. Each generated algorithm is represented according to a model of cryptography artifacts, with goals, assumptions and hard problems as graphs. We describe two methods of generative mathematics for finding hard problems, the second based on a problem graph and a partially ordered lattice of problems. We treat quantum-safe cryptography and AI-safe cryptography as separate requirements that depend on the threat model, and we survey machine-learning-based cryptanalysis from 1991 to November 2026. We discuss hallucination and bias as risks at every step. The paper is conceptual: it presents the idea, its structure and its open issues, and does not report an implementation.
Constructing Cryptographic Primitives with Evolutionary Computation and Cellular Automata
Rocco Ascone, Firas Ben Ramdhane, Luca Manzoni, Giuliamaria Menara, Gloria Pietropolli
Published: 2025
Enhancing differential-neural cryptanalysis
Z. Bao, J. Guo, M. Liu, L. Ma, Y. Tu
Published: 2022
SoK: Computer-Aided Cryptography
Manuel Barbosa, Gilles Barthe, Karthik Bhargavan, Bruno Blanchet, Cas Cremers, Kevin Liao, Bryan Parno
Published: 2021
A deeper look at machine learning-based cryptanalysis
A. Benamira, D. Gerault, T. Peyrin, Q. Q. Tan
Published: 2021
Introduction to Lattices and Order
B. A. Davey, H. A. Priestley
Published: 2002
Improving attacks on round-reduced speck32/64 using deep learning
A. Gohr
Published: 2019
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, Sebastian Riedel, Douwe Kiela
Published: 2020.5.23
Salsa Picante: A machine learning attack on LWE with binary secrets
C. Y. Li, J. Sotáková, E. Wenger, M. Malhou, E. Garcelon, F. Charton, K. Lauter
Published: 2023
KryptoPilot: An Open-World Knowledge-Augmented LLM Agent for Automated Cryptographic Exploitation
Xiaonan Liu, Zhihao Li, Xiao Lan, Hao Ren, Haizhou Wang, Xingshu Chen
Published: 2026.1.14
Breaking cryptographic implementations using deep learning techniques
Houssem Maghrebi, Thibault Portigliatti, Emmanuel Prouff
Published: 2016
On Lattices, Learning with Errors, Random Linear Codes, and Cryptography
O. Regev
Published: 2009
Reinforcement Learning: An Introduction
R. S. Sutton, A. G. Barto
Published: 2018
Codehalu: Investigating code hallucinations in llms via execution-based verification
Yuchen Tian, Weixiang Yan, Qian Yang, Xuandong Zhao, Qian Chen, Wen Wang, Ziyang Luo, Lei Ma, Dawn Song
Published: 2025
Share