Back to skill

Security audit

流

Security checks for vulnerabilities and agentic risk

Overview

This skill appears to be a live-stream script generator, but it asks for broad read, write, and command-execution capabilities without clear limits or need.

Review carefully before installing. Use it only in a sandboxed workspace, do not expose secrets or unrelated files, and require explicit approval before any file write or command execution. For normal live-stream script drafting, a version without read/write/exec permissions would be more appropriate.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:23
Finding

Excessive Tool Permissions for a Text-Generation Skill

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 23-26
Vulnerability Type: Excessive read, write, and command-execution permissions
Risk Level: Medium

Vulnerable configuration:

yaml
tools:
- read
- exec
- write

Technical Analysis

The skill is documented as a live-stream script generator whose primary function is producing text from user-supplied product, audience, and topic information. This function does not inherently require arbitrary filesystem access or operating-system command execution.

Nevertheless, the skill requests read, write, and exec capabilities. In particular, exec can provide access to system commands, while read and write may expose or modify files available to the hosting agent. This violates the principle of least privilege and unnecessarily increases the consequences of prompt injection, malicious user input, agent misuse, or future changes to the skill instructions.

The document includes general guidance stating that only allowlisted commands should be executed and that user input should not be concatenated into command-line arguments. However, no enforceable command allowlist, path restriction, argument validation mechanism, or execution sandbox policy is defined in the reviewed project. The package contains only SKILL.md, so there is no local implementation demonstrating that these restrictions are technically enforced.

Attack Path

  1. The hosting agent loads the skill and grants the tool capabilities declared in its metadata.
  2. An attacker supplies crafted content to the live-stream script workflow, potentially containing prompt-injection instructions.
  3. The crafted input attempts to persuade the agent to use the unnecessary read, write, or exec capability rather than merely generate text.
  4. If the agent does not independently enforce strict tool authorization, it may read accessible files, overwrite files, or execute commands under ...[truncated 958 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the declared tools if the skill only generates live-stream text.
  2. Declare only the minimum capability required by the host platform, ideally no external tools for ordinary text generation.
  3. If file-based input or output is essential, replace broad filesystem access with a narrowly scoped interface restricted to a dedicated workspace directory.
  4. If command execution is genuinely required for a documented feature, expose fixed operations through a constrained wrapper rather than granting general exec access.
  5. Enforce a command allowlist, fixed executable paths, strict argument schemas, timeout and resource limits, shell-free process invocation, and rejection of user-controlled command fragments.
  6. Run the skill in a sandbox under a low-privilege account with no access to credentials, sensitive environment variables, private keys, or unrelated project files.
  7. Require explicit user confirmation before any filesystem mutation or command execution.
  8. Add automated tests verifying that untrusted content cannot trigger tool calls and that generated responses cannot reveal local files or environment values.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Vague Triggers

High
Category
Not specified by scanner
Confidence
94% confidence
Finding

An overly broad and inconsistent invocation description can cause an agent or user to apply the skill outside its intended scope, especially when the skill also advertises exec, read, and write capabilities. In practice, scope ambiguity increases the chance of unsafe operational use, unexpected tool invocation, or processing sensitive inputs under false assumptions about what the skill is meant to do.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

Lines L009-L010 explicitly instruct using the skill for design-oriented tasks such as UI design, poster production, and brand visuals, while the surrounding summary, title, features, scenarios, and inputs all describe generating live-stream scripts and sales talk tracks. This is an active contradiction in the skill documentation rather than a mere omission.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description explicitly states '支持中文交互' as part of the usage guidance, while the document does not offer language choice or explain that the skill is limited to a Chinese-only region-specific context. This can violate language/locale policy by imposing a language expectation without user opt-in.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill documents command execution, file writes, and API key handling but does not present a clear upfront warning about side effects, permission boundaries, or what actions may occur on the host system. In an agent environment with exec/write tools enabled, this can lead users to authorize or trigger state-changing operations without informed consent, increasing the risk of unintended file changes, misuse of credentials, or unsafe command execution.

Content

No source excerpt is available for this finding.