When RSA Fails: Exploiting Prime Selection Vulnerabilities in Public Key Cryptography

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nikzad, Murtaza, Atas, Kerem
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911341310115840
author Nikzad, Murtaza
Atas, Kerem
author_facet Nikzad, Murtaza
Atas, Kerem
contents This paper explores vulnerabilities in RSA cryptosystems that arise from improper prime number selection during key generation. We examine two primary attack vectors: Fermat's factorization method, which exploits RSA keys generated with primes that are too close together, and the Greatest Common Divisor (GCD) attack, which exploits keys that share a common prime factor. Drawing from landmark research including Heninger et al.'s ``Mining Your Ps and Qs'' study, which discovered over 64,000 vulnerable TLS hosts, and B{ö}ck's 2023 analysis of Fermat factorization in deployed systems, we demonstrate that these vulnerabilities remain prevalent in real-world cryptographic implementations. Our analysis reveals that weak random number generation in embedded devices is the primary cause of these failures, and we discuss mitigation strategies including proper entropy collection and prime validation checks.
format Preprint
id arxiv_https___arxiv_org_abs_2512_22720
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle When RSA Fails: Exploiting Prime Selection Vulnerabilities in Public Key Cryptography
Nikzad, Murtaza
Atas, Kerem
Cryptography and Security
This paper explores vulnerabilities in RSA cryptosystems that arise from improper prime number selection during key generation. We examine two primary attack vectors: Fermat's factorization method, which exploits RSA keys generated with primes that are too close together, and the Greatest Common Divisor (GCD) attack, which exploits keys that share a common prime factor. Drawing from landmark research including Heninger et al.'s ``Mining Your Ps and Qs'' study, which discovered over 64,000 vulnerable TLS hosts, and B{ö}ck's 2023 analysis of Fermat factorization in deployed systems, we demonstrate that these vulnerabilities remain prevalent in real-world cryptographic implementations. Our analysis reveals that weak random number generation in embedded devices is the primary cause of these failures, and we discuss mitigation strategies including proper entropy collection and prime validation checks.
title When RSA Fails: Exploiting Prime Selection Vulnerabilities in Public Key Cryptography
topic Cryptography and Security
url https://arxiv.org/abs/2512.22720