reverser-firmware
它能做什么
它提供提取设备固件镜像并读取其文件系统的步骤。适用于审查自有路由器或物联网固件的研究人员和设备制造商。
适用场景
- ✓当研究人员有一个路由器固件文件,需要查看其内容时。
- ✓当设备制造商想检查其固件中是否有硬编码的账户或密码时。
- ✓当测试人员需要在物联网设备镜像中找到网页界面文件时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/firmware/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我有一个路由器固件文件。我该怎样提取它,并检查是否有硬编码密码?”
每周 5 个新技能,1 分钟读完。
工作原理
该技能告诉 AI 使用提取工具解开嵌套的文件系统,梳理设备文件夹,找到网页服务器程序,并搜索内置凭据。
技术内容(原始 SKILL.md)
作者在 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.txtin 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:
reponode for the firmware imagefilenodes for each interesting binarycredentialnodes for any hardcoded credsvulnerabilitynodes for each audit findingentrypointfor each cgi-bin path
常见问题
它使用什么工具提取固件?
它使用 binwalk 和 squashfs 工具解开镜像。
为什么要查找网页服务器文件?
该技能指出,这些文件通常是设备上最值得审查的部分。
它面向谁?
面向审查自有或获授权固件的设备制造商和安全研究人员。
详情
作者的原始描述
Router / IoT firmware extraction pipeline — unpack nested filesystems, locate web server, identify backdoor credentials.
热度
- GitHub 星标
- 6.5k
- 排名
- #14166
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/1
评论
- …