Back to skill

Security audit

Kalshi Fifa Soccer Trader

Security checks for vulnerabilities and agentic risk

Overview

This appears to be a real soccer-trading skill, but it needs Review because it combines live financial trading authority and wallet secrets with under-scoped dependencies and stealth browser scraping.

Install only after review. Use an isolated virtual environment, pin and verify simmer-sdk before use, keep SOLANA_PRIVATE_KEY unset until you intentionally run live trading, keep small caps, review ambiguous team aliases, and avoid or containerize the SoFIFA scraper unless you accept the stealth/no-sandbox risk.

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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:64
Finding

Security-Critical Trading SDK Is Installed Without Version or Integrity Pinning

Content
View full analysis
Remediation
View remediation
``` 2. Store Python dependencies in a committed lock or requirements file with SHA-256 hashes. 3. Instruct users to install with hash enforcement: ```bash pip install --require-hashes -r requirements.txt ``` 4. Verify the package publisher, source repository, release signatures, and dependency graph before updating. 5. Perform dependency updates through a reviewed pull request rather than resolving the latest package during installation. 6. Run the Skill in a dedicated virtual environment with only the credentials and filesystem permissions required for trading. ]]>

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/scrape_sofifa.mjs:115
Finding

Chromium Sandbox Is Disabled While Rendering Remote Web Content

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Note
Location
package-lock.json:158
Finding

Scraping Dependency Tree Contains Unsupported and Deprecated Packages

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (33)

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The code does not implement Kalshi trading, EA FC rating comparisons, bivariate Poisson modeling, market selection, bet automation, or edge calculation. Its primary purpose is roster ingestion and cache maintenance for World Cup squads from Wikipedia. While this could be supportive data infrastructure in a broader soccer analytics system, the chunk itself is materially different from the declared skill purpose and exposes undeclared external data access and file-update behavior unrelated to the stated trading/modeling functionality.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

This code chunk’s primary purpose is updating a local ratings dataset from a scraped SoFIFA JSON file. It reads sofifa_wc2026.json and ratings.json, canonicalizes team names, copies rating fields, reports missing teams, and writes back updated metadata. None of the declared end-user capabilities—trading on Kalshi, computing model-based probabilities, identifying mispriced markets, or automating bets—are present in this code. While maintaining EA FC ratings could be a supporting component of a larger soccer-trading system, the supplied chunk itself materially differs from the declared skill purpose.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The description claims a market-trading/analysis skill for Kalshi soccer markets, but the code shown does not perform trading, pricing, forecasting, model inference, or market selection. It only updates a ratings database by replacing team/player values in ratings.json and recalculating top11_avg_ovr. While EA FC ratings are related domain data that could support the described skill elsewhere, this specific code chunk’s actual purpose is dataset correction and maintenance, which is materially different from the declared primary purpose.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The declared description focuses on market analysis and trading soccer markets based on FIFA ratings and a bivariate Poisson model. The supplied code does not implement modeling, edge detection, or order placement. Instead, it reads account portfolio data and positions and displays balance and P&L/status information. While this could be a supporting utility within a broader trading skill, these account-monitoring capabilities are not represented in the declared description, and the code chunk’s primary purpose is materially different from the stated trading/modeling purpose.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1. Look up both teams' EA FC OVR in `ratings.json` (top ~200 clubs + all national teams)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/scrape_sofifa.mjs

Known Vulnerable Dependency: brace-expansion==1.1.15 — 3 advisory(ies): CVE-2026-13149 (brace-expansion: DoS via exponential-time expansion of consecutive non-expanding); CVE-2026-14257 (brace-expansion: DoS via unbounded expansion length causing an out-of-memory pro); CVE-2026-69152 (brace-expansion: DoS via unbounded intermediate arrays, bypassing the CVE-2026-1)

High
Category
Supply Chain
Confidence
92% confidence
Finding

brace-expansion 1.1.15 is flagged with multiple denial-of-service advisories involving pathological brace patterns that can trigger excessive CPU or memory consumption. Even as a transitive dependency, a vulnerable parser in automation tooling can be abused if untrusted patterns reach affected code paths, causing crashes or resource exhaustion in the skill runtime.

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill documents capabilities involving environment secrets, network access, and local file writes, but does not declare any explicit tool/permission scope. That makes it harder for a host platform to sandbox behavior and increases the risk of overbroad execution, especially because the skill handles sensitive material like API keys and a Solana private key.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The invocation text includes broad phrases like 'automate soccer bets' and 'find mispriced soccer outcomes,' which could cause the skill to trigger on generic gambling or automation requests beyond the intended narrow Kalshi/EA FC model context. Overbroad routing increases the chance that a high-risk, wallet-connected trading skill is invoked in situations where it should not be.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · SKILL.md (reported line 82)May include surrounding context.

md
4. **Complete KYC** (required for buys on Kalshi)
   - Verify at [dflow.net/proof](https://dflow.net/proof)
   - Check status: `curl "https://api.simmer.markets/api/proof/status?wallet=YOUR_SOLANA_ADDRESS"`

5. **Fund wallet**
   - SOL on Solana mainnet for gas (~0.05 SOL)

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest explicitly includes playwright-extra and puppeteer-extra-plugin-stealth, which are commonly used to evade bot detection and automate browsing in a less transparent way. In a trading skill, these dependencies increase the likelihood of undisclosed scraping, stealth login/session reuse, or automation against third-party controls, making the dependency choice security-relevant even though the lockfile alone does not prove misuse.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
80% confidence
Finding

The dependency set supports stealth browsing and persistent user-data handling, yet the manifest provides no indication of disclosure, consent, or limitation around those capabilities. In the context of an automated sports-trading skill, undisclosed stealth and session-persistence features raise risk of covert account automation, storage of authenticated state, and user-unaware interaction with trading platforms.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The aliases in this range include very broad triggers such as "city," which can match ordinary user language unrelated to Manchester City. In an agent setting, overly broad aliases can cause unintended skill activation or wrong-entity resolution, leading the system to place or recommend trades using the wrong market context.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The alias "paris" is broad and commonly used outside the PSG context, so it can trigger incorrect team selection from unrelated conversation. In a trading skill, that ambiguity can misroute analysis or actions toward the wrong market, which is more dangerous than a generic chatbot mistake because it may influence financial decisions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The alias "inter" is highly ambiguous and may appear in many non-team contexts or as a fragment of other words. That can cause false activation or incorrect mapping to Inter Milan, creating unsafe behavior in a market-trading workflow where entity precision is important.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The alias "sporting" is too generic to uniquely identify Sporting CP and can refer to general sports-related discussion or other clubs. Within a skill that may automate or guide trading actions, such ambiguity increases the chance of acting on the wrong subject and producing financially harmful outputs.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This script deliberately uses stealth browser tooling and browser fingerprint manipulation to evade Cloudflare/bot detection on a third-party site. In the context of a trading skill, that is not necessary for core functionality and creates legal, compliance, and operational risk by encouraging unauthorized scraping behavior that may violate site protections or terms of service.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill description says it finds trading edges on soccer markets, but the code also discovers/imports markets and can actively manage and liquidate existing positions via --import-markets and --manage-positions. That mismatch is security-relevant because users or orchestrators may grant broader permissions than they realize, enabling unexpected portfolio-changing actions beyond simple analysis.

Content

No source excerpt is available for this finding.