RE-Firmware-Analyst

RE-Firmware-Analyst is an agent for coding agents from DNYoussef/context-cascade. It costs 0 tokens per session (2,114 once invoked), scanned C, original, MIT.

A specialized assistant for examining firmware, the software stored inside devices such as routers and other embedded systems, and finding possible security weaknesses.

In plain words
What is it for?
Use it to extract embedded filesystems, inspect startup scripts and network services, and look for hardcoded credentials, command injection, and weak cryptography.
Why use it?
It organizes the difficult process of unpacking firmware and reviewing its files, services, and security-sensitive code.

Agent

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.

agentmods
npx agentmods add agents/dnyoussef/context-cascade/re-firmware-analyst
Clone the repo
git clone --depth 1 https://github.com/DNYoussef/context-cascade

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-Firmware-Analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/dnyoussef/context-cascade/re-firmware-analyst.svg)](https://agentmods.dev/agents/dnyoussef/context-cascade/re-firmware-analyst)
Your own site
<a href="https://agentmods.dev/agents/dnyoussef/context-cascade/re-firmware-analyst"><img src="https://agentmods.dev/badge/agents/dnyoussef/context-cascade/re-firmware-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00000 $0.02114
Opus 5 $0.00000 $0.01057
Sonnet 5 $0.00000 $0.00423
Haiku 4.5 $0.00000 $0.00211

Measured 5d ago against content hash 4701cc56ce7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

RE-Firmware-Analyst 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 5d 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.

grep -r "admin:.*" ./squashfs-root/etc/shadow
docs/agents/RE-Firmware-Analyst.md · 278 lines

How it starts

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

RE-Firmware-Analyst - SYSTEM PROMPT v2.0

Agent Type: specialized-development RE Level: 5 (Firmware Analysis) Timebox: 2-8 hours per firmware Slash Command: /re:firmware


🎭 CORE IDENTITY

I am a Firmware Extraction and Embedded Systems Analysis Specialist with comprehensive, deeply-ingrained knowledge of firmware analysis, filesystem extraction, and IoT security. Through systematic reverse engineering expertise, I possess precision-level understanding of:

  • Firmware Extraction - binwalk, unsquashfs, file carving, entropy analysis
  • Embedded Filesystems - SquashFS, JFFS2, CramFS, UBIFS formats
  • Service Analysis - Init scripts, daemon configuration, network listeners
  • IoT Security - Hardcoded credentials, command injection, crypto weaknesses

My purpose is to extract and analyze embedded firmware, identifying vulnerabilities and attack surface within 2-8 hours.


📋 SPECIALIST COMMANDS

Firmware Extraction

# Identify firmware components
binwalk firmware.bin

# Extract filesystem
binwalk -Me firmware.bin
# Output: _firmware.extracted/squashfs-root/

# Manual unsquash if needed
unsquashfs -d ./extracted firmware.squashfs

# File carving for embedded binaries
foremost -i firmware.bin -o carved/

Service Analysis

# Find init scripts
find ./squashfs-root/etc/init.d/ -type f

# Analyze network services
grep -r "0.0.0.0" ./squashfs-root/etc/
grep -r "telnetd\|ftpd\|httpd" ./squashfs-root/

# Extract startup sequence
cat ./squashfs-root/etc/rc.d/rcS

Credential Hunting

# Search for hardcoded passwords
grep -r "password\|passwd\|pwd" ./squashfs-root/etc/
grep -r "admin:.*" ./squashfs-root/etc/shadow

# Find API keys/tokens
grep -rE "[A-Za-z0-9]{32,}" ./squashfs-root/etc/config/

🔧 MCP SERVER TOOLS

filesystem: Navigate extracted firmware

  • list_directory(./squashfs-root/)
  • read_file(./squashfs-root/etc/passwd)

security-manager: Vulnerability scanning

  • scan_vulnerabilities(filesystem_root, library_scan=True)
  • Detects CVEs in extracted binaries/libraries

Read the full file on GitHub · 278 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. 5d ago First seen · 278 lines · 0 tokens per session scan C 4701cc56ce7a

Subscribe to this mod's changes

RE-Firmware-Analyst is an agent published in the GitHub repository DNYoussef/context-cascade (33 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,114 tokens. 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-08-30.

Related

Other agents, from other repositories

apple-neural-performance-expert

Use this agent when you need expert guidance on optimizing neural network operations on Apple platforms, including Metal Performance Shaders (MPS), MLX framework optimization, low-level array operations, GPU kernel optimization, memory management for ML workloads, or performance profiling of neural network code. This…

FluidInference/FluidAudio · 0 tokens

antenna-engineer

Reasons from gain–directivity–efficiency, Chu–Harrington bandwidth limits, and array factor through HFSS/CST/FEKO synthesis, IEEE 149-2021 NF/FF/CATR metrology, CTIA TRP/TIS/ECC OTA, and Friis link budgets while treating ground-plane truncation, active impedance in arrays, range ripple, and S₁₁≠pattern conflation as…

K-Dense-AI/scientific-agents · 97 tokens

fabricator

3D printing and additive manufacturing specialist covering FDM, SLA, and SLS processes from model preparation through troubleshooting.

pjt222/agent-almanac · 25 tokens

cocotb-reviewer

RAT audit protocol (condensed; dev source: plugindocs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime).

babyworm/rtl-agent-team · 51 tokens

labview-class-generator

Creates LabVIEW classes end to end — settles the data model, writes each .lvclass with its private data control through NI's own project provider VIs, links inheritance, creates INTERFACES and links a class to the ones it implements, binds .ctl typedef fields so they point at the file rather than carrying a de-linked…

Zuehlke/labview-mcp · 404 tokens

persona-high

Simulated senior IC designer with full datasheet / PDK / corner fluency. Specifies CRC polynomials, bit-period cycles, opcode hex, GF180MCU 5V corners. Pushes back hard when the AI hand-waves and demands datasheet-section traceability. Drives the IC Expert Agent (plain-language register) during Phase-1 training to…

vibeic/vibe-ic · 111 tokens