Back to skill

Security audit

直播脚本生成免费版

Security checks for vulnerabilities and agentic risk

Overview

This skill mainly generates livestream scripts, but it asks for broader tool access and has mismatched activation instructions that could make it run in unrelated situations.

Review before installing. Use only if you are comfortable granting the host agent filesystem and command capabilities for a script-writing helper, and prefer a version with narrow livestream-only triggers and no general exec/write access.

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:5
Finding

Unnecessary Filesystem and Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 5 and 20-23
Vulnerability Type: Excessive tool permissions and inconsistent capability declarations
Risk Level: Medium

Vulnerable Configuration

yaml
allowed-tools: read exec
yaml
tools:
  - exec
  - read
  - write

Technical Analysis

The skill generates live-stream scripts through natural-language instructions and templates. It is explicitly described elsewhere in the document as a pure Markdown skill, so its primary function does not require arbitrary command execution or access to local files.

Nevertheless, the manifest requests exec, read, and write. These capabilities exceed the least privileges required for text generation:

  • exec may permit arbitrary local command execution.
  • read may expose files available to the hosting agent.
  • write may allow modification or creation of local files.
  • The declarations are inconsistent: write is listed under tools but omitted from allowed-tools. Platform-specific interpretation could result in ambiguous or unexpectedly broad permissions.

The document recommends using only allowlisted commands and avoiding command construction from user input, but this narrative recommendation does not technically restrict the declared exec capability.

Attack Path

  1. A platform loads the skill and grants one or more of the declared exec, read, or write capabilities.
  2. The skill processes attacker-controlled or otherwise untrusted live-stream content.
  3. Malicious instructions embedded in that content attempt to induce the agent to invoke an unnecessary tool.
  4. If the agent follows those instructions without adequate tool-level authorization, it could read accessible local files, modify files, or execute commands under the agent process identity.
  5. The resulting access would be limited by the operating-system privileges and sandbox controls applied to t ...[truncated 996 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write from the skill manifest because ordinary script generation requires no external tools.
  2. Keep allowed-tools and tools consistent, or use only the canonical permission field supported by the target platform.
  3. If output persistence is an essential feature, replace general filesystem access with a narrowly scoped save operation restricted to a dedicated output directory.
  4. If command execution becomes strictly necessary, expose only a fixed wrapper with an explicit command allowlist. Do not provide a general shell, and do not interpolate user-controlled values into command strings.
  5. Require explicit user approval for any sensitive operation and enforce restrictions at the tool or sandbox layer rather than relying on instructions in Markdown.
  6. Run the skill with minimal operating-system privileges and deny access to secrets, unrelated project files, network resources, and sensitive directories.
  7. Add automated manifest validation that rejects unnecessary capabilities and detects discrepancies between separate permission declarations.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (9)

Vague Triggers

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description says to use the skill whenever there is a need to '提升效率、自动化流程、批量处理、工作流优化', which are very broad phrases that overlap with many unrelated tasks. This makes it unclear when this live-stream script skill should activate versus other automation or productivity skills.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The manifest consistently describes a livestream script generation tool, but the trigger condition says to use it when data analysis, reporting, statistics, and visualization are needed. Those are materially different purposes and contradict the stated product scope of generating presenter scripts and talking points.

Content

No source excerpt is available for this finding.

Vague Triggers

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The '触发条件' section says to use the skill for '数据分析、报表生成、统计洞察、数据可视化', which does not match a live-stream script generation tool. This ambiguity could cause unintended invocation for analytics tasks that the skill is not designed to handle.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The description states '支持中文交互', and the skill content presents Chinese as the expected interaction language without offering opt-in or alternatives. Per the policy, forcing a specific language without user choice can be a locale/language policy violation unless it is clearly justified as region-specific.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill grants exec capability to a content-generation workflow that should normally only require text processing. Unnecessary command execution increases the attack surface: if an agent follows future prompts, examples, or extensions that route user-controlled content into shell commands, the skill could be leveraged for arbitrary local command execution.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The manifest description frames the skill as generating livestream scripts for individual streamers, while the body expands it into generic operational workflows with configuration management and output export/save/convert actions. This is a semantic scope expansion beyond straightforward script generation, especially when paired with executable tool access and shell usage examples.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The dependency section says the skill works without networking and needs no external API key, yet nearby sections discuss network errors, ping-based connectivity checks, HTTPS, SSL certificates, and API key leakage controls. This materially broadens the implied runtime behavior beyond a local script-writing skill.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The dependency section claims '无需联网' and '免费版无需外部 API Key', but the error-handling and safety sections discuss connection timeouts, ping tests, firewall/proxy checks, HTTPS, SSL certificates, and API-key leakage prevention. These statements actively point in different directions about whether the skill is local-only or networked.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The file classifies itself as a pure Markdown instruction/template skill, yet it instructs use of environment variables and discusses API key handling. For a local script-generation template, this capability is not an obvious requirement and suggests broader runtime/environment interaction than the stated purpose requires.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.