binance-skills-hub
- Type
- Skill
- Scanned
- Nov 17, 2026
- Version
- 7d1b1f78d525
- Files read
- 142
Binance Skills Hub is a collection of AI agent skills and helper scripts for researching crypto markets, publishing to Binance Square, and executing trades, transfers, and payments across Binance CEX, Binance Pay, and Binance Web3 wallets. The biggest risks are irreversible loss of funds if prompt injection tricks the agent into triggering trades or invoking an unguarded payment resume action, a flawed env-file fallback in the Fiat skill that can send unrelated secrets from the user's home directory in an HTTP header, and unpinned or automatic runtime CLI installers.
What it can reach
- Shell commands
- Runs Bash, Node.js, and Python scripts, invokes system utilities such as curl, openssl, ffmpeg, and ffprobe, and installs or runs external CLIs (binance-cli and baw).
- Secrets
- Reads and stores Binance CEX API keys and secrets, Binance Pay credentials, Square OpenAPI keys, Onchain-Pay RSA private keys, and Web3 wallet sessions from environment variables and local files including ~/.env, ~/.openclaw/secrets.env, ~/.config/binance-square/openapi-key, .local.md, and config.json.
- Network
- Sends public and authenticated requests to Binance domains (*.binance.com, bpay.binanceapi.com), Binance Onchain-Pay (api.commonservice.io), DEX candlestick service (dquery.sintral.io), presigned S3 upload URLs, and third-party x402 payment endpoints.
- Files
- Reads and writes local configuration, trading state, logs, and QR images under ~/.local/copytrader/, ~/.local/updown/, ~/.config/binance-square/, and skill folders, and uploads user-specified media or P2P appeal evidence files.
- System
- Reads images from the system clipboard via osascript, xclip, or PowerShell when the user requests clipboard QR decoding.
- Browser
- Opens Binance Web3 wallet sign-in URLs directly in the user's default web browser.
- Other
- Can execute financial actions on the user's Binance CEX account (spot, margin, futures, loans, sub-accounts, withdrawals, P2P ads and appeals, Binance Pay C2C and PIX payments), publish posts on Binance Square, and sign on-chain swaps, transfers, DeFi actions, prediction bets, x402 payments, and arbitrary smart-contract calls.
Findings
-
HighFlawed ~/.env fallback can send unrelated local secrets in an HTTP header
skills/binance/fiat/references/sapi-endpoints.md:103
When BINANCE_API_KEY is not already set, the Fiat skill instructs the agent to read the first two lines of ~/.openclaw/.env or ~/.env without user confirmation and only treat the file as KEY=VALUE format if both line 1 and line 2 contain '='. In common developer ~/.env files where line 1 is a KEY=VALUE secret (such as an OpenAI, AWS, or GitHub token) and line 2 is blank or a comment, this check fails, assigns the full line 1 secret to API_KEY, and transmits it over the network in the X-MBX-APIKEY request header.
Fix: Remove the raw two-line fallback when reading general .env files and only extract lines matching ^BINANCE_API_KEY= and ^BINANCE_SECRET_KEY=.
-
MediumPayment resume action executes unconfirmed QR payments without confirmation
skills/binance/payment/send.py:691
When a C2C or PIX QR code with a preset amount is parsed via purchase (or after set_amount is run), the state file records AMOUNT_SET before the user has approved paying. Although SKILL.md places strict confirmation rules around pay_confirm, it lists resume as a safe recovery command without warning that action_resume immediately calls action_pay_confirm for QR_PARSED and AMOUNT_SET orders, sending funds from the user's Binance Funding Wallet if the agent is tricked or asked to resume an interrupted session.
Fix: Do not call action_pay_confirm inside action_resume for QR_PARSED or AMOUNT_SET states; require an explicit pay_confirm call after user approval and only auto-resume status polling for already-confirmed orders.
-
MediumUnpinned remote shell script piped directly to sh during binance-cli installation
skills/binance/binance/SKILL.md:25
Both the OpenClaw installer metadata and the agent setup instructions download binance-cli-installer.sh from the mutable GitHub latest release URL and pipe it directly to sh without pinning a release tag or verifying a cryptographic checksum. If the upstream release asset is ever compromised, arbitrary shell commands run on the user's machine where trading credentials live.
Fix: Pin the installer to a specific release version and verify its SHA-256 checksum before executing it.
-
MediumBinance Pay credentials stored in unignored project config.json with default permissions
skills/binance/payment/common.py:109
On first run, payment_skill.py creates config.json inside the skill directory for storing the user's plaintext Binance Pay API key and secret, without setting 0600 file permissions and without a .gitignore rule in either the skill directory or repository root. On multi-user systems other local users can read the file, and installing the skill inside a git repository risks accidentally committing live payment credentials.
Fix: Store credentials in a user config directory outside the repository with 0700 directory and 0600 file permissions (matching square-post), and add config.json, .payment_state.json, and inbox/ to .gitignore.
-
LowSilent runtime global npm install and unpinned CLI installs without user approval
skills/binance-web3/binance-agentic-wallet/references/preflight.md:65
The Agentic Wallet skill tells the agent to run preflight checks at the start of every conversation and automatically run npm install -g @binance/agentic-wallet when the baw CLI is missing or outdated, without asking the user first (unlike the skill update check above it). Three sibling Web3 skills (binance-leaderboard, binance-trading-signal, and binance-wallet-tracker) also instruct running npm install -g @binance/agentic-wallet with no version pin at all, executing npm package install scripts globally at runtime.
Fix: Require explicit user confirmation before installing or upgrading global npm packages at runtime, pin exact versions across all skills, and pass --ignore-scripts if lifecycle scripts are not required.
-
LowCopy-trader skips honeypot audits on the signal stream by default and fails open
skills/binance-web3/binance-onchain-copy-trader/scripts/copytrader.py:914
Although SKILL.md depicts token security audits running before hard_gate and enables block_honeypot by default, enrich_srcs defaults to ["address"] only and require_audit defaults to False. On the smart-money signal stream, audit() is never called and hard_gate silently passes unaudited tokens, completely bypassing honeypot blocking once a user switches the daemon to live mode.
Fix: Include "signal" in the default enrich_srcs whenever block_honeypot is enabled and default require_audit to True so unaudited tokens fail closed.
-
LowAPI keys and private key paths passed as command-line arguments and retried on parse errors
skills/binance/onchain-pay/scripts/sign_and_call.sh:18
sign_and_call.sh accepts the API key and RSA private key file path only as positional command-line arguments (and binance/references/auth.md and p2p/fiat docs similarly pass secrets via --api-secret or openssl -hmac flags), exposing credentials in OS process listings, shell history, and agent tool logs despite SKILL.md stating they must never appear in logs. In addition, piping curl to python3 -m json.tool with an '|| curl' fallback causes signed POST requests such as pre-orders to be sent twice whenever python3 is absent or an upstream gateway returns non-JSON error text.
Fix: Read API keys and private key paths from environment variables or a 0600 config file instead of CLI arguments, and store the HTTP response in a variable before pretty-printing so POST requests are never sent twice.
-
LowUnsafe bash node -e template for stripping HTML from API responses
skills/binance/academy-skill/SKILL.md:147
SKILL.md instructs the agent to strip HTML from API content by embedding the raw HTML string inside a double-quoted bash command and single-quoted JavaScript call to stripHtml. Any dollar signs, backticks, double quotes, or single quotes in returned article HTML (or injected content) can trigger unintended bash command substitution or JavaScript code execution when the agent constructs the command.
Fix: Add a CLI subcommand or stdin mode to academy-api.mjs for stripHtml instead of interpolating raw HTML into a node -e shell one-liner.
