Skip to content
Skillpedia
Security6.5k · #14166

reverser-firmware

What it does

It gives steps to extract a device's firmware image and read its file system. It is for security researchers and device makers reviewing their own router or IoT firmware.

When to use it

  • ✓When a researcher has a router firmware file and needs to see what is inside.
  • ✓When a device maker wants to check its firmware for hardcoded accounts or passwords.
  • ✓When a tester needs to locate the web interface files inside an IoT device image.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/firmware/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/firmware/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“I have a router firmware file. How do I extract it and check for hardcoded passwords?”

5 new skills a week. 1 minute to read.

How it works

The skill tells the AI to unpack nested file systems with extraction tools, map the device folders, find the web server program and search for built-in credentials.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Firmware Extraction Playbook

1. Extract

apt-get install -y binwalk squashfs-tools cramfsprogs
mkdir -p /workspace/fw && cd /workspace/fw
binwalk -eM /workspace/firmware.bin
find _firmware.bin.extracted -name "squashfs-root" -o -name "rootfs"

2. Map the root

ROOT=$(find _firmware.bin.extracted -type d -name "squashfs-root" | head -1)
ls -la "$ROOT/etc/"
cat "$ROOT/etc/passwd"          # look for hardcoded users
cat "$ROOT/etc/shadow"          # password hashes — feed to hashcat
cat "$ROOT/etc/init.d/S*" 2>/dev/null
cat "$ROOT/etc/rc.d/rc.local" 2>/dev/null

3. Web server binary

find "$ROOT" -name "httpd" -o -name "lighttpd" -o -name "nginx" -o -name "boa"
# For each: bin_identify + bin_strings + bin_symbols_report

CGI binaries under www/cgi-bin/ are the highest-yield targets — often one file per endpoint with direct system() calls from query params.

4. Hardcoded credentials

bin_strings(path=web_server_binary, category_filter="secret")
bin_strings(path=web_server_binary, category_filter="crypto")

Also check for base64 / hex key patterns near strcmp calls (manual audit via the active Ghidra runtime. Hosted runs import the extracted binary under /workspace with ghidra_import_file; use ghidra_find_tools for native capabilities not initially listed. Standalone runs may expose local script generation tools instead.)

5. Authentication bypass audit

Look for:

  • Magic string comparisons (strcmp(user, "admin"))
  • Debug backdoor paths (/debug, /cgi-bin/shell, .sys)
  • UART/JTAG enabled in bootargs (check bootargs.txt in extraction)

6. Cross-reference CVEs

For the extracted busybox / kernel / dropbear / openssl versions:

cve_by_package("busybox", "1.27.2", "OSS-Fuzz")
cve_lookup("CVE-2021-28831,CVE-2023-0464")

7. Record

Add:

  • repo node for the firmware image
  • file nodes for each interesting binary
  • credential nodes for any hardcoded creds
  • vulnerability nodes for each audit finding
  • entrypoint for each cgi-bin path
FAQ

What tools does it use to extract firmware?

It uses binwalk and squashfs tools to unpack the image.

Why look for web server files?

The skill notes these files are often the most useful to review on a device.

Who is it for?

Device makers and security researchers reviewing their own or authorized firmware.

Details

Original description by the author

Router / IoT firmware extraction pipeline — unpack nested filesystems, locate web server, identify backdoor credentials.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#14166
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills