Skip to content

rampage v1.11.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 11:41
· 53 commits to main since this release
  • identify_functions on 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 (source rampage-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.py builds 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.rs builds the operand tier and runs its training (each GCC release
    left out), dev and negative gates.
  • identify_functions runs 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 source rampage-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.rs rebuilds the embedded call graph reproducibly and refuses
    held-out builds. The flywheel engine chooses the call graph as production identification does.
  • MCP: path and raw are 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 in session_target. With several
    open, the error lists them. An explicit path always wins and reuses the connection's Raw selector for it only
    when the file has no native header; raw: null asks 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 the raw selector to pass. disassemble on a
    Cortex-M Raw project without an entry starts at the Reset handler and says so.
  • MCP: an evaluate_function buffer whose size is short of its content takes the content's length (reporting
    requested_size); inspect_data reads at most 1024 bytes and uses the pointer width for other word sizes
    (reporting truncated, requested_size, requested_word_size); inspect_raw_code and inspect_sleigh limits and
    decoder timeouts clamp to their caps. evaluate_function takes arguments as args, and a list sent as JSON
    text.
  • MCP: enable_tools says where the firmware tools live when asked for firmware and accepts unambiguous aliases
    (svd, peripherals, yara, crypto, apk, dex, filesystem, signatures). import_svd given the .svd
    as path uses the session's binary as the image, and its previews say nothing was applied. A Raw selector
    missing base_address gets the base a Cortex-M vector table suggests.