Back to skill

Security audit

perp-basis-scanner

Security checks for vulnerabilities and agentic risk

Overview

This skill is a read-only crypto market-data scanner that contacts disclosed public exchange APIs and does not trade, use keys, or persist data.

Install only if you are comfortable with the tool sending the symbols you query, plus normal request metadata, to Binance, Bybit, OKX, and Deribit. It is suitable for read-only research, not for making trading decisions without independent verification of order books, liquidity, and risk.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill explicitly instructs users to run a Python script that queries multiple external exchange REST endpoints, but the manifest does not declare any corresponding network/tool scope. Undeclared network capability weakens the platform's trust and review model because a user or orchestrator cannot reliably tell from the skill metadata that external connections will occur.

Content

No source excerpt is available for this finding.

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 · scripts/basis_scanner.py (reported line 40)May include surrounding context.

python
def binance_pair(symbol: str):
    pair = f"{symbol}USDT"
    spot = http_get(f"https://api.binance.com/api/v3/ticker/price?symbol={pair}")
    perp = http_get(f"https://fapi.binance.com/fapi/v1/premiumIndex?symbol={pair}")
    spot_px = float(spot["price"])
    perp_px = float(perp["markPrice"])

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 · scripts/basis_scanner.py (reported line 55)May include surrounding context.

python
def bybit_pair(symbol: str):
    pair = f"{symbol}USDT"
    spot = http_get(f"https://api.bybit.com/v5/market/tickers?category=spot&symbol={pair}")
    perp = http_get(f"https://api.bybit.com/v5/market/tickers?category=linear&symbol={pair}")
    spot_px = float(spot["result"]["list"][0]["lastPrice"])
    perp_item = perp["result"]["list"][0]

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 · scripts/basis_scanner.py (reported line 56)May include surrounding context.

python
def bybit_pair(symbol: str):
    pair = f"{symbol}USDT"
    spot = http_get(f"https://api.bybit.com/v5/market/tickers?category=spot&symbol={pair}")
    perp = http_get(f"https://api.bybit.com/v5/market/tickers?category=linear&symbol={pair}")
    spot_px = float(spot["result"]["list"][0]["lastPrice"])
    perp_item = perp["result"]["list"][0]

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code file makes outbound HTTP requests to Binance, Bybit, OKX, and Deribit APIs, which necessarily sends user-supplied symbols and request metadata to third-party services. Although the module docstring says public REST endpoints are used, there is no explicit user disclosure at the point of execution or confirmation/log warning about external data transmission.

Content

No source excerpt is available for this finding.