Back to skill

Security audit

Hub Swap Planner

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because it reports undisclosed environment telemetry and behavior that scanners say does not consistently match its swap-planning purpose; the review is incomplete.

Consider avoiding installation until the telemetry purpose and destination are clearly disclosed, the mismatch between the advertised swap-planning purpose and the reported behaviors is resolved, and the wallet-opening behavior is clarified. Confidence is medium: Skillspector's analysis was partial, with a degraded analyzer and unresolved references, so the evidence is incomplete.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (15)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Token metadata queries could support a swap planner, but the supplied chunk consists entirely of queries for one fixed token and contains no connection to swap planning or channel-specific handoffs. Its implemented purpose therefore materially differs from the declared purpose. The calls are read-only; no transaction execution or wallet access is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code is a hardcoded Dexscreener market-data lookup. It contains no PCS Hub integration, swap parameters, route evaluation, partner-channel selection, or handoff-link generation. Although market-data discovery could support a swap workflow, this chunk's entire implemented behavior is materially different from the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The initialization request sends the agent identifier, operating system, architecture, timestamp, and skill version to pancakeswap.ai without a user-facing telemetry disclosure. This is an unnecessary privacy exposure, although the finding's claim that the skill performs no swap planning is incorrect: subsequent sections implement quotes, route summaries, and handoff links.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Pool discovery could support swap planning, but the supplied code only performs a hardcoded market-data lookup. It contains no PCS Hub integration, swap-route planning, user-specified token handling, or handoff-link generation. Thus, the behavior shown does not substantively implement the declared primary purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Token metadata retrieval could support a swap planner, but the supplied chunk contains no swap-planning or handoff-link functionality. Its entire implemented behavior is querying a fixed token's metadata, which is materially narrower and different from the declared primary purpose. The RPC calls are read-only; no transaction submission or wallet access is shown.

Content

No source excerpt is available for this finding.

External Model or Provider Selection

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 7)May include surrounding context.

md
description: Plan swaps through PCS Hub and generate a channel-specific handoff link. Use when user says "swap via PCS Hub", "hub swap", "/hub-swap-planner", "swap via Binance Wallet", "swap via Trust Wallet", "find best PCS Hub route", or describes wanting to swap tokens through a specific partner channel or distribution interface.
homepage: https://github.com/pancakeswap/pancakeswap-ai
allowed-tools: Read, Write, Edit, Glob, Grep, Bash(curl:*), Bash(jq:*), Bash(cast:*), Bash(xdg-open:*), Bash(open:*), WebFetch, WebSearch, Task(subagent_type:Explore), AskUserQuestion
model: sonnet
license: MIT
metadata:
  author: pancakeswap

The initialization step claims to refresh session resources but instead sends environment and usage telemetry.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The stated initialization purpose does not match the command: it transmits environment and usage information while discarding the response, rather than retrieving token lists or link formats. Background execution and suppressed output make this collection less visible, but the shown payload does not contain credentials or wallet secrets.

Content

No source excerpt is available for this finding.

Initialization transmits system and usage telemetry without a user-facing privacy disclosure.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The ping exposes host characteristics and skill usage to an external endpoint without explaining that collection to the user. This duplicates the initialization privacy issue rather than demonstrating a separate secret-exfiltration mechanism.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 263)May include surrounding context.

md
KEYWORD='pepe'
CHAIN="bsc"

curl -s -G "https://api.dexscreener.com/latest/dex/search" --data-urlencode "q=$KEYWORD" | \
  jq --arg chain "$CHAIN" '[
    .pairs[]
    | select(.chainId == $chain)

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 287)May include surrounding context.

md
KEYWORD='USDon'
NETWORK="bsc"

curl -s "https://api.geckoterminal.com/api/v2/search/pools?query=%24%7BKEYWORD%7D&network=%24%7BNETWORK}" | \
  jq '[.data[] | {
    pool: .attributes.name,
    address: .attributes.address,

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 394)May include surrounding context.

md
[[ "$TOKEN" =~ ^0x[0-9a-fA-F]{40}$ ]] || { echo "Invalid token address"; exit 1; }

# name() selector = 0x06fdde03
curl -sf -X POST "$RPC" \
  -H "Content-Type: application/json" \
  -d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_call\",\"params\":[{\"to\":\"$TOKEN\",\"data\":\"0x06fdde03\"},\"latest\"]}" \
  | jq -r '.result'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 400)May include surrounding context.

md
| jq -r '.result'

# symbol() selector = 0x95d89b41
curl -sf -X POST "$RPC" \
  -H "Content-Type: application/json" \
  -d "{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"eth_call\",\"params\":[{\"to\":\"$TOKEN\",\"data\":\"0x95d89b41\"},\"latest\"]}" \
  | jq -r '.result'

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 446)May include surrounding context.

md
AMOUNT_WEI="1000000000000000000"
CHAIN_ID=56

QUOTE=$(curl -sf -X POST "https://hub-api.pancakeswap.com/aggregator/api/quote" \
  -H "Content-Type: application/json" \
  -H "x-secure-token: $PCS_HUB_TOKEN" \
  -d "{

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 539)May include surrounding context.

md
RECIPIENT="${RECIPIENT_ADDRESS:-0x0000000000000000000000000000000000000000}"  # msg.sender if unknown
SLIPPAGE="0.005"  # 0.5% default; override from user input

CALLDATA_RESPONSE=$(curl -sf -X POST "https://hub-api.pancakeswap.com/aggregator/api/calldata" \
  -H "Content-Type: application/json" \
  -H "x-secure-token: $PCS_HUB_TOKEN" \
  -d "$(echo "$QUOTE" | jq \

Wallet-opening commands contradict the mandatory HTTPS-only URL restriction.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The mandatory security rule at L078 permits open/xdg-open only for HTTPS URLs on two named partner domains. These commands instead open EIP681_URL, constructed at L569 with the ethereum: scheme, invoking a registered protocol handler outside that explicit restriction.

Content

No source excerpt is available for this finding.