canghe-post-to-wechat
Fail
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: HIGHEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONCREDENTIALS_UNSAFEPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill documentation and setup scripts suggest installing the Bun runtime by piping a remote script to the shell.
- Evidence:
curl -fsSL https://bun.sh/install | bashmentioned inSKILL.mdandscripts/check-permissions.tsfor environment setup. - [DYNAMIC_EXECUTION]: The skill dynamically generates helper scripts for system operations and executes them at runtime.
- Evidence:
scripts/copy-to-clipboard.tsandscripts/check-permissions.tswrite Swift code to temporary files and execute them using theswiftcommand to manage clipboard data (images/HTML) on macOS. - Evidence:
scripts/copy-to-clipboard.tsexecutes dynamically constructed PowerShell commands on Windows for clipboard interaction. - [COMMAND_EXECUTION]: The skill relies extensively on executing shell commands and external processes to perform its core functions.
- Evidence: Frequent use of
spawnSync,execSync, andspawnto runnpx,bun,osascript(macOS automation),xdotool/ydotool(Linux UI automation), and browser automation tools. - [CREDENTIALS_UNSAFE]: The skill handles sensitive WeChat API credentials and guides the user to store them locally.
- Evidence: Prompts the user to provide
WECHAT_APP_IDandWECHAT_APP_SECRETduring a guided setup and stores them in plaintext.envfiles within the.canghe-skills/directory. - [PRIVILEGE_ESCALATION]: The skill requires significant system permissions to automate the WeChat web interface.
- Evidence: Requests the user to grant Accessibility permissions to the terminal application on macOS to enable automated keystrokes for article publishing.
- [INDIRECT_PROMPT_INJECTION]: The skill processes user-controlled markdown and HTML files, creating an attack surface for indirect injection.
- Ingestion points: Markdown and HTML files provided as input to
wechat-api.ts,wechat-article.ts, andwechat-browser.tsin the article publishing workflow. - Boundary markers: None identified; content is processed directly to generate WeChat drafts.
- Capability inventory: Spawns subprocesses for rendering, performs network requests to download remote images specified in user content, and executes browser automation via Chrome DevTools Protocol (CDP).
- Sanitization: Content is parsed using
marked, but the skill performs automated actions like downloading and UI manipulation based on the content structure without exhaustive sanitization.
Recommendations
- HIGH: Downloads and executes remote code from: https://bun.sh/install - DO NOT USE without thorough review
Audit Metadata