Back to skill

Security audit

TCM Constitution Identification & Analysis Tool | 中医体质识别分析工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report privacy, identity-handling, and purpose-scope concerns alongside behaviors that could expose sensitive health data or credentials.

Consider the reported risks before installing, especially the handling of facial media, identity data, health reports, and stored tokens. The verdict is suspicious, not a claim that the author acted maliciously. Scanner coverage was partial because a referenced local path could not be resolved, so the evidence is incomplete.

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/tcm_constitution_recognition_analysis.py
Finding

CLI identity initialization replaces the trusted sender Open ID with a shared fallback account

Content
View full analysis

Impact

A sender can receive another sender's health-analysis reports through an ordinary history request. Analyses can also be associated with the wrong account. Exploitation is conditional on a shared workspace and the identity configuration described above.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (23)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied chunk implements generic user-account persistence rather than constitution classification or personalized health advice. Database plumbing alone could be a supporting implementation detail, but this code specifically introduces identity and token storage plus account lifecycle operations not represented in the declared purpose. No facial-feature analysis, physical-sign assessment, constitution classification, or recommendation logic appears in this chunk. This finding is limited to the supplied code; it does not establish that tokens are collected or transmitted, or that the broader skill lacks the advertised functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

Generic formatting, filesystem helpers, and HTTP transport could reasonably support the declared skill and are not alone grounds for a mismatch. However, this chunk also implements undeclared identity provisioning, credential-file access, remote account registration, credential persistence, and a payment workflow. These materially expand its resource access and behavior beyond the description. The supplied chunk contains no constitution-classification logic, although that logic could exist elsewhere. The finding is limited to capabilities visible here; it does not establish that credentials were actually transmitted or that the payment skill was installed.

Content

No source excerpt is available for this finding.

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
Category
YARA Match
Confidence
80% confidence
Finding

YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Content

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

md
---
name: "tcm-constitution-recognition-analysis"
description: "Determines nine TCM constitution types including Yin deficiency, Yang deficiency, Qi deficiency, phlegm-dampness, and blood stasis through facial features and physical signs, and provides personalized health preservation and conditioning suggestions. | 中医体质识别分析技能,通过面部特征与体征判别阴虚、阳虚、气虚、痰湿、血瘀等九种中医体质类型,给出个性化养生调理建议"
version: "1.0.26"
license: "MIT-0"
---

# 🧘 TCM Constitution Identification & Analysis Tool | 中医体质识别分析工具

> **AI 中医面诊体质识别

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

The analysis workflow lacks a user-facing privacy warning before sending facial photos or videos to an external API.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

Although API use is mentioned in the technical documentation, the workflow does not require a user-facing disclosure or consent before transmitting facial media to an external service. Identifiable facial imagery and associated health inferences make unintended disclosure particularly sensitive.

Content

No source excerpt is available for this finding.

The generic phrase “历史报告” (“historical reports”) automatically triggers a TCM health-report query without requiring TCM-specific context.

Medium
Category
Trigger Abuse
Confidence
97% confidence
Finding

Generic historical-report phrases trigger a mandatory cloud health-report lookup without requiring TCM-specific intent. An unrelated request can therefore cause sensitive health records to be fetched and displayed in an unintended conversation context.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes constitution analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to execute analysis, but the program never checks the flag. With an input supplied, execution proceeds to analysis, potentially uploading sensitive facial media despite the caller explicitly selecting a non-analysis mode.

Content

No source excerpt is available for this finding.

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · skills/smyx_analysis/scripts/skill.py (reported line 28)May include surrounding context.

python
result_json = JsonUtil.parse(result_json_pure_text, result_json_pure_text)

        result_json_common_ai_response = result_json.get("commonAiResponse") if isinstance(result_json,
                                                                                           dict) else result_json
        if result_json_common_ai_response:
            result_json = result_json_common_ai_response

Whitespace Padding

Medium
Category
Prompt Injection
Confidence
70% confidence
Finding

Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.

Content

Scanner excerpt · skills/smyx_analysis/scripts/skill.py (reported line 33)May include surrounding context.

python
result_json = result_json_common_ai_response

        result_json_health_ai_response = result_json.get("healthAiResponse") if isinstance(result_json,
                                                                                           dict) else result_json
        if result_json_health_ai_response:
            result_json = result_json_health_ai_response

Local file contents are passed to the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The function reads local media into memory and passes the complete contents to the analysis API without an explicit upload-authorization check. In the facial-health workflow, users who expect local processing could unintentionally disclose identifiable imagery to an external service.

Content

No source excerpt is available for this finding.

The documented --export-env-only mode does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only argument is parsed but never used to control execution. Supplying it alongside a video input still invokes analysis, violating the promised non-analysis behavior and potentially transmitting private media.

Content

No source excerpt is available for this finding.

The skill includes persistent authentication-token management unrelated to constitution analysis.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

The user model supports persisting authentication tokens as ordinary strings in a workspace-shared SQLite database, with no credential-specific protection shown. If populated, those credentials become accessible to other processes or skills able to read that database; persistent credentials also expand the sensitive-data footprint of a constitution-analysis skill.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive behavior.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

Opening a path in mode 'w' immediately erases any existing contents. This generically named helper provides no docstring, explanatory comment, confirmation, or operation-specific logging to disclose that behavior; exception tracing does not warn about successful truncation.

Content

No source excerpt is available for this finding.

HTTP requests can silently provision a remote user account and persist its identity and authentication tokens, beyond the advertised constitution analysis.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

A routine HTTP request can trigger remote login or registration with silent and register enabled, then save returned identity information and authentication tokens locally. This hidden account lifecycle and credential retention exceed the advertised analysis behavior, creating privacy and credential-exposure risks without an explicit consent gate in this path.

Content

No source excerpt is available for this finding.

Automatic remote login or registration transmits the current identity without disclosure.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The automatic login helper sends the current identity as both openId and mobile to a remote service, requesting silent registration without a consent check. In a health-related skill, undisclosed identity transmission can link sensitive service usage to a persistent external account.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
96% confidence
Finding

The POST transmits an identity to the configured health-service login endpoint, and its caller prioritizes API_SECRET_KEY as that identity. When tokens must be obtained and that key is configured, the credential can therefore be copied into the openId and mobile fields, unnecessarily exposing it to account-processing systems and possible identity-field retention.

Content

Scanner excerpt · skills/smyx_common/scripts/util.py (reported line 561)May include surrounding context.

python
"source": ConstantEnum.DEFAULT__SKILL_HUB_NAME
            }
            try:
                _response = requests.post(_url, json=_data)
                if _response.status_code == 200:
                    _response_json = _response.json()
                    if _response_json and _response_json.get("success"):

Configuration loading silently creates directories and files, including during module import.

Low
Category
Output Handling
Confidence
91% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration does not exist, without a comment, docstring, log, or confirmation disclosing this side effect. BaseEnum.init_subclass invokes this loader during class definition (L053 and L058), so importing the module can modify the filesystem even when the caller only expects to read configuration.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 243)May include surrounding context.

python
username = getattr(model, "username", None)
            if username:
                column_names = self.__model__.__table__.columns.keys()
                update_data = {key: getattr(model, key) for key in column_names if key != "username"}
                return self.update_by_username(username, **update_data)

            return None

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 353)May include surrounding context.

python
column_names = self.__model__.__table__.columns.keys()

            for key in column_names:
                value = getattr(model, key)
                setattr(instance, key, value)

            session.commit()

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 326)May include surrounding context.

python
if filters:
                for key, value in filters.items():
                    query = query.filter(getattr(self.__model__, key) == value)

            if offset:
                query = query.offset(offset)

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/dao.py (reported line 441)May include surrounding context.

python
if filters:
                for key, value in filters.items():
                    query = query.filter(getattr(self.__model__, key) == value)

            return query.scalar()
        finally:

ai_chat claims to invoke an analysis agent, but the agent invocation is disabled and the method returns no analysis.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly says this method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, the invocation at L61–L66 is commented out, and L68–L70 instead accesses .stderr on an empty dictionary, raising an exception that is swallowed at L81–L82; the method consequently returns None without invoking an agent.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · skills/smyx_common/scripts/util.py (reported line 30)May include surrounding context.

python
elif isinstance(cur, dict):
                        cur = cur.get(part, default)
                    else:
                        cur = getattr(cur, part)
                return cur
            except Exception:
                return default