Security audit fixes: Phase 1-3 + cross-review (GRETH-001~075, ~117 cross-repo findings)#276
Open
Richard1048576 wants to merge 12 commits intomainfrom
Open
Security audit fixes: Phase 1-3 + cross-review (GRETH-001~075, ~117 cross-repo findings)#276Richard1048576 wants to merge 12 commits intomainfrom
Richard1048576 wants to merge 12 commits intomainfrom
Conversation
Contributor
|
Your PR title doesn't follow the Conventional Commit guidelines. Example of valid titles:
Usage:
Breaking Changes Breaking changes are noted by using an exclamation mark. For example:
Help For more information, follow the guidelines here: https://www.conventionalcommits.org/en/v1.0.0/ |
Records all 28 security findings across gravity-reth, gravity-sdk, and gravity_chain_core_contracts with fix commit hashes, type (code fix / mitigation / design doc), and current status. Branches: gravity-reth bugfix/security-fixes — cbccf02, 14b6ce5, f16d356 gravity-sdk bugfix/security-fixes — a0bf499 Remaining open: GRAV-005 (contracts repo, separate agent). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Security audit report covering GRETH-001 through GRETH-019: - 4 CRITICAL (signer recovery, cursor lifetime, mint precompile, block validation) - 9 HIGH (persistence, path traversal, state root, oracle, relayer, tx pool) - 6 MEDIUM (read-your-writes, BLS input, tx filter, state integrity, CLI, DKG) Design documents detail the fix approach for each severity level. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds automated security review on PRs using anthropics/claude-code-security-review. Runs on non-draft PRs, uses claude-sonnet-4-6, excludes docs/tests/benches/.github. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Security audit round 2 covering GRETH-020 through GRETH-028: - 2 HIGH (debug-only validation, silent system txn failure) - 3 MEDIUM (mint precompile trailing bytes, unsafe Send impl, unwrap panic) - 4 LOW/INFO (nonce truncation, state merge overwrite, same-RPC verification, timestamp check) Design documents detail the problem and fix approach for each severity level.
Updated review comments to reflect acceptance of Plan A for the `OracleRelayerManager` changes.
Multi-agent parallel audit identified 48 new findings across the execution pipeline, parallel EVM, state integrity, oracle relayer, and GCEI protocol. Includes 2 CRITICAL (pipeline deadlock, cache eviction), 14 HIGH, 21 MEDIUM, and 11 LOW severity issues not covered in the 2026-02-23 audit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Removed GRETH-047 (wait_persist_gap by design), GRETH-048 (DELEGATECALL precompile semantics wrong), GRETH-055 (already fixed by GRETH-022), GRETH-056 (no orphaned entries), GRETH-061 (wrong function signature), GRETH-067 (state not lost via DatabaseCommit). Updated counts: 47→41. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2e9bae2 to
c56790e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 Fixes (2026-02-23 Audit, 19 findings — all fixed)
Round 2 Design Review (2026-02-27, GRETH-020~028)
88125970fPhase 3 Audit + Fixes (2026-03-05, GRETH-029~075)
47 findings, 41 valid and implemented:
CRITICAL fixes:
HIGH fixes:
block_hash_ref()(wasunimplemented!()— trivial DoS)Cross-Module Deep Audit (2026-03-05)
Parallel audit across grevm, gravity-aptos, contracts, gravity-sdk identified ~117 unique findings total:
GTxnBytestodo (4 rounds unfixed!),GravityExtensionunsigned, JWK cascade6 cross-module contradictions and 5 catastrophic hypotheses documented in
audit_review_topics/phase3_cross_review_final.md.Top 3 Systemic Risks
unwrap()/assert!()in grevm/gravity-aptos/gravity-reth cascades to halt all validatorsCross-repo dependency
GRETH-042 adds
failed_proposer_indices: Vec<u64>to OrderedBlock. gravity-sdk needs matching update.Test plan
🤖 Generated with Claude Code