Back to skill

Security audit

Baoyu Post To Weibo

Security checks for vulnerabilities and agentic risk

Overview

This Weibo posting skill is mostly coherent, but it needs Review because it combines browser and clipboard automation with unpinned runtime downloads, an undisclosed PlantUML data flow, and an automatic broad Chrome-kill recovery step.

Review this skill before installing. It is intended to fill Weibo posts for manual publishing, but it can control Chrome through CDP, use a saved Weibo browser session, read the Markdown and media files you provide, manipulate the system clipboard, and send paste keystrokes. Use it only on a machine/profile where that is acceptable, avoid confidential PlantUML blocks unless remote rendering is removed or pointed to a trusted server, and prefer installing a trusted Bun runtime yourself instead of relying on the npx fallback.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T08 · Insecure Dependencies

Error
Location
scripts/weibo-utils.ts:117
Finding

Unpinned Runtime Package Is Automatically Downloaded and Executed

Content
View full analysis
.ts` 3. Replace all `{baseDir}` in this document with the actual path 4. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun ``` ### Technical Analysis The helper invokes `npx -y bun` without specifying an exact package version or enforcing a lockfile and integrity hash. The `-y` option suppresses confirmation, allowing `npx` to resolve, download, and execute the package automatically. Consequently, the effective executable is not completely fixed to the code that was audited. Its behavior can change according to the configured package registry, package ownership, package version resolution, local npm configuration, or a future compromised package release. This path is used by the clipboard helpers during ordinary article composition, so the exposure is not limited to an optional development command. ### Attack Path 1. A user asks the Skill to compose a Weibo article containing HTML or images. 2. The article workflow calls `copyHtmlToClipboard`, `copyImageToClipboard`, or `pasteFromClipboard`. 3. These functions call `runBunScript`. 4. `runBunScript` executes `npx -y bun` without an exact version or integrity requirement. 5. If package resolution or the configured registry has been compromised, `npx` downloads and executes atta ...[truncated 790 chars]
Remediation
View remediation

other

Warning
Location
scripts/vendor/baoyu-md/src/extensions/plantuml.ts:122
Finding

PlantUML Diagram Source Is Disclosed to an External Rendering Service

Content
View full analysis
): string { const encoded = encodePlantUML(code) const formatPath = options.format === `svg` ? `svg` : `png` return `${options.serverUrl}/${formatPath}/${encoded}` } ``` The resulting URL is fetched: ```ts async function fetchSvgContent(svgUrl: string): Promise { try { const response = await fetch(svgUrl) if (!response.ok) { throw new Error(`HTTP ${response.status}`) } const svgContent = await response.text() // 移除SVG根元素的固定尺寸,使其响应式 return svgContent // 移除width和height属性 .replace(/(]*)\swidth="[^"]*"/g, `$1`) .replace(/(]*)\sheight="[^"]*"/g, `$1`) // 移除style中的width和height .replace(/(]*style="[^"]*?)width:[^;]*;?/g, `$1`) .replace(/(]*style="[^"]*?)height:[^;]*;?/g, `$1`) } catch (error) { console.warn(`Failed to fetch SVG content from ${svgUrl}:`, error) return `
PlantUML图表加载失败
` ...[truncated 2819 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:146
Finding

Automatic Troubleshooting Instruction Terminates Unrelated Chrome Debugging Sessions

Content
View full analysis
/dev/null; pkill -f "Chromium.*remote-debugging-port" 2>/dev/null; sleep 2 ``` **Important**: This should be done automatically -- when encountering this error, kill Chrome CDP instances and retry the command without asking the user. ``` ### Technical Analysis The two `pkill -f` commands match process command lines globally within the executing user's process scope. They are not restricted to the browser profile, process identifier, or debugging port created by this Skill. The instruction explicitly directs the Agent to run the commands automatically and without user confirmation. As a result, a routine connection failure authorizes destructive action against unrelated Chrome or Chromium CDP sessions. This exceeds least privilege because the project already has profile-aware process handling in `scripts/weibo-utils.ts`. No privilege escalation to another operating-system account is demonstrated. The issue is unauthorized interference with unrelated processes accessible to the current user. ### Attack Path 1. The Weibo script encounters a debug-port connection failure or an error matching the documented condition. 2. The Agent follows the mandatory troubleshooting instruction without asking the user. 3. `pkill -f` enumerates and terminates every matching Chrome or Chromium process owned by the executing user. 4. Independent browser automation, development debugging, test infrastructure, or another Agent's CDP session is terminated. 5. The Skill retries after disrupting those unrelated ...[truncated 833 chars]
Remediation
View remediation
Vulnerability Patterns
  • 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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (90)

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The skill description understates sensitive behaviors: it is framed as Weibo posting, but the documentation also reveals clipboard manipulation, browser control, local file access, and desktop automation. Even if those actions support the workflow, hiding or omitting them undermines informed consent and can cause the skill to be granted or invoked in contexts where those extra capabilities are unsafe.

Content

No source excerpt is available for this finding.