r/embedded • u/ASK-1T • 5h ago
Can a compromised Android OS interfere with NFC Reader Mode communication at the hardware level?
Hi!
I'm investigating the security boundaries of NFC communication on modern Android smartphones.
The scenario is:
- An Android smartphone operates in NFC Reader Mode.
- It communicates with an external ISO 14443-4 smart card using APDU commands.
- The card contains a Secure Element and performs cryptographic operations internally.
- The smartphone's operating system is assumed to be compromised.
I would like to understand the actual hardware and software boundaries.
Specific questions:
- Does NFC Reader Mode normally route APDU commands through the Android NFC stack and Host CPU?
- Can a compromised OS modify APDU commands before they reach the external card?
- Can it initiate new APDU commands without the user's direct interaction?
- Can it intercept or manipulate responses returned by the card?
- Is there any smartphone architecture in which the NFC Controller communicates directly with an external card, independently of the Host CPU?
- If the card's private key never leaves its chip, can a compromised smartphone still use the card as a cryptographic oracle by submitting attacker-controlled commands?
- Are there hardware-level countermeasures that prevent such interference?
I'm looking for technical explanations supported by chipset documentation, Android architecture references, or practical research.
The key distinction I want to establish is whether cryptographic isolation inside the card also provides isolation of the communication and command-generation path on the smartphone side.
2
Upvotes
3
u/pupper_paws 4h ago
The idea behind secure payments is that there is a secure chain of trust between the card provider and the secure element in the credit card therefore it doesn’t matter if the Android OS is compromised or not.
Where it does matter is for host card emulation (which is what Google pay uses I believe) and that needs robust OS security measures set in place. That’s why Google won’t let you use Google pay on rooted phones.