Lesson 4 of 14 · 10m
Getting the Firmware Image
Vendor downloads, intercepted updates, and on-device extraction — three paths to bytes you can verify.
Before you can analyze firmware you need firmware, and "download it from the vendor" covers fewer devices every year. There are three acquisition paths — published images, intercepted updates, and extraction from a live device — and the correct one is whichever produces an image you can verify against real hardware.
Vendor downloads: start here, don't end here
Support-page downloads are free firmware. Two catches. First, the hosted version lags — vendors host 3.1 while devices ship 3.2. Always compare what you download against the version string the device reports. Second, what's hosted is often an update container, not a raw image: Asus/Netgear TRX headers, legacy U-Boot uImage wrappers, OpenWrt sysupgrade tarballs, vendor magic plus an appended signature. binwalk identifies the container; dd skips the header. Some "updates" are deltas — partial payloads that assume a base already present — and won't parse standalone.
The underrated source is the GPL archive. Vendors shipping Linux/OpenWrt are obligated to release source and build artifacts, and those archives are frequently richer than the update blob — build config, included components, versions.
Intercepted updates: let the device fetch it
The device itself knows where the firmware lives. Put it on a network you control and watch. HTTP updates are trivially captured — the URL, the image, the whole flow. HTTPS updates are worth more scrutiny than people assume: many IoT updaters don't pin certificates, and devices without a real-time clock can't validate expiry windows anyway, so a plain TLS-terminating proxy often succeeds where it "shouldn't."
The updater binary is also a document. It embeds the endpoint URL, expected headers, sometimes a decryption key for the payload. When vendors encrypt the download — newer D-Link and TP-Link images do this — the decryption key necessarily ships inside the updater on the device. The circle closes on-device.
On-device extraction: the image that actually runs
A UART root shell turns the device into its own download server:
cat /proc/mtd
dd if=/dev/mtdblock0 of=/tmp/boot.bin
dd if=/dev/mtdblock3 of=/tmp/rootfs.binThen carry files off — nc to a listener, scp if dropbear's running, tftp, or copy to a thumb drive if the firmware mounts one. fw_printenv dumps the U-Boot environment without rebooting.
The bootloader console works the same in reverse: tftpboot to pull images into RAM, inspect them, or write flash. And a chip dump — clip the SPI NOR, read eMMC over dd — is the fallback when no console answers at all.
Two verification habits keep this honest. Hash whatever you acquire (sha256sum) and record where it came from — an image you can't provenance is an image you can't defend in a report. And cross-check the acquired image against the live device before trusting it: mount the extracted rootfs next to the device's actual filesystem, or compare the update blob's reported version to the device's banner. A downloaded image and a running image that disagree is itself a finding — it means the hosted file isn't what ships.
Note: some vendors distribute firmware only inside paid "support" walled gardens or behind update servers that require a valid serial. That's not a dead end; it's why the on-device and chip-dump paths exist.
The wrong model this kills
"The firmware" is not one artifact. The hosted update, the delta the device applies, and the bytes actually sitting in MTD partitions are three different objects. Analysts who treat the download page as ground truth get version skew wrong and chase bugs in code the device never runs. Ground truth is on the chip. Everything else is a promise about it.
Practice
Grab the newest and oldest published versions — diffing them shows you what the vendor changed and sometimes what they were embarrassed by. Record the version strings the device itself reports (uname -a, the web UI's firmware page, U-Boot env). If the download is encrypted and no console is available, the flash dump path from the previous lesson is the resolution — you're not stuck, you're just one lesson further along.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
Running a Minecraft Network: Four JVMs, One Box, and the Settings That Lie to You
Four servers on one host means four JVMs each sizing its thread pools for a machine it does not own. The measured cost of that, the systemd ordering that guarantees nothing, and the throttle that switches itself back on when your forwarding breaks.
A Minecraft Mod Is a Program. In 2026, Attackers Started Acting Like It.
A Minecraft mod is a Java program that runs with your account's full permissions, and nothing in the game checks what it does.
Immich Had Fourteen Advisories and One Bug It Fixed Three Times
Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
Building a Minecraft Network: Four Servers Pretending to Be One Place
A proxy, a lobby, an SMP and a PvP arena is four JVMs that know nothing about each other. What actually has to be shared, why your permissions don't follow players, and the two LuckPerms defaults that silently share nothing at all.