IT lexicon › Security › HSM API attack

HSM API attack

Security På svenska → Updated: 2026-10-14

Extracting keys from a security module purely by chaining calls that are each perfectly legitimate on their own.

An HSM can be impossible to open and still leak everything through its interface. Mike Bond and Ross Anderson described the class as API-level attacks in 2001, with examples from banking modules. Jolyon Clulow gave the simplest one in PKCS#11 in 2003: ask the module to wrap a sensitive key under another key that is also allowed to decrypt, then ask it to decrypt the wrapped blob. Out comes the key in the clear.

The flaw lies in the rules about what a key may be used for, not in the cryptography. The Tookan tool found such flaws in several commercial USB tokens in 2010. The cure is binding every key to exactly one role, which is what TR-31 key blocks and stricter PKCS#11 profiles try to achieve.

← Back to the lexicon