Back to skill

Security audit

Hyperliquid Perp Signals

Security checks for vulnerabilities and agentic risk

Overview

This skill can present simulated crypto trading data as current market signals, which could mislead users making financial decisions.

Review this carefully before installing. It does not appear to steal data or persist on the system, but its trading outputs are simulated and may look like real market intelligence. Do not rely on it for trading unless the skill is changed to clearly label simulation mode or to fetch and verify live exchange data.

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
Findings (1)

other

Error
Location
scripts/hl_signals.py:31
Finding

Synthetic Financial Data Is Presented as Current Market Signals

Content
View full analysis
dict: """ Production: POST {type: "metaAndAssetCtxs"} to HL_API_URL and parse. Mock: deterministic synthesis keyed on coin + minute bucket. """ bucket = int(time.time() // 60) rng = random.Random(sum(ord(c) for c in coin) + bucket) base_prices = { "BTC": 65_000, "ETH": 3_400, "SOL": 150, "ARB": 1.10, "OP": 2.30, "AVAX": 35, "DOGE": 0.16, "WIF": 2.10, "INJ": 28, "SUI": 1.05, "APT": 8.5, "TIA": 6.8, "LINK": 14, "MATIC": 0.72, "ATOM": 8.4, "TON": 6.5, "PEPE": 0.000009, "TRX": 0.13, "LTC": 85, "BCH": 410, } px = base_prices.get(coin, 10.0) drift = rng.uniform(-0.03, 0.03) mark = round(px * (1 + drift), 6 if px < 0.001 else 4) funding_1h = round(rng.gauss(0.0001, 0.0004), 6) oi_usd = rng.uniform(10_000_000, 800_000_000) oi_chg = rng.gauss(0, 5) return { "coin": coin, "mark_price": mark, "oracle_price": round(px, 6 if px < 0.001 else 4), "funding_rate_1h": funding_1h, "open_interest_usd": round(oi_usd, 0), "oi_change_24h_pct": round(oi_chg, 2), "next_funding_eta_seconds": rng.randint(60, 3600), } def fetch_mock_binance_funding(coin: str) -> dict: bucket = int(time.time() // 60) rng = random.Random(sum(ord(c) for c in coin) * 7 + bucket) funding_8h = round(rng.gauss(0.0001, 0.0003), 6) return {"coin": c ...[truncated 3797 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The overall theme of the code matches the declared domain: perpetual futures signal scanning with commands for funding, OI, liquidations, basis, and squeeze analysis. However, the declared description suggests a live market-data scanner for Hyperliquid with cross-venue comparisons and specific signal logic. The supplied code does not implement live data retrieval; instead it synthesizes deterministic mock values via fetch_mock_meta and fetch_mock_binance_funding. It also lacks any Bybit support despite that being explicitly declared. The 'crowded trades when OI spikes on declining price' behavior is not actually implemented, since cmd_oi only sorts by OI change and assigns broad labels without using price trend. Likewise, 'large position changes' are not tracked. These are material gaps between declared purpose and actual behavior, so this should be flagged as a mismatch.

Content

No source excerpt is available for this finding.

Lp1

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'env' capability that is not listed in its permissions. This may indicate deceptive intent or missing permission declarations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill metadata claims live Hyperliquid and cross-venue signal scanning, but the code emits only locally synthesized signals derived from pseudo-random generation. In this financial context, deceptive or inaccurate outputs are especially dangerous because users may make real trading decisions based on non-existent market conditions.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The documentation explicitly suggests production API fetching, but the implementation only produces synthesized mock data. In a trading-signal skill, this can mislead users into acting on fabricated market intelligence, creating integrity and financial-risk issues even without code execution or data exfiltration.

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 · README.md (reported line 28)May include surrounding context.

md
from typing import Optional


HL_API_URL = os.environ.get("HL_API_URL", "https://api.hyperliquid.xyz/info")
INCLUDE_BINANCE = os.environ.get("HL_BINANCE_FUNDING_COMPARE", "true").lower() != "false"

COINS = ["BTC", "ETH", "SOL", "ARB", "OP", "AVAX", "DOGE", "WIF", "INJ", "SUI",

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 39)May include surrounding context.

md
from typing import Optional


HL_API_URL = os.environ.get("HL_API_URL", "https://api.hyperliquid.xyz/info")
INCLUDE_BINANCE = os.environ.get("HL_BINANCE_FUNDING_COMPARE", "true").lower() != "false"

COINS = ["BTC", "ETH", "SOL", "ARB", "OP", "AVAX", "DOGE", "WIF", "INJ", "SUI",

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/hl_signals.py (reported line 24)May include surrounding context.

python
from typing import Optional


HL_API_URL = os.environ.get("HL_API_URL", "https://api.hyperliquid.xyz/info")
INCLUDE_BINANCE = os.environ.get("HL_BINANCE_FUNDING_COMPARE", "true").lower() != "false"

COINS = ["BTC", "ETH", "SOL", "ARB", "OP", "AVAX", "DOGE", "WIF", "INJ", "SUI",