Back to skill

Security audit

Polymarket Mispricing Events

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed automated trading bot, but its live-trading authority is paired with weak matching and fail-open safety checks that users should review carefully before installing.

Install only if you intend to run an automated prediction-market trader and are comfortable granting a Simmer API key that can place scheduled trades. Use the sim venue first, avoid live credentials until fail-closed portfolio/context checks and stronger market matching are fixed, and consider pinning dependencies before deployment.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
mispricing_events.py:123
Finding

Market Safety Validation Fails Open When Context Retrieval Fails

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
mispricing_events.py:389
Finding

Portfolio Retrieval Failure Resets Position and Capital Safety State

Content
View full analysis
= MAX_POSITIONS` guard is evaluated using the fabricated zero count. 5. The scanner finds candidate signals and computes position sizes using the fabricated capital value. 6. Trades are submitted even if the account already has the maximum number of positions or lacks the assumed available capital. ### Impact Assessment The vulnerability can bypass account-level risk controls within the Skill. It may create positions beyond the configured maximum, produce incorrect Kelly sizing, ...[truncated 188 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
clawhub.json:5
Finding

Security-Critical Runtime Dependencies Are Not Version or Integrity Pinned

Content
View full analysis
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 skill is presented as a market-analysis strategy, but its behavior also includes trade execution, portfolio/position access, and market lookup through SimmerClient without corresponding declared permissions. That mismatch is dangerous because users may authorize what appears to be read-only analysis while the skill can perform state-changing financial actions and access account context.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill declares no explicit tool scope or permissions even though its documented behavior depends on environment-variable access and network/API access. In an agent system, missing capability declarations weaken reviewability and policy enforcement, making it easier for a skill to use sensitive resources without clear operator consent.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The module claims an edge based on consensus of 2+ prediction markets, but the trading logic permits execution with confidence >= 1, meaning one external source is enough. This mismatch is dangerous because operators may believe the strategy has stronger validation than it actually does, increasing the chance of unsafe autonomous trades based on thin evidence.

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 · mispricing_events.py (reported line 53)May include surrounding context.

python
# API endpoints
GAMMA_URL   = "https://gamma-api.polymarket.com"
CLOB_URL    = "https://clob.polymarket.com"
KALSHI_URL  = "https://api.elections.kalshi.com/trade-api/v2"
MANIFOLD_URL = "https://api.manifold.markets/v0"

# Caches (in-process, reset each run)

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 · mispricing_events.py (reported line 54)May include surrounding context.

python
GAMMA_URL   = "https://gamma-api.polymarket.com"
CLOB_URL    = "https://clob.polymarket.com"
KALSHI_URL  = "https://api.elections.kalshi.com/trade-api/v2"
MANIFOLD_URL = "https://api.manifold.markets/v0"

# Caches (in-process, reset each run)
_kalshi_cache  = None

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill description says trades should be confirmed by at least one external platform, but the implementation accepts a single fuzzy-matched external market with a low similarity threshold and immediately treats it as confirmation. In an automated trading agent, weak entity matching can cause the bot to trade unrelated or only loosely related markets, creating avoidable financial loss from false signals.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
79% confidence
Finding

This code file places live or simulated trades automatically via client.trade(...), which is a safety-critical operation affecting portfolio state. While the module docstring describes the bot's trading purpose and runtime logs record activity, there is no explicit user confirmation or caution in this file warning that execution will submit trades when signals are found.

Content

No source excerpt is available for this finding.