Back to skill

Security audit

Crypto Chart

Security checks for vulnerabilities and agentic risk

Overview

This crypto chart skill does what it claims, but its instructions use unsafe shell commands with user-controlled values, creating a meaningful command-injection and file-deletion risk.

Review before installing. The market-data behavior is expected, but the skill should be changed to validate token symbols, generate safe filenames, and copy/delete files through structured APIs or quoted argument arrays instead of shell templates. Install only in a sandboxed environment until that is fixed.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:36
Finding

User-Controlled Cryptocurrency Symbol Enables Shell Command Injection

Content
View full analysis
./crypto_chart__.png` 2. Send: `message(action="send", filePath="./crypto_chart__.png", message="")` 3. **MANDATORY cleanup** — run both commands regardless of send result: - `rm ./crypto_chart__.png` - `rm ` 4. Reply `NO_REPLY`. ``` `scripts/get_price_chart.py:831-839` accepts the symbol without enforcing a safe-character policy: ```python def main(): if len(sys.argv) < 2: return _json_error("missing symbol", "Usage: get_price_chart.py ") raw_symbol = sys.argv[1].strip() if not raw_symbol: return _json_error("missing symbol", "Usage: get_price_chart.py ") symbol_upper = raw_symbol.upper() token_id = TOKEN_ID_MAP.get(symbol_upper) if token_id is None: token_id = raw_symbol.lower() ``` `scripts/get_price_chart.py:797-800` embeds that symbol in a filesystem path: ```python ts = int(time.time()) chart_path = f"/tmp/crypto_chart_{symbol}_{ts}.png" fig.tight_layout() fig.savefig(chart_path, dpi=150) ``` `scripts/get_price_chart.py:975-976` returns the path to the agent: ```python "chart_path": chart_path, "text": text, ``` ### Technical Analysis The cryptocurrency symbol originates from user-controlled input and is only stripped of leading and trailing whitespace. It is not restricted to letters, digits, or a narrowly defined set of safe separators. The symbol is subsequently embedded in the generated ch ...[truncated 2917 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (14)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

The cleanup instructions interpolate untrusted placeholders like , , and especially <chart_path> directly into shell rm/cp commands. If any of these values contain shell metacharacters, path traversal, or unexpected absolute paths, an attacker could delete arbitrary files or manipulate command execution, and the 'mandatory' wording makes the dangerous operation more likely to be followed automatically.

Content

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

md
1. Copy from `/tmp` to workspace: `cp <chart_path> ./crypto_chart_<SYMBOL>_<duration>.png`
2. Send: `message(action="send", filePath="./crypto_chart_<SYMBOL>_<duration>.png", message="<text_plain>")`
3. **MANDATORY cleanup** — run both commands regardless of send result:
   - `rm ./crypto_chart_<SYMBOL>_<duration>.png`
   - `rm <chart_path>`
4. Reply `NO_REPLY`.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The README says the skill is automatically triggered when users ask for 'Token prices', 'Crypto charts', or 'Cryptocurrency market data', which are broad topic descriptions rather than specific trigger phrases. It does not define boundaries, exclusions, or negative examples, so the skill could activate on ordinary conversation about crypto rather than clear user intent to run the skill.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill declares executable behavior that reads and writes files and accesses external network APIs, but it does not declare any explicit tool scope or permission boundaries. This increases the chance that the runtime grants broader-than-necessary capabilities and makes review and containment harder if the script or its inputs are later abused.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The description says to use the skill when a user asks for token price, crypto price, price chart, or cryptocurrency market data, which is fairly broad trigger language. Broad matching can cause unintended invocation in adjacent conversations, increasing the chance that code with network and file operations runs when the user did not explicitly intend to use this skill.

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

md
DEFAULT_HOURS = 24
CANDLE_MINUTES = 15
CACHE_TTL_SEC = 300
COINGECKO_PRICE_URL = "https://api.coingecko.com/api/v3/simple/price?ids={id}&vs_currencies={currency}"
COINGECKO_OHLC_URL = "https://api.coingecko.com/api/v3/coins/{id}/ohlc?vs_currency={currency}&days=1"
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"

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

python
DEFAULT_HOURS = 24
CANDLE_MINUTES = 15
CACHE_TTL_SEC = 300
COINGECKO_PRICE_URL = "https://api.coingecko.com/api/v3/simple/price?ids={id}&vs_currencies={currency}"
COINGECKO_OHLC_URL = "https://api.coingecko.com/api/v3/coins/{id}/ohlc?vs_currency={currency}&days=1"
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"

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

python
DEFAULT_HOURS = 24
CANDLE_MINUTES = 15
CACHE_TTL_SEC = 300
COINGECKO_PRICE_URL = "https://api.coingecko.com/api/v3/simple/price?ids={id}&vs_currencies={currency}"
COINGECKO_OHLC_URL = "https://api.coingecko.com/api/v3/coins/{id}/ohlc?vs_currency={currency}&days=1"
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"

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

python
DEFAULT_HOURS = 24
CANDLE_MINUTES = 15
CACHE_TTL_SEC = 300
COINGECKO_PRICE_URL = "https://api.coingecko.com/api/v3/simple/price?ids={id}&vs_currencies={currency}"
COINGECKO_OHLC_URL = "https://api.coingecko.com/api/v3/coins/{id}/ohlc?vs_currency={currency}&days=1"
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"

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

python
DEFAULT_HOURS = 24
CANDLE_MINUTES = 15
CACHE_TTL_SEC = 300
COINGECKO_PRICE_URL = "https://api.coingecko.com/api/v3/simple/price?ids={id}&vs_currencies={currency}"
COINGECKO_OHLC_URL = "https://api.coingecko.com/api/v3/coins/{id}/ohlc?vs_currency={currency}&days=1"
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"

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

python
DEFAULT_HOURS = 24
CANDLE_MINUTES = 15
CACHE_TTL_SEC = 300
COINGECKO_PRICE_URL = "https://api.coingecko.com/api/v3/simple/price?ids={id}&vs_currencies={currency}"
COINGECKO_OHLC_URL = "https://api.coingecko.com/api/v3/coins/{id}/ohlc?vs_currency={currency}&days=1"
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"

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

md
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"
COINGECKO_MARKET_CHART_DAYS_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days={days}"
HYPERLIQUID_INFO_URL = "https://api.hyperliquid.xyz/info"

TOKEN_ID_MAP = {
    "HYPE": "hyperliquid",

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

python
COINGECKO_SEARCH_URL = "https://api.coingecko.com/api/v3/search?query={query}"
COINGECKO_MARKET_CHART_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days=1"
COINGECKO_MARKET_CHART_DAYS_URL = "https://api.coingecko.com/api/v3/coins/{id}/market_chart?vs_currency={currency}&days={days}"
HYPERLIQUID_INFO_URL = "https://api.hyperliquid.xyz/info"

TOKEN_ID_MAP = {
    "HYPE": "hyperliquid",

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
93% confidence
Finding

The dependency is only lower-bounded and not pinned to an exact version, so installations at different times may resolve to different matplotlib releases. This increases supply-chain and reproducibility risk because a future compromised or breaking release could be pulled in automatically without review.

Content

Scanner excerpt · requirements.txt (reported line 1)May include surrounding context.

text
matplotlib>=3.5.0

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The manifest describes the skill as getting token prices and generating candlestick charts via external APIs, but the implementation also performs local filesystem writes for API caches and generated chart images. Chart generation implies creating an image file, so that part is expected, but the broader behavior is still more than a pure data-fetching description suggests.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.