Back to skill

Security audit

借款费用资本化·专门借款与一般借款

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report that it describes an accounting task but also documents external MCP discovery and sends a credential to a configurable endpoint; analysis was partial.

The verdict is suspicious, so consider avoiding installation until the network workflow and API-key handling have been reviewed and the offline-use claims clarified. The checker’s validation of figures against quoted sources also needs review. Skillspector reports partial analysis because two references were unresolved; the scan therefore does not provide complete evidence.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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 (9)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

所提供代码仅执行远程目录获取和 MCP 工具发现,没有读取年报附注、生成原文锚点或计算资本化金额。虽然工具发现可能是其他流程的准备步骤,但此代码未体现其与声明任务的关联,且访问的目录资源和认证端点均未在声明用途内交代,因此存在实质性描述与行为不符。代码发送的是工具列表请求;没有证据表明它上传了年报内容或实施了其他数据外传。

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk performs remote service discovery rather than reading annual-report notes, extracting source-anchored figures, or checking capitalization calculations. Although tool discovery could support a larger implementation, this chunk establishes no task-specific connection, so its actual resource access and immediate purpose are not represented by the description. It does not show document exfiltration or execution of discovered tools.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · tests/test_borrowing_cost.py (reported line 31)May include surrounding context.

python
def run(*args, env=None):
    e = dict(os.environ, PYTHONDONTWRITEBYTECODE="1")
    if env:
        e.update(env)
    return subprocess.run([sys.executable, "-B", str(args[0]), *map(str, args[1:])],

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · README.md (reported line 53)May include surrounding context.

CATALOG="https://cuecue.cn/api/mcp-catalog" curl -s "$CATALOG" | head -c 2000

从目录里取本组的路由地址,确认工具在场

curl -s -X POST "$ROUTING_URL"
-H 'Content-Type: application/json'
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

text

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, 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.

The data-channel documentation promises no networking, but the documented workflow executes external HTTP requests.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

L112 explicitly states that the skill is offline and does not fetch data over the network, reinforcing the zero-network claim at L56. However, L120–124 instruct execution of curl requests to an external catalog and an MCP endpoint, including transmission of CUE_API_KEY in an Authorization header. The optional online mode is disclosed elsewhere, but it directly contradicts the unconditional offline guarantee.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The documented command sends CUE_API_KEY to whatever destination MCP_ENDPOINT specifies, without enforcing HTTPS or verifying that the destination is authorized to receive that credential. If the endpoint is attacker-controlled, incorrectly configured, or populated from an untrusted catalog, following this workflow can disclose the API key; the accounting task does not require unrestricted credential forwarding.

Content

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

带凭据时的通道正路(先握手、按现场返回判,不写死工具清单):

bash
curl -sS https://cuecue.cn/api/mcp-catalog -o /tmp/mcp-catalog.json
curl -sS -X POST "$MCP_ENDPOINT" \
  -H "Authorization: Bearer $CUE_API_KEY" \
  -H 'Content-Type: application/json' \

Documentation claims quote-to-register numeric verification is performed by checks that actually ignore quoted values.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The comment assigns quote-to-register numeric verification to BC-CAP and BC-SPLIT, but those checks extract only values before the quotation and test arithmetic relationships. An erroneous or manipulated register can therefore contain internally consistent numbers that contradict its attached quotations and still pass, undermining the skill's source-traceable financial-record purpose.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · tests/test_borrowing_cost.py (reported line 34)May include surrounding context.

python
e = dict(os.environ, PYTHONDONTWRITEBYTECODE="1")
    if env:
        e.update(env)
    return subprocess.run([sys.executable, "-B", str(args[0]), *map(str, args[1:])],
                          capture_output=True, text=True, env=e, cwd=str(PKG))