appsflyer IOS banner image

Mifare Classic Card Recovery Tool

Possessing a MIFARE Classic Card Recovery Tool is not illegal in 99% of jurisdictions. Using it on a card you do not own is illegal.

You might ask: "Why not just throw away the old MIFARE Classic?" Because critical infrastructure is slow to upgrade.

Hospitals still run patient meal cards on MIFARE Classic 4K. The German "Mobilität" consortium still uses Classic for regional train reloadable cards. Upgrading a fleet of 10,000 readers costs $500,000. Buying a $300 Proxmark3 for a recovery engineer costs $300.

Furthermore, the MIFARE Classic Card Recovery Tool has evolved into a forensic auditing tool. Security companies now use these tools not to steal cards, but to prove that MIFARE Classic is unsafe. They walk into a client's building, sit in the lobby, and recover the entire access control key hierarchy in 20 minutes. The "recovery" is evidence of insecurity.

You cannot recover a MIFARE Classic card with software alone. You need a proximity HF (13.56 MHz) reader capable of raw frame transmission. mifare classic card recovery tool

[1] Nohl, K., & Plotz, H. (2008). "MIFARE Classic: Breaks in the Silence." 25th Chaos Communication Congress.

[2] Garcia, F. D., et al. (2009). "Dismantling MIFARE Classic." European Symposium on Research in Computer Security (ESORICS).

[3] Courtois, N. T. (2009). "The Dark Side of the MIFARE Classic." Information Security Conference.

[4] mfoc – MIFARE Classic Offline Cracker. GitHub: nfc-tools/mfoc. Possessing a MIFARE Classic Card Recovery Tool is


Appendix A – Minimal Python pseudocode for nested attack:

def nested_recover(reader, uid, known_sector, known_key, target_sector):
    ks = authenticate(reader, known_sector, known_key)
    enc_nonce = send_auth_request(reader, target_sector, ks)
    plain_nonce = decrypt(enc_nonce, ks)
    lfsr_state = rollback(plain_nonce)
    return recover_key(lfsr_state, uid)

Appendix B – Reader command log (ACR122U) for darkside attack:

> FF 00 00 00 01 D4 40 01 60 01 FF
< D5 41 00 ... (encrypted response)

This paper serves as both a technical reference and a warning: the tools to break MIFARE Classic are simple, well-documented, and freely available. Organizations must migrate away from this technology.


Before attempting cryptographic exploits, a recovery tool performs a "dictionary attack." Years of deployment have resulted in a list of widely used default keys. Appendix A – Minimal Python pseudocode for nested

The Proxmark3 is the Swiss Army knife of RFID. For recovery, it leverages the "Hardnested" or "Fast-Sniff" attacks.

The Flipper Zero, running the Iceman firmware (a fork of Proxmark3), has democratized card recovery.

While recovery tools are powerful, mitigation is possible: