Back to skill

Security audit

微信跨境支付接入Skill

Security checks for vulnerabilities and agentic risk

Overview

This is a mostly coherent WeChat Pay Global documentation skill, but it needs review because some payment-operation guidance could expose sensitive logs or lead to risky payment/network choices.

Review this skill before installing or relying on it for production payment work. Do not send raw logs, screenshots, Authorization headers, APIv3 keys, private keys, callback payloads, OpenIDs, identity data, or customer/payment records by email; redact and use test data wherever possible. Verify direct-connection eligibility, order retry/idempotency behavior, auto-debit notices/cancellation handling, and callback firewall rules against current official WeChat Pay documentation before implementation.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T09 · Insecure Skill Coding Practices

Warning
Location
references/1-机构/接入指南/接入质量检查.md:203
Finding

Quality-assurance workflow requests payment logs and code screenshots without redaction requirements

Content
View full analysis

Vulnerability Details

File Location: references/1-机构/接入指南/接入质量检查.md, lines 203–211
Vulnerability Type: Sensitive information exposure through an insecure evidence-submission process
Risk Level: Medium

Vulnerable Content:

markdown
### Step 3: Reply to Technical Support by Email

The institution organizes the check results and replies by email to the assigned
technical support address (`WXP_GlobalTS@tencent.com`):

- Subject: `[Institution launch check] <Institution ID> - <Institution name>`
- The body must include:
  - The list of integrated products
  - The item-by-item check results for each module; it is recommended to attach
    a sample log or screenshot of a code fragment as evidence for each item
  - The primary contact person and contact details

The same file reinforces this practice at lines 225 and 421–431 by recommending sample logs or code fragments for individual checks and instructing the institution to email the completed report.

Technical Analysis

This is a payment-integration Skill that handles highly sensitive artifacts, including institution private keys, APIv3 keys, authorization signatures, merchant identifiers, payment order numbers, callback payloads, customer identifiers, and personal information. The quality-assurance workflow requests sample logs and code screenshots but does not require data minimization, sanitization, secret scanning, or redaction before transmission.

Logs and screenshots commonly capture complete request headers, environment-variable values, decrypted callback bodies, exception context, or nearby source-code configuration. Email also creates additional copies in sent folders, recipient mailboxes, backups, archives, and forwarded conversations.

The listed recipient is a Tencent-domain support address, so the behavior does not demonstrate malicious exfiltration. The vulnerability is the absence of safeguards around what operators ...[truncated 1579 chars]

Remediation
View remediation

Remediation Suggestions

  1. Add an explicit sanitization gate before any evidence is transmitted.
  2. Prohibit submission of:
    • Private keys, APIv3 keys, API keys, passwords, session cookies, and access tokens.
    • Complete Authorization or signature headers.
    • Payment codes, bank details, identity-document data, phone numbers, and other personal information.
    • Complete decrypted callback bodies or production database records.
  3. Require synthetic or test-environment data wherever possible.
  4. Limit evidence to the smallest excerpt needed to demonstrate the check result.
  5. Require automated secret scanning and a manual reviewer before submission.
  6. Replace ordinary email attachments with an approved encrypted support portal for evidence that cannot be sufficiently anonymized.
  7. Define access controls, retention periods, deletion procedures, and an incident-response process for accidentally disclosed secrets.
  8. Add a safe example showing masked values, such as truncated merchant IDs and Authorization: [REDACTED].
  9. State that any accidentally disclosed credential must be revoked or rotated immediately.

T09 · Insecure Skill Coding Practices

Note
Location
references/1-机构/接入指南/网络问题指引.md:180
Finding

Network troubleshooting guidance recommends unnecessary public exposure of ports 80 and 443

Content
View full analysis

Vulnerability Details

File Location: references/1-机构/接入指南/网络问题指引.md, lines 180–184
Vulnerability Type: Overly permissive firewall configuration
Risk Level: Low

Vulnerable Content:

markdown
| Symptom | Cause | Resolution |
|---------|-------|------------|
| WeChat servers cannot access the callback URL | The firewall blocks WeChat IP addresses | Open ports 80 and 443 to all IP addresses, and apply rate limiting by domain rather than IP |
| Callback exceeds the five-second timeout | Institution processing is too slow | Verify the signature, enqueue asynchronous work, and respond immediately |
| SSL certificate error | A self-signed certificate is used | Use a valid certificate issued by a certificate authority |
| HTTP redirects to HTTPS | WeChat might not follow the redirect | Configure an HTTPS URL directly |
| The reverse proxy removed signature headers | Nginx or the CDN drops custom `Wechatpay-*` headers by default | Explicitly allow the four signature headers: `Wechatpay-Signature`, `Wechatpay-Timestamp`, `Wechatpay-Nonce`, and `Wechatpay-Serial` |

Technical Analysis

The callback endpoint is required elsewhere in the Skill to use public HTTPS. Opening port 80 is therefore unnecessary, particularly because the adjacent guidance states that HTTP-to-HTTPS redirects may not be followed and recommends configuring HTTPS directly.

Opening both ports to every source address broadens the externally reachable attack surface beyond the minimum required for payment callbacks. Cryptographic callback verification protects payment-processing logic from unsigned requests, but it does not prevent endpoint discovery, denial-of-service traffic, parser attacks, resource exhaustion, or exploitation of defects in the web server, reverse proxy, framework, or adjacent routes.

Rate limiting by host or domain is also not a substitute for source controls. An attacker can send the expected host value while origina ...[truncated 1593 chars]

Remediation
View remediation

Remediation Suggestions

  1. Expose only TCP port 443 for the payment callback.
  2. Disable port 80 unless it is operationally required; if retained, isolate it and enforce a minimal redirect-only configuration.
  3. Restrict ingress to current official source ranges where the provider and deployment model support reliable allowlisting.
  4. If source allowlisting is unavailable, place the callback behind a hardened WAF or reverse proxy with:
    • Per-source and global rate limits.
    • Connection and request timeouts.
    • Request-body size limits.
    • Header-size limits.
    • Route-specific access controls.
    • Denial-of-service protection.
  5. Isolate the callback endpoint from administrative interfaces and unrelated application routes.
  6. Continue to require platform-certificate signature verification, timestamp validation, replay protection, callback decryption, and idempotency checks.
  7. Monitor failed verification rates, unusual source distribution, malformed requests, and traffic spikes.
  8. Replace the current recommendation with least-privilege guidance that clearly distinguishes network reachability from cryptographic callback authentication.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (31)

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 59)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 80)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 82)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 85)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 87)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 92)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 93)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 95)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 176)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 200)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 201)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 211)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 214)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · references/glossary.md (reported line 228)May include surrounding context.

md
| 中文 | English | 日本語 | 한국어 | Français | Español | Português | Русский | العربية |
|------|---------|--------|--------|----------|---------|-----------|---------|---------|
| 跨境分账 | cross-border funds-distribution | クロスボーダー資金分配 | 크로스보더 자금 분할 정산 | Distribution transfrontalière des fonds | Distribución transfronteriza de fondos | distribuição transfronteiriça de fundos | трансграничное распределение средств | توزيع الأموال عبر الحدود |
| 子商户进件 | Sub-merchant Onboarding | サブマーチャント登録 | 하위 가맹점 등록 | Onboarding des sous-marchands​ | Alta de sub-comercio | Integração de sub-comerciante | Онбординг субмерчанта | تأهيل التاجر الفرعي |
| 海关报关 | Customs Declaration | 通関申告 | 세관 신고 | Déclaration douanière | Declaración aduanera | Declaração aduaneira | Таможенная декларация | التصريح الجمركي |
| H5 支付权限申请 | H5 Payment Permission Application | H5決済権限申請 | H5 결제 권한 신청 | Demande d'autorisation H5 | Solicitud de permiso de pago H5 | Solicitação de permissão de pagamento H5 | Заявка на разрешение платежа H5 | طلب إذن الدفع H5 |
| 分账 | funds-distribution | 分帳 | 분할 정산 | Distribution des fonds | Distribución de fondos | distribuição de fundos | распределение средств | توزيع الأموال |

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The document states that merchants can proactively deduct from a user's WeChat Pay account without password entry after prior authorization. While authorization is mentioned, the skill description does not prominently warn readers that this behavior can trigger repeated charges and materially affect user funds, which is a safety-relevant behavior for a skill description.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/1-机构/产品选型/产品介绍.md (reported line 648)May include surrounding context.

md
## 六、机构模式:请求体必带字段


| 字段                         | 含义                          | 必填条件                                                                                          |
| -------------------------- | --------------------------- | --------------------------------------------------------------------------------------------- |
| `sp_mchid`                 | 机构号(机构主体的 mchid)            | ✅ 全部接口必填(无论收款还是平台扩展类)                                                                         |
| `sp_appid`                 | 机构 AppID(机构主体名下绑定的 AppID)   | ✅ 大多数接口必填,详见各 API 文档                                                                          |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/1-机构/产品选型/产品介绍.md (reported line 652)May include surrounding context.

md
| -------------------------- | --------------------------- | --------------------------------------------------------------------------------------------- |
| `sp_mchid`                 | 机构号(机构主体的 mchid)            | ✅ 全部接口必填(无论收款还是平台扩展类)                                                                         |
| `sp_appid`                 | 机构 AppID(机构主体名下绑定的 AppID)   | ✅ 大多数接口必填,详见各 API 文档                                                                          |
| `sub_mchid`                | 子商户号(实际收款 / 被代办的子商户)        | ✅ 全部接口必填                                                                                      |
| `sub_appid`                | 子商户 AppID                   | ⚠️ 当需要用子商户 AppID 取 `sub_openid` 时必填(JSAPI / 小程序 / 部分 APP / 委托代扣);也可用 `sp_appid` 取 `sp_openid` |
| `sub_openid` / `sp_openid` | 用户在子商户 / 机构 AppID 下的 openid | JSAPI / 小程序 / 委托代扣 必填                                                                         |

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · references/1-机构/产品选型/产品介绍.md (reported line 662)May include surrounding context.

md
## 七、业务规则速查(纯业务,不含开发参数)


| 规则      | 取值 / 说明                                                                                 |
| ------- | --------------------------------------------------------------------------------------- |
| 金额单位    | **最小货币单位的整数**(如美分),杜绝浮点                                                                 |
| 币种      | `amount.currency` **必填**,按子商户实际收款币种填,使用 ISO 4217 三位字母代码                                 |

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The document states the core user group is limited to users holding a Chinese mainland ID and having completed WeChat Pay real-name verification. This is a natural-language locale/region constraint presented as a hard requirement, but the file does not offer user choice or explain a policy basis within the skill itself for excluding other locales.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

L133 声称直连模式“仅中国香港、英国两个地区开放”,但同一文档在 L190-L195 又反复强调“仅中国香港地区支持直联商户接入,其他所有国家和地区(含英国)必须通过机构接入”。这不是信息缺失,而是对同一接入规则的直接自相矛盾,可能误导使用者选择错误的接入路径。

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
75% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · references/1-机构/接入指南/接入质量检查.md (reported line 336)May include surrounding context.

md
|---|---------|-------|---------|---------|
| 1 | 前置处理 | 是否在**微信开放平台**(非公众平台)注册移动应用 | 已在 open.weixin.qq.com 创建移动应用并审核通过 | 调起失败 |
| 2 | 前置处理 | 移动应用 AppID 是否与商户号绑定 | 商户平台完成绑定 | `APPID_MCHID_NOT_MATCH` |
| 3 | 前置处理 | iOS 是否配置 URL Scheme | Info.plist 配置 URL Scheme = AppID | 支付完不能跳回 App |
| 4 | 前置处理 | iOS 是否配置 Universal Link | HTTPS 域名根目录有 `apple-app-site-association` | 支付完不能跳回 App(新版微信强制) |
| 5 | 前置处理 | Android 包名 / 签名 MD5 是否与开放平台注册一致 | 发布 APK 的签名 MD5 与开放平台填写一致 | 调起微信失败 |
| 6 | 字段规范 | `mchid` / `appid` 是否正确 | 与已绑定的移动应用 AppID 一致 | 下单失败 |

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document gives guidance that can lead operators to generate a new out_trade_no after a query reports the order does not exist. In this same document, earlier sections stress that reusing the original order number is critical for idempotency and that changing order numbers can create duplicate orders; inconsistent instructions here can therefore cause duplicate payment attempts, reconciliation errors, or double charging in edge cases involving delays or eventual consistency.

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The glossary explicitly instructs the AI that the same concept 'must' use prescribed terminology in all conversations and 'cannot be arbitrarily replaced,' creating a persistent behavior policy without user opt-in. In an agent setting, this can override user preferences, system locale expectations, or safer contextual wording, and acts as hidden steering rather than neutral reference data.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
72% confidence
Finding

The text states that all skill documents are written from the institution perspective and consistently uses Chinese-language documentation/context, while the file concerns a global product scope. There is no explicit language choice or opt-in for users who may require another language, which can conflict with language/locale policy expectations.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.exposed_secret_literal

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
references/1-机构/接入指南/签名与验签规则.md:29

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
references/1-机构/接入指南/网络问题指引.md:217