Recap Security Guide
Home/Conference topics/Reading firmware images

Topic explainers

Reading firmware images

How analysts examine firmware from embedded devices: unpacking images, reading filesystems and strings, and finding update logic, with safety in mind.

2 min read

Key points

  • Firmware images are often wrapped, compressed and layered.
  • Extracted filesystems reveal services, settings and stray secrets.
  • Update verification is a key place to look for weakness.
  • Work on devices you own and keep the original image.

Firmware is the software that runs inside devices such as routers, printers and cameras. Reading a firmware image is a common way to learn how a device works and where it may be weak. Related reading sits under hardware and embedded topics and in printer and embedded device security. See firmware in the glossary.

Getting and unpacking an image

An image may come from a vendor update file, from a memory chip read directly, or from a debug interface. Images are often wrapped in headers, compressed, or both. Analysts identify the layers, strip the wrapper and unpack the contents.

Filesystems, strings and configuration

Many devices store a small Linux-style filesystem inside the image. Once extracted, it can be browsed like any directory. Readable strings, configuration files, scripts and web interface pages reveal services, default settings and sometimes embedded credentials or keys that should not be there.

Finding update logic

How a device checks and installs new firmware matters a great deal. Analysts look for whether updates are signed, how they are verified and whether a downgrade is possible. Weak update checks can let altered firmware be installed.

Working safely

Experiment on devices you own, keep backups of the original image, and expect that a mistake can leave a device unusable. Treat extracted files as untrusted and examine them inside a sandbox. Note any credentials found, and report them to the maker rather than using them elsewhere.