Skip to content

Work through the remaining ~105 per-RSKIP reports in the consensus audit #46

Open

Description

@SDL-A1

Migrated from SergioDemianLerner/rustock#46 (issue by @SDL-A1, 2026-09-22).
Original: SergioDemianLerner/rustock#46

The audit archive rustock-4796682 contains 110 per-RSKIP reports and 64 findings across ten clusters. Only part of it has been triaged:

Scope Status
7 high-severity findings (6 distinct defects) done — #43
15 medium + 25 low findings done — docs/audit-triage-medium-low.md, #43 and #44
17 info findings not reviewed
The remaining per-RSKIP report bodies not reviewed

The findings tables were triaged, but each report also contains a compliance checklist — per-assertion rows marked OK — that nobody has re-checked. A row marked OK by the auditor was checked against the RSKIP text, which is not our acceptance criterion.

Why this is worth doing rather than trusting the summary

The audit states its baseline explicitly: "RSKIP specification (spec is authoritative; rustock deviations are findings)". rustock's criterion is agreement with deployed rskj mainnet. Re-checking the 40 medium/low findings against the rskj source inverted the severity column in both directions:

  • 13 of 40 were stale spec text where acting on the recommendation would have introduced a fork (HDWalletUtils gas and selectors, BlockHeader precompile names and gas, the REMASC selection rule and federation payout threshold, the uncle window).
  • 3 findings rated LOW were real EVM divergences rustock carried for millions of blocks of history — DUPN (0xa8), SWAPN (0xa9) and TXINDEX (0xaa), which rskj shipped and RSKIP191 later disabled.
  • 8 findings across six RSKIPs turned out to be one structural gap in the block validator.

The same inversion should be expected in the untriaged remainder. In particular, a checklist row marked OK against a stale RSKIP can hide a divergence from rskj, which is exactly the direction that matters to us.

Method that worked

For each assertion, read rskj (/srv/rskj, currently 9.1.0) rather than the RSKIP, and record one of: divergence from rskj, spec is stale, no consensus effect (local-only getter, mempool policy), or premise does not hold. docs/audit-triage-medium-low.md is the template.

Worth prioritising by blast radius rather than by the audit's severity column:

  1. Anything transaction-callable on the Bridge. The one finding that could fork the canonical chain today was getEstimatedFeesForNextPegOutEvent returning a hardcoded 0 — filed MEDIUM, between two stale-spec rows.
  2. EVM opcode availability and gas, per activation.
  3. Block/header validity rules.
  4. Local-only getters last — they give wrong RPC answers but cannot fork.

Known carve-outs, already decided

Not worth re-opening as part of this:

  • DUPN/SWAPN/TXINDEX and the pre-RSKIP103 STATICCALL value pop: permanently closed mainnet windows, proven unexercised by the whole-chain replay (which checks gas_used, paid_fees and the receipts root on every block from genesis). Live on testnet only.
  • RSKIP144 and RSKIP351 validation: gated on reed810, which rskj sets to -1 on mainnet.
  • Release-queue loading reading one queue where rskj concatenates two: the legacy queue drained before iris300 and nothing can write to it again.

Archive: /root/doc/rustock-4796682.zip.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions