<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5" -->

---
title: Reconstructing Device Firmware From SPI Reads | daily.dev
description: A hardware hacker demonstrates extracting firmware from a mystery device without desoldering its flash chip, by capturing SPI boot-time reads with a logic...
canonical: https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Reconstructing Device Firmware From SPI Reads | daily.dev
og:description: A hardware hacker demonstrates extracting firmware from a mystery device without desoldering its flash chip, by capturing SPI boot-time reads with a logic...
og:url: https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5
og:image: https://api.daily.dev/og/posts/0xotR3rL5.png
og:image:alt: Reconstructing Device Firmware From SPI Reads
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Reconstructing Device Firmware From SPI Reads

**[Hackaday](https://daily.dev/sources/hackaday)** · 3 min read · 0 upvotes · 0 comments

## Summary

A hardware hacker demonstrates extracting firmware from a mystery device without desoldering its flash chip, by capturing SPI boot-time reads with a logic analyzer and decoding the traffic using Scapy. The write-up covers SPI signal fundamentals, converting captured data into an image loadable in binwalk, and handling a tricky gap left by the CPU switching to faster Quad-SPI to load the filesystem, ultimately merging both captures with dd into a complete firmware image.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://hackaday.com/2026/09/24/reconstructing-device-firmware-from-spi-reads>

## Questions this post answers

### How can I extract firmware from a flash chip without removing it from the board?

Firmware can be reconstructed by capturing the SPI read operations the CPU performs at boot time using a logic analyzer, then decoding the captured signals with Scapy to reassemble an image file. This only recovers what the CPU actually reads, not necessarily the chip's full contents, but works well for common W25Q-series SPI flash chips.

_Developers researching non-invasive firmware extraction methods can find similar deep-dive writeups curated on daily.dev._

### Why is there a gap where the filesystem should be after decoding a captured firmware SPI dump?

The gap appears because the CPU switches from standard SPI to faster Quad-SPI mode, which adds two extra data lines, before loading the filesystem off the flash chip. Capturing the Quad-SPI traffic separately, decoding it, then merging it with the earlier capture using a dd one-liner produces the complete firmware image including bootloader, kernel, and filesystem.

_Anyone debugging multi-mode SPI capture gaps can track hardware hacking techniques like this through daily.dev._

## Similar posts on daily.dev

- [Drone Hacking Part 1: Dumping Firmware and Bruteforcing ECC](https://daily.dev/posts/drone-hacking-part-1-dumping-firmware-and-bruteforcing-ecc-lpkjlhxth) · Hacker News · 1 upvotes · 0 comments
- [Hacking Hard Drive Firmware](https://daily.dev/posts/hacking-hard-drive-firmware-vcacuidwy) · Hackaday · 0 upvotes · 0 comments
- [Patching my guitar amp's firmware](https://daily.dev/posts/patching-my-guitar-amp-s-firmware-ss384swfc) · Lobsters · 0 upvotes · 0 comments
- [A story of WiFi secrets, UART lockdowns and a damaged flash memory chip](https://daily.dev/posts/a-story-of-wifi-secrets-uart-lockdowns-and-a-damaged-flash-memory-chip-teedubyab) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#reverse-engineering](https://daily.dev/tags/reverse-engineering)

[View this post on daily.dev](https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Reconstructing Device Firmware From SPI Reads","url":"https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5"},"datePublished":"2026-09-24T08:02:35.398Z","dateModified":"2026-09-24T08:02:56.713Z","description":"A hardware hacker demonstrates extracting firmware from a mystery device without desoldering its flash chip, by capturing SPI boot-time reads with a logic...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/38e6f639ceb427aca2750bf6f2cd37bc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/38e6f639ceb427aca2750bf6f2cd37bc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hackaday","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hackaday","logo":"https://media.daily.dev/image/upload/s--JhDfhy70--/f_auto,q_auto/v1767541814/logos/hackaday","url":"https://daily.dev/sources/hackaday"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"reverse-engineering","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hackaday","item":"https://daily.dev/sources/hackaday"},{"@type":"ListItem","position":3,"name":"Reconstructing Device Firmware From SPI Reads"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/reconstructing-device-firmware-from-spi-reads-0xotr3rl5#faq","mainEntity":[{"@type":"Question","name":"How can I extract firmware from a flash chip without removing it from the board?","acceptedAnswer":{"@type":"Answer","text":"Firmware can be reconstructed by capturing the SPI read operations the CPU performs at boot time using a logic analyzer, then decoding the captured signals with Scapy to reassemble an image file. This only recovers what the CPU actually reads, not necessarily the chip's full contents, but works well for common W25Q-series SPI flash chips. Developers researching non-invasive firmware extraction methods can find similar deep-dive writeups curated on daily.dev."}},{"@type":"Question","name":"Why is there a gap where the filesystem should be after decoding a captured firmware SPI dump?","acceptedAnswer":{"@type":"Answer","text":"The gap appears because the CPU switches from standard SPI to faster Quad-SPI mode, which adds two extra data lines, before loading the filesystem off the flash chip. Capturing the Quad-SPI traffic separately, decoding it, then merging it with the earlier capture using a dd one-liner produces the complete firmware image including bootloader, kernel, and filesystem. Anyone debugging multi-mode SPI capture gaps can track hardware hacking techniques like this through daily.dev."}}]}
```

