Extracción y análisis de sistemas de archivos desde firmware
Extraiga, identifique y monte los sistemas de archivos integrados ocultos en imágenes de firmware para recuperar los binarios, las configuraciones y las claves que contienen.
Extracción y análisis de sistemas de archivos desde firmware es una lección gratuita de Reverse Engineering & Binary Analysis Basics en CoddyKit. Esta es la lección 4 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Reverse Engineering & Binary Analysis Basics, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Reverse Engineering & Binary Analysis Basics incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
Inside the Firmware Blob
You can analyze firmware images, emulate embedded binaries, and use hardware-assisted debugging. Most firmware is more than code: it embeds entire filesystems holding executables, web pages, and secrets.
Extracting them is often where the real findings live.
Firmware Layout
A typical image is a stack of regions:
- Bootloader
- Kernel
- One or more root filesystems
- Configuration / NVRAM areas
Each region may use a different format and compression.
Identifying Contents with binwalk
binwalk scans for known magic signatures and reports what is inside and where.
binwalk firmware.bin
# 0x40 uImage header
# 0x1A00 Squashfs filesystem, gzipCarving Out Sections
Once you know offsets, you can extract a region. binwalk can do this automatically, or you can carve with dd.
binwalk -e firmware.bin
# or carve manually:
dd if=firmware.bin of=rootfs.sqsh bs=1 skip=6656Common Embedded Filesystems
Embedded devices favor compact, sometimes read-only filesystems:
- SquashFS (compressed, read-only)
- JFFS2 / UBIFS (flash-aware)
- CramFS (older, read-only)
Each needs the matching tool to unpack.
Unpacking SquashFS
SquashFS is the most common. Extract it with unsquashfs to get a normal directory tree.
unsquashfs rootfs.sqsh
# creates ./squashfs-root with /bin /etc /www ...What to Look For
Inside the root filesystem, hunt for high-value files:
/etc/passwdand hardcoded credentials- Web admin scripts in
/www - TLS keys and certificates
- Startup scripts revealing services
grep -rIn 'password' squashfs-root/etc 2>/dev/nullFinding Hardcoded Secrets
Vendors frequently embed backdoor accounts or API keys. Scan strings across the whole tree and inspect config files.
These secrets are the most common firmware vulnerability you will report.
Connecting to Your Other Skills
Extracted binaries feed back into your earlier work: emulate a recovered service binary, or attach hardware-assisted debugging to a running device executing that same code.
Filesystem extraction unlocks the targets for those techniques.
When Extraction Fails
If binwalk finds nothing, the image may be encrypted or use a proprietary container.
- Check entropy: uniformly high suggests encryption
- Look for the bootloader's decryption routine
- Try vendor update tools or known keys
Repacking After Modification
For dynamic testing you sometimes patch a filesystem and put it back. Repack with the matching tool and fix the firmware header checksum, or the device rejects the image.
Always work on copies and keep the pristine original for reference.
mksquashfs squashfs-root rootfs_new.sqsh -comp gzipQuick Check
Which tool is commonly used to scan a firmware image for embedded filesystems and other known structures by their signatures?
Recap
You can now mine firmware for its real contents:
- Map the layout, then identify regions with binwalk
- Carve sections and unpack SquashFS/JFFS2/UBIFS
- Hunt for credentials, keys, and admin scripts
- Feed recovered binaries into emulation and debugging
Aprende Assembly con un tutor de IA — gratis
Escribe y ejecuta código real en tu navegador, obtén ayuda instantánea de un tutor de IA disponible 24/7 y continúa donde lo dejaste en la web o en la aplicación.
- Cursos
- 12
- Lecciones
- 48
Preguntas frecuentes
¿La lección «Extracción y análisis de sistemas de archivos desde firmware» es gratis?
Sí — el texto completo de «Extracción y análisis de sistemas de archivos desde firmware» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Reverse Engineering & Binary Analysis Basics, actualiza a CoddyKit PRO. El curso de Reverse Engineering & Binary Analysis Basics incluye 4 lecciones en total.
¿Qué aprenderé en «Extracción y análisis de sistemas de archivos desde firmware»?
Extraiga, identifique y monte los sistemas de archivos integrados ocultos en imágenes de firmware para recuperar los binarios, las configuraciones y las claves que contienen. Practicas Reverse Engineering & Binary Analysis Basics con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar Reverse Engineering & Binary Analysis Basics?
No se requiere experiencia previa. Reverse Engineering & Binary Analysis Basics en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 4 de 4.
¿Cuánto tiempo toma la lección «Extracción y análisis de sistemas de archivos desde firmware»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de Reverse Engineering & Binary Analysis Basics?
Sí. Cada lección de Reverse Engineering & Binary Analysis Basics incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- Análisis de imágenes de firmware
- Emulación de binarios embebidos
- Depuración asistida por hardware
- Extracción y análisis de sistemas de archivos desde firmware