Back to skill

Security audit

merchant-shop-workbench

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report that its merchant tools can send credentials to configurable destinations, access paths beyond declared limits, and allow some operations without the promised confirmation; analysis was also partial.

Consider not installing until the endpoint and file-path limits and operation confirmation safeguards have been independently reviewed. The scan is incomplete: 15 of 16 components were fully inspected, and static analysis of the script had unresolved limits, so the results do 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 (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/skill.py
Finding

Destructive deletion endpoint asserts approval without an execution-time confirmation gate

Content
View full analysis

Impact

A direct or premature Agent invocation can submit irreversible deletion of the previewed products without the promised execution-time approval gate.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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 (16)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied implementation does not enforce the advertised endpoint, filesystem, and write-confirmation boundaries: configurable URLs receive credentials, arbitrary input paths are accepted, and unfamiliar mutation tools bypass the name-based confirmation gate. In a workbench holding merchant-operation credentials, these gaps can expose tokens or permit unintended changes; optional logging also weakens accountability.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
工具名、参数、必填项**以 MCP 的 `tools/list` 为准**。宿主接上 MCP 后会自动出现全部工具,后续 MCP 新增工具也不需要改本技能。需要查看时,可以用可选脚本 `scripts/skill.py list-tools --platform zzb|fy`。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
包内附带 `scripts/skill.py`,只是把上面的调用封了一层,方便不擅长手写 JSON-RPC 的宿主。**它不是必须的**,也不改变“工具本身就是接口”这件事。晓风通道是普通 HTTP,脚本没有封装,按 `references/xiaofeng.md` 的 curl 示例直接调用即可。

Code capability 'file_read' detected in scripts/skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
99% confidence
Finding

File reading is declared, but only for two configuration files; --config, --args-file, and --detail-file accept unrestricted paths. An attacker able to influence agent arguments could cause accessible JSON data outside that scope to be read and potentially forwarded as tool arguments or exposed in work logs.

Content

No source excerpt is available for this finding.

Code capability 'network' detected in scripts/skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
99% confidence
Finding

Network access is declared, but the implementation does not constrain it to the declared domains. Configuration and environment overrides can select other hosts or plaintext HTTP endpoints that receive credentials and merchant parameters.

Content

No source excerpt is available for this finding.

Code capability 'file_write' detected in scripts/skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
99% confidence
Finding

The declared write permission covers worklogs/, but the script lets --dir select any writable directory and follows filesystem links. This permits out-of-scope directory creation and creation or append of date-named Markdown files, rather than unrestricted arbitrary-filename overwrites.

Content

No source excerpt is available for this finding.

Code capability 'env' detected in scripts/skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
98% confidence
Finding

Environment access is declared for merchant tokens, but the script additionally reads undeclared ZZB_MCP_URL and FY_MCP_URL variables. Those values control where separately loaded credentials are transmitted, so a poisoned execution environment can redirect merchant credentials to an attacker.

Content

No source excerpt is available for this finding.

Code capability 'mcp' detected in scripts/skill.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'mcp' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.

Configurable MCP endpoints permit credential-bearing requests outside the declared network allowlist.

High
Category
Excessive Agency
Confidence
100% confidence
Finding

zzbUrl and fyUrl are taken from environment variables or configuration without destination validation. The ZZB client sends its token in Authorization and the FY client sends its token through set_fy_token, so malicious endpoint configuration can steal credentials even during initialization or discovery workflows.

Content

No source excerpt is available for this finding.

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 · references/auth.md (reported line 67)May include surrounding context.

  1. Agent 换 token:

    bash
    curl -s -X POST "https://api-fuwu.zzbtool.com/xf/dy/dyApi/login" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "loginCode=<用户发来的code>"
    

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 · references/tools.md (reported line 14)May include surrounding context.

直接调用示例

bash
curl -s https://jingflowapi.zzbtool.com/zzbrelay/agent-relay/mcp \
  -H "Authorization: zzb_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \

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 · references/tools.md (reported line 129)May include surrounding context.

bash
# 店铺列表
curl -s "https://api-fuwu.zzbtool.com/xf/dy/dyApi/mall/listV2?page=1&size=50" -H "token: <XF_TOKEN>"

# 商品列表(status:1 在售 2 已下架 4 草稿)
curl -s "https://api-fuwu.zzbtool.com/xf/dy/dyApi/product/v2/list?page=1&size=20&status=1" -H "token: <XF_TOKEN>"

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 · references/xiaofeng.md (reported line 20)May include surrounding context.

bash
STATE="wb$(date +%s)"
curl -s "https://api-fuwu.zzbtool.com/xf/dy/dyApi/getLoginUrl?appKey=%2A%2A%2A&state=%24STATE"

返回:

The worklog directory override allows filesystem writes outside worklogs/.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

cmd_worklog directly uses --dir for directory creation and writes a date-named Markdown file there without containment checks. An influenced agent invocation can therefore create or append files outside the promised worklogs boundary, subject to operating-system permissions.

Content

No source excerpt is available for this finding.

CLI-supplied input paths allow file reads beyond the two permitted configuration files.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

--args-file opens a caller-selected path and sends the parsed JSON object as MCP tool arguments; --config and --detail-file provide additional out-of-scope reads. This creates a disclosure route for accessible JSON files if an attacker can influence agent invocation, although it is not a general reader for arbitrary non-JSON files.

Content

No source excerpt is available for this finding.

L036 says no product-deletion interface is provided, but L094–L096 expose the deletion preview, confirmation, and task-query interfaces.

Low
Category
Excessive Agency
Confidence
98% confidence
Finding

The instruction at L036 explicitly states that product deletion is unavailable and must not be attempted. This contradicts the documented confirm_pdd_goods_delete operation at L095, which submits product deletion using a confirmation token, and the manifest's declared support for confirmation-gated batch deletion. The contradiction makes the supported workflow ambiguous; it does not establish that deletion occurs without confirmation.

Content

No source excerpt is available for this finding.