Back to skill

Security audit

Casino Bonus Hunter

Security checks for vulnerabilities and agentic risk

Overview

The skill is not malware, but it overstates live casino scanning and can produce misleading gambling recommendations from static, unverified data while running on a schedule.

Review before installing. Treat the rankings as a static sample calculation, not a live scan of current casino offers or a reliable financial recommendation. If installed, keep the scheduled run and BONUS_OUTPUT_FILE path under your control, and independently verify bonus terms, wagering rules, reputation, and legality before acting on any result.

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
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (9)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill materially overstates its capabilities, claiming to scan 30+ casinos, calculate reputation-adjusted EV, and produce ranked results, while the analyzed behavior does not actually fetch external data or implement the advertised logic. This can mislead users into trusting fabricated or incomplete gambling recommendations, creating integrity and decision-making risk, especially where money is involved.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest describes an active scanner over online casinos, which implies collecting current bonus data from external sources. In the implementation, all casino and bonus data are statically embedded in the BONUSES list, with no network access or scraping logic, so the behavior is materially narrower than claimed.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill emits rating strings "BON", "MOYEN", "FAIBLE", and "NEGATIF", which impose a French locale in user-visible output. The file does not offer language choice or explain why French output is required, which violates the language/locale policy criterion.

Content

No source excerpt is available for this finding.

Tainted flow: 'out_file' from os.environ.get (line 155, credential/environment) → open (file write)

Medium
Category
Data Flow
Confidence
95% confidence
Finding

The code takes BONUS_OUTPUT_FILE directly from the environment and passes it to open(..., "w") without validation. In an agent or shared runtime, an attacker who can influence environment variables could cause arbitrary file overwrite within the process's permissions, potentially clobbering configuration, logs, or other sensitive files.

Content

Scanner excerpt · casino_bonus_hunter.py (reported line 156)May include surrounding context.

python
}

    out_file = os.environ.get("BONUS_OUTPUT_FILE", "/tmp/casino_bonuses.json")
    with open(out_file, "w") as f:
        json.dump(output, f, indent=2)

    print(f"\nCasino Bonus Hunter — {len(results)} bonuses ranked by EV (adjusted for reputation)")

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The function documentation says net EV should deduct any required deposit, but the implementation sets ev_net equal to ev_gross and ignores deposit_required entirely. In a gambling decision-support skill, this can systematically overstate bonus profitability and mislead users into risking real money on offers that are materially worse than advertised.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Low
Category
Not specified by scanner
Confidence
85% confidence
Finding

The manifest says the skill outputs a ranked list so a user knows which bonus to hunt next, which suggests returning/displaying results. The code additionally writes JSON to an environment-controlled filesystem path, which is extra behavior not disclosed in the description.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

This code writes results to a path from BONUS_OUTPUT_FILE, defaulting to /tmp/casino_bonuses.json, but there is no preceding comment, docstring warning, or confirmation indicating that the skill will create or overwrite a file. For code files, file writes should have some visible disclosure unless clearly warned elsewhere.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

This file contains user-facing natural-language text in French in the module docstring and function documentation, but it does not indicate that the skill is French-only or provide any user opt-in for language preference. Under the policy, forcing a specific language without user choice is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.