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 ssh for creating SOCKS5 proxies, osascript for UI automation and accessibility tasks on macOS, and powershell.exe for clipboard and keystroke simulation on Windows. It also checks for and uses xdotool or ydotool on Linux systems.
  • [REMOTE_CODE_EXECUTION]: The wechat-remote-publish.ts script implements a 'Remote API' method which spawns an ssh process 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 the swift command. 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.ts script 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-md for parsing, the content is ultimately interpolated into browser sessions and API payloads, representing a standard surface for indirect injection attacks.
Audit Metadata
Risk Level
SAFE
Analyzed
Aug 19, 2026, 01:13 AM