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_processmodule to execute system commands across different platforms. This includes runningswifton macOS,powershell.exeon Windows, andxdotoolorydotoolon Linux to perform UI and clipboard operations. - Evidence in
scripts/copy-to-clipboard.tsandscripts/paste-from-clipboard.ts. - [DYNAMIC_EXECUTION]: The skill dynamically generates and executes scripts at runtime.
scripts/copy-to-clipboard.tscontains a hardcoded Swift source string that is written to a temporary file and executed using theswiftcommand to handle image and HTML clipboard data on macOS.scripts/paste-from-clipboard.tsdynamically assembles and executes AppleScript (viaosascript) and PowerShell commands to simulate the 'Paste' (Cmd+V/Ctrl+V) keystroke.- The skill uses the Chrome DevTools Protocol (CDP)
Runtime.evaluatemethod to execute arbitrary JavaScript within the browser context for automating the Weibo web interface. - [EXTERNAL_DOWNLOADS]: The
SKILL.mdinstructions andscripts/weibo-utils.tsusenpx -y bunto 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.tsandscripts/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-mdlibrary, 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