zerion-ai
- Type
- Plugin
- Scanned
- Nov 17, 2026
- Version
- 193ce424fa7d
- Files read
- 189
Zerion AI is a command-line wallet tool and coding-agent plugin that analyzes crypto portfolios and executes swaps, bridges, transfers, and message signatures across EVM chains and Solana. If the AI agent is tricked by untrusted text (prompt injection), gaps in its spending guardrails — including review-threshold bypasses, transfer-policy blind spots on Solana and ERC-20 tokens, and unrestricted shell access in the skill — let the agent move wallet funds or read saved credentials without human approval.
What it can reach
- Files
- Reads and writes ~/.zerion/ (config.json, readonly-wallets.json, watchlist.json), manages encrypted wallets and policy files in ~/.ows/, migrates ~/.zerion-cli/ on startup, reads --file and --passphrase-file paths, and requests Read tool access to local files.
- Secrets
- Reads ZERION_API_KEY, ZERION_AGENT_TOKEN, WALLET_PRIVATE_KEY, EVM_PRIVATE_KEY, SOLANA_PRIVATE_KEY, and TEMPO_PRIVATE_KEY from environment variables, stores apiKey and wallet spending agentTokens in ~/.zerion/config.json, and signs with or exports encrypted wallet keys via Open Wallet Standard.
- Network
- Connects to api.zerion.io, dashboard.zerion.io, app.zerion.io, developers.zerion.io/mcp (configured in mcp.json), and public or custom EVM and Solana RPC servers, and opens temporary loopback HTTP servers on 127.0.0.1 for login and signing callbacks.
- Shell commands
- Spawns npm and npx during init and skill setup, runs policy scripts via node child processes, and requests unrestricted Bash tool execution in skills/zerion/SKILL.md.
- Browser
- Opens the default web browser to dashboard.zerion.io for API key login and to app.zerion.io for human review of transactions and message signatures.
Findings
-
HighBundle command trusts untrusted route field and bypasses wallet review thresholds
cli/commands/trading/bundle.js:98
Users can set a per-wallet USD review threshold so trades above that amount (or unpriced trades) must be approved by a human in the browser instead of auto-signing locally. However, zerion bundle reads the signing route directly from the untrusted --group JSON argument via decideBundleRoute without re-running decideSigningRoute or checking the wallet's reviewThreshold. A prompt-injected agent can either split a large transfer into multiple sub-threshold --prepare groups or pass a hand-crafted --group JSON envelope with route set to local and empty outflows, causing zerion bundle to auto-sign and broadcast transactions of any dollar amount — including arbitrary raw EVM calldata or Solana transactions — locally with no human review.
Fix: Re-compute the signing route inside bundle.js using decideSigningRoute against the resolved wallet's read-only status and review threshold, sum USD value across all groups in the bundle (failing closed to web-app when any transaction cannot be priced from verified outflows), and reject local signing of unverified hand-built calldata.
-
HighDefault deny-transfers policy fails to block Solana SOL sends and ERC-20 token transfers
cli/policies/deny-transfers.mjs:16
Every wallet set up with the recommended Standard policy attaches deny-transfers.mjs, and capabilities/agent-management.md states that --deny-transfers blocks both ETH and SOL send commands. In practice, deny-transfers.mjs only blocks transactions with value > 0 and empty calldata. On Solana, sendOnSolana never calls enforceExecutablePolicies, and cli/policies/decode.mjs skips non-eip155 chains so tx.value is undefined (defaulting to 0n), allowing every zerion send SOL transfer to succeed. On EVM chains, ERC-20 transfer and transferFrom calls have value 0 and non-empty calldata, so zerion send of USDC or any other token to an attacker address is also allowed despite the policy.
Fix: Decode Solana transaction instructions (or fail closed on undecoded non-EVM transactions when transfer/approval policies are attached), call enforceExecutablePolicies on Solana paths, and block ERC-20 transfer (0xa9059cbb) and transferFrom (0x23b872dd) selectors in deny-transfers.mjs or clearly separate native-only vs token-wide transfer rules.
-
HighReview thresholds and policies can be cleared or deleted without a passphrase
cli/commands/wallet/set-review-threshold.js:38
The wallet set-review-threshold command is marked safe for agents in capabilities/wallet.md and requires neither the wallet passphrase nor an interactive terminal prompt to raise a wallet's USD ceiling or turn it off completely. A prompt-injected agent can run zerion wallet set-review-threshold <wallet> off and immediately auto-sign unlimited transactions locally without browser approval. Similarly, cli/commands/agent/delete-policy.js deletes policies with no passphrase or confirmation despite capabilities/agent-management.md stating it requires manual confirmation.
Fix: Require an interactive TTY passphrase check (matching wallet create, wallet delete, and agent create-token) before raising or clearing an existing review threshold or modifying/deleting policies, and mark wallet set-review-threshold as a manual human-only command in the skill docs.
-
MediumSkill requests unrestricted Bash and Read permissions alongside plaintext config credentials
The frontmatter of skills/zerion/SKILL.md requests allowed-tools: Bash, Read without scoping Bash to zerion subcommands. In coding agents that honor allowed-tools, invoking the skill grants unrestricted shell and file-read access. Because ~/.zerion/config.json stores apiKey and active wallet agentTokens in plaintext andcli/utils/web-app/handoff.js honors an undocumented webAppBase config key, a prompt-injected agent with unscoped Bash/Read can read and exfiltrate ~/.zerion/config.json, bypass policy script containment via ZERION_UNSAFE_POLICY_PATHS=1, or point webAppBase at a phishing domain before opening a browser signing link.
Fix: Scope allowed-tools to specific safe CLI patterns (rather than unrestricted Bash) where supported, remove or restrict config-file overrides like webAppBase and ZERION_UNSAFE_POLICY_PATHS in production builds, and store sensitive tokens in the OS keychain when available.
-
MediumPre-flight executable policy check inspects defaultWallet instead of the requested --wallet
cli/utils/trading/guards.js:83
SKILL.md instructs agents to always pass --wallet <name> explicitly and never rely on defaultWallet. However, enforceExecutablePolicies ignores the --wallet being transacted and always looks up getConfigValue("defaultWallet"). When defaultWallet is unset or points to a different wallet (such as a read-only or unrestricted wallet), pre-flight policy checks (--allowlist, --deny-approvals, --deny-transfers) are skipped or evaluated against the wrong wallet. On the web-app handoff route, where Open Wallet Standard is never called, enforceExecutablePolicies is the only policy check before sending a signing link to the user's browser.
Fix: Pass the resolved walletName (and in bundle.js, the group's walletName or signer address) into enforceExecutablePolicies so policies are always enforced for the wallet actually signing the transaction, and also enforce built-in chain and expiry rules on the web-app route.
-
LowUnpinned runtime npx package execution and remote install scripts bypass release-age cooldown
Although the repository configures min-release-age=15 in .npmrc to defend against compromised npm releases touching wallet keys, runtime onboarding bypasses that protection: SKILL.md instructs agents to run npx -y zerion-cli@latest init -y, init.js and setup.js run npx -y skills add zeriontech/zerion-ai without pinning a package version or commit SHA or passing --min-release-age=15, and skills/zerion/partners/uniswap-x402.md instructs running curl -L https://foundry.paradigm.xyz | bash. A newly published compromised release of skills or zerion-cli, or a compromised upstream script, would execute automatically during setup.
Fix: Pin exact package versions and Git commit SHAs in init.js, setup.js, and SKILL.md, pass --min-release-age=15 to npm/npx install commands, and replace curl-pipe-bash instructions in partner docs with verified release downloads.
-
LowPartner skill contains shell-preprocessing directive referencing a workspace-relative file
skills/zerion/partners/somnia-blockchain.md:8
somnia-blockchain.md embeds the shell command directive !
cat references/l1/network-config.json, which refers to a relative file path that does not exist inside the plugin package. If an agent host preprocesses !...directives or the agent executes the command while working inside an untrusted repository, it will read references/l1/network-config.json from the current workspace into the skill context, allowing untrusted repo files to supply spoofed RPC endpoints or prompt-injection text.Fix: Inline the static Somnia network configuration JSON directly into skills/zerion/partners/somnia-blockchain.md and remove the !
cat ...shell directive.
