Back to skill

Security audit

B站创作助手免费版

Security checks for vulnerabilities and agentic risk

Overview

This Bilibili copywriting skill is not overtly malicious, but it asks for unnecessary command and file permissions and gives broader instructions than its stated text-generation purpose needs.

Review before installing. The useful part is ordinary Bilibili title, description, and tag drafting, but the skill should not need shell execution or file write access. Prefer installing only if your host can deny exec/write permissions or if the publisher narrows the manifest and removes unrelated automation guidance.

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

Excessive and Inconsistent Tool Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 5 and 17-20
Vulnerability Type: Excessive tool permissions and least-privilege violation
Risk Level: Medium

Vulnerable Code

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

Technical Analysis

The skill requests shell execution and filesystem access even though its stated purpose is to generate Bilibili titles, descriptions, and tags through the host language model. The document itself later describes the skill as pure Markdown whose core functionality does not require command execution.

These permissions exceed the legitimate requirements of content generation. The declarations are also inconsistent: write is present under tools but absent from allowed-tools. Depending on how a host resolves conflicting metadata, it could grant the broader permission set.

The declarations do not independently execute malicious operations, and the audited file contains no instruction that actively abuses the permissions. Nevertheless, granting them creates an avoidable privilege boundary failure: malicious user content, indirect prompt injection, or unintended agent behavior could potentially invoke tools that the skill does not need.

Attack Path

  1. A host loads SKILL.md and interprets either or both tool declarations.
  2. The host grants the skill exec, read, and potentially write capabilities.
  3. Attacker-controlled content or an indirect prompt injection influences the agent while the skill is active.
  4. The influenced agent invokes the unnecessarily available tools.
  5. Subject to host sandboxing and process permissions, the invocation could read accessible files, modify writable files, or execute local commands.

This is a conditional exploitation path because no direct tool-abuse instruction was identified in the audited skill.

Impact Assessment

Potential privileges include command ...[truncated 490 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove exec, read, and write because the documented content-generation functionality can be performed directly by the language model.
  2. Declare an empty tool set, or omit tool permissions entirely if supported by the skill format.
  3. Maintain one authoritative permission field rather than conflicting allowed-tools and tools declarations.
  4. If a future feature genuinely requires a tool, grant only that specific tool and constrain its allowed operations, paths, arguments, and execution environment.
  5. Enforce host-side sandboxing, explicit user approval for sensitive operations, and denial by default for undeclared tools.
  6. Add automated manifest validation to reject inconsistent permission declarations and flag tools that are not justified by documented functionality.
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 (8)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The manifest description contains broad invocation guidance covering marketing copy, writing, title optimization, content creation, and automation workflows. Such vague routing criteria can cause the skill to be selected for many unrelated prompts, magnifying the effect of its inconsistent capabilities and any enabled tools.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill presents itself as a simple Bilibili text-generation helper, but the documentation expands its scope to generic create/query/modify/delete and save/export style operations. This capability inflation can mislead an agent into granting broader authority or invoking the skill in workflows beyond its stated purpose, increasing the chance of unintended file or task manipulation.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger condition is broad enough to overlap with generic writing, marketing, and content-creation requests, which may cause the skill to activate outside narrow Bilibili title/description/tag use cases. Over-broad activation increases the chance of accidental invocation and unintended access to tools or workflow influence.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The documentation introduces command execution and network troubleshooting guidance, including ping-based diagnostics, despite the skill being framed as a free Markdown-based copywriting helper. Unjustified references to shell and network operations can prompt an agent to use powerful tools unnecessarily, expanding the attack surface and risking command or network misuse.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill claims to be a pure Markdown/text-generation assistant, yet later sections discuss file parsing, API calls, data aggregation, and command execution scenarios unrelated to Bilibili copywriting. This mismatch can cause over-trust and inappropriate invocation in higher-risk automation contexts, potentially exposing data or enabling unnecessary tool use.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The manifest description states '支持中文交互', and the skill content is written as though Chinese is the fixed interaction language, without offering a user language choice. This can violate locale or language policy when a skill implicitly forces one language without opt-in or documented justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
85% confidence
Finding

The core function section describes the skill as providing '中文交互' but does not indicate that users may choose another language. Because no opt-in or regional justification is given, this reads as a fixed language constraint.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The skill states that its core functionality does not require exec, but elsewhere documents command-based operation and command-execution safeguards. This inconsistency can confuse orchestration logic or reviewers, making it easier for unnecessary privileged tools to remain enabled and later be abused.

Content

No source excerpt is available for this finding.