Repository navigation
Releases
rampage v1.20.0
Firmware
- Raw projects: a code region the program writes is writable for the decompiler, so a Cortex-M application that runs
from RAM no longer getsRead-only address is writtenon its global stores, and reads of its globals are no
longer folded into the values the image holds; its function bodies, literal pools and strings stay read-only, so
constants, calls, switch tables and string literals still fold (an initialised char array stays writable). A
Cortex-M code region (primary, furthercoderegion or record run) is writable when mapped in SRAM (0x20000000 to
0x3fffffff), and a decoded primary region when at least two functions store into it outside their bodies. The
rawselector states it withwritable(Cortex-M only; on the selector for the primary region, on aregions
entry for acoderegion);trueondataandfalseonramare refused.binary_inforeportswritable
andwritable_reasonon each region. Flash mappings, other profiles and native images decompile as before. xrefsandsearchreferencesfind loads and stores that reach a structure field through a base register plus
an immediate offset (ldr r1, =0x20001234thenldrb r0, [r1, #11], a MOVW/MOVT base, a Thumbaddson the
base), with evidence on each row:base(the instruction that set the base, the base address, the offset and the
access width) andaccess(readorwrite). On ARM and Thumb the base is followed across a function's
branches and loops when every path into the access sets the same base; MIPS and RISC-V bases (a completed
address pair or a GOT load) within a straight-line run. In a Raw Cortex-M project a field in unmapped RAM or
peripheral space is listed too. The CLI'sfunction xrefsprints the evidence. New fixture
tests/fixtures/firmware/raw-cortex-m-fields.bin.- Discovery resolves base-plus-offset field references into unmapped RAM and peripheral space for an ELF whose
build attributes say M-profile, as it did for Raw Cortex-M projects. peripheral_map(MCP grouptypes, Raw-capable; CLIbinary peripheral-map) maps which code touches which
memory-mapped peripheral without an SVD, from load and store instructions only (base-plus-offset field references
and the constant-address access scan), so literal-pool words and tables never dereferenced stay out. Accesses in
device space (Cortex-M peripheral, external device and private peripheral bus regions; MIPS32 kseg1; Xtensa ESP
peripheral windows; any imported SVD peripheral) are grouped into blocks: the SVD peripheral, an architectural
Cortex-M core block (SCB, NVIC, SysTick, MPU, DWT, ...) with register names, or the 1 KiB window of the base
register's value. Counts first, then per block the offsets with read/write, width and functions, or with
by_functionper function the blocks and offsets it touches; filters by function and address range, paging, and
anextnaming the function writing the most registers. Misaligned accesses and "functions" that are data
decoded as code are left out; Cortex-M bit-band alias stores count at the word and bit they reach. Raw and ELF
Cortex-M images; a hosted binary gets an empty map with a note.peripheral_accessnow counts the same
accesses. New fixturetests/fixtures/firmware/raw-cortex-m-peripherals.bin.- Raw Cortex-M: a vector table the program fills in RAM the image has no bytes for (often reserved just below the
copied code) and then installs through VTOR is read from the stores the reset-code follow saw, running on into
mapped bytes after them, judged as the reset-time table is (an initial SP in RAM and an accepted Thumb Reset
handler, or Reset and two more handlers in mapped code), and its handlers are seeded.raw.scatter_loadreports
vector_table_bytes(mappedorstored); a table nothing in the follow fills is still refused, and
vector_table_refusednames the mapped region that begins less than one table above it. New fixture
tests/fixtures/firmware/raw-cortex-m-scatter-vtor.bin. - Raw Cortex-M: when
vector_tableis refused (an image that starts with code),binary_infoadds awarningsline
andlist_functionsanextsaying to reopen withoutvector_tableand withentry, and what the refusal cost
(no entry, so the reset code and its startup copies are not followed). Givenentry, only the warning remains,
saying to dropvector_table. The CLI'sfunction listprintsnext.
Object files and archives
- ELF relocatable objects (
.o) load as IDA loads them: allocated sections are laid out from 0x10000, each aligned,
undefined symbols get named slots in anexternsegment (imports; functions where a call reaches them), common
symbols aCOMMONsegment and GOT references a synthetic.got, and relocations are applied into a loaded copy
for x86, x86-64, AArch64, ARM/Thumb (withbl/blxinterworking), MIPS (HI16/LO16 pairing,_gp_disp, GOT16
pages, CALL16) and RISC-V (PCREL HI20/LO12 pairs, CALL, ADD/SUB/SET), REL and RELA alike. Unapplied types are
reported once per type. Functions, xrefs, strings, disassembly and decompiled C now work on objects:xrefsrows
carry therelocation(type, symbol, addend) applied at the referencing instruction,binary_inforeports the
layout underrelocatable, and the decompiler names externs, treats a jump to one (conditional or not) as a
call followed by a return, binds GOT entries of local functions and folds an object's read-only data except
fields whose relocation was left unapplied. Applied fields matchld.lld's at the same layout on the fixtures.
Before, an object listed no functions and could not be disassembled or decompiled. - COFF objects (
.obj: x64, x86, ARM64, Thumb-2, big objects too) and Mach-OMH_OBJECTobjects (x86-64, arm64)
load the same way. COFF: addends read from the field,__imp_Xpointers as slots of a synthetic.idataimport
table holding the externX(so calls through them decompile by name), weak externals resolved to their default,
COMDAT, debug and directive sections handled (binary_inforeportscomdatsand the.drectvedirectives),
image base 0 forADDR32NB,.pdataentries seeding function starts (SEH funclets); the format ispe. Mach-O:
sections keep their own addresses moved by the base,SUBTRACTOR(a section-relative minuend too) andADDEND
pairs, a synthetic__got. COFF and Mach-O function symbols are sized to the next symbol in their section, so
objects and libraries build signatures. Every relocation of the fixtures references the same symbol plus addend
in rampage's image as inlld-link's orld64.lld's output. - Static libraries: a member of a GNU or BSD
ararchive opens in any tool aslib.a(member.o)(member.o#N
where names repeat), as the embedded image at its location, with its own annotations and cache entry;
binary_inforeportsarchive_member. Opening a whole library lists its members.archive_inventory(CLI
binary archive-inventory) lists a library's members with the symbols its index gives each and theopenpath,
andcontainsmatches those symbols. See object files. - MSVC
.libmembers open aslib.lib(member.obj); import-library members (short import objects) are listed by
archive_inventorywith theirimport(DLL, symbol, kind, by name or ordinal) and refused with what they import
when opened; a Mach-O universal.alists every slice's members with theirarchand a member path opens the
slicearchpicks. build_signatures(CLIfunction build-signatures) takes a static library as its path and builds from all its
objects, adding PAT patterns whose wildcards are exactly the bytes relocations patched (the 16-bit immediate for
MIPS%hi/%lo): a MIPS library's database names all seven of its functions in a program linked against it,
where the objects' hashes alone named two; a COFF.lib's names all ten functions of a program lld-link links
from it. Members are skipped by format (import objects, alias-only objects), and the MCP call is cancellable.- New fixtures in
tests/fixtures/objects(build-objects.sh): ELF objects andarlibraries, COFF and Mach-O
objects,libobjects-coff.lib,imports-coff.lib,libobjects-macho.a,libobjects-mipsel.aand
linked-mipsel.
CLI
binary decode --output PATHwrites the whole decoded output to a new file, through the same API function and with
the same refusals as MCPwrite_decoded_range: a new file only (never over an existing file or symlink), mode
0644, and the decode's size caps. The CLI resolves the directory typed (relative, through..or a symlinked
/tmp) to its canonical path first;--jsonaddswritten(path,bytes) to the receipt and keepspreview.- MCP tool names work at the CLI as hidden aliases where one CLI command does the same thing (
rampage binary_info FILErunsbinary inspect; also within a group). An unknown subcommand is refused with the command meant: the
CLI route of an MCP tool name (with flags, as forwrite_decoded_range), a note that an MCP tool has no CLI
command, or the nearest routes by edit distance (a prefix such asfunction decompcounts as close).
rampage help <tool>shows the route's help. The mapping is one table, listed in the
CLI reference.
Changes and fixes
- Decompiled C names a callee without a symbol
sub_<hex>(lowercase hex byte address, as listings,xrefsand
address arguments use it) instead of Ghidra'sfunc_0x<padded hex>, also for calls into code discovery never made
a function; the name resolves in every tool that takes an address, and the structured result'scalls[].nameand
call tokens carry it for direct calls (before,nulland empty). The decompiler's own default names (an
undiscovered function decompiled by address, the tar...
rampage v1.11.0
identify_functionson Cortex-M firmware consults a new operand tier after the embedded set
(data/embedded-thumb-operands.json.gz, 1.25 MB): the same training references hashed under scheme 4, which also
masks Thumb load/store offsets and stack adjustments, so a library function whose structure offsets follow the
kernel configuration or the compiler release is still named (sourcerampage-builtin embedded operands, a
coarser match). The embedded call graph also trains on FreeRTOS kernels with every application hook on, so an
enabled hook is no longer named after the library function that held its call position elsewhere. On the held-out GCC 14.3 fixtures recall rises from
60.1% to 63.9% (Cortex-M4F) and from 45.4% to 46.3% (Cortex-M0), with no wrong or spurious name; on the new dev
split (11 images from GCC 11.3, 12.2, 13.2 and 13.3) from 51.5% to 56.3%, with one false name fewer.tools/embedded-signatures/build.pybuilds a dev split (dev, from an owned program, kernel configuration and
toolchains training does not use), tombstone negatives (negatives), a held-out negative gate (negatives --gate: other libraries, GCC 12.2, other levels) and the hooks kernels (refs --config hooks);
crates/rampage-eval/examples/embedded_operands.rsbuilds the operand tier and runs its training (each GCC release
left out), dev and negative gates.identify_functionsruns call-graph propagation on Cortex-M firmware, from a new embedded call graph
(data/embedded-callgraph.json.gz, 65 KB) built from the embedded set's training references. On the held-out
GCC 14.3 fixtures recall rises from 51.3% to 60.1% (Cortex-M4F) and from 31.3% to 45.4% (Cortex-M0), with no
wrong or spurious name; added names carry sourcerampage-builtin call graph. Link stubs and weak override
points (application hooks, the HAL's weak defaults) are never propagated.crates/rampage-eval/examples/embedded_call_graph.rsrebuilds the embedded call graph reproducibly and refuses
held-out builds. The flywheel engine chooses the call graph as production identification does.- MCP:
pathandraware optional. A call without them works on the one binary the connection has opened,
with its selectors and its peripheral and annotation state; the result names it insession_target. With several
open, the error lists them. An explicitpathalways wins and reuses the connection's Raw selector for it only
when the file has no native header;raw: nullasks for the native image. - MCP: Intel HEX and S-record files open by path alone when their records start with a Cortex-M vector table whose
initial stack pointer is in RAM; otherwise the error names therawselector to pass.disassembleon a
Cortex-M Raw project without an entry starts at the Reset handler and says so. - MCP: an
evaluate_functionbuffer whosesizeis short of its content takes the content's length (reporting
requested_size);inspect_datareads at most 1024 bytes and uses the pointer width for other word sizes
(reportingtruncated,requested_size,requested_word_size); inspect_raw_code and inspect_sleigh limits and
decoder timeouts clamp to their caps.evaluate_functiontakesargumentsasargs, and a list sent as JSON
text. - MCP:
enable_toolssays where the firmware tools live when asked forfirmwareand accepts unambiguous aliases
(svd,peripherals,yara,crypto,apk,dex,filesystem,signatures).import_svdgiven the.svd
aspathuses the session's binary as the image, and its previews say nothing was applied. A Raw selector
missingbase_addressgets the base a Cortex-M vector table suggests.
rampage v1.10.0
integrity_checksgives each check's stored and computed values, and each fix write's current and replacement
values, as integers read at the field's width and byte order, beside the hex (a0xstring above 2^53-1; none
for digests).raw:offsetdefaults to 0 andlengthto the rest of the file; a range past the end names the range, the
file's size and the longest length that fits;formatacceptsbin/raw; Cortex-M spellings such as
arm-thumb-cortex-mselect the profile, and ARMv8-M cores and architecture names get an explanatory error; a
selector sent as a JSON string is parsed.- Argument aliases:
xrefstarget(asto),inspect_datacount(assize: bytes, or words ofword_size
bytes when that is given),peripheral_accessat(asperipheral). Misplacedsvdonperipheral_access,
class_nameonclass_evidence, andimport_svdwith only a.svdpath get errors naming the right call. - Fix:
get_typewith a decompiler worker stopped at the native type library for any unknown name; DWARF and Go
runtime metadata are now searched, so a Go type is found by its package-qualified name or full import path. - ELF files without section headers (OpenWrt's
sstrip) list their dynamic symbols, imports, exports and import
slots, read throughPT_DYNAMIC, on every architecture.DT_INIT,DT_FINIand the init and fini arrays seed
function discovery. - MIPS16e code in 32-bit MIPS ELF files is decoded:
disassemble,list_functions,xrefs,decompileand
evaluate_functionwork on it, including calls acrossjalxand through GOT entries. Most OpenWrt programs,
busyboxamong them, are MIPS16e. microMIPS and 64-bit MIPS16e are still reported as not decoded. - MIPS: musl's dynamic
_start_cand MIPS16e function-pointer tables seed discovery; addresses of strings in the
executable segment no longer start functions. ANALYSIS_VERSION10; worker protocol 16.
rampage v1.9.0
Router and ESP32 firmware, two new ways for an agent to get answers it can trust, and analysis that is kept between sessions. Every feature in this release was also run on public firmware it was not built from (OpenWrt, MicroPython for ESP32/ESP8266, Debian mipsel zlib, an F-Droid APK pair); the report is in docs/benchmarks/acceptance-2026-11-20.md.
check_claim(core, experimental): check a claim before reporting it. Each claim comes back verified, refuted with a counterexample, or unknown with what would decide it.- Kinds: a function returns a value, computes a CRC/checksum/hash or expression, calls another function, references a string, holds a constant, or a region's checksum.
- A wrong claim is never verified, and every refutation carries a real counterexample.
diff_firmware(carvegroup, experimental): two versions of a device update in, one answer out.- Reports which files, functions, strings, endpoints and lock mechanisms changed.
- Works for filesystem images, Raw firmware, ESP images and APK/DEX pairs.
- MIPS (experimental):
- Position-independent Linux userland (routers, cameras), with
$gp/$t9tracking, the GOT and.MIPS.stubsnamed, andfind_main. - Raw MIPS32 profiles for boot ROMs.
- MIPS16e and microMIPS code is detected and reported as not decoded.
- Position-independent Linux userland (routers, cameras), with
- Xtensa and ESP (experimental):
- A native decoder for ESP32 (windowed ABI) and ESP8266 (call0).
- ESP app images and partition tables, including flash dumps that start at flash 0x1000.
- On the public ESP32 image, over 99% of functions were found and
app_mainwas located.
evaluate_function:- Runs SSE through AVX2 operations, takes float arguments and returns float results.
- Returns a step trace on request.
- Models
sprintf,strdupandoperator new. decompilenow points agents at it for small functions.
- Persistent analysis store keeps decompiled functions as well as discovery.
- A repeat decompile takes 27–170 ms instead of 0.5–6.4 s.
find_mainon a 26 MB Go binary drops from 8.4 s to 67 ms.- Decoded Cortex-M update images are stored too.
- A comment keeps stored results; other edits recompute them.
rampage server store [--clear]shows or clears the store.
- Large Cortex-M images now decompile through the worker. This previously failed with "JSON wire depth/node limit exceeded" (worker protocol 15).
- Faster after patch tools: once
patch_bytesorintegrity_checkshad run, every edit rediscovered every function. That cost 15–19 s per call on a 3.7 MB image and no longer happens. - Fixes from the acceptance pass: zlib-style CRC argument order in
check_claim, ESP flash base, the OpenWrt UBI end marker, uImage notes, and paging indiff_firmware.
Known gaps, recorded in docs/known-limits.md:
- ELF files without section headers show no exports, which affects most OpenWrt libraries.
- MIPS16e is not decoded yet.
diff_firmwareon Xtensa counts code that only moved as changed.
See CHANGELOG.md for the full list.
rampage v1.8.0
More firmware formats, read and recognised natively: UBI and UBIFS open in fs_list, and carve now finds the containers, filesystems and disk layouts firmware is usually packed in, without depending on binwalk or unblob.
- UBI and UBIFS in
fs_listandfs_extract.- UBI images (raw flash dumps or
ubinizeoutput) list their volumes as<name>.img. Volumes are rebuilt from their eraseblocks, and each one opens throughinner. - UBIFS, inside a volume or as a bare dump, is read through its index plus the journal written since the last commit, with uncompressed, LZO, zlib or zstd data.
- Undersized nodes, index fan-out tricks and runaway reads are refused.
- UBI images (raw flash dumps or
carverecognises many more formats, with header checks ported from binwalk (MIT, see THIRD-PARTY-NOTICES):- ext2/3/4, Android sparse, OTA payload, tar and bzip2;
- UBI, UBIFS, JFFS2 and CramFS;
- TRX, device trees and FIT images, LZ4 and lzop;
- MBR, GPT, FAT12/16/32, and UEFI firmware volumes and capsules.
- Less noise from
carve.- Inside an image it reports only what is useful there, and counts what it left out. A firmware composite went from 245 candidates to 24.
- Forged headers can't hide later data, and every walk and checksum has a budget.
- Large files scan about 20% faster.
triageon a file with no executable header returns a container-level answer instead of an error: the layout, compressed components, carve candidates, and the exact next calls to make.- Cortex-M firmware.
find_mainworks on Raw projects.binary_infolistsraw.starting_pointsto read first.- CRC routines that
integrity_checksinfers, and their callers, are seeded into discovery. - Code named only in data is reached, so
xrefsfinds string loads. - Implausible vector tables are refused.
decompilewithexact_entrytakes Thumb code.- Addresses with the Thumb bit set work across the code tools.
searchon ARM matches constants loaded from literal pools or built by MOVW/MOVT, and scans a 3.5 MB Thumb image in about an eighth of the work budget it used to run out of.- Clearer results.
xrefswith no result explains what was searched.lock_mechanismsreports how much of the firmware it covered.- File tools that only read carry the MCP read-only annotation.
- Housekeeping.
- Committed fixtures no longer carry local paths, and CI enforces it.
- A flaky debugger UI test is fixed.
See CHANGELOG.md for the full list.
rampage v1.7.0
Android apps join the privacy checks: see what an app or a whole firmware tree can capture, what starts it, and where it sends data. The new android group is stable from this release.
- Android APKs and DEX files: the new
dex_metadataanddex_codetools (groupandroid).dex_metadatareports the package, its permissions with Android 14 protection levels, components and intent filters, receivers that start at boot, and native libraries with their JNI exports. It also pages the classes and methods.- Its
privacysection lists the capture APIs the code actually invokes, with their callers, the guarding permission, and whether a boot receiver reaches them. dex_codelists one method as Dalvik bytecode with resolved references, or as structured pseudocode (view: "pseudo"). It is not decompiled to Java.jnilinksnativemethods to theirJava_exports.
privacy_surfaceon apps and firmware trees.- On an APK or DEX file it reports Java capture sources and network sinks with their endpoints. The call paths can cross into the app's native libraries through JNI.
- Triggers cover boot, app start, push messages, scheduled work and UI callbacks.
- On an extracted firmware tree it reads init
.rcservices, systemd units and init.d scripts, and links a capture to the boot-time start that runs it. no_user_triggeris withheld whenever the evidence is incomplete: calls resolved only by name, reflection, code loaded at run time, or a bound being hit.
- String decryption: a small, bounded Dalvik interpreter runs an app's static string-decoder methods at call sites with constant arguments. Decoded URLs and keys appear in
dex_metadata,endpoint_inventory(evidencedex_decoded) andprivacy_surface. endpoint_inventoryreads APKs and DEX files: DEX string pools come with the methods that load each string, and the APK's native libraries are scanned too.- ZIP in
fs_listandfs_extract: stored and deflated members, ZIP64 included, with the usual extraction safety rules. - Shorter tool descriptions: an agent session's default tool list is 26% smaller (about 25k tokens, down from 34k). The detail moved to the "Tool details" section of
docs/mcp.md, and a test guards the catalog size. - Rust API:
WorkflowReport::targetis now anOption. The JSON for reports on binaries is unchanged.
Full details in the changelog.
Full Changelog: v1.6.0...v1.7.0
rampage v1.6.0
See what your own devices can capture, and take compressed firmware from the update file to readable code. Additions only; nothing in the stable surface changed, though Cortex-M Raw projects now discover more on their own (see below).
privacy_surface: a new report (groupcarve) on what one binary can capture and where it can send it.- Sources: microphone, camera, screen and input capture, found by API name (ALSA, tinyalsa, PulseAudio, V4L2, DRM, evdev, Android native audio and camera), by ioctl request code and by device path.
- Direction: read from constant arguments where possible, so playback is excluded.
- Sinks: network sends (sockets, libcurl, MQTT, WebSocket), with the endpoints they name, plus file writes.
- Paths: call paths from capture to send, ranked by evidence.
- Triggers: what starts each capture (program start, timer, network command, user input). Capture reached from program start with no input handling found is flagged as evidence, never as intent.
- Compressed firmware as Raw code.
- A Raw project's main region can be the output of a decoder (LZSS and others), opened straight from the update file.
probe_compressionanddecode_file_rangereturn therawsettings to open it, ranked load-address candidates, and any container record (sizes, checksum, load address) found before the stream.- The new
write_decoded_rangetool saves decoded bytes to a new file.
- Scatter-load.
- Cortex-M Raw projects follow their reset code with a small bounded interpreter.
- They map the startup copies (flash to RAM or TCM) at their run addresses and continue into the copied code.
- They find a vector table that is relocated at run time.
- Regions can also be copied from a slice of another region.
- Load address. Ranked candidates come from pointer votes, literal pools, reset-code constants and container records.
binary_infochecks the chosen base and names a better one when it looks wrong. - Sparse discovery. A Cortex-M Raw image where discovery finds little now runs the pointer-table scan automatically.
pointer_tables: trueorfalsestill decides explicitly. - More tools on Raw projects:
list_strings,inspect_data,function_summary,find_crypto,triageandtriage_report. - Bounded
binary_info: its Raw output now always fits the tool budget. - Integrity checks on firmware.
- A container's record checksums are reported as checks over each compressed stream.
- CRC routines that discovery missed are found from their polynomial literal.
list_dir: a new core tool that lists a folder, never following symlinks.- Fix: Thumb disassembly no longer shows
add/sub Rdn, #imm8inside IT blocks four times too large.
Full details in the changelog.
Full Changelog: v1.5.0...v1.6.0
rampage v1.5.0
See what your own smart devices contain and contact. Additions only; nothing in the stable surface changed.
- Unpack firmware filesystem images: the new
fs_listandfs_extracttools (groupcarve).- Formats: SquashFS 4.0 (gzip, xz, lzma, lzo, lz4, zstd), ext2/3/4, Android sparse images, full Android OTA
payload.binupdates, cpio and tar. image_offsetopens an image embedded in a larger file, andinneropens nested ones.- Extraction is sandboxed:
- it writes only into a new or empty absolute
output_dir; - no
..paths, no escaping symlinks, no device nodes or setuid bits; - total bytes, file count, file size, compression ratio and nesting are capped.
- it writes only into a new or empty absolute
- Every codec is pure Rust; nothing external is run. UBI/UBIFS images are recognised but not read yet.
- Formats: SquashFS 4.0 (gzip, xz, lzma, lzo, lz4, zstd), ext2/3/4, Android sparse images, full Android OTA
- Endpoint inventory and router blocklists: the new
endpoint_inventoryandendpoint_blocklisttools (groupcarve).endpoint_inventorylists the URLs, host names, IP literals, certificate pins and embedded certificates in one binary or a whole extracted firmware tree.- Each finding links to the functions that use it and the networking APIs they call.
- Version numbers, schema URIs and similar noise are filtered out, and private and local addresses are labelled.
endpoint_blocklistwrites the chosen hosts or domains as a hosts file, dnsmasq, unbound, a plain domain list (Pi-hole, AdGuard Home) or an IP list.- It never widens a host to a public suffix or a shared cloud/CDN domain, and it never writes on-network addresses.
- Cortex-M decompiles are about 10× faster and deterministic.
- A function's output no longer depends on what was decompiled before it.
- Output changed on Cortex-M images only (66 of 549 functions on the test image), mostly callees that now keep their arguments.
integrity_checksconfirms fixes with the device's own code: each value a fix writes is rerun through the routine that confirmed the check, and reported asdevice_check:agrees,disagreesorunconfirmed.
Full details in the changelog.
Full Changelog: v1.4.0...v1.5.0
rampage v1.4.0
Firmware ELFs as first-class targets, plus fixes from benchmark suite v4. Additions only; nothing in the stable surface changed.
- Cortex-M ELF firmware decompiles like a Cortex-M Raw project.
- An ARM ELF whose build attributes name an M-profile CPU is decoded as M-profile, with all executable code in Thumb.
- Statically linked executables also get the Cortex-M decompiler settings: device ranges are volatile, and flash words read through a formed address are not folded.
- Its vector table seeds the interrupt handlers as functions.
- Patch static ELF32 ARM firmware in place.
patch_bytes,integrity_checksfixes andexport_imagework directly on a static little-endian ARM ELF32 executable. There's no need to convert it to a Raw project first.export_imageformat: binarylays sections out at their load addresses, likeobjcopy -O binary.integrity_checksnotes sections that are loaded at one address and run at another.
- CRC-16 polynomials formed by immediates:
integrity_checksnow finds table-less CRC-16 loops whose polynomial (0xa001, 0x8408 or 0x1021) is a Thumb/A32 immediate or a literal-pool word. - Fixes from suite v4:
evaluate_function:- runs code in page 0 of fixed-address images;
- accepts a Raw project's
rawselector.
integrity_checksfinds nested checks and fixes them inner-first.- Cortex-M Raw decompile no longer folds flash words read through a formed address.
string_decodingfinds table-driven decoders.- Opening an Intel HEX or S-record file without
rawnames the format and the selector to use.
Full details in the changelog.
Full Changelog: v1.3.0...v1.4.0
rampage v1.3.0
Embedded firmware library naming and lock explanation. Additions only; nothing in the stable surface changed.
- Embedded Cortex-M library signatures: identifying functions in firmware (Cortex-M Raw projects and static Thumb ELF executables) also uses a bundled set built from newlib/newlib-nano, libgcc, compiler-rt, the FreeRTOS kernel and the STM32F4 HAL/LL across three Arm GNU Toolchain releases. On firmware built with a held-out GCC it names 31–51% of library functions with no wrong name.
identify_functionsaccepts a Raw project'srawselector. See embedded firmware set. lock_mechanisms(experimental): explains what can make a device refuse a repair — signature and MAC verification, challenge-response unlocks, unique-chip-ID binding, anti-rollback counters, debug and readout protection, fuse feature locks — with the decision point, what it consults and what each path does. It explains only: no patch suggestions, no key extraction. See lock mechanisms.find_cryptorecognizes PKCS#1 v1.5 DigestInfo prefixes.- Fixed:
evaluate_function'stimeout_msno longer counts building the instruction decoder.
Full details in the changelog.
Full Changelog: v1.2.0...v1.3.0