Back to skill

Security audit

Bilibili Helper

Security checks for vulnerabilities and agentic risk

Overview

This Bilibili content-writing skill is mostly a prompt-only helper, but it asks for broad file and command powers that do not fit its stated purpose.

Install only if your agent environment will ignore or tightly sandbox the declared read/write/exec tools. Treat outputs as draft marketing copy, manually check facts, platform rules, and sensitive-topic claims, and do not provide API keys or local file access for ordinary Bilibili content generation.

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

Excessive Filesystem and Command-Execution Permissions

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 33–36
Vulnerability Type: Excessive tool permissions and violation of least privilege
Risk Level: Medium

Vulnerable configuration:

yaml
tools:
- read
- exec
- write

Technical Analysis

The Skill declares unrestricted file-reading, file-writing, and command-execution tools even though its stated purpose is to generate Bilibili titles, descriptions, tags, publishing recommendations, and narration scripts. Those content-generation functions can be completed by the Agent's language model without access to the host filesystem or operating-system command execution.

Granting read, write, and especially exec expands the Skill's authority beyond its legitimate operational requirements. If the hosting Agent authorizes tools according to this declaration, untrusted or adversarial task content could influence the Agent into invoking these capabilities outside the intended content-generation workflow.

The document later advertises generic file processing, API integration, and command execution, but the reviewed package contains only SKILL.md; no implementation was present that constrains these operations through command allowlists, path restrictions, argument validation, or sandbox policies. The audit did not find instructions that directly exploit these permissions, so the issue is excessive exposure rather than evidence of an embedded malicious payload.

Attack Path

  1. The Skill is installed on an Agent platform that grants the tools declared in SKILL.md.
  2. The platform makes read, write, and exec available while the Skill processes a user request.
  3. An attacker supplies crafted content that attempts to redirect the Agent from content generation toward reading a local file, modifying data, or executing a system command.
  4. If the Agent follows the adversarial request and the platform lacks independent access controls, the unn ...[truncated 981 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove read, write, and exec from the declared tools because they are not required for language-model-based content generation.
  2. Prefer a tool-free Skill configuration for title, description, tag, script, and publishing-strategy generation.
  3. If command-line support is added later, expose a narrowly scoped purpose-built tool instead of general command execution.
  4. Enforce a fixed command allowlist and invoke programs without a shell. Pass validated arguments as separate values rather than constructing shell command strings.
  5. Validate operation names, script-length values, input sizes, and character sets before execution.
  6. Restrict any necessary file access to a dedicated workspace directory using canonical-path checks; deny traversal, symbolic-link escapes, and access to credentials or system paths.
  7. Run optional processing in a sandbox with minimal filesystem access, no unnecessary network access, resource limits, and a dedicated low-privilege identity.
  8. Require explicit user confirmation for security-sensitive operations and ensure the host platform independently enforces least privilege rather than trusting Skill text alone.
  9. Remove or revise unsupported documentation concerning generic file processing, API credentials, and command execution so that the documented capabilities match the actual implementation.
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 (7)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The description says to use the skill whenever the user needs marketing copy, writing content, title optimization, or content creation. These are broad, common requests that overlap with many unrelated everyday tasks, and the file does not provide clear trigger boundaries or exclusion examples beyond one narrow non-technical case.

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 '支持中文交互' as a fixed behavior, and elsewhere the file says the skill provides Chinese interaction and only supports Chinese generation. This is a locale/language restriction expressed in natural language without presenting user choice or an opt-in mechanism.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The guidance says to describe needs through natural language to the agent, but it does not define specific invocation phrases, boundaries, or conditions distinguishing this skill from other writing or content-generation skills. That ambiguity increases the chance of unintended activation from generic creative-writing requests.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill claims script content is based on public reliable sources and regularly updated, while elsewhere describing outputs as purely LLM-generated without external data integration. This can cause over-trust in factual accuracy and freshness, leading users to rely on generated content as if it were verified or current when it is not.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The documentation presents conflicting claims about the skill's capabilities: it says the skill cannot directly automate B站 actions, yet later advertises API connectivity, API keys, external service calls, and command execution. Such inconsistency can mislead an agent or user into granting broader trust or permissions than the skill's stated purpose requires, increasing the chance of unnecessary tool use or unsafe execution paths.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The FAQ explicitly says the engine '仅支持中文生成标题和简介', which imposes a language policy without opt-in or alternative selection. Under the policy criteria, forcing a specific language without user choice is a natural-language policy violation unless clearly justified as region-specific.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill declares broad file handling, API integration, information retrieval, and command execution capabilities unrelated to a narrow content-generation helper. Overbroad capability claims can induce an agent to invoke privileged tools outside the task's legitimate scope, creating a larger attack surface for command misuse, data exposure, or unintended external interactions.

Content

No source excerpt is available for this finding.