Back to skill

Security audit

Succulent Special State Detection | 多肉植物特殊状态识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report account and credential handling, external media uploads, and behavior that differs from the stated succulent diagnosis purpose; the evidence does not establish malicious intent.

Treat this as a review case and avoid installing until you are comfortable with the reported account registration, credential storage, and external media processing. The scan was partial because one referenced local path could not be resolved, so its evidence is incomplete. The scanners did not establish malicious intent.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The CLI explicitly presents itself as a video-analysis tool and accepts MP4 files or video URLs. It also exposes a history-list operation using an open ID. The supplied chunk contains no visible succulent-specific detection logic, condition selection, or severity grading; analysis is delegated to an unavailable implementation. Although that implementation might perform plant analysis, the visible video-oriented interface and history-retrieval capability materially differ from the declared image-diagnosis scope. The code does not establish malicious activity or the destination or contents of any underlying API requests.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Database persistence could be a supporting implementation detail, but this chunk specifically manages user identities, profile information, and token fields rather than succulent images or detection results. Initialization creates database tables and updates the sys_user schema, while its operations support reading, modifying, and deleting user records. These are materially different capabilities from those declared. No image processing, anomaly detection, or severity grading appears in the supplied chunk. The code does not demonstrate token collection or external transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible implementation does not provide the declared succulent-analysis functionality. It also does not actually execute the commented-out agent command. Imported base classes and API services could contain additional functionality, but their implementations are not supplied and cannot establish that the declared purpose is fulfilled. No malicious execution or unrelated resource access is demonstrated in this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Basic utilities and HTTP requests could support a remote image-analysis service and are not inherently mismatches. However, this chunk additionally implements an undisclosed account-registration, credential-persistence, and billing workflow, including credential attachment to unrestricted absolute request URLs. These capabilities exceed the declared image-detection purpose. No image analysis or severity grading appears in the supplied chunk, although that absence alone would not establish a mismatch because this is a shared utility module. The findings concern capabilities present in the code, not proof that every path executes during normal use.

Content

No source excerpt is available for this finding.

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 local-media analysis workflow lacks a user-facing warning that images or videos are sent to an external API.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The local-media workflow does not clearly tell users that their image or video contents leave the device for external processing. References to APIs elsewhere do not adequately explain this privacy boundary, and plant-camera media can include people, private interiors, or location metadata.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but analysis still executes.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only but the program never checks it, so supplying valid media still reaches analysis despite the explicit promise not to execute it. Users relying on this mode can unintentionally trigger external processing and associated identity initialization or charges.

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 submitted to the analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The code reads the complete local media file and passes its contents to the analysis service without a visible disclosure or consent check. This is consistent with cloud analysis, not proof of malicious exfiltration, but it can expose incidental personal imagery and embedded metadata without informed authorization.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but does not prevent it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never consulted, allowing identity initialization and analysis to proceed when valid input is supplied. This violates the advertised no-analysis boundary and can cause unintended media processing or service usage.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and authentication-token management unrelated to succulent image analysis.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The model supports storing authentication tokens and personal-profile fields directly in a shared workspace SQLite database without visible secret protection or explicit restrictive file permissions. When populated, those credentials can be exposed to other processes or skills with database access; succulent diagnosis does not inherently require retaining this breadth of account information.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims agent execution, but the implementation never invokes an agent and always returns None.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 says this method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, command execution is commented out at L61–L66, and the empty dictionary created at L68 raises AttributeError when accessed as result.stderr at L70; the exception is swallowed at L81–L82, leaving callers without an analysis result.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive write mode.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

At L101, opening a path with mode 'w' immediately erases any existing contents. The generic open wrapper has no docstring, comment, confirmation, or user-facing log explaining this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

Image-analysis requests can silently register a remote user account and persist account credentials locally.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

An ordinary request can trigger a separate phoneLogin request with silent registration enabled, transmitting the current identity and then saving returned account information and tokens locally. This creates remote account state and retains credentials without an explicit consent step in the shown path, exceeding what a user would necessarily expect from succulent image analysis.

Content

No source excerpt is available for this finding.

The request helper silently registers remote users and persists returned authentication tokens without disclosure.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The request helper performs account registration and persistent credential storage as implicit side effects of making a request. This is the same underlying issue as SDI-1: users requesting plant diagnosis are not given a separate opportunity in this code to authorize account creation or credential retention.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The POST transmits an identity value as both openId and mobile to the configured account service, along with a registration instruction. The surrounding code can derive that identity from API_SECRET_KEY, so a configured credential may also be unnecessarily disclosed in the request body; the destination's ownership and transport security cannot be verified from this source.

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"):

The configuration loader silently creates directories and files when a configuration file is missing.

Low
Category
Output Handling
Confidence
94% confidence
Finding

At L017–L020, YamlUtil.load() creates parent directories and writes a YAML file without a prompt, log, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass() calls this loader during class definition (L052–L058), so importing the module can modify the filesystem even when the caller only intends 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:

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