Back to skill

Security audit

wb-collect

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports a reusable-token exposure, a process-wide TLS verification bypass, and capabilities and settings that extend beyond the stated Weibo collection purpose.

Treat this as a review item and consider not installing until the token exposure, TLS bypass, credential migration, and undeclared capabilities are clarified. The scan is partial: it covered 2 of 6 components fully, and static tool-misuse analysis was degraded, so the evidence is incomplete.

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 (1)

T09 · Insecure Skill Coding Practices

Error
Location
src/config.js
Finding

Default public HTTP endpoint exposes reusable authentication tokens

Content
View full analysis

Impact

A captured token can be replayed to impersonate the account, access account information and collection results, or submit tasks that consume its credits while the token remains valid.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (9)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The generic task and export APIs, authentication, and account handling are consistent with supporting the declared paid collection service. However, the client also exposes substantial comment-collection functionality through /comments/sessions, /dy/comments/sessions, /ks/comments/sessions, /b/comments/sessions, and /wb/comments/sessions. Retrieving actual comments and stepping through comment/reply sessions are distinct from retrieving a post's comment count, and the additional platforms are not declared. This chunk defines callable capabilities; it does not demonstrate that these methods are automatically invoked or that backend collection succeeds.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The only supplied command requests logout, which is not described as a capability and does not implement the declared collection workflow. Although authentication management can support a collection tool, this chunk solely invokes logout rather than using it as a supporting step in collection. The implementation of cli.js is not provided, so its exact effects cannot be verified.

Content

No source excerpt is available for this finding.

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

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.

Activation includes generic engagement metrics without requiring a Weibo collection request.

Medium
Category
Trigger Abuse
Confidence
93% confidence
Finding

The activation description treats generic mentions of comments, likes, or social-media metrics as sufficient to select this Weibo-specific paid service. This can redirect unrelated requests into unnecessary authentication or service workflows, although URL validation limits unintended submissions.

Content

No source excerpt is available for this finding.

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
99% confidence
Finding

When enabled, this function disables TLS certificate verification for the entire Node process, allowing an active network attacker to impersonate HTTPS services and steal bearer tokens or alter responses. It is opt-in rather than a default setting, but its process-wide scope exceeds the configured API connection and warnings do not restore authentication.

Content

Scanner excerpt · src/client.js (reported line 17)May include surrounding context.

js
/** 忽略 HTTPS 证书校验 (服务端自签/域名不匹配证书时由 insecure 配置开启)。进程级。 */
function allowInsecureTls() {
  process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
}

/** 业务错误: code 为后端错误码 (1001/1002/3001/...) */

The client exposes comment-content collection workflows for Weibo and multiple unrelated platforms, beyond the declared Weibo main-post collection purpose.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest covers Weibo post content, metadata, aggregate engagement counts, and CSV export—not collecting individual comments or replies. These methods implement creation, enumeration, advancement, and retrieval of comment-collection sessions for Xiaohongshu, Douyin, Kuaishou, Bilibili, and Weibo, exposing capabilities beyond that purpose.

Content

No source excerpt is available for this finding.

Configuration resolution automatically imports another skill's credentials and security settings.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Configuration resolution silently imports a legacy skill's token, endpoint, and insecure TLS setting without confirming the destination or security downgrade. Because migration checks only whether the current token is present, clearing the token during logout can cause a subsequent invocation to import it again, undermining logout expectations and potentially restoring insecure credential use.

Content

No source excerpt is available for this finding.

The registration/login prompt instructs the agent to relay Chinese-language guidance verbatim without offering a language choice.

Low
Category
Output Handling
Confidence
88% confidence
Finding

The stderr message explicitly tells the agent to send the following guidance to the user unchanged. Because that guidance is fixed in Chinese, this imposes a user-facing language requirement without opt-in rather than merely providing localized CLI diagnostics.

Content

No source excerpt is available for this finding.

The promised per-target TLS warning is actually suppressed globally after the first HTTPS target.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The process-wide _insecureNoted flag suppresses warnings for subsequent HTTPS targets, while the per-target set is never checked. When multiple targets are used in one process with certificate verification disabled, later targets receive no target-specific warning; the supplied CLI's usual single-target execution limits exposure.

Content

No source excerpt is available for this finding.