Skip to content

NAND Flash Recovering File Systems

Deral Heiland

Details techniques for dumping raw NAND flash chips, reconstructing wear-leveled blocks, and recovering embedded filesystems.

Summary

In this advanced hardware hacking tutorial from the DEF CON Safe Mode IoT Village, an embedded researcher demonstrates a complete methodology for extracting and reconstructing file systems from raw NAND flash memory. Opening at 00:00, the presenter explains how NAND flash architecture differs fundamentally from SPI NOR flash due to out-of-band data areas, wear leveling, and bad block tables.

At 16:01 and 32:02, the speaker demonstrates chip-off hardware techniques, desoldering TSOP and BGA surface-mount packages using hot air stations, cleaning solder pads, and reading raw bitstreams with dedicated chip programmers.

At 48:00, the walkthrough demonstrates software reconstruction, showing how to strip error-correcting code (ECC) parity blocks, handle data scrambling, and assemble raw dumps into mountable SquashFS and UBIFS partition images to extract proprietary firmware binaries and configuration secrets. (AI summary — Gemini Flash)

Related talks