feat(plugins): add SolSafe transaction audit and guarded Jupiter swap tools#106
Open
LHAJsolana wants to merge 3 commits into
Open
feat(plugins): add SolSafe transaction audit and guarded Jupiter swap tools#106LHAJsolana wants to merge 3 commits into
LHAJsolana wants to merge 3 commits into
Conversation
Author
|
Hi maintainers, the validation workflow is currently awaiting approval because this PR comes from a fork. Could someone please approve and run the workflow when convenient? I have locally verified:
Thank you! |
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.
feat(plugins): add SolSafe transaction audit and guarded Jupiter swap tools
Summary
Adds SolSafe for ZeroClaw: two Solana-native ZeroClaw tool plugins plus a shared pure Rust core.
Plugins Added
solana-tx-auditjupiter-swap-build-safesolsafe-coreCustody Tiers
solana-tx-audit:T0 - Readjupiter-swap-build-safe:T1 - BuildNeither plugin accepts private keys, seed phrases, secret keys, raw signing material, signing requests, or transaction submission requests.
Safety Design
Permissions Requested
config_read: administrator policy injected as jailed__config.http_client: Solana RPC and Jupiter quote/swap requests.No filesystem, socket, signing, or private-key permissions.
Transaction Verification Behavior
The audit plugin decodes and labels:
Security-relevant instruction handling includes SOL transfers, account creation/assignment, SPL/Token-2022 transfers, approvals, revokes, authority changes, close account, mint, burn, freeze/thaw, sync native, ATA creation, compute budget, memo, and Token-2022 extension risk signals.
Prompt-Injection Resistance
Policy is read from plugin config and enforced in Rust. Conversation text and ordinary execute arguments cannot:
Tests include prompt attempts to weaken policy and amount caps.
Verified Test Commands
Results:
solsafe-core: 35 passed, 0 failed, 0 ignored.solana-tx-audit: 2 passed, 0 failed, 0 ignored.jupiter-swap-build-safe: 2 passed, 0 failed, 0 ignored.Verified WASM Build Commands
Verified artifacts:
plugins/solana-tx-audit/target/wasm32-wasip2/release/solana_tx_audit.wasmplugins/jupiter-swap-build-safe/target/wasm32-wasip2/release/jupiter_swap_build_safe.wasmTest Results
Verified on Windows 10 with Rust
1.97.1,wasm32-wasip2installed:Known Limitations
Demo Link
No recorded demo link is included in this branch.
DEMO.mdcontains the under-three-minute live demo script.Reviewer Checklist
tool-pluginfromwit/v0.http_clientandconfig_read.wasm32-wasip2.