← MCP server and skill grades

kraken-cli

krakenfx/kraken-cli

A
Type
MCP server
Scanned
Nov 17, 2026
Version
671cdd7f1483
Files read
717

Kraken CLI is a command-line tool and AI integration that lets you check crypto market data, practice with simulated paper trading, and place live trades or withdrawals on your Kraken account. The biggest risk is that an AI assistant can use the default-enabled feedback tool to silently read and upload any local text file (including your saved Kraken API keys) to Kraken's servers, and can bypass confirmation prompts for high-risk actions if your AI app does not support interactive approvals.

What it can reach

Files
Reads and writes settings, command history, paper-trading data, recorded market sessions, exports, and plugin templates in its config folder and user-chosen paths, and can read any local text file passed to the feedback tool.
Secrets
Reads and saves Kraken API keys, secrets, one-time passcodes, and sign-in tokens in its local config.toml file, and also reads credentials from environment variables, secret files, or command-line inputs.
Network
Connects to Kraken's servers for market data, account sign-in, live trading, and withdrawals, uploads feedback to cli-feedback.kraken.com, and opens a temporary local port (27461-27463) during browser login.
Shell commands
Includes 59 workflow guides that instruct AI coding assistants to run Kraken CLI commands, background streaming jobs, and common command-line utilities like curl, python3, jq, and bc.
Browser
Opens your default web browser to Kraken's sign-in page when you log in from the command line.
System
Checks running processes and file locks, and sends stop signals to end active local market-recording sessions.

Findings

9 low
  1. LowDefault-on MCP feedback tool reads arbitrary local files and uploads them without approval

    crates/kraken-app/src/commands/feedback.rs:81

    The feedback command is exposed over MCP as kraken_feedback with Effect::Local rather than Effect::Dangerous, and is enabled by default in .mcp.json, all plugin manifests, and kraken-mcp. Because it is not marked dangerous, kraken-mcp runs it with no elicitation prompt or confirmation check, while its input_file parameter reads any UTF-8 file on the user's computer (up to 8,192 bytes, enough to include config.toml with stored Kraken API secrets, .env files, or SSH keys) and uploads the contents to https://cli-feedback.kraken.com/v1/feedback. A prompt-injected agent reading untrusted text can silently upload local secrets to Kraken's feedback ingestion service.

    Fix: Remove input_file from the MCP schema for kraken_feedback (or restrict it on MCP), mark feedback as Dangerous so human elicitation is required before sending data externally, and exclude feedback from the default MCP service list.

  2. LowDangerous MCP tool gate falls back to trusting AI-supplied acknowledged flag without elicitation

    crates/kraken-mcp/src/server.rs:916

    In guarded mode (the default without --allow-dangerous), kraken-mcp gates dangerous tools (live orders, withdrawals, transfers, export deletion/retrieval, workspace promotion, and resets) using MCP form elicitation. However, when connected to an MCP client that does not advertise form elicitation support, enforce_approval receives Approval::Unreachable and allows the call whenever the model passes acknowledged: true in the tool arguments — a field the server's own tool schema marks as required and its instructions tell the model to set. If a user enables account or trading services on a non-elicitation client and relies on kraken-mcp's guarded mode instead of client-side per-tool prompts, a prompt-injected agent can approve its own dangerous calls.

    Fix: Fail closed when Approval::Unreachable is returned in guarded mode unless an explicit CLI flag (such as --allow-unverified-ack or --allow-dangerous) is set by the operator.

  3. LowUn-gated kraken_plugin_init writes executable scripts and unescaped paths into arbitrary directories

    crates/kraken-app/src/commands/plugin.rs:88

    PluginCommand::Init (exposed as kraken_plugin_init in the workspace MCP service, which is on in bare kraken-mcp defaults though excluded from .mcp.json) has Effect::Local and therefore runs without operator approval. While self.name is restricted to safe path characters, self.path accepts any directory path on disk, creates it, writes chmod 0755 scripts and SKILL.md, and interpolates entrypoint_path.display() unescaped inside double quotes in SKILL.md's bash command block. A prompt-injected agent with the workspace service enabled can scaffold a directory inside an auto-loaded agent skills folder (such as .claude/skills/ or ~/.cursor/skills/) using a directory name containing shell command substitutions or markdown instructions.

    Fix: Restrict MCP plugin scaffolding to plugins_root() (disallowing arbitrary --path over MCP) or mark PluginCommand::Init as Dangerous, and shell-escape paths before interpolating them into SKILL.md and README.md.

  4. LowWebhook playground skill runs unauthenticated localhost HTTP POST listener open to browser cross-site requests

    skills/recipe-playground-webhook/SKILL.md:92

    The recipe-playground-webhook skill instructs the agent to start a local Python HTTP server on 127.0.0.1:8787 with HOOK_TOKEN empty by default, no Origin or Sec-Fetch-Site header check, and an unbounded Content-Length read. While this recipe is running without HOOK_TOKEN, any website the user visits in a browser can send cross-origin simple POST requests (for example text/plain with a JSON payload) to 127.0.0.1:8787 to trigger simulated paper orders, exhaust disk or memory with oversized bodies, or inject untrusted prompt-injection text via the note field into decisions.jsonl, which the agent reads back during session review.

    Fix: Require a non-empty random HOOK_TOKEN by default in the recipe script, reject requests that carry browser Origin or Sec-Fetch-Site headers, and cap the maximum request body size.

  5. LowAgent skills instruct the model to submit feedback autonomously without asking the user

    skills/kraken-shared/SKILL.md:85

    Although README.md advises agents to call feedback only when the human asks, kraken-shared and the other 58 SKILL.md files tell the agent to feel free to submit feedback with kraken feedback whenever it hits a mismatch between what it is trying to do and the CLI's responses, with no instruction to ask the user first or scrub sensitive context. Combined with the un-gated default-on feedback MCP tool, this encourages unprompted external uploads of diagnostic text to Kraken.

    Fix: Update the skill text across SKILL.md files to require explicit user confirmation before running kraken feedback and remind the agent never to include account data, file contents, or secrets.

  6. LowMissing path-segment validation in kraken-lab experiment loader

    crates/kraken-lab/src/store.rs:58

    Unlike kraken_recipe::store::load, which validates names with SessionName before joining them onto the store directory, kraken_lab::store::load joins the raw name directly into <base>/lab/experiments/<name>.json. Calling kraken_lab_show, kraken_lab_compare, or kraken_lab_next with ../ traversal segments allows an agent to probe whether arbitrary .json files exist outside the workspace directory, although seal verification prevents returning their contents.

    Fix: Validate name.parse::<SessionName>() at the start of kraken_lab::store::load before constructing experiment_path, matching kraken_recipe::store::load.

  7. LowInstall script downloads and runs unpinned latest release script without signature verification

    install.sh:6

    install.sh (and the install command in skills/kraken-setup/SKILL.md) fetches kraken-cli-installer.sh from the mutable GitHub releases/latest URL and pipes or passes it directly to sh without pinning a version digest or verifying the minisign signature documented in README.md.

    Fix: Pin a release version and SHA-256 digest or verify the minisign signature before executing the downloaded installer script, and instruct agents in kraken-setup to ask the user before running the installer.

  8. LowRuntime agent context instructs the AI to upload feedback without asking the user

    CONTEXT.md:134

    CONTEXT.md (which gemini-extension.json loads automatically into the model context and which AGENTS.md and CLAUDE.md reference as the runtime contract) instructs the agent to run kraken feedback whenever it hits a mismatch between what it is trying to do and the CLI's interface or responses. Unlike README.md, which says to call feedback only when the human asks, CONTEXT.md and AGENTS.md omit any requirement to ask the user first, causing task descriptions, error context, model identity, and a persistent install ID to be uploaded to Kraken without user consent.

    Fix: Update CONTEXT.md and AGENTS.md to require the agent to show the proposed feedback payload to the user and obtain explicit permission before invoking kraken feedback.

  9. LowAgent and user install guides pipe an unpinned, unverified installer script into sh

    AGENTS.md:23

    AGENTS.md, llms.txt, and the main quick-start in README.md instruct users and AI agents to install the binaries by piping https://github.com/krakenfx/kraken-cli/releases/latest/download/kraken-cli-installer.sh directly into sh. Because the URL points to the mutable latest release and skips checking the minisign signature that releases provide, a compromised GitHub release asset would execute arbitrary shell commands on a machine used to manage financial exchange credentials.

    Fix: Pin a specific release tag and verify kraken-cli-installer.sh against its .minisig signature (or a pinned SHA-256 hash) before running sh, especially in AGENTS.md and llms.txt.