Hi everyone,
I’m currently learning RFID technology using a Proxmark5 Iceman Edition, and I’m having trouble working with two MIFARE Classic 4K test cards.
My goal is to copy the data from Card 2 (source) to Card 1 (target).
Here’s what I’ve found so far:
-
Both cards are detected as MIFARE Classic 4K with a hard PRNG.
-
I can successfully read, write, and verify individual data blocks.
-
Full 4K dumps of both cards report 192 failed block reads.
-
Sector 1: Neither Key A nor Key B was found.
-
Sectors 17–39: Key A was found, but Key B remains unknown.
-
I tried
hf mf fchk --4k -f mfc_default_keys, checking over 2,500 dictionary keys, but the missing keys were not found. -
Sectors 17 and 18 have access bits
0F 00 FF, which appear to require Key B for reading data blocks. -
Neither card currently reports Magic capabilities.
I’ve attached my hf search and hf mf chk --4k results below.
[usb] pm5 → hf search
[-] Searching for ISO14443-A tag…
[=] ---------- ISO14443-A Information ----------
[+] UID: 56 E2 10 82 ( ONUID, re-used )
[+] ATQA: 00 02
[+] Possible types:
[+] MIFARE Classic 4K
[=] Proprietary non iso14443-4 card found
[=] RATS not supported
[+] Prng detection… hard
[?] Hint: Try hf mf info
[+] Valid ISO 14443-A tag found
[usb] pm5 → hf mf chk --4k
[+] loaded 64 hardcoded keys
[=] Start check for keys…
[=] …
[=] Time in checkkeys 14 seconds
[=] Testing to read key B…
[=] Sector: 17, First block: 68, Last block: 71, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 18, First block: 72, Last block: 75, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 19, First block: 76, Last block: 79, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 20, First block: 80, Last block: 83, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 21, First block: 84, Last block: 87, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 22, First block: 88, Last block: 91, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 23, First block: 92, Last block: 95, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 24, First block: 96, Last block: 99, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 25, First block: 100, Last block: 103, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 26, First block: 104, Last block: 107, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 27, First block: 108, Last block: 111, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 28, First block: 112, Last block: 115, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 29, First block: 116, Last block: 119, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 30, First block: 120, Last block: 123, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 31, First block: 124, Last block: 127, Num of blocks: 4
[=] Reading sector trailer
[=] Sector: 32, First block: 128, Last block: 143, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 33, First block: 144, Last block: 159, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 34, First block: 160, Last block: 175, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 35, First block: 176, Last block: 191, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 36, First block: 192, Last block: 207, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 37, First block: 208, Last block: 223, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 38, First block: 224, Last block: 239, Num of blocks: 16
[=] Reading sector trailer
[=] Sector: 39, First block: 240, Last block: 255, Num of blocks: 16
[=] Reading sector trailer
[+] -----±----±-------------±–±-------------±—
[+] Sec | Blk | key A |res| key B |res
[+] -----±----±-------------±–±-------------±—
[+] 000 | 003 | A0A1A2A3A4A5 | 1 | B578F38A5C61 | 1
[+] 001 | 007 | ------------ | 0 | ------------ | 0
[+] 002 | 011 | A0A1A2A3A4A5 | 1 | 0000014B5C31 | 1
[+] 003 | 015 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 004 | 019 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 005 | 023 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 006 | 027 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 007 | 031 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 008 | 035 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 009 | 039 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 010 | 043 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 011 | 047 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 012 | 051 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 013 | 055 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 014 | 059 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 015 | 063 | FFFFFFFFFFFF | 1 | FFFFFFFFFFFF | 1
[+] 016 | 067 | A0A1A2A3A4A5 | 1 | B578F38A5C61 | 1
[+] 017 | 071 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 018 | 075 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 019 | 079 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 020 | 083 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 021 | 087 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 022 | 091 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 023 | 095 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 024 | 099 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 025 | 103 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 026 | 107 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 027 | 111 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 028 | 115 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 029 | 119 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 030 | 123 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 031 | 127 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 032 | 143 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 033 | 159 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 034 | 175 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 035 | 191 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 036 | 207 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 037 | 223 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 038 | 239 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] 039 | 255 | FFFFFFFFFFFF | 1 | ------------ | 0
[+] -----±----±-------------±–±-------------±—
[+] ( 0:Failed / 1:Success )
[?] Hint: MAD key detected. Try hf mf mad for more details
My questions:
What could explain why Key A is found but Key B cannot be recovered in sectors 17–39?
Are there any known Proxmark5-specific issues affecting MIFARE Classic 4K authentication?
Is there a recommended way to diagnose these failed block reads and determine whether a complete backup is possible?