[Paper Review] Interleaving Command Sequences: a Threat to Secure Smartcard Interoperability
This paper identifies interleaving command sequences as a critical threat to secure smartcard interoperability, demonstrating that Common Criteria-certified digital signature processes can silently accept foreign APDUs from other smartcard types, leading to undetected corruption or permanent damage (e.g., MSE Erase). The study experimentally validates that such attacks can bypass certification checks and compromise security without error messages, urging enhanced middleware-level anomaly detection for secure multi-application environments.
The increasingly widespread use of smartcards for a variety of sensitive applications, including digital signatures, creates the need to ensure and possibly certify the secure interoperability of these devices. Standard certification criteria, in particular the Common Criteria, define security requirements but do not sufficiently address the problem of interoperability. Here we consider the interoperability problem which arises when various applications interact with different smartcards through a middleware. In such a situation it is possible that a smartcard of type S receives commands that were supposed to be executed on a different smartcard of type S'. Such "external commands" can interleave with the commands that were supposed to be executed on S. We experimentally demonstrate this problem with a Common Criteria certified digital signature process on a commercially available smartcard. Importantly, in some of these cases the digital signature processes terminate without generating an error message or warning to the user.
Motivation & Objective
- To investigate the security risks arising when smartcards receive unintended APDUs from other applications via a shared middleware.
- To demonstrate that Common Criteria certification does not guarantee secure interoperability under concurrent multi-application workloads.
- To identify scenarios where foreign commands are accepted without error, leading to irreversible damage like SEO erasure.
- To propose a scalable model-checking extension that leverages existing CC certification to detect and prevent harmful interleaving sequences.
- To advocate for extending Common Criteria to formally certify interoperability across multiple smartcard types and applications.
Proposed method
- The authors model digital signature processes as straight-line programs with defined command sequences, treating each APDU as a step in a certified execution path.
- They identify 'globally legal' commands as those that are part of the original certified middleware execution on a specific smartcard type.
- Using a model checker (C-Murphi), they simulate interleaved command sequences from multiple applications to detect anomalies.
- They conduct real-world experiments on a commercially available, Common Criteria-certified smartcard to test acceptance of modified or foreign APDUs.
- They analyze APDU sequences in hexadecimal format, comparing standard and modified commands to detect silent processing.
- They propose integrating a lightweight 'watch-dog' model checker into middleware to detect and block harmful interleavings in real time.
Experimental results
Research questions
- RQ1Can foreign or modified APDUs be silently accepted by a Common Criteria-certified smartcard during a digital signature process?
- RQ2To what extent does existing Common Criteria certification fail to ensure secure interoperability when multiple smartcards are used concurrently?
- RQ3What are the consequences of interleaving commands from different applications, particularly when they include destructive operations like 'MSE Erase'?
- RQ4Is brute-force model checking feasible for verifying all possible interleaved command sequences in real-world smartcard systems?
- RQ5How can model checking be optimized to detect harmful interleavings efficiently without exhaustive search?
Key findings
- The smartcard silently accepted foreign APDUs during the digital signature process without generating any error or warning, even when commands were modified from the certified sequence.
- The 'MSE Erase' command, not part of the normal signature process, was successfully executed and permanently erased the Security Environment Object, rendering the card unusable.
- The experiment showed that no PIN or PUK was required to execute the 'MSE Erase' command, making it a high-risk vulnerability for mass exploitation.
- Even with a simplified model of 10-step processes and 16-bit commands, the number of possible interleaved sequences exceeds 10^10, making brute-force testing infeasible.
- The study confirms that model checking can detect such anomalies but requires optimization—especially by leveraging existing CC certification—to be practical in real middleware environments.
- The authors conclude that a lightweight, certification-aware model checker can be integrated into middleware as a runtime 'watch-dog' to prevent harmful interleaving sequences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.