Back to skill

Security audit

ks-profile

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report risky connection settings, exposed bearer credentials, and capabilities that go beyond its stated Kuaishou profile collection purpose.

Consider avoiding installation until the endpoint's transport, certificate verification, credential handling, and extra collection and logout capabilities are clarified. The scan inspected only part of the skill, so its evidence is incomplete; it does not establish malicious intent.

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 bearer credentials to network attackers

Content
View full analysis

Impact

A network attacker can capture and replay the bearer token to impersonate the user, access account-associated API data, and submit collection requests that consume account credits within the token's permissions.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied command explicitly selects logout, which is materially different from collecting a creator's videos and exporting their metadata. Although the implementation of cli.js is unavailable, the visible command is sufficient to identify the mismatch; its precise effects on credentials or session storage cannot be determined.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The generic task, export, and authentication methods are reasonable supporting infrastructure for the declared service. However, the explicit multi-platform comment-session methods expose additional collection capabilities unrelated to Kuaishou profile-video enumeration. This establishes a capability mismatch, although the supplied module does not automatically invoke those methods. The chunk alone does not establish whether the advertised CSV fields, link handling, or credit/refund rules are implemented elsewhere. The optional process-wide TLS bypass is a separate security concern, not the basis for the mismatch finding.

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 responses. This is an opt-in insecure mode rather than a demonstrated default, but its global scope affects unrelated TLS connections too; stderr warnings do not prevent exploitation.

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 exported API client exposes multi-platform comment collection unrelated to Kuaishou profile-video listing.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The manifest describes collecting a Kuaishou author's video list and aggregate engagement counts, not collecting individual comments or replies. L134–L272 implement session creation, collection steps, session enumeration, and comment retrieval for Xiaohongshu, Douyin, Kuaishou, Bilibili, and Weibo; these are callable capabilities of the exported ApiClient, although this file does not show them being invoked automatically.

Content

No source excerpt is available for this finding.

Configuration resolution automatically imports another skill's credentials and insecure connection setting.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

Configuration resolution automatically copies a legacy token and insecure=true into the current configuration without affirmative consent, potentially carrying an old TLS-verification exception into a new service context. Shared-account migration is a plausible benign feature, but destination overrides can also pair the imported credential with a different endpoint because credential reuse is not bound to a verified service origin.

Content

No source excerpt is available for this finding.