security: validate Solana transaction instructions before co-signing#14
Merged
rawgroundbeef merged 3 commits intomainfrom Mar 10, 2026
Merged
Conversation
Add 4-layer instruction validation to prevent malicious instructions from being bundled into facilitator-signed Solana transactions: 1. Program ID allowlist (SPL Token, Token-2022, ATA, ComputeBudget only) 2. Token instruction type allowlist (Transfer and TransferChecked only) 3. Fee payer isolation (facilitator can't be source/authority) 4. Payment requirements verification (amount, mint, destination ATA) Blocks all 5 attack vectors from the security audit: SOL theft, token theft, account reallocation, governance hijack, token delegation. Includes integration tests against mainnet for all attack vectors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ownerAddress may be an EVM hex address for multi-chain facilitators. Extract the facilitator's Solana public key from the transaction's fee payer (index 0) which is always the correct Solana address. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Add 4-layer instruction validation to prevent malicious instructions from being bundled into facilitator-signed Solana transactions:
Blocks all 5 attack vectors from the security audit: SOL theft, token theft, account reallocation, governance hijack, token delegation.
Includes integration tests against mainnet for all attack vectors.