Back to skill

Security audit

Lottery

Security checks for vulnerabilities and agentic risk

Overview

This lottery helper is low-impact and transparent about its commands and local storage, but some commands appear buggy or incomplete.

This skill looks safe to install from a security perspective, but treat it as a simple and possibly unfinished helper: verify generated picks and do not rely on its check, history, or stats commands for accurate lottery validation.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The manifest says the skill can check results, but the cmd_check function only echoes the provided inputs instead of comparing numbers or determining any match outcome. This is a direct mismatch between the claimed purpose and the actual implemented behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The manifest frames the skill as a generator/checker for lottery draws, which implies ephemeral number generation and result comparison. The script creates a local data directory and implements history/stats features, expanding behavior into local data storage and tracking that is not reflected in the stated description.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
80% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · scripts/script.sh (reported line 9)May include surrounding context.

sh
DATA_DIR="$HOME/.local/share/lottery"
mkdir -p "$DATA_DIR"

#
#
#
#

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

For a skill described as generating lottery numbers and checking results, maintaining and exposing historical pick logs and aggregate stats is not an obvious requirement. This introduces a stateful tracking capability beyond the manifest's narrow user-facing purpose.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.