Scan your whole stack
From OX Research Newsroom
Latest version: v1.5.2
realism-gate was last scanned on 27 Nov 2026 at version 1.5.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.5.2 LATEST | 27 Nov 2026 | No rules fired |
Findings for v1.5.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.5.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A writing and PoC-structure filter for Foundry, Solana and Move tests, plus an optional two-sided forge check. 1.0 also asks the other half of the question: does the proof prove what the report claims? It is not a validity oracle.
For bounty hunters, contest auditors, and people hunting with an AI agent. A test can pass because the harness granted a role, wrote storage with stdstore or vm.store, moved that write into setUp(), or asserted balance + 1 > before. realism-gate looks for those shapes. With --report it also reads the finding's claims and binds each one to the evidence the PoC does or does not contain. A clean result means none of the patterns fired and no claim contradicted the test. It does not mean the bug is real, the citation exists, or a program pays for it.
cargo binstall realism-gate
This installs the latest release from crates.io and the GitHub release archives. 1.5.0 added the
precision floor (the floor allows ... lines in the output below), check --dump-program and the
Claude Code plugin; 1.5.1 fixed the MCP server's transport (realism-gate-mcp did not work with current MCP clients in 1.5.0); 1.5.2 changed only the MCP Registry name to io.github.KhomDev/rgate. Check what you have with realism-gate --version. To build unreleased changes
from main instead: cargo install --git https://github.com/KhomDev/realism-gate --locked.
DEV-ONLY numbers. Every precision number for the P2 rules comes from data that was already opened; no held-out precision is claimed yet. See docs/methodology.md.
Research: I measured my own audit tools against real exploit proofs, fixed what broke, and measured again (November 2026): how often each rule is right on real Solana PoCs, with n and 95% intervals, and what 1.4.0 changed because of it.
If you are labelling flags for this project, please do not read the article or
docs/precision.mduntil you have finished labelling: they show per-rule results and would unblind you.
One tool, two questions: is the PoC built on something only the harness could do (the RG01-RG20 rules), and does the report claim only what the PoC shows (the claim table). 0.x answered the first; 1.0 answers both.
A passing test and a correct report are two claims, and 0.x only checked the
first. 1.0 reads the finding too: realism-gate check test --report finding.md
prints the rule findings, then a claim table with one row per claim the report
makes. Each row is bound to evidence in the PoC and gets one of four statuses:
SHOWN, NOT SHOWN, CONTRADICTED, NOT CHECKABLE. There is no score.
realism-gate 1.5.2 · 1 file · 1 suite · 4 tests
test/ShadowVault.t.sol
note RG03 deployer-is-attacker test/ShadowVault.t.sol:57:26 ShadowVaultTest::test_healthyDistribution_shipsSurplus
3 call(s) in the exploit run as the test contract, which deployed `sheet`
(BalanceSheet). None of them is named like an access-controlled function, so this is
the ordinary local-deployment pattern, not evidence the attacker used a privilege. It
is a note. Attack from a separate address if one of those calls is in fact gated.
↳ sheet.reserve()
→ Deploy and configure as one address, attack as another: `vm.startPrank(attacker)`
before the exploit steps, or transfer ownership to a dedicated owner in `setUp()`.
measured solidity not yet measured on fresh data; floor allows note; raised note, shipped note
note RG03 deployer-is-attacker test/ShadowVault.t.sol:68:25 ShadowVaultTest::test_negativeControl_distributesWithoutShadowVault
3 call(s) in the exploit run as the test contract, which deployed `sheet`
(BalanceSheet). None of them is named like an access-controlled function, so this is
the ordinary local-deployment pattern, not evidence the attacker used a privilege. It
is a note. Attack from a separate address if one of those calls is in fact gated.
↳ sheet.distributeSurplus()
→ Deploy and configure as one address, attack as another: `vm.startPrank(attacker)`
before the exploit steps, or transfer ownership to a dedicated owner in `setUp()`.
measured solidity not yet measured on fresh data; floor allows note; raised note, shipped note
note RG03 deployer-is-attacker test/ShadowVault.t.sol:81:9 ShadowVaultTest::test_shadowDrawBlocksDistribution
2 call(s) in the exploit run as the test contract, which deployed `sheet`
(BalanceSheet), `vault` (VaultEngine). None of them is named like an access-controlled
function, so this is the ordinary local-deployment pattern, not evidence the attacker
used a privilege. It is a note. Attack from a separate address if one of those calls is
in fact gated.
↳ sheet.distributeSurplus()
→ Deploy and configure as one address, attack as another: `vm.startPrank(attacker)`
before the exploit steps, or transfer ownership to a dedicated owner in `setUp()`.
measured solidity not yet measured on fresh data; floor allows note; raised note, shipped note
note RG03 deployer-is-attacker test/ShadowVault.t.sol:111:26 ShadowVaultTest::test_psmDepositBlocked
1 call(s) in the exploit run as the test contract, which deployed `vault`
(VaultEngine). None of them is named like an access-controlled function, so this is the
ordinary local-deployment pattern, not evidence the attacker used a privilege. It is a
note. Attack from a separate address if one of those calls is in fact gated.
↳ vault.locked(alice, USDT_A)
→ Deploy and configure as one address, attack as another: `vm.startPrank(attacker)`
before the exploit steps, or transfer ownership to a dedicated owner in `setUp()`.
measured solidity not yet measured on fresh data; floor allows note; raised note, shipped note
CLAIMS claims.yaml · structured
CLAIM EVIDENCE STATUS
any user, no role `alice` (makeAddr("alice")) sends the SHOWN
exploit in test_psmDepositBlocked; no role,
no prank as protocol (RG01-RG03 clean)
other:distributeSurplus vm.expectRevert(BalanceSheet.ReserveBackingShortfall.selector) SHOWN
reverts with in test_shadowDrawBlocksDistribution;
ReserveBackingShortfall vm.expectRevert(PegStabilityModule.CeilingExceeded.selector)
(revenue halted) and in test_psmDepositBlocked; negative control
PSM.sellStable reverts with test_healthyDistribution_shipsSurplus acts
CeilingExceeded (on-ramp without the setup and does not revert
denial)
USDR `assertEq(drawn, locked)` in SHOWN
test_shadowDrawBlocksDistribution compares
two quantities of `USDR`
the drawn USDR equals the `assertEq(drawn, locked)` in SHOWN
locked stablecoins, so the test_shadowDrawBlocksDistribution compares
position is capital-neutral the two quantities the claim is about
no privileged role; no oracle `no privileged role`: RG01-RG03 clean; `no SHOWN
or price movement; no keeper oracle or price movement`: no fork, RPC or
and no off-chain trigger chain read in the PoC; `no keeper and no
off-chain trigger`: every exploit step is
the same sender's own call
src/VaultEngine.sol:open, all 4 cited names are in the target tree SHOWN
src/VaultEngine.sol:frob, (RG20 clean)
src/BalanceSheet.sol:distributeSurplus,
src/PSM.sol:sellStable
restrict vaults on fee-exempt not run: `check` never applies a patch. Run NOT SHOWN
stable collateral to the PSM `realism-gate verify-fix` on the patch and
quote its verdict
CLAIMS COMPLETE every claim the PoC can show is shown; the fix was not run
SUMMARY 0 errors · 0 warnings · 4 notes · 0 suppressed
RESULT PASS (fails on error and above)
realism-gate reads the test; it does not run it. A clean result means no known
defect pattern was found, not that the PoC is valid. `realism-gate explain <RULE>`
shows why a rule exists and how it can be wrong.
That block is generated by tests/docs.rs from
examples/rain-usdr, the RAIN-USDR case study reduced
to a runnable fixture; the cited contracts are made into a pinned git tree by
examples/rain-usdr/make-target-repo.sh.
The claims come from a structured block when the report has one: a
claims.yaml next to the finding, --claims FILE, or a YAML front-matter
block. Without one, the tool extracts only what parses reliably, labels the
binding inferred, and never lets an inferred run pass. The format, the
predicate behind each field, and the exit codes are in
docs/claims.md.
realism-gate check test --report finding.md --card card.md --card-json card.json
The card is the submission-sized version: tool version, rule-set hash, PoC and report sha256, target commit, the claim table, and the exact rerun command. It is signed by nothing; reproducible by command — every field is a hash of a file it names or a value the command prints again. See docs/evidence-card.md for the field list and a golden card.
SHOWN claim row means the evidence the
predicate looks for is in the PoC. It does not mean the bug is real, that the
severity is right, or that a program pays for it.check never runs the PoC; the fix row stays
open until you run verify-fix yourself.| If you used | Now use | What changed |
|---|---|---|
vg claim notes P23--P26, P19 |
realism-gate check --report |
Claims bound to PoC evidence, one row per field |
vg citation anchor |
realism-gate check --target --target-commit (RG20) |
One implementation |
| realism-gate 0.x | realism-gate 1.0 | Same rule ids and severities; adds --report, init-claims and the evidence card |
The full four-tools-to-two migration table is in the release announcement; the per-release detail is in CHANGELOG.md.
The test deploys a vault and then drains it as admin, with deal writing the vault's balance and no before-value:
realism-gate 1.5.2 · 1 file · 1 suite · 1 test
test/VaultDrain.t.sol
note RG11 unpinned-fork test/VaultDrain.t.sol:17:9 VaultDrainTest::test_attackerDrainsVault
The fork has no block number, so it runs against the chain as it is today. Balances,
prices and the bug itself can change before a triager runs it.
↳ vm.createSelectFork(vm.envString("RPC_URL"))
→ Pass the block: `vm.createSelectFork(url, BLOCK)`, and say in the report why that
block is representative.
measured solidity not yet measured on fresh data; floor allows note; raised warn, shipped note
note RG02 privileged-step-in-exploit test/VaultDrain.t.sol:24:9 VaultDrainTest::test_attackerDrainsVault
The exploit runs a step as `admin`: the name `admin` reads as the `admin` role. An
attacker cannot sign as this address. Moving the prank into setUp() does not make it
the attacker's action; a prank there next to a direct storage write is RG19. Declare
the role in an operator realism.yaml outside the repo under review if the claim relies
on that role acting.
↳ vm.prank(admin)
→ Do not hide the prank in `setUp()`.
measured solidity not yet measured on fresh data; floor allows note; raised warn, shipped note
note RG06 balance-injection test/VaultDrain.t.sol:28:9 VaultDrainTest::test_attackerDrainsVault
deal() sets the `token` balance of `vault` (Vault) in the exploit. It transfers nothing
and overwrites the balance the contract had, so its internal accounting never sees it.
Fund the attacker and transfer instead.
↳ deal(address(token), address(vault), 1_000_000e18)
→ Fund the attacker with `deal`, then `transfer` from the attacker to the contract.
measured solidity not yet measured on fresh data; floor allows note; raised error, shipped note
note RG10 no-baseline test/VaultDrain.t.sol:33:9 VaultDrainTest::test_attackerDrainsVault
The asserted value `token.balanceOf(attacker)` is read only after the attack. Without a
before-value the test cannot tell a gain from a balance that was already there.
↳ assertGt(token.balanceOf(attacker), 0)
→ Read the same quantity before and after, and assert on the difference.
measured solidity not yet measured on fresh data; floor allows note; raised warn, shipped note
SUMMARY 0 errors · 0 warnings · 4 notes · 0 suppressed
RESULT FAIL (fails on note and above)
realism-gate reads the test; it does not run it. A clean result means no known
defect pattern was found, not that the PoC is valid. `realism-gate explain <RULE>`
shows why a rule exists and how it can be wrong.
tests/docs.rs regenerates that block from examples/vault-drain. A clean result means none of the patterns fired. It does not mean the bug is real or that a program pays for it.
realism-gate-mcp (rgate in the MCP Registry) run the PoC check and the claim check before the report is written.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.