baoyu-post-to-wechat
Pass
Audited by Gen Agent Trust Hub on Aug 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill frequently invokes system-level utilities to manage cross-platform interactions. This includes using
sshfor creating SOCKS5 proxies,osascriptfor UI automation and accessibility tasks on macOS, andpowershell.exefor clipboard and keystroke simulation on Windows. It also checks for and usesxdotoolorydotoolon Linux systems. - [REMOTE_CODE_EXECUTION]: The
wechat-remote-publish.tsscript implements a 'Remote API' method which spawns ansshprocess with dynamic port forwarding (-D). This creates a SOCKS5 tunnel to a remote server, allowing the agent to route WeChat API calls through a whitelisted IP address. - [DYNAMIC_EXECUTION]: In
scripts/check-permissions.ts, the skill dynamically writes Swift source code to temporary files and executes them using theswiftcommand. This is used to verify the agent's ability to interact with the system clipboard for image data, which is a prerequisite for the browser-based publishing method. - [EXTERNAL_DOWNLOADS]: The
wechat-image-loader.tsscript handles images referenced by HTTP/HTTPS URLs in the source markdown or HTML, downloading them to the local environment before processing and uploading to WeChat. - [DATA_EXFILTRATION]: The skill reads local files (markdown, HTML, images) and environment variables containing WeChat credentials (
WECHAT_APP_SECRET), transmitting this data to WeChat's API endpoints. Additionally, it can send QR codes to Telegram (api.telegram.org) to notify users of required login actions. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from markdown and HTML files provided by the user. While it uses
baoyu-mdfor parsing, the content is ultimately interpolated into browser sessions and API payloads, representing a standard surface for indirect injection attacks.
Audit Metadata