Repository navigation
v1.2.0
Added (P1-C, 1.2.0)
- Four readers for the PoCs judges receive. A Rust
#[test]that calls
program functions directly is checked (the direct call is modelled as the
exploit transaction); a Rustfn mainthat drives a PoC framework
(poc-framework,LocalEnvironment,Environment::…_client) is read as one
test; a TypeScript script that drives an Anchor/web3.js/LiteSVM client is read
as one test, withmain()inlined; andcheck --fragment <file>wraps a
pasted fragment as one test body. A.rs/.ts/.jsfile given explicitly
that has no top-level test is auto-detected. The report gains
fragment: truewhen the boundary is the tool's. tests/precision_floor.rsenforces the severity floor in
docs/precision.md: a rule ships aterroron Solana only when its fresh
held-out Wilson lower bound is at least 0.80.eval/solana-poc-v2/is the sealed fresh corpus: 81 counted units (28
judged, 53 exploit-by-construction), pinned before the firstsrc/change.
Changed (P1-C, proposed 1.2.0)
- RG01, RG04 and RG06 ship at
noteon Solana. Their P1 PoC held-out
precision was 16.7%, 0% and 0%; a rule aterrornow needs a fresh held-out
lower bound of at least 0.80. The Solidity severities are unchanged. The
catalog gainssolana_severity(); the generated rule pages say which ids
moved. - RG01 no longer counts an attacker-signed grant as a harness grant. An
attacker that initialises the program as its own admin, or re-initialises
itself, took the role through the bug; that is the exploit, not the harness. - RG04/RG06 fixtures and preconditions. A write of an account a later
initialise/create instruction sets up is not reported. A precondition
written while setting up is reported atnotewithPrecondition fabricated:and says the drained balance never passed through the program. - RG10 accepts a read of the same account before the attack as a baseline,
whatever the local is called, not only a name likebefore. - Control tests (expects failure, or a title saying
secure/control/
prevents/rejects/fails when) no longer fire RG01, RG02, RG03, RG04
or RG06; RG08 still applies. - A fresh keypair the test never gives a role (by a grant, a role field, an
initialise/configure call, or a declaration) is not privileged. A role
granted by another signer, or shown by a role-named signer of a gated
instruction, still is.
Fixed (P1-C, proposed 1.2.0)
- Fragments: bare statements and
it()blocks pasted into an issue parse. - Scripts: an Anchor script with
main()is no longer silent. - PoC-framework binaries:
execute_as_transactionis a transaction with
its signers and instructions;LocalEnvironmentis a harness and
Environment::devnet_clientis a live cluster. - RG08: the rule's scope is the exploit part of the trace, matching its own
definition; the study rubric is updated to agree. - Docs: the rule pages and README example blocks are regenerated for the
1.2.0 severities and the four readers.
Install
cargo binstall realism-gate
or download an archive below and check it:
sha256sum -c SHA256SUMS --ignore-missing
gh attestation verify <archive> --repo KhomDev/realism-gate
Three binaries are included: realism-gate (the checker), rgate
(the same program under a short name) and realism-gate-mcp (the MCP
server). cargo binstall installs all three. Linux builds are static
(musl).
Built with rustc 1.95.0 and repacked deterministically, so the
archives can be compared with a local rebuild. From a checkout of this
repository:
scripts/reproduce-release.sh v1.2.0 x86_64-unknown-linux-musl