Engineering record

Reverse Engineering · 2025

Router Firmware Static Analysis

Extraction and structural analysis of a consumer router firmware image, mapping the boot chain and enumerating exposed services.

firmwareghidrabinwalkmips

Context

A donated router image was analysed to understand its boot flow and attack surface, purely as a research exercise.

Method

Image entropy mapped to locate compressed regions; SquashFS extracted and the init sequence traced. Boot stages annotated and the service supervisor reconstructed.

Binaries for the management daemon were loaded into Ghidra with MIPS structures applied, then key request-handling functions annotated. Configuration parsing was reviewed for bounds handling.

Outcome

Full boot chain documented. Three network-facing services enumerated, one of which ran with elevated privileges and parsed configuration without length checks — a plausible pre-auth surface. Emulated execution confirmed the parser accepts oversized input.

Notes

Analysis was static plus emulation; no live device exploitation was performed.