# Proxmark5 – MIFARE Classic 4K: Unable to Recover Key B (Sectors 17–39)

**URL:** <https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989>\
**Category:** Support\
**Created:** [November 25, 2026, 6:18am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989 "2026-11-25T06:18:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chrisp](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@Chrisp](https://forum.dangerousthings.com/u/Chrisp)\
**Post date:** [November 25, 2026, 6:18am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/1 "2026-11-25T06:18:07Z")

</div>

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

+\] SAK: 18 \[2

[+] 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?

---

<div class="post-metadata">

**Author:** ![Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/aoxhwjfoavdlhsvfpzha/32/42933_2.png) [@Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/u/Aoxhwjfoavdlhsvfpzha)\
**Post date:** [November 25, 2026, 6:35am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/2 "2026-11-25T06:35:49Z")

</div>

Have you tried anything besides the dictionary attack?

Such as an `hf mf auto`

Or trying to sniff keys?

---

<div class="post-metadata">

**Author:** ![Chrisp](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@Chrisp](https://forum.dangerousthings.com/u/Chrisp)\
**Post date:** [November 25, 2026, 9:49pm UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/3 "2026-11-25T21:49:50Z")

</div>

Thank you for your help! I finally managed to get it working thanks to your advice. It took me a while because I was still getting familiar with the commands, but I successfully saved the key file and the BIN and JSON dump files using autopwn.

However, I still have one issue.

In the YouTube tutorials I’ve watched, people use `hf mf dump 1`, and the output shows “Successfully read block” for each block.

But when I try to dump my card, I get the following output instead:

```auto
[+] Finished reading sector access bits
[=] Dumping all blocks from card...
[|] Sector... 1 block... 3 ( ok )[#] Auth error
[#] Auth error
[#] Auth error
[#] Auth error
[/] Sector... 2 block... 0 ( ok )[#] Auth error
[#] Auth error
[#] Auth error
[#] Auth error

```

Do you know why this is happening and how I can fix it? Could it be related to the authentication keys, access bits, or differences between the [Proxmark3](https://dngr.us/pm3) and Proxmark5 commands?

I really appreciate your help!

---

<div class="post-metadata">

**Author:** ![Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/aoxhwjfoavdlhsvfpzha/32/42933_2.png) [@Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/u/Aoxhwjfoavdlhsvfpzha)\
**Post date:** [November 25, 2026, 10:07pm UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/4 "2026-11-25T22:07:13Z")

</div>

Some guides use outdated commands, it’s a good idea to first run a command with `--help` on the end to check the help-text and make sure the syntax is correct while you are learning

* * *

What are you trying to accomplish with the `hf mf dump` command? It looks like you already have a dump of the cards?:

> [@Chrisp](#):
>
> I successfully saved the key file and the BIN and JSON dump files using autopwn.

In any case, the dump command needs the keys for the card, right now it’s just trying the default keys for a blank tag. Your command should look more like `hf mf dump --keys <keyfile>`

---

<div class="post-metadata">

**Author:** ![Chrisp](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@Chrisp](https://forum.dangerousthings.com/u/Chrisp)\
**Post date:** [November 26, 2026, 3:58am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/5 "2026-11-26T03:58:15Z")

</div>

Thanks for your reply. That makes sense, and I understand now why the dump command was failing without specifying the key file.

However, I’ve run into another issue. Could you help me understand why this is happening?

[=] Dumping card content to emulator memory (Cmd Error: 04 can occur)  
[#] Block 8 Cmd 0x30 Cmd Error 04  
[#] Block 68 Cmd 0x30 Cmd Error 04  
[#] Block 72 Cmd 0x30 Cmd Error 04  
[#] Block 76 Cmd 0x30 Cmd Error 04  
[#] Block 80 Cmd 0x30 Cmd Error 04  
[#] Block 84 Cmd 0x30 Cmd Error 04  
[#] Block 88 Cmd 0x30 Cmd Error 04  
[#] Block 92 Cmd 0x30 Cmd Error 04  
[#] Block 96 Cmd 0x30 Cmd Error 04  
[#] Block 100 Cmd 0x30 Cmd Error 04  
[#] Block 104 Cmd 0x30 Cmd Error 04  
[#] Block 108 Cmd 0x30 Cmd Error 04  
[#] Block 112 Cmd 0x30 Cmd Error 04  
[#] Block 116 Cmd 0x30 Cmd Error 04  
[#] Block 120 Cmd 0x30 Cmd Error 04  
[#] Block 124 Cmd 0x30 Cmd Error 04  
[#] Block 128 Cmd 0x30 Cmd Error 04  
[#] Block 144 Cmd 0x30 Cmd Error 04  
[#] Block 160 Cmd 0x30 Cmd Error 04  
[#] Block 176 Cmd 0x30 Cmd Error 04  
[#] Block 192 Cmd 0x30 Cmd Error 04  
[#] Block 208 Cmd 0x30 Cmd Error 04  
[#] Block 224 Cmd 0x30 Cmd Error 04  
[#] Block 240 Cmd 0x30 Cmd Error 04

---

<div class="post-metadata">

**Author:** ![Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/aoxhwjfoavdlhsvfpzha/32/42933_2.png) [@Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/u/Aoxhwjfoavdlhsvfpzha)\
**Post date:** [November 26, 2026, 4:14am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/6 "2026-11-26T04:14:53Z")

</div>

What is the exact command you’re running to produce that error?

---

<div class="post-metadata">

**Author:** ![Chrisp](https://forum.dangerousthings.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@Chrisp](https://forum.dangerousthings.com/u/Chrisp)\
**Post date:** [November 26, 2026, 4:16am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/7 "2026-11-26T04:16:33Z")

</div>

hf mf autopwn --4k -s 0 -a -k FFFFFFFFFFFF

i tried like this to read all sector

---

<div class="post-metadata">

**Author:** ![Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/user_avatar/forum.dangerousthings.com/aoxhwjfoavdlhsvfpzha/32/42933_2.png) [@Aoxhwjfoavdlhsvfpzha](https://forum.dangerousthings.com/u/Aoxhwjfoavdlhsvfpzha)\
**Post date:** [November 26, 2026, 4:48am UTC](https://forum.dangerousthings.com/t/proxmark5-mifare-classic-4k-unable-to-recover-key-b-sectors-17-39/28989/8 "2026-11-26T04:48:49Z")

</div>

> [@Chrisp](#):
>
> i tried like this to read all sector

Since you already have a dump you can use ‘hf mf view’ to view it

Autopwn is only really helpful to get you the keys, once you have keys or a dump to work with you can usually use more direct commands

If you let us know what you’re trying to do on a “big-picture” kind of scale we might be able to offer more specific advice too
