Hardware Security Module - Executing Unsigned Code in HSM TEE
summary
A novel exploit lets unsigned Java code run inside a Gemalto SafeNet LunaSP HSM by abusing partial jar signatures and ZIP duplicate entries to override classes at deployment and extraction time The attacker uses Spring Boot annotation injection to add new HTTP endpoints and gets remote code execution after the HSM accepts a partially signed archive Verification shows the HSM cryptographic check accepts the malformed jar and execution succeeds Vendor disclosure and mitigations such as rejecting duplicate entries and stricter signature checks are proposed
AI-written summary · about
chapters (17)
- 0:00Introduction and speaker intro
- 1:25What is an HSM
- 3:07HSM certifications and security levels
- 7:21HSM hardware overview
- 10:28Target HSM model Luna SP
- 11:32Research objectives and threat model
- 13:21Administrative tools security analysis
- 17:56Threat model for Intel's cloud product
- 20:09Java Archive and JAR signing process
- 23:30JAR signature verification quirks
- 24:54Spring Boot and code execution
- 26:18First attack and threat model breach
- 27:01Mitigation attempts and limitations
- 28:47Final mitigations and risks
- 31:15Vendor responses and reflections
- 32:40Security as opt-in vs opt-out
- 33:01Conclusion and Q&A
