re-mips

re-mips is a skill for Claude Code from dslsdzc/rev-skills. It costs 83 tokens per session (3,225 once invoked), scanned C, original, Apache-2.0.

A guide to analysing MIPS programs found in router and embedded-device firmware. MIPS is a processor architecture, and the guide covers details such as byte order and delayed instructions.

In plain words
What is it for?
Use it to inspect router web servers, services, tools, and malware compiled for MIPS or MIPS64, including both big-endian and little-endian files.
Why use it?
It helps avoid misreading a binary when the processor type or byte order is unfamiliar. It also clarifies when to use firmware extraction, file-system analysis, or full-device emulation instead.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

Good fit Use it to inspect router web servers, services, tools, and malware compiled for MIPS or MIPS64, including both big-endian and little-endian files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-mips
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dslsdzc/rev-skills --skill re-mips
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

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-mips

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-mips/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-mips)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-mips"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-mips/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-mips

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-mips"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-mips.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,225 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00083 $0.03225
Opus 5 $0.00042 $0.01613
Sonnet 5 $0.00017 $0.00645
Haiku 4.5 $0.00008 $0.00323

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

Security

Grade C, and why

re-mips scanned grade C with 1 finding 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 9d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- **配置与密码哈希提取**:/etc/passwd、/etc/shadow、/etc/config 配置目录(开源路由系统常见)与 web 备份配置;密码哈希常见 `$1$`(MD5-crypt)、`$5$` / `$6$`(SHA-crypt)及自定义格式;备份配置常 base64 / gzip / 自定义打包(衔接 [[re-fw-rootfs]] 与 [[re-crypto-id]])
.claude/skills/re-mips/SKILL.md · 116 lines

How it starts

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

MIPS 架构逆向(路由器固件)

何时使用 / 何时不用

  • 用:MIPS 架构 ELF 样本/恶意软件(路由器、嵌入式设备固件中解出的可执行文件)
  • 用:路由器固件内程序(web 后端、服务、工具类二进制)的逻辑分析
  • 用:MIPS 大端(mips)/小端(mipsel)任意端序的二进制
  • 不用:ARM / x86 等其他架构(通用底座 [[re-binary-core]],本技能只补 MIPS 特有语义)
  • 不用:只需解包固件看内容(走 [[re-fw-extract]])
  • 不用:只需分析文件系统/配置(走 [[re-fw-rootfs]])
  • 不用:需要整体运行固件(走 [[re-fw-emulate]])

工具准备

所有工具先验证再使用。静态分析可免沙箱;qemu-user 动态执行默认沙箱 + 网络隔离([[platform-tips]] 最高原则)。

反编译器(Ghidra / IDA 任选其一)

  • Ghidra(内置 MIPS 处理器模块,mips / mipsel / mips64 / mips64el 变体齐全):
    • Linux: 官方 release 包(需 JDK);部分发行版仓库有 apt install ghidra / pacman -S ghidra
    • macOS: brew install --cask ghidra;Windows: 官方 zip
    • 验证: analyzeHeadless -help(headless 模式)或 GUI 导入 MIPS ELF
  • IDA:商业版含 MIPS 模块;Freeware 版架构支持范围以官方页面为准
  • 导入时确认处理器变体与端序正确(mips 大端 / mipsel 小端),选错全部错位

binwalk / unblob —— 固件与内嵌文件扫描

  • 同 [[re-fw-extract]] 工具准备:pip install binwalk(推荐)或发行版包;unblob: pip install unblob
  • 验证: binwalk --versionunblob --version

readelf / file —— 架构与字节序确认(binutils)

  • Linux: binutils 自带(apt install binutils 等);macOS: brew install binutils 或 LLVM 系 readelf;Windows: WSL 内
  • 验证: readelf --version

qemu-user —— MIPS 用户态仿真(动态验证)

  • Linux: apt install qemu-user / dnf install qemu-user / pacman -S qemu-user
  • macOS: brew install qemu(含用户态);Windows/WSL: WSL 内 Linux 版
  • 大小端是独立二进制:qemu-mips(大端)/ qemu-mipsel(小端),64 位为 qemu-mips64 / qemu-mips64el
  • 验证: qemu-mips --versionqemu-mipsel --version

python3

  • Linux: apt install python3 / dnf install python3 / pacman -S python
  • macOS: 自带;Windows: 官方安装器
  • 验证: python3 --version

操作步骤

按顺序执行,每步结果存档;步骤 5(动态执行)默认沙箱。

  1. 前置:固件提取与架构确认
    • 固件整体文件 → [[re-fw-extract]] 解包;解出的文件系统 → [[re-fw-rootfs]];解出的 ELF 继续本步骤
    • 架构确认:
      file target.elf               # 是否 MIPS + 端序提示
      readelf -h target.elf         # Machine=MIPS;Data=big-endian/little-endian
      readelf -A target.elf | head  # 子版本/ABI 附加信息
      
    • file 输出含 "MIPS" 才进入本技能流程;非 MIPS 转 [[re-binary-core]] 通用底座

Read the full file on GitHub · 116 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. 9d ago First seen · 116 lines · 83 tokens per session scan C a3cccc677f4b

Subscribe to this mod's changes

re-mips is a skill published in the GitHub repository dslsdzc/rev-skills (54 stars, last pushed 14d ago), licensed Apache-2.0. It adds 83 tokens to every session and 3,225 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

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