Methodology · 25 Nov 2026 · ~8 min read
A firmware emulation lab on a 13 GB laptop
Why this post. Dynamic analysis of router
firmware usually gets described with server-class labs. Ours is a Kali laptop
with 13 GB of RAM and a 2 GB mobile GPU — this is the honest setup,
what it can do, and where it falls over, so others can reproduce it.
The stack
| Layer | What we run | Why |
|---|---|---|
| Host | Kali Linux laptop, 13 GB RAM, no dedicated lab network | Constraint, not choice — portability beats horsepower for triage work |
| Emulation | FirmAE (QEMU user/system mode wrappers) | Best documented success rate for consumer router/AP images (the FirmAE paper reports ~79% successful emulation vs ~16% for classic Firmadyne) |
| Isolation | Docker container + PostgreSQL for the FirmAE database | Repeatable builds; the DB keeps per-image state so re-boots are cheap |
| Analysis | binwalk-style extraction, manual static review, HTTP probing of the emulated web UI | Most consumer-device attack surface is still the management UI and its CGI handlers |
Workflow
- Collect. Firmware from the vendor's own download page — never from third-party mirrors. Record version, date, checksum.
- Extract. Unpack the image; identify the filesystem layout, the HTTP daemon (mini_httpd, lighttpd, boa, vendor-specific) and its CGI tree.
- Emulate. Boot under FirmAE with the matching architecture profile (MIPS/ARM). The goal is not full fidelity — it is the web service and network stack answering on a bridge interface.
- Map. Enumerate endpoints on the emulated UI: unauthenticated pages, hidden CGIs, debug handlers. Compare against the same firmware version's documentation.
- Verify on hardware. Anything interesting gets re-tested on the physical device we own before it goes anywhere near a report.
Honest limitations
- Emulation success is binary-ish: an image either boots its services or it doesn't. Vendor-specific NVRAM quirks are the usual blocker.
- 13 GB RAM means one image at a time. QEMU system-mode with a busy web UI is comfortable; anything more is swap thrash.
- Emulated findings are leads. Timing, kernel-module and radio-adjacent behaviour never survives emulation — hardware confirmation is mandatory before disclosure.
What's next
We are turning the repetitive parts of this pipeline (image intake, arch detection, boot verification, endpoint diffing between firmware versions) into small open-source tools. When they are documented well enough to be useful to someone who isn't us, they land on the tools page — announced in the research log.
Corrections welcome: tn@teamnemo.dev. If you reproduce this setup and hit a wall we did not document, that is exactly the kind of mail we want.