Back to skill

Security audit

Polymarket Whale Tracker

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Polymarket reporting script with some hardening gaps but no hidden credential access, trading execution, persistence, or destructive behavior.

Install in a virtual environment, review the unpinned dependency before use, and treat the terminal output as advisory trading information from external APIs. Avoid running watch mode in a terminal that permits risky control-sequence features unless the script is updated to sanitize remote text.

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

T08 · Insecure Dependencies

Note
Location
SKILL.md:33
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
whale_tracker.py:103
Finding

Terminal Control-Sequence Injection Through Unsanitized API Data

Content
View full analysis
10} {'Avg Price':>10} {'Curr Price':>10} {'PnL':>10} Market") print(f" {'-------':<8} {'----':>10} {'---------':>10} {'----------':>10} {'---':>10} ------") for p in sorted(positions, key=lambda x: abs(float(x.get("size", 0) or 0)), reverse=True)[:15]: try: outcome = p.get("outcome", "?")[:6] size = float(p.get("size") or p.get("currentValue") or 0) avg_price = float(p.get("avgPrice") or p.get("averagePrice") or 0) curr_price = float(p.get("curPrice") or p.get("currentPrice") or p.get("price") or 0) pnl = (curr_price - avg_price) * size if avg_price and curr_price else 0 market = p.get("title") or p.get("market") or p.get("conditionId", "")[:50] if not market or len(market) < 10: market = get_market_info(str(p.get("conditionId", ""))) print(f" {outcome:<8} {size:>10.2f} {avg_price:>10.3f} {curr_price:>10.3f} {pnl:>+10.2f} {str(market)[:55]}") ``` Recent-trade data is also printed without sanitization: ```python if trades: print(f"\n Recent trades:") for t in trades[:5]: side = t.get("side", "?") size = float(t.get("size") or 0) price = float(t.get("price") or 0) market = t.get("title") or t.get("market", "")[:50] ts = t.get("timestamp") or t.get("createdAt", "")[:16] ...[truncated 2993 chars]
Remediation
View remediation
Vulnerability Patterns
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (1)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill advertises and relies on network access ('fetches the top 20 traders', installs and uses requests) but does not declare any explicit tool scope or permissions in the manifest. This creates an authorization and transparency gap: an agent or reviewer cannot easily determine or constrain what external access the skill needs, increasing the risk of unintended outbound requests, data exfiltration, or use in environments that assume least privilege.

Content

No source excerpt is available for this finding.