# What a broken bitmap tells you about NAND flash

[Canonical HTML page](https://www.teskeslab.org/articles/nand/)

A damaged boot logo helped uncover how a payment terminal arranged data and parity bytes across its NAND flash.

By [Lucas Teske](https://www.teskeslab.org/researchers/lucas-teske/) · 2024-01-16

A 320 × 240 boot logo offered a clue to the flash layout of a payment terminal. Comparing the damaged image with the raw pages revealed how the controller had scattered data and parity bytes.

In a later experiment on a PAX D177, [Lucas ran his own code on the terminal](https://lucasteske.dev/2025/09/running-code-in-pax-machines) by replacing its processor. The experiment did not exploit a security flaw, bypass tamper protection, or enable a modified terminal to process payments.

![The boot logo appears broken into bands in the untreated NAND dump.](https://www.teskeslab.org/assets/pax-broken.webp)

Raw dump

![The recovered PAX boot logo after reordering the data.](https://www.teskeslab.org/assets/pax-fixed.webp)

Reconstructed bitmap

- [Read in English](https://lucasteske.dev/2024/01/decoding-and-analysis-nand-flash)
- [Ler em português](https://lucasteske.dev/pt/2024/01/analise-e-decodificacao-de-memoria-flash)
