TL;DR
This paper demonstrates a practical relay attack against Near Field Communication (NFC) peer-to-peer (P2P) transactions using readily available NFC-enabled mobile phones. The attack bypasses security by relaying communication between two legitimate devices, making them believe they are in close proximity, and highlights the need for location-based countermeasures.
What Problem Does This Paper Address?
Near Field Communication (NFC) is a short-range wireless technology enabling convenient contactless communication between devices, often used for peer-to-peer data exchange and interaction with existing contactless systems. While NFC is designed for close proximity, relay attacks pose a significant threat by extending this communication range. These attacks involve an attacker intercepting and re-transmitting signals between two legitimate devices, tricking them into believing they are communicating directly. Previous research has suggested the possibility of such attacks using NFC, but a practical demonstration using off-the-shelf mobile phones, which are becoming increasingly common NFC devices, was lacking. This paper addresses this gap by providing a concrete implementation and analysis of an NFC P2P relay attack using mobile phones, highlighting its feasibility and implications for security.
Methods
The core of the paper's contribution lies in the practical implementation of an NFC P2P relay attack using four NFC-enabled mobile phones. The attack setup involves two legitimate devices (Phone-A and Phone-B) intending to perform a P2P transaction, and two "proxy" devices (Proxy-A and Proxy-B) controlled by the attacker.
- NFC P2P Communication: The paper leverages the active peer-to-peer mode of NFC, where devices act as both initiators and targets. This allows for bidirectional communication. The implementation uses the JSR 257 Contactless Communication API, a standard Java API for mobile devices.
- Relay Bearer (Bluetooth): To bridge the physical distance between the legitimate devices, a secondary communication channel is required. The authors chose Bluetooth due to its widespread availability on mobile phones and its suitable range. Proxy-A and Proxy-B establish a Bluetooth connection, with one acting as a server and the other as a client. The JSR 82 API for Bluetooth was used for this purpose.
- Attack Implementation:
- Phone-A initiates a transaction with Phone-B.
- Proxy-B (representing Phone-B) receives the NFC communication from Phone-A.
- Proxy-B relays this received data to Proxy-A via Bluetooth.
- Proxy-A, acting as the "client" in the Bluetooth connection and the "target" in the NFC communication, then transmits this relayed data to Phone-B via NFC.
- The response from Phone-B is similarly relayed back to Phone-A through the chain of proxies.
- Software Implementation: The attack functionality is implemented as MIDlets (Mobile Information Device Profile applications) on the mobile phones. Crucially, these MIDlets do not require access to secure program memory or code signing, making them relatively easy to develop and deploy on compromised or user-installed applications.
Datasets
Not discussed in the paper. The experiments were conducted in a controlled laboratory environment using commercially available NFC-enabled mobile phones.
Key Insights and Ideas
- Feasibility with Off-the-Shelf Devices: The most significant insight is that a practical NFC P2P relay attack can be mounted using readily available, non-specialized NFC-enabled mobile phones. This democratizes the attack, making it accessible to a wider range of adversaries.
- Software-Only Attack: The attack does not require hardware modifications or access to secure elements (SE) on the mobile phones. This is achieved by leveraging the active P2P NFC mode and publicly available APIs, significantly lowering the technical barrier to entry.
- Bluetooth as a Versatile Relay: The paper demonstrates the effectiveness of using Bluetooth as a reliable and convenient relay bearer, highlighting its synergy with NFC for extending communication range.
- Bypassing Proximity Assumptions: The attack fundamentally exploits the assumption of close physical proximity inherent in NFC's design, demonstrating that this assumption can be easily circumvented.
- Need for Location-Based Countermeasures: The paper strongly advocates for the integration of location information as a crucial countermeasure against relay attacks, as traditional cryptographic methods are insufficient.
Key Results
The paper successfully demonstrated a proof-of-concept relay attack where a 2-byte message exchange between two NFC-enabled mobile phones was relayed over a distance using Bluetooth. The experiment showed that:
- Phone-A initiated a transaction and sent a 2-byte message.
- This message was relayed through Proxy-B and Proxy-A to Phone-B.
- Phone-B responded with a different 2-byte message.
- This response was relayed back to Phone-A.
- Both Phone-A and Phone-B successfully completed the transaction, believing they were communicating directly.
- The attack did not require code signing or access to secure elements, relying solely on software implemented via standard APIs.
Limitations and Future Work
Limitations:
- Range Dependency: The range of the relay attack is limited by the range of the chosen relay bearer (Bluetooth in this case). While Bluetooth offers a decent range, longer-range attacks would require different relay technologies.
- User Interaction for Setup: While the attack itself is automated, the initial setup of the MIDlets on the phones and the establishment of the Bluetooth connection might require some user interaction or prior compromise.
- Accuracy of Location Data: The paper discusses location-based countermeasures but acknowledges that the accuracy and reliability of location information (e.g., from cell towers vs. GPS) can vary, impacting the effectiveness of such defenses.
- Network Operator Policies: The availability and accuracy of location information can be influenced by network operator policies, potentially limiting the deployment of location-based security.
Future Work:
- Exploring Alternative Relay Bearers: Investigating other communication technologies (e.g., Wi-Fi, cellular data) to extend the range of the relay attack.
- Developing Robust Location-Based Countermeasures: Further research into practical and transparent location-based security mechanisms for NFC P2P transactions, considering varying levels of location accuracy and network environments.
- Standardization of Security Features: The paper notes that NFC standards currently lack robust security features beyond signature record type definitions, suggesting the need for enhanced standardization.
- Investigating User-Awareness: Exploring how to make users more aware of potential relay attacks and how they can contribute to security through additional verification steps.
Summary updated