Back to skill

Security audit

Binance API

Security checks for vulnerabilities and agentic risk

Overview

This skill is a public Binance market-data reference with no account access, trading authority, persistence, or hidden execution behavior.

Install only if you are comfortable with agents using Binance as the market-data source for crypto questions. For generic prices, compare against the exchange or index you actually want, and use a pinned virtual environment if running the optional Python WebSocket example.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (1)

T08 · Insecure Dependencies

Warning
Location
references/websocket-streams.md:32
Finding

Unpinned Third-Party Python Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: references/websocket-streams.md:32
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: Medium

Vulnerable Snippet:

text
Python equivalent needs a library (`pip install websockets`):

Technical Analysis

The documentation instructs the user or executing Agent to install the third-party websockets package without specifying a reviewed version, cryptographic hashes, a lock file, an isolated environment, or an explicitly trusted package index.

Consequently, the package resolved by pip depends on mutable package-registry state at installation time. If the legitimate publisher account or package registry is compromised, or if a future package release is malicious, following this instruction could introduce attacker-controlled code into the environment. Python packages can execute code during installation or when subsequently imported by the documented WebSocket example.

This is a supply-chain weakness rather than evidence that the current websockets package is malicious.

Attack Path

  1. An attacker compromises the package publisher, distribution channel, or package registry and publishes a malicious release under the expected package name.
  2. A user or Agent follows the Skill documentation and runs pip install websockets.
  3. Because no version or hash is pinned, pip resolves and downloads the attacker-controlled release.
  4. Malicious code executes during package installation or when the package is imported by the example.
  5. The payload operates with the privileges of the user or process that performed the installation.

Impact Assessment

Successful exploitation could result in arbitrary code execution within the installation or runtime environment. The attacker could access files, environment variables, network resources, and credentials available to that user, modify Python environments, or tamper with subsequent ...[truncated 360 chars]

Remediation
View remediation

Remediation Suggestions

  • Pin the dependency to a specifically reviewed version rather than installing the latest available release.
  • Record cryptographic hashes in a requirements file and enforce them with pip --require-hashes.
  • Install the dependency in a dedicated virtual environment with no unnecessary privileges.
  • Use an explicitly configured and trusted package index.
  • Periodically review the pinned version for disclosed vulnerabilities and update it through a controlled process.

Example hardened installation workflow:

text
# requirements.txt
websockets==<reviewed-version> \
    --hash=sha256:<verified-distribution-hash>

python -m venv .venv
.venv/bin/python -m pip install \
    --index-url https://pypi.org/simple \
    --require-hashes \
    -r requirements.txt

The documentation should direct users to this reproducible installation process instead of the unpinned pip install websockets command.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (11)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill description claims applicability to essentially any crypto price lookup or market analysis task, even when Binance is not mentioned. This overbroad routing can cause the agent to invoke the skill in contexts where exchange choice, regional restrictions, data-source trust, or asset coverage matter, leading to incorrect answers or inappropriate external data access. The content is otherwise informational and public-only, which lowers severity, but the invocation scope itself is still unsafe from a policy/routing standpoint.

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 · references/bulk-data.md (reported line 10)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 17)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 31)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 32)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 33)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 34)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 35)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 36)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

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 · references/bulk-data.md (reported line 90)May include surrounding context.

md
than paging the REST API (a month of 1m klines = 1 file vs ~44 API calls).

Browse the archive interactively at:
`https://data.binance.vision/?prefix=data/spot/monthly/klines/BTCUSDT/`

Official reference: https://github.com/binance/binance-public-data

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.