baoyu-post-to-weibo

Warn

Audited by Gen Agent Trust Hub on Aug 19, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill makes extensive use of the child_process module to execute system commands across different platforms. This includes running swift on macOS, powershell.exe on Windows, and xdotool or ydotool on Linux to perform UI and clipboard operations.
  • Evidence in scripts/copy-to-clipboard.ts and scripts/paste-from-clipboard.ts.
  • [DYNAMIC_EXECUTION]: The skill dynamically generates and executes scripts at runtime.
  • scripts/copy-to-clipboard.ts contains a hardcoded Swift source string that is written to a temporary file and executed using the swift command to handle image and HTML clipboard data on macOS.
  • scripts/paste-from-clipboard.ts dynamically assembles and executes AppleScript (via osascript) and PowerShell commands to simulate the 'Paste' (Cmd+V/Ctrl+V) keystroke.
  • The skill uses the Chrome DevTools Protocol (CDP) Runtime.evaluate method to execute arbitrary JavaScript within the browser context for automating the Weibo web interface.
  • [EXTERNAL_DOWNLOADS]: The SKILL.md instructions and scripts/weibo-utils.ts use npx -y bun to run scripts. This command will automatically download and install the Bun runtime from the official registry if it is not already present on the system.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-supplied data through Markdown files.
  • Ingestion points: Markdown files are read and parsed in scripts/weibo-article.ts and scripts/md-to-html.ts.
  • Boundary markers: No explicit boundary markers or 'ignore' instructions are used when interpolating content into the HTML template or browser editor.
  • Capability inventory: The skill has capabilities to write files, control the browser, and simulate keystrokes.
  • Sanitization: Content is processed by the baoyu-md library, but the resulting HTML is directly injected into the browser's editor, which could lead to unexpected behavior if the source Markdown is malicious.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Aug 19, 2026, 01:13 AM