• Skip to primary navigation
  • Skip to main content
CARDSPOT Logo

Cardspot

  • Home
  • About Us
  • Services
    • Brand Certification
    • Brand Consultancy
    • Observing Mandates
    • Issuer Consultancy
    • Acquirer Consultancy
    • Key Management
  • Blogs
  • Contact Us
  • English

Relay attack, device in the middle

Gábor Gazsó · 2026.07.01.

Contactless smart cards—such as bank cards and access control badges—have become ubiquitous due to their convenience and speed. These systems rely on Near Field Communication (NFC), a short-range wireless technology that operates within a few centimeters. EMVCo specified the payment protocol for this technology following the widespread adoption of the EMV contact card protocol. The term ‘contact’ may be misleading in this context; it means the cardholder must insert the card into the terminal, whereas ‘contactless’ refers to the technology in which the cardholder only needs to place the card near the terminal or briefly tap it against the reader.

While this limited range is often considered a security feature, it is precisely this assumption that relay attacks exploit, especially when combined with modern smartphones. From the early days of contactless card deployments, relay attacks were recognized as a potential risk. A relay attack is a form of man-in-the-middle attack in which communication between a contactless card and a reader is intercepted and relayed over a longer distance. Instead of breaking cryptographic protections, the attacker simply forwards messages between the legitimate card and the terminal in real time. As a result, both sides believe they are communicating directly with each other.

Ancient scenarios

To better understand the attack, imagine the following scenario: when you tap your card to a terminal, someone places a relay device between the terminal and your card. This relay device communicates with your card as if it were the terminal and communicates with the terminal as if it were your card. So, your card could unknowingly authorize a payment at a completely different terminal. Although relay attacks may seem complex, they historically played only a limited role in overall payment card fraud.

Despite the technological requirements, the card schemes have developed their own protection technologies. We at CARDSPOT have continuously monitored these cardholder protection initiatives and mandates on behalf of our customers.

Mobile phone roles

Mobile phones, though, have significantly lowered the barrier to executing such attacks. Modern smartphones are equipped with NFC chips and internet connectivity, allowing them to act as either a card emulator or a reader. Research has demonstrated that NFC-enabled smartphones can serve as relay devices without specialized hardware, effectively turning widely available consumer devices into attack tools.

In a typical mobile-based relay scenario, two smartphones are used. One phone, placed near the victim’s contactless card (for example, in a crowded area), reads the card’s NFC signals. These signals are then transmitted over the internet to a second phone located near a payment terminal. The second device emulates the card and completes the transaction. From the terminal’s perspective, the transaction appears legitimate, even if the actual card is far away—potentially in another city or country.

Recent real-world attacks have shown how this technique can be integrated into malware. For instance, modified versions of tools like NFCGate can trick users into installing malicious applications that access NFC functionality. Victims may be socially engineered into tapping their card against their phone, unknowingly enabling the relay process. The modified NFCGate software may relay NFC communication to a remote system connected to a payment terminal. The terminal can then initiate a payment as if the original card were physically present. The payment may be completed successfully without the cardholder being informed. In more advanced “reverse relay” attacks, the victim’s phone acts as a payment card on behalf of the attacker, further expanding the threat landscape.

Improvements needed

One of the key challenges in defending against relay attacks is their stealthy nature. Since the attacker does not alter the transmitted data, traditional cryptographic protections remain intact, making detection difficult. Proposed countermeasures include distance-bounding protocols that measure communication timing to verify that the card is physically nearby, as well as context-aware techniques such as ambient sensing. However, these solutions are still an active area of research and are not universally deployed.

In conclusion, the combination of contactless technology and smartphones has created a powerful but potentially vulnerable ecosystem. While relay attacks do not break encryption, they exploit fundamental assumptions about proximity, underscoring the need for stronger security mechanisms and greater user awareness.

Sources
NFC relay attacks explained
Overview of RFID/NFC-based relay attacks (ScienceDirect)
Practical implementation of NFC relay attacks (IACR paper)
Relaying the message on relay fraud
Contactless Credit Cards Payment Fraud Protection by Ambient Authentication
Images: Flóra Nika

About Gábor Gazsó

The author has more than 20 years of experience with bank card systems and smart card technology by working for issuers, acquirers and service providers.

Let us help you and get in touch with us. Contact Us

Copyright © 2026 · Cardspot Kft.

We collect cookies. Why? Accept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT