ML-based Attack on Digitally Authenticated RSA Algorithm via Model Estimation: A Comparative Evaluation of Neural Network Architectures
Loading...
View/Download File
Persistent link to this item
Statistics
View StatisticsJournal Title
Journal ISSN
Volume Title
Authors
Published Date
Publisher
Abstract
In this paper, we evaluate whether deep learning can learn the number theoretic structure needed to factor RSA semiprimes, with the objective of comparing architectures and feature designs for accuracy, efficiency, and generalization. We study four models: a Dual Output LSTM with binary inputs, an Enhanced Transformer with 107 to 117 mathematical features, a Hybrid CNN RNN, and a Factorization GAN. Datasets are built by exhaustive enumeration: for each upper bound between ten to the third and ten to the sixth, every integer is tested and kept if it has exactly two prime factors, yielding complete corpora of ten to twenty bit semiprimes. Performance is measured with beta k metrics defined by Hamming distance, where beta k counts predictions within k bit errors of the true factor and beta zero is exact match. On the large scale dataset, the Factorization GAN attains the highest exact match accuracy, 53.7 percent, with only 700 thousand parameters. Enhanced feature models exceed 91 percent within four bit tolerance. Training takes 89 seconds to 2.6 hours per model per scale. These findings suggest that deep learning, adversarial training, and mathematical feature engineering may enhance factor prediction performance and offer promising directions for integrating machine learning with classical cryptanalysis.
Description
Faculty Advisor: Dr. Ali Anwar
Related to
Replaces
License
Series/Report Number
Funding information
This research was supported by the Undergraduate Research Opportunities Program (UROP).
Isbn identifier
Doi identifier
Previously Published Citation
Other identifiers
Suggested citation
Nguyen, Aurelius. (2025). ML-based Attack on Digitally Authenticated RSA Algorithm via Model Estimation: A Comparative Evaluation of Neural Network Architectures. Retrieved from the University Digital Conservancy, https://hdl.handle.net/11299/276927.
Content distributed via the University Digital Conservancy may be subject to additional license and use restrictions applied by the depositor. By using these files, users agree to the Terms of Use. Materials in the UDC may contain content that is disturbing and/or harmful. For more information, please see our statement on harmful content in digital repositories.