Back to skill

Security audit

webull-openapi

Security checks for vulnerabilities and agentic risk

Overview

This is a real Webull trading skill with disclosed purpose, but its code does not reliably enforce several safety controls before live financial actions.

Review this carefully before installing, especially for any account with live trading permission. Use sandbox-only credentials first, set WEBULL_ENVIRONMENT exactly to uat unless intentionally trading live, keep credentials and tokens outside the project directory, and do not rely on the advertised risk limits or confirmation text as a hard safety barrier for production orders.

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 (3)

T09 · Insecure Skill Coding Practices

Error
Location
webull_skill/trading/option_order.py:247
Finding

Configured Trading Limits Are Not Enforced Across All Mutating Order Paths

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
webull_skill/sdk_client.py:96
Finding

Invalid Environment Values Can Fall Through to Production SDK Endpoints

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
webull_skill/cli.py:1214
Finding

Documented User Confirmation Requirement Is Not Enforced by the CLI

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (72)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · .env.example (reported line 2)May include surrounding context.

text
# Webull OpenAPI Skill Configuration
# Copy this file to .env and fill in your credentials

# ==============================================================================
# Required: Webull API Credentials

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · .env.example (reported line 135)May include surrounding context.

text
# Webull OpenAPI Skill Configuration
# Copy this file to .env and fill in your credentials

# ==============================================================================
# Required: Webull API Credentials

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · .env.example (reported line 136)May include surrounding context.

text
# Webull OpenAPI Skill Configuration
# Copy this file to .env and fill in your credentials

# ==============================================================================
# Required: Webull API Credentials

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · .env.example (reported line 140)May include surrounding context.

text
# Webull OpenAPI Skill Configuration
# Copy this file to .env and fill in your credentials

# ==============================================================================
# Required: Webull API Credentials

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · .env.example (reported line 141)May include surrounding context.

text
# Webull OpenAPI Skill Configuration
# Copy this file to .env and fill in your credentials

# ==============================================================================
# Required: Webull API Credentials

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 135)May include surrounding context.

1. Configure Credentials

bash
cp .env.example .env
# Edit .env — fill in WEBULL_APP_KEY and WEBULL_APP_SECRET
# For Webull Japan, also set: WEBULL_REGION_ID=jp

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 487)May include surrounding context.

1. Configure Credentials

bash
cp .env.example .env
# Edit .env — fill in WEBULL_APP_KEY and WEBULL_APP_SECRET
# For Webull Japan, also set: WEBULL_REGION_ID=jp

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · README.md (reported line 431)May include surrounding context.

Token Expired

bash
rm -rf conf/token.txt        # macOS / Linux
del conf\token.txt            # Windows
webull-skill auth

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared description presents a full-featured trading and market-data skill for Webull, but the supplied code chunk does not implement trading, market data retrieval, account/position management, regional support, or risk controls. Instead, it provides an audit logger focused on recording events and sanitizing sensitive values before logging. Audit logging may be a supporting component of such a skill, but this chunk’s actual purpose is materially narrower and different from the declared primary purpose. Therefore this code chunk does not accurately represent the declared description.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

This chunk is a presentation/formatting module, not an execution or account-management module. It formats already-obtained data for accounts, positions, orders, market data, watchlists, fundamentals, and multiple asset classes, and adds region-aware disclaimers. Those behaviors partially align with the broad market-data/account-information theme of the description, but the declared purpose presents the skill as a full trading and account-management tool with configurable risk controls and broad regional support. None of those core capabilities are present in this code chunk. Because the code’s actual purpose is much narrower and omits several prominently declared capabilities, this is a description-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The description presents a comprehensive trading and market/account management skill, but this code chunk is narrowly focused on watchlist CRUD and watchlist instrument management. There is no evidence here of order placement, market data retrieval, account or position access, or configurable risk controls. While this chunk does interact with Webull data APIs and is plausibly part of a larger trading skill, the declared purpose does not accurately represent this specific code chunk’s behavior, and it omits the concrete watchlist-management capability that the code actually provides.

Content

No source excerpt is available for this finding.

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

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

md
Instrument queries, account/asset operations, and all order operations (stock, option, futures, crypto, event contracts).

For full action list, order JSON formats, replace rules, and order type references, see [Trading Guide](references/skill_trading.md).

### market-data

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

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

md
Instrument queries, account/asset operations, and all order operations (stock, option, futures, crypto, event contracts).

For full action list, order JSON formats, replace rules, and order type references, see [Trading Guide](references/skill_trading.md).

### market-data

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/skill_trading.md (reported line 452)May include surrounding context.

md
Instrument queries, account/asset operations, and all order operations (stock, option, futures, crypto, event contracts).

For full action list, order JSON formats, replace rules, and order type references, see [Trading Guide](references/skill_trading.md).

### market-data

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/llms_us.md (reported line 47)May include surrounding context.

md
- Fractional shares via entrust_type=AMOUNT
- Trading sessions: CORE, ALL, NIGHT

### Order Replace Rules (Futures)
- Market orders: only quantity can be modified
- Limit orders: order_type (to MARKET only), time_in_force, quantity, limit_price
- Stop orders: order_type (to MARKET only), time_in_force, quantity, stop_price

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 136)May include surrounding context.

md
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 488)May include surrounding context.

md
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/cli.py (reported line 7)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/cli.py (reported line 163)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/config.py (reported line 16)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/config.py (reported line 80)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/config.py (reported line 85)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/config.py (reported line 89)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/config.py (reported line 90)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · webull_skill/config.py (reported line 137)May include surrounding context.

python
Usage:
    webull-skill trading --action stock-snapshot --symbols AAPL
    webull-skill market-data --action stock-snapshot --symbols AAPL
    webull-skill auth --env-file .env
"""

from __future__ import annotations