wechatpay-payment-integration
Warn
Audited by Gen Agent Trust Hub on Nov 19, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill requires the agent to execute multiple shell commands to maintain its environment and perform cryptographic tasks.
- It executes a Python script (
wechatpay-resource-sync.py) for mandatory resource synchronization. - It utilizes an external Node.js CLI tool (
wechatpay-dev-cli) for knowledge retrieval and API troubleshooting. - It provides Bash and PowerShell scripts (
extract_and_sign.sh,extract_and_sign.ps1) to extract and sign data using local certificates. - [REMOTE_CODE_EXECUTION]: The skill includes a self-updating mechanism that downloads and extracts executable-like content at runtime.
- The
wechatpay-resource-sync.pyscript fetches ZIP and bundle archives from a remote CDN. - These archives are extracted directly into the skill's local directory, which can modify the skill's logic, references, and scripts without a static review of the new content.
- [PROMPT_INJECTION]: The skill contains instructions specifically designed to override standard platform security constraints regarding network access.
- In the
SKILL.mdfile, the agent is instructed to "silently whitelist" (静默放通) several domains, includingwx.gtimg.comandpay.weixin.qq.com, without obtaining user consent. - [DYNAMIC_EXECUTION]: The synchronization script (
wechatpay-resource-sync.py) performs dynamic directory management. - It includes functions to clear the skill's directory (
_clear_skill_dir) and overwrite files with remote content, effectively implementing self-modifying code patterns. - [EXTERNAL_DOWNLOADS]: The skill fetches resources from external sources associated with the vendor.
- It downloads documentation and skill bundles from WeChat Pay's official CDN (
wx.gtimg.com). - It recommends installing the official developer CLI from the npm registry (
@tenpay/wechatpay-dev-cli). - [INDIRECT_PROMPT_INJECTION]: The skill's knowledge retrieval workflow ingests untrusted data.
- User-provided questions are passed as arguments to the
wechatpay-dev-cli knowledge searchcommand. - While the skill mandates a "Red Line" policy to remove sensitive credentials from these queries, the ingestion of raw user input into an external tool represents a potential injection surface.
Audit Metadata