re-fw-rootfs

re-fw-rootfs is a skill for Claude Code from dslsdzc/rev-skills. It costs 47 tokens per session (1,959 once invoked), scanned A, original, Apache-2.0.

A workflow for analysing a firmware root filesystem, meaning the directory tree extracted from a device firmware image. It focuses on programs, startup entries, configuration files, keys, hard-coded passwords, and the processor architecture used by binaries.

In plain words
What is it for?
Use it after firmware extraction to locate startup code, inspect embedded programs and settings, identify architecture, and search for secrets or hard-coded credentials.
Why use it?
It turns an extracted firmware filesystem into a structured source of evidence for static investigation. It separates file inspection from earlier unpacking and from actually running the firmware.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is mkdir rootfs_out && cd rootfs_out && cpio -idmv < ../initramfs.cpio.

Good fit Use it after firmware extraction to locate startup code, inspect embedded programs and settings, identify architecture, and search for secrets or hard-coded credentials.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills
agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-fw-rootfs

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re-fw-rootfs

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-fw-rootfs/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-fw-rootfs)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-fw-rootfs"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-fw-rootfs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-fw-rootfs

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-fw-rootfs"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-fw-rootfs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01959
Opus 5 $0.00023 $0.00979
Sonnet 5 $0.00009 $0.00392
Haiku 4.5 $0.00005 $0.00196

Measured 10d ago against content hash f1c44054d4c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

re-fw-rootfs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/re-fw-rootfs/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

固件文件系统分析(rootfs)

何时使用 / 何时不用

  • 用:已有解包产物 / 文件系统镜像,需要找启动入口、配置、密钥、硬编码口令
  • 用:需要定位固件内程序与架构(交叉二进制)
  • 不用:还没有任何解包产物(先 [[re-fw-extract]])
  • 不用:需要运行固件程序观察行为(走 [[re-fw-emulate]])
  • 不用:需实物板子(走 [[re-hardware-io]])

工具准备

所有工具先验证再使用。本技能纯静态分析可免沙箱([[platform-tips]] 最高原则);解出的程序要运行时转 [[re-fw-emulate]]。

解包工具(unblob / binwalk 产物优先)

  • 已装则直接用 [[re-fw-extract]] 的解包产物;没装按该技能「工具准备」安装
  • 验证: unblob --version / binwalk --version

7-Zip(7z)—— 通用容器兜底

  • Linux: apt install p7zip-full / dnf install p7zip-plugins / pacman -S p7zip
  • macOS: brew install p7zip
  • Windows: choco install 7zip(或 7-zip.org 官方安装包)
  • 验证: 7z i | head -5(显示版本)

squashfs-tools(unsquashfs)

  • Linux: apt install squashfs-tools / dnf install squashfs-tools / pacman -S squashfs-tools
  • macOS: brew install squashfs
  • Windows/WSL: WSL 内 Linux 版
  • 验证: unsquashfs -version

cramfs 解包(cramfsck)

  • Linux: apt install cramfsprogs(Debian/Ubuntu);其他发行版无官方包 → 用 unblob 解 cramfs 兜底
  • macOS/Windows: unblob 兜底
  • 验证: cramfsck -V

grep / ripgrep —— 配置与密钥搜索

  • Linux: apt install ripgrep / dnf install ripgrep / pacman -S ripgrep(grep 随发行版自带)
  • macOS: brew install ripgrep
  • Windows: choco install ripgrep(或 WSL)
  • 验证: rg --version / grep --version

交叉 binutils(readelf / objdump 跨架构)

  • Linux: apt install binutils-arm-linux-gnueabi binutils-arm-linux-gnueabihf binutils-mipsel-linux-gnu binutils-mips-linux-gnu(Debian/Ubuntu;Fedora: dnf install binutils-arm-linux-gnu binutils-mips-linux-gnu
  • macOS: brew install binutilsgreadelf)或 brew install llvmllvm-readelf
  • WSL: Linux 版直接可用
  • 验证: arm-linux-gnueabi-readelf --version;本机 readelf 也能读交叉 ELF 头(readelf -h),属性级信息用交叉版 readelf -A

操作步骤

按顺序执行,每步记下结果。

  1. 挂载/解包文件系统
    # squashfs(最常见)
    unsquashfs rootfs.squashfs -d rootfs_out
    # cpio initramfs
    mkdir rootfs_out && cd rootfs_out && cpio -idmv < ../initramfs.cpio
    # 通用兜底
    7z x rootfs.img
    # cramfs(Debian 系)
    cramfsck -x rootfs_out rootfs.cramfs
    # ext 类镜像(需 root,只读挂载)
    mkdir mnt && mount -o loop,ro rootfs.img mnt
    
    已用 [[re-fw-extract]] 解出则直接进入下一步,跳过此步。

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 125 lines · 47 tokens per session scan A f1c44054d4c2

Subscribe to this mod's changes

re-fw-rootfs is a skill published in the GitHub repository dslsdzc/rev-skills (52 stars, last pushed 12d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,959 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

reverse-engineering-arm-binaries

Reverse engineers ARM/AArch64 malware by identifying the architecture and instruction set state (ARM/Thumb), parsing ELF/Mach-O ARM headers, and orienting analysis around the ARM calling convention. Activates for requests to reverse ARM binaries, analyze AArch64 malware, or handle ARM/Thumb instruction-set decoding.

meltedinhex/analyst-ai-pack · 69 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

ot-ics-attack

A guide to assessing operational technology and industrial control systems such as SCADA, DCS, and PLC environments. These systems monitor and control physical processes and often use specialized network protocols.

wgpsec/AboutSecurity · 81 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

plurigrid/asi · 40 tokens