Back to skill

Security audit

Video Recommendation

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent video recommendation skill, with the main caution that it may use recent chat context and its refinement notes mention manually recording user requests.

Install this if you want context-aware video recommendations and are comfortable with the agent using recent chat and web browsing to find links. Avoid putting sensitive private details in recommendation requests, and do not keep raw user requests in the skill directory unless they are explicitly approved and sanitized.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
references/iteration-notes.md:3
Finding
Persistent Plaintext Logging of User Requests## Vulnerability Details **File Location**: `references/iteration-notes.md`, lines 3-12 **Vulnerability Type**: Plaintext storage of potentially sensitive user data **Risk Level**: Medium ### Vulnerable Code Snippet ```markdown Use this file to record what the skill gets wrong in real usage. ## Things worth logging - user request - what was recommended - what worked - what felt off - whether the recommendations were too obvious, too niche, too shallow, or too random - any source-quality issue ``` ### Technical Analysis The guidance instructs maintainers or agents to record raw user requests in a persistent project file. Recommendation requests can include private conversation context, personal preferences, confidential project details, identifiers, or credentials accidentally supplied by a user. No safeguards require user consent, data minimization, redaction, access control, retention limits, secure storage, or deletion. Because the designated log is within the publishable skill directory, its contents may subsequently enter version control or a distributed package. This is an insecure data-handling practice rather than evidence of intentional exfiltration. The audit found no mechanism that automatically writes the data or transmits it externally. ### Attack Path 1. A user submits a recommendation request containing private or confidential context. 2. A maintainer or capable agent follows the refinement guidance in `references/iteration-notes.md`. 3. The raw request is copied into that persistent file. 4. The project directory is committed to version control, shared with collaborators, backed up, or published. 5. Anyone with access to the resulting repository or package can read the retained user content. ### Impact Assessment An attacker cannot directly gain system privileges through this issue. The affected scope is the confidentiality of logged user content. Potential exposure includes personal interests, conversation history, project informati ...[truncated 210 chars]
Remediation
## Remediation Suggestions 1. Remove the instruction to store raw user requests by default. 2. Record anonymized failure categories and aggregate quality metrics instead of conversation text. 3. Require explicit informed consent before retaining any request content. 4. Redact personal identifiers, credentials, tokens, confidential project details, and unnecessary conversational context. 5. Store authorized diagnostic records outside the publishable skill directory in an access-controlled location. 6. Define a short retention period and a documented deletion process. 7. Add the diagnostic storage location to version-control and packaging exclusions. 8. If exact examples are necessary, use synthetic requests or sanitized excerpts and require human review before storage or publication.
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (2)

Vague Triggers

Medium
Confidence
94% confidence
Finding
The trigger phrases are very broad, common user utterances such as 'what should I watch?' and 'recommend some videos,' which can cause the skill to activate in many ordinary conversations beyond clearly scoped recommendation requests. This is primarily a safety and routing issue: over-broad activation can cause unintended tool use, unnecessary browsing, or inappropriate context carryover from recent chat when the user did not explicitly want this skill.

Natural-Language Policy Violations

Low
Confidence
87% confidence
Finding
The prompt text "给我一些英文视频" explicitly requests English videos, which reflects a language preference constraint in the skill's natural-language test cases. Because the file does not indicate this is optional, user-chosen, or justified by a region-specific requirement, it can be read as endorsing a fixed language constraint without opt-in.

Static analysis

No suspicious patterns detected.