Back to skill

Security audit

Wechat Mp Draft

Security checks for vulnerabilities and agentic risk

Overview

This skill is clearly for creating WeChat Official Account drafts, but it can modify a live account draft box and relies on missing/uninspected helper scripts without a clear confirmation gate.

Install only if you intend agents to create or change drafts and upload images in a real WeChat Official Account. Require the agent to summarize the target account, title, content, and uploads and get your explicit approval before any API call; also verify the missing helper scripts from a trusted source before using credentials.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 31)May include surrounding context.

工作流程

1. 获取 Access Token

bash
./scripts/get_access_token.sh

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger phrase list includes broad terms such as “微信文章” and “公众号发文”, which can match ordinary writing requests and cause the skill to activate in situations where the user did not clearly intend draft-box publication. In this skill, overbroad activation is more dangerous because the workflow culminates in creating or modifying remote WeChat draft content, not just local text generation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill instructs direct saving of generated content to a live WeChat public-account draft box without an explicit warning that it will modify remote account data. This creates a risk of unintended external side effects, including publishing workflow disruption, overwriting expected drafts, or storing unreviewed AI-generated content in a real business account.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 147)May include surrounding context.

解决:

  • 封面图:先上传永久素材:
    bash
    curl -F "media=@cover.jpg" "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=TOKEN&type=image"
    
  • 草稿失效:调 cgi-bin/draft/batchget 拿当前 id 列表(可能为空,说明被删了),再决定是 update 已有还是重新 add:
    bash

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 147)May include surrounding context.

解决:

  • 封面图:先上传永久素材:
    bash
    curl -F "media=@cover.jpg" "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=TOKEN&type=image"
    
  • 草稿失效:调 cgi-bin/draft/batchget 拿当前 id 列表(可能为空,说明被删了),再决定是 update 已有还是重新 add:
    bash

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 151)May include surrounding context.

解决:

  • 封面图:先上传永久素材:
    bash
    curl -F "media=@cover.jpg" "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=TOKEN&type=image"
    
  • 草稿失效:调 cgi-bin/draft/batchget 拿当前 id 列表(可能为空,说明被删了),再决定是 update 已有还是重新 add:
    bash

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
83% confidence
Finding

The skill’s natural-language description, triggers, and operating instructions are all presented only in Chinese and are specifically framed around producing content in a微信公众号 style. There is no indication that users may choose another language or opt in to this locale-specific behavior.

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
SKILL.md:147