Back to skill

Security audit

WeChat Article Publisher

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because it reports several capabilities and installation risks outside the stated WeChat article-formatting purpose; some artifact checks were incomplete.

Consider avoiding installation until the unrelated publishing and upload instructions, unpinned package commands, automatic local-site integration, and incomplete script and image analysis have been reviewed. The scan reports real concerns but does not establish malicious intent or prove that an upload occurred.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (44)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied commands perform repository release-management operations, not article formatting or WeChat draft creation. Pushing a Git tag changes an unrelated remote resource and is not a supporting implementation detail of the declared workflow.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

npm login 和 npm publish --access public 涉及独立的软件分发流程,尤其公开发布软件包会产生声明范围之外的外部写入。虽然 npx mpress gen 可能用于声明中的排版生成,但不能解释前面的 npm 登录和公开发布操作。该片段位于营销分发文档中,仍展示了与所声明用途不同的能力。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk is a marketplace discovery or marketing workflow. It neither processes article content nor generates the declared artifacts or manages WeChat drafts. Its ClawHub search and inspection operations have a materially different purpose and target resources unrelated to the declared publishing workflow.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared purpose concerns article formatting and optional WeChat draft creation. This snippet instead distributes the skill itself through an external API, which is a materially different operation rather than an implementation detail of article formatting or draft submission. Its trigger metadata is consistent with the declared purpose, but the package-registration and upload behavior is undeclared. The snippet appears in marketing documentation and uses a placeholder credential, so it does not establish that an actual upload occurred.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

此代码块属于技能分发操作指南,目标是将技能本身发布到 ClawHub,并非对文章进行公众号排版或上传公众号草稿。其身份认证、外部服务和上传对象均不在声明用途范围内,属于不同的发布能力。它是文档中的命令示例,并不能据此断言技能运行时会自动执行这些操作;但所展示命令的行为与声明用途仍存在明确差异。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

该代码块用于仓库分发打包,主要行为与声明的公众号排版及草稿箱工作流不同,也未体现为该工作流所需的实现步骤。代码仅创建并检查本地压缩包,没有上传、联网或自动群发行为。

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/wechat.mjs push 文章.md

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/wechat.mjs gen 文章.md

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
下表描述脚本行为,不是让 Agent 对源稿做增改。所有分支由 `scripts/wechat.mjs` 的 `expandComponents()` 执行,`gen` 和 `push` 共用同一份结果。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- 封面取 `frontmatter.image` → `banner.image` → 正文第一张本地图 → `assets/default-cover.png`,独立文稿不会因为没封面失败。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- **底图必须无字**。优先级:`WECHAT_HEAD_BASE` → `banner.image`(书稿插画)→ 运行包内 `assets/head-base.jpg`。封面图常常自带标题,不能拿来当底图。

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/wechat.mjs (reported line 50)May include surrounding context.

js
const SKILL_DIR = path.resolve(import.meta.dirname, "..");
const CWD = process.cwd();

// 自动加载 .env 配置文件
const envFile = path.join(SKILL_DIR, ".env");
if (fs.existsSync(envFile)) {
	try {

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/wechat.mjs (reported line 51)May include surrounding context.

js
const CWD = process.cwd();

// 自动加载 .env 配置文件
const envFile = path.join(SKILL_DIR, ".env");
if (fs.existsSync(envFile)) {
	try {
		if (typeof process.loadEnvFile === "function") {

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

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

Content

Scanner excerpt · scripts/wechat.mjs (reported line 1096)May include surrounding context.

js
const files = [
		process.env.WECHAT_CREDENTIALS,
		path.join(SKILL_DIR, ".env"),
		path.join(SKILL_DIR, "credentials"),
		path.join(os.homedir(), ".config", "wechat", "credentials"),
	].filter(Boolean);

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
90% confidence
Finding

The installation command invokes an unpinned npm executable and installs a skill from a mutable repository reference. Although this is not an MCP server declaration, a compromised future package or repository revision could execute code or introduce hostile agent instructions with the user's privileges.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
90% confidence
Finding

The executable installation example leaves both the npm CLI version and skill repository revision unpinned. This creates an installation-time supply-chain risk, particularly if the resulting agent later has access to WeChat credentials; the MCP-specific label is inaccurate.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Formatting components insert hard-coded promotion for the developer's blog when callers omit optional text.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The kicker and follow components insert developer-specific blog promotion when callers omit optional text, including first-person claims that may appear to come from the account owner. This contaminates rendered articles without explicit approval of that wording; draft-only delivery reduces immediate exposure but does not prevent later accidental publication.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
88% confidence
Finding

The archived documentation still provides a copyable installation command that resolves an unpinned npm executable and mutable skill source. Its archived status makes use less likely but does not remove the supply-chain risk; this is not an MCP server configuration.

Content

No source excerpt is available for this finding.