Back to skill

Security audit

b-profile

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because it reports exposed bearer credentials, disabled TLS verification, and capabilities beyond its stated Bilibili video-list and CSV purpose; scanner coverage was partial.

Consider avoiding installation until the credential exposure and TLS bypass are addressed and the additional comment-collection capabilities and required permissions are clearly justified. The scan was partial: only 2 of 6 components were fully inspected, and static tool-misuse analysis was degraded, so unreported issues may remain. The verdict is suspicious; 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

Content
View full analysis

Impact

The exposed token can be replayed to impersonate the user through authenticated platform endpoints, including accessing account/task information and submitting collection tasks that consume account credits.

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
  • 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

声明的核心用途是采集 B站投稿数据,而代码唯一可见行为是调用 logout 子命令。这与所声明用途存在实质差异,也没有证据表明该命令是采集流程的辅助步骤。由于缺少 cli.js 源码,不能进一步断言它实际清除了哪些凭据或会话。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Task submission, export handling, authentication, and network error handling reasonably support the declared service. However, the client also exposes substantial comment-collection functionality through /comments/sessions and the /dy, /ks, /b, and /wb comment-session endpoints. Collecting individual comments and replies is distinct from reporting a video's comment count, and the non-Bilibili platforms are not declared. The supplied chunk establishes these additional callable capabilities, but does not demonstrate that they execute automatically or verify the advertised browser collection, CSV format, or pricing.

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.

Registration guidance must be reproduced verbatim in Chinese without offering a language choice.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The skill requires the agent to send the registration guidance unchanged, and that guidance is entirely in Chinese. This forces Chinese user-facing output regardless of the user's language, without an opt-in or a documented reason for the language restriction.

Content

No source excerpt is available for this finding.

Unsafe Defaults

Medium
Category
Tool Misuse
Confidence
99% confidence
Finding

When invoked, this function disables TLS certificate verification process-wide, allowing an active network attacker to impersonate HTTPS services and potentially steal bearer tokens or alter API results. This is an opt-in insecure mode rather than a demonstrated default, but its global scope affects other HTTPS requests in the same process, 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-collection workflows for multiple platforms beyond Bilibili profile submission collection.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest limits the skill to collecting a Bilibili creator's submitted-video list, including aggregate comment counts, and exporting it as CSV. L134–L272 implement authenticated API methods to create, advance, finish, and read comment-collection sessions for Xiaohongshu, Douyin, Kuaishou, Bilibili, and Weibo; collecting individual comments and replies is a separate capability not justified by that purpose.

Content

No source excerpt is available for this finding.

Automatically imports another skill's credentials and connection-security settings.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

Configuration resolution silently imports a legacy skill's bearer token, service address, and potentially insecure TLS setting without confirming that the destination and security policy are appropriate for this skill. Although shared-account reuse is documented, inheriting connection-security exceptions can unexpectedly weaken HTTPS protection and reuse credentials against an unintended service.

Content

No source excerpt is available for this finding.