Back to skill

Security audit

ks-search

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports insecure TLS and charge-approval handling, plus capabilities that extend beyond the declared Kuaishou search purpose.

Consider the reported credential exposure, missing charge confirmation, and process-wide TLS weakness before installing. The scanner coverage is incomplete: only 2 of 6 components were fully inspected, 4 were partially inspected, and tool-misuse analysis was degraded, so the scan does not establish that unreported behavior is safe.

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

Error
Location
src/config.js
Finding

Default HTTP transport exposes bearer credentials

Content
View full analysis

Impact

An intermediary can obtain the bearer token and replay authenticated API calls within its permissions, including accessing account/task data or spending account points.

T09 · Insecure Skill Coding Practices

Warning
Location
cli.js
Finding

Chargeable task submission lacks an enforced quote-confirmation gate

Content
View full analysis

Impact

A direct invocation can reserve points before the required approval. A changed live price is only printed and does not stop submission when it exceeds the previously communicated estimate.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (7)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

提供的代码唯一操作是调用 logout 子命令,其明显意图是退出登录,与声明的搜索采集用途 materially 不同。由于未提供 cli.js 实现,无法确认该命令实际清除了哪些会话或凭据,但当前代码中没有实现声明功能的证据。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The task and export endpoints are consistent with supporting the declared search workflow; authentication and profile operations are also reasonable supporting functionality. However, the extensive comment-session APIs, including /comments/sessions, /dy/comments/sessions, /ks/comments/sessions, /b/comments/sessions, and /wb/comments/sessions, expose capabilities outside Kuaishou keyword video search. These are callable methods, not evidence that collection runs automatically when the module is loaded. The supplied chunk does not establish the claimed search-result fields, CSV format, or points/refund behavior, which could be implemented elsewhere.

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.

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
99% confidence
Finding

When invoked, allowInsecureTls disables certificate verification process-wide, allowing a network attacker to impersonate HTTPS services and intercept bearer tokens or alter API responses. The source does not establish that this is enabled by default, but its global scope also weakens unrelated TLS connections in the same process, and warning messages 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-collection workflows outside the declared Kuaishou keyword-search scope.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest describes collecting Kuaishou keyword-search results and aggregate engagement counts, not collecting individual comments or replies. L134–L272 implement callable methods to create, advance, enumerate, and finish comment-collection sessions for multiple platforms, including platforms other than Kuaishou; these are separate capabilities rather than necessary search implementation details.

Content

No source excerpt is available for this finding.

The activation description includes broad standalone triggers such as “选题” (topic selection) and “搜视频” (search videos), without requiring a Kuaishou-specific request.

Low
Category
Trigger Abuse
Confidence
94% confidence
Finding

The description explicitly permits activation when the user merely mentions these phrases. They also occur in general brainstorming and searches on other platforms, so they can invoke this Kuaishou collection skill unintentionally despite its otherwise specific purpose.

Content

No source excerpt is available for this finding.

The promised per-target TLS warning is actually emitted only once per process.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The process-wide _insecureNoted flag suppresses warnings for every subsequent HTTPS target after the first, while the target-tracking set is never checked. When certificate validation is disabled, later destinations therefore lose the promised target-specific warning, reducing visibility into insecure connections without itself causing the TLS bypass.

Content

No source excerpt is available for this finding.