本文へスキップ
Skillpedia
セキュリティ6.5k · #14166

reverser-firmware

できること

このスキルは、機器のファームウェアイメージを抽出し、そのファイルシステムを読む手順を示します。自社のルーターやIoTのファームウェアをレビューするリサーチャーと機器メーカー向けです。

使う場面

  • ✓リサーチャーがルーターのファームウェアファイルを持っており、中身を確認する必要があるとき。
  • ✓機器メーカーが、ハードコードされたアカウントやパスワードがないかファームウェアを確認したいとき。
  • ✓テスターが、IoT機器のイメージ内にあるWebインターフェースのファイルを探す必要があるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/firmware/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ルーターのファームウェアファイルがあります。それを抽出し、ハードコードされたパスワードがないか確認するにはどうすればよいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルはAIに、抽出ツールを使って入れ子になったファイルシステムを展開し、機器のフォルダを対応づけ、Webサーバーのプログラムを見つけ、組み込みの認証情報を検索するよう指示します。

技術的な内容(元の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.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
よくある質問

ファームウェアの抽出にはどのツールを使いますか?

イメージの展開にbinwalkとsquashfsのツールを使います。

なぜWebサーバーのファイルを探すのですか?

スキルによると、これらのファイルは機器上でレビューする価値が最も高いことが多いからです。

誰が対象ですか?

自社の、または許可されたファームウェアをレビューする機器メーカーとセキュリティリサーチャーです。

詳細

作者による元の説明

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

repo: BitterSecurity/Decepticon

人気

GitHubのスター
6.5k
ランキング
#14166
ライセンス
Apache-2.0
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル