r/androiddev • u/ASK-1T • 2d ago
Question Can a compromised Android OS interfere with NFC Reader Mode communication at the hardware level?
Hi All!
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.