cryptocurrency-trader

ISSUES FOUND max severity CRITICALSkillSpector Do not install 90 registry clawhub.ai last scanned 1 scan

5 findings (1 critical, 3 high, 1 medium), mainly data exfiltration, command injection, resource abuse. Most recent scan 2026-02-05.

This cryptocurrency trading skill presents CRITICAL and HIGH security risks primarily related to unrestricted network access, lack of input validation, and missing security controls. The skill makes live connections to external cryptocurrency exchanges without disclosure, accepts unvalidated user input that could enable injection attacks, and lacks proper resource limits. The missing allowed-tools field means the agent has unrestricted Python execution capabilities. While the skill's trading logic appears mathematically sound, the security architecture requires significant hardening before production use. The skill should add explicit network usage disclosure, implement strict input validation, add allowed-tools restrictions, and implement proper resource limits and timeout protection.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

Independent static run, no language model, over the same files as the Cisco scan above. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Production-grade AI trading agent for cryptocurrency markets with advanced mathematical modeling, multi-layer validation, probabilistic analysis, and zero-hallucination tolerance. Implements Bayesian inference, Monte Carlo simulations, advanced risk metrics (VaR, CVaR, Sharpe), chart pattern recognition, and comprehensive cross-verification for real-world trading application.

Package
63 files, 703 KB
SKILL.md
1134 words, 12+ sections
Code
Python (44), Shell (2)

SKILL.md covers: Cryptocurrency Trading Agent Skill · Purpose · When to Use This Skill · Core Capabilities · Validation & Accuracy · Analysis Methods · Risk Management · Prerequisites · How to Use This Skill · Quick Start Commands · Default Parameters · Common Trading Pairs

Findings

CRITICAL Unrestricted Network Access to External Cryptocurrency Exchanges Data Exfiltrationllm

The skill makes unrestricted network calls to external cryptocurrency exchanges (Binance, Coinbase, Kraken, Bybit) without user consent or disclosure. The SKILL.md does not mention network usage in the description or compatibility fields, and no allowed-tools restrictions prevent this. Scripts use ccxt library to connect to exchanges and fetch real-time market data, creating data exfiltration risk and external dependency on untrusted third-party services.

scripts/trading_agent.py

self.exchange = getattr(ccxt, exchange_name)({'enableRateLimit': True, 'options': {'defaultType': 'spot'}}) - Establishes live connections to cryptocurrency exchanges without user awareness
Remediation: 1. Add explicit network usage disclosure to SKILL.md description and compatibility fields. 2. Require user consent before making network calls. 3. Add allowed-tools restriction if network access should be limited. 4. Implement network call logging and rate limiting. 5. Validate exchange responses to prevent malicious data injection.
HIGH Command Injection Risk via Unvalidated Symbol Input Command Injectionllm

User-provided trading pair symbols (e.g., 'BTC/USDT') are passed directly to exchange API calls and file operations without validation or sanitization. An attacker could inject malicious payloads through symbol parameters that could lead to command injection, path traversal, or API abuse. The skill accepts arbitrary symbol strings from command-line arguments and passes them to ccxt exchange methods.

skill.py

symbol = args.symbol (from command line) -> agent.comprehensive_analysis(symbol) -> exchange.fetch_ohlcv(symbol, ...) - No input validation or sanitization
Remediation: 1. Implement strict symbol validation using whitelist of valid trading pairs. 2. Sanitize symbol input to remove special characters. 3. Use parameterized queries for all external API calls. 4. Add input length limits and format validation (e.g., regex: ^[A-Z]{2,10}/[A-Z]{2,10}$). 5. Log all symbol inputs for audit trail.
HIGH Unbounded Resource Consumption in Market Scanning Resource Abusellm

The market scanner iterates through multiple cryptocurrency categories and symbols without rate limiting or resource bounds. The scan function can analyze 30+ symbols with multiple timeframes (15m, 1h, 4h) each, making hundreds of API calls. No timeout limits, no maximum scan duration, and minimal rate limiting (0.5s delay) could lead to resource exhaustion, API rate limit violations, or denial of service.

scripts/market/scanner.py

for category in categories: for symbol in symbols: analysis = agent.comprehensive_analysis(symbol) - Nested loops with minimal rate limiting, no timeout, no maximum iterations
Remediation: 1. Implement maximum scan duration timeout (e.g., 5 minutes). 2. Add configurable maximum symbols per scan. 3. Implement exponential backoff for rate limiting. 4. Add circuit breakers for API failures. 5. Cache results to reduce redundant API calls. 6. Add progress indicators and cancellation support.
HIGH Unrestricted Python Code Execution Without Tool Restrictions Unauthorized Tool Usellm

The skill executes arbitrary Python code through multiple script files without any allowed-tools restrictions in SKILL.md. The YAML manifest does not specify allowed-tools, meaning the agent has unrestricted access to Python, Bash, file system operations, and network calls. This violates the principle of least privilege and creates significant attack surface.

SKILL.md

YAML frontmatter missing 'allowed-tools' field - No restrictions on Python execution, file access, or network calls
Remediation: 1. Add allowed-tools field to SKILL.md YAML frontmatter specifying minimum required tools (e.g., ['Python', 'Read']). 2. Document why each tool is needed. 3. Remove unnecessary file write operations if possible. 4. Implement principle of least privilege. 5. Add runtime permission checks before sensitive operations.
MEDIUM Misleading Skill Description - Network Usage Not Disclosed Social Engineeringllm

The skill description claims 'production-grade AI trading agent' but does not disclose that it makes live network calls to external cryptocurrency exchanges. The compatibility field is 'Not specified' and does not mention network requirements. Users may not realize the skill connects to external services, fetches real-time market data, and depends on third-party exchange APIs.

SKILL.md

description: 'Production-grade AI trading agent...' - No mention of network usage, external dependencies, or exchange connections. compatibility: Not specified
Remediation: 1. Update description to explicitly mention network usage: 'Connects to cryptocurrency exchanges (Binance, Coinbase, Kraken) for real-time market data'. 2. Add compatibility field: 'Requires internet connection and access to cryptocurrency exchange APIs'. 3. Document external dependencies in prerequisites. 4. Add privacy notice about data sent to exchanges.

What is in the package

63 files, 703 KB. Show the list.
FileKindSize
PRODUCTION_READY_SUMMARY.mddoc6.8 KB
SKILL.mddoc9.0 KB
__main__.pyscript252 B
change_log.mddoc289 B
config.yamlconfig7.2 KB
example_usage.pyscript8.8 KB
llm_trading_assistant.pyscript17 KB
requirements.txtdoc119 B
run.shscript394 B
skill.pyscript9.8 KB
test_claude_code_compat.shscript1.9 KB
references/advanced-capabilities.mddoc4.7 KB
references/optimization.mddoc19 KB
references/output-interpretation.mddoc5.0 KB
references/protocol.mddoc13 KB
references/psychology.mddoc12 KB
references/user-guide.mddoc8.7 KB
scripts/adaptive_parameter_selector.pyscript14 KB
scripts/advanced_analytics.pyscript20 KB
scripts/advanced_validation.pyscript22 KB
scripts/backtest_validator.pyscript17 KB
scripts/backtester.pyscript20 KB
scripts/config.pyscript16 KB
scripts/correlation_analyzer.pyscript18 KB
scripts/historical_accuracy_tracker.pyscript15 KB
scripts/market_context_analyzer.pyscript16 KB
scripts/pattern_recognition.pyscript29 KB
scripts/pattern_recognition_refactored.pyscript15 KB
scripts/system_health_monitor.pyscript15 KB
scripts/trading_agent.pyscript19 KB
scripts/trading_agent_enhanced.pyscript34 KB
scripts/trading_agent_refactored.pyscript14 KB
scripts/trading_agent_v2.pyscript33 KB
tests/test_advanced_validation.pyscript14 KB
tests/test_core_modules.pyscript13 KB
tests/test_refactored_components.pyscript15 KB
tests/test_trading_agent.pyscript11 KB
tests/test_validation_comprehensive.pyscript11 KB
references/technical-docs/BACKTESTING_GUIDE.mddoc9.5 KB
references/technical-docs/BUG_ANALYSIS_REPORT.mddoc13 KB
references/technical-docs/CLAUDE_CODE_USAGE.mddoc7.1 KB
references/technical-docs/ENHANCEMENTS.mddoc13 KB
references/technical-docs/FIXES_APPLIED.mddoc8.5 KB
references/technical-docs/ORGANIZATION_REPORT.mddoc12 KB
scripts/analysis/__init__.pyscript79 B
scripts/indicators/__init__.pyscript161 B
scripts/indicators/calculator.pyscript7.0 KB
scripts/market/__init__.pyscript230 B
scripts/market/data_provider.pyscript5.2 KB
scripts/market/multi_source_aggregator.pyscript14 KB
scripts/market/scanner.pyscript7.9 KB
scripts/patterns/__init__.pyscript577 B
scripts/patterns/candlestick_patterns.pyscript11 KB
scripts/patterns/chart_patterns.pyscript22 KB
scripts/patterns/market_regime.pyscript11 KB
scripts/patterns/support_resistance.pyscript11 KB
scripts/patterns/trend_analyzer.pyscript11 KB
scripts/patterns/volume_analyzer.pyscript11 KB
scripts/risk/__init__.pyscript154 B
scripts/risk/position_sizer.pyscript8.2 KB
scripts/signals/__init__.pyscript233 B
scripts/signals/generator.pyscript6.4 KB
scripts/signals/recommender.pyscript9.2 KB

Environment variables referenced

ANTHROPIC_API_KEY DIR OPENAI_API_KEY

Package contents recorded 2026-10-22. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources