Back to skill

Security audit

polymarket-btc-up-down-trader

Security checks for vulnerabilities and agentic risk

Overview

This is a clearly disclosed automated Polymarket trading skill with real-funds risk when run live, but its sensitive behavior matches its stated purpose and is user-controlled.

Install only if you understand that --live can place irreversible real-money Polymarket trades. Start in dry run, keep position and daily-budget settings conservative, avoid exporting WALLET_PRIVATE_KEY unless you need external-wallet live trading, and review any cron setup because it will automate repeated live decisions.

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
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (4)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill instructs users to install an SDK, use networked services, and export sensitive environment variables such as a wallet private key, but it does not declare any explicit tool scope or permissions boundary. That omission increases the chance that an agent or runtime grants broader access than intended, making secret exposure or unintended live trading more likely if the skill is executed in an automated environment.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The skill transmits trading-signal requests to an external third party, Binance, outside the primary Simmer/Polymarket data plane. Even though no API key is sent in this call, it creates an unintended external dependency that can leak strategy usage metadata, undermine replay guarantees, and let an external service influence live trade decisions through manipulated or unavailable data.

Content

Scanner excerpt · strategy.py (reported line 504)May include surrounding context.

python
# ---- legacy LIVE-ONLY direct path (never reached under replay) ----
    interval = "1m"
    limit = max(lookback_minutes + 1, 5)
    url = f"https://api.binance.com/api/v3/klines?symbol=BTCUSDT&interval={interval}&limit={limit}"
    data = _api_request(url, timeout=10)
    if not data or isinstance(data, dict):
        return None, None, None

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · strategy.py (reported line 777)May include surrounding context.

python
return pos[name]
        return default
    for name in names:
        val = getattr(pos, name, None)
        if val is not None:
            return val
    return default

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The manifest describes a BTC direction trading skill with entry and exit discipline, but this file also exposes a --set KEY=VALUE path that writes persistent configuration changes via update_config. Persistently modifying local skill configuration is not an obvious requirement of carrying out a trade scan or exit monitor, and it broadens the skill from trading logic into local state administration.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.