baoyu-post-to-wechat
Warn
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONPRIVILEGE_ESCALATIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
spawnandexecSyncto launch Google Chrome with remote debugging enabled and to execute various CLI tools, includingagent-browser,osascript,xdotool,ydotool, andpowershell.exe, for browser automation and system interaction. - [DYNAMIC_EXECUTION]: In
copy-to-clipboard.ts, the skill dynamically generates a Swift script on macOS and executes it using theswiftcommand. It also constructs and runs PowerShell scripts on Windows to manage image and HTML data in the system clipboard. Additionally,infographic.tsuses dynamic imports to load the@antv/infographiclibrary at runtime. - [PRIVILEGE_ESCALATION]: The skill employs
osascripton macOS andxdotool/ydotoolon Linux to simulate system-level keyboard events like Command+V, Control+V, Enter, and Backspace. These actions allow the skill to control the frontmost application and bypass browser-level automation detections, representing high-privilege operations on the host system. - [EXTERNAL_DOWNLOADS]: The rendering engine fetches Highlight.js language definitions from an external Aliyun CDN (
cdn-doocs.oss-cn-shenzhen.aliyuncs.com) and diagram data from the PlantUML server. The skill also downloads images from arbitrary remote URLs found within user-provided Markdown files inmd-to-wechat.ts. - [REMOTE_CODE_EXECUTION]: The skill utilizes
npx -y bunto execute its internal scripts and potentially external packages. It also performs dynamic JavaScript imports from a remote CDN inlanguages.tsand loads libraries likemermaidat runtime based on the content being processed. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted Markdown content provided by the user, which serves as an ingestion point for instructions or data that could trigger the skill's network download and shell execution capabilities. Evidence: The
markdownFileparameter inscripts/wechat-article.tsand the file download logic inscripts/md-to-wechat.ts. Capability Inventory: Network operations (downloading images/JS), file system writes, and shell command execution across multiple scripts.
Audit Metadata