Researchers bypass a hardware security module without extracting the key
A joint team from the University of California at San Diego and the French INRIA has demonstrated the possibility of forging RSA signatures on a 1,024-bit key within a hardware security module (HSM), devices used to safeguard cryptographic keys, without ever physically extracting the key. The study, published on September 20 on the IACR Cryptology ePrint Archive repository, represents a significant case study for the security of cryptographic keys.
Quick Answer
The attack required approximately 4 billion signature requests and 1,380 years-core of CPU. It targeted RSA, not cryptocurrencies like Bitcoin and Ethereum that use ECDSA. The HSM was in disabled FIPS mode and used a test key.
The attack does not threaten Bitcoin and Ethereum
Bitcoin and Ethereum use different signing algorithms (ECDSA and Schnorr for Bitcoin, ECDSA for Ethereum), so they are not directly affected by this vulnerability. However, the result raises important questions about the security of hardware modules that safeguard cryptographic keys, including those used by institutional custody providers like BitGo.
How the attack works
The researchers disabled the HSM's FIPS mode, which ensures certified security standards, allowing the device to sign unformatted numbers. They sent approximately 4 billion selected numbers to be signed, analyzing the responses to reconstruct the signing process. This method has been compared to an authentication system that works without ever opening the physical safe.
What are digital signatures
Every cryptographic transaction requires a digital signature created with the user's private key. This signature proves the authenticity of the transaction and its integrity. RSA, developed in 1977 by Ron Rivest, Adi Shamir, and Leonard Adleman, is based on the difficulty of factoring very large numbers into prime factors. However, the demonstrated attack did not directly violate this fundamental principle.
Who is really affected
The attack is only effective on RSA implementations without padding, a formatting step that prevents this type of vulnerability. Most modern RSA systems use padding (such as PKCS#1 v1.5 or PSS), making an immediate operational threat unlikely. Some systems, like Cloudflare's Privacy Pass, use blind RSA signatures for privacy purposes, but they are not directly affected by this vulnerability.
The quantum threat remains greater
Announcements declaring "RSA is broken" have a history of exaggeration. In January 2023, Chinese researchers claimed to have developed a quantum method for cracking RSA, but their demonstration was limited to 48-bit numbers, insufficient to threaten real systems. This new study represents a significant advancement, but it remains a classic, not quantum, problem.
The post-quantum future
The study authors suggest that the results provide further evidence for the transition to post-quantum cryptography, designed to resist attacks from quantum computers. For Bitcoin, the main concern involves elliptic curve signatures. Caltech researchers estimated that between 10,000 and 20,000 qubits could be sufficient to perform Shor's algorithm, threatening these signatures. Google has set 2029 as the deadline to complete the migration of its systems to post-quantum cryptography.
Implications for institutional custody
Institutional custody providers like BitGo use hardware security modules to protect cryptographic keys, ensuring that the keys never physically leave the device. This attack demonstrates that, even without extracting the key, it is possible to manipulate the signing process. However, the attack requires specific conditions and significant computational investment, limiting its immediate practical impact.
Compliance and risk management
For companies using RSA, this study underscores the importance of properly implementing padding and keeping security devices in active FIPS mode. Risk management must include regular security assessments of cryptographic systems and planning for the transition to post-quantum solutions. Compliance with standards such as the NIS2 Directive and the DORA Regulation becomes even more critical in this context.
Protection against advanced attacks
To mitigate similar risks, organizations should consider implementing managed SOC services and Managed Detection and Response (MDR) solutions. These services offer continuous monitoring and incident response, crucial for identifying and quickly responding to advanced threats like those demonstrated in the study.
Digital operational resilience
Digital operational resilience, a pillar of the DORA regulation, requires that companies implement robust measures of disaster recovery and business continuity. This includes protecting cryptographic keys and preparing for attack scenarios that could compromise existing security systems.
The importance of post-quantum cryptography
While the demonstrated attack is classic, the broader context underscores the urgency of adopting post-quantum cryptography. Companies should start evaluating solutions that offer resilience against future quantum attacks, ensuring the long-term security of their cryptographic systems. This includes assessing alternative algorithms and implementing zero-trust architectures to improve overall security.
The impact on existing security standards
The study raises questions about current certification protocols for hardware security modules. The FIPS mode, which ensures certified security standards, was disabled to allow the attack. This demonstrates that even devices compliant with recognized standards can present vulnerabilities when configured in less secure modes. Companies using HSMs should reassess their security configurations, ensuring that FIPS mode remains active to prevent similar vulnerabilities.
The role of post-quantum cryptography
The transition to post-quantum cryptography has become a priority for organizations managing sensitive data. Algorithms like CRYSTALS-Kyber and CRYSTALS-Dilithium, selected by NIST as post-quantum standards, offer alternative solutions to RSA. Companies should start planning the migration to these algorithms to ensure the long-term security of their cryptographic systems. The migration requires a thorough assessment of available solutions and detailed planning to minimize transition times.
Protecting cryptographic keys
Institutional custody of cryptocurrencies requires advanced solutions for key protection. Providers like BitGo use hardware security modules to ensure that keys never physically leave the device. However, the demonstrated attack highlights the need to implement additional layers of security. Solutions like Identity and Access Management (IAM) can improve overall security, limiting access to security devices only to authorized personnel and closely monitoring all operations.
The importance of continuous monitoring
Continuous monitoring of security activities is essential to quickly identify and respond to advanced threats. Security Information and Event Management (SIEM) services can help organizations detect anomalies and suspicious behaviors, providing valuable data for incident response. Implementing a managed SOC can offer an additional level of protection, ensuring that threats are identified and neutralized promptly.
Planning for operational resilience
Digital operational resilience is a key element to ensure continuity of operations in case of advanced attacks. Companies should implement disaster recovery and business continuity plans that include the protection of cryptographic keys and preparation for attack scenarios. This includes regular assessment of security systems and planning for the transition to post-quantum solutions.
Impact on regulatory compliance
Compliance with standards such as the NIS2 Directive and the DORA Regulation becomes even more critical following this study. Companies must ensure that their cryptographic systems are compliant with the required security standards, implementing robust measures for key protection and risk management. Non-compliance can result in significant penalties and reputational damage.
The need for security audits
Regular security audits are essential to identify and correct vulnerabilities in cryptographic systems. Companies should consider implementing ISO 27001 certifications to ensure that their systems are compliant with international security standards. Audits should include detailed assessments of security configurations, penetration testing, and vulnerability assessments to identify potential weak points.
The importance of staff training
Staff training is a key element to ensure the security of cryptographic systems. Companies should invest in continuous training of their employees, ensuring they are aware of the latest threats and best practices for protecting cryptographic keys. Training should include attack simulations and incident response scenarios to prepare staff to handle emergency situations.
The future of cryptography
The future of cryptography is constantly evolving, with new threats and solutions emerging constantly. Companies must stay updated on the latest trends and technologies to ensure the security of their systems. This includes evaluating new post-quantum cryptography solutions and implementing advanced security measures to protect cryptographic keys. Collaboration with security experts and participation in forums and conferences can offer further opportunities to stay updated on the latest news.
The study represents a significant step in the field of cryptographic security, highlighting the need to improve measures for protecting cryptographic keys. While the demonstrated attack does not directly threaten Bitcoin and Ethereum, it raises important questions about the security of hardware modules that safeguard cryptographic keys. Companies should carefully evaluate the results of the study and implement advanced security measures to protect their systems. The transition to post-quantum cryptography has become a priority, and organizations should plan the migration to more secure solutions to ensure the long-term protection of their data.
Editorial Note and Disclaimer
The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.
GoYou does not constitute a journalistic publication nor an editorial product pursuant to Law No. 62/2001 and does not provide real-time information.
The GoYou project does not provide professional, technical, legal, or financial advice and disclaims all responsibility for the improper use of the information published.
In the Crypto sector, every investment involves risks: the reader is invited to always inform themselves autonomously before making any decision.