Back to skill

Security audit

Plant Wilting Quantification (Underwatering / Overwatering) | 植物萎蔫程度量化(缺水/水多)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because scanners report behavior beyond its stated plant-wilting purpose, including account and credential handling, and possible unintended media uploads.

Consider avoiding installation until the media upload and external processor are clearly disclosed, export-only behavior is clarified, and account registration and credential storage are explained. The scan was marked partial because a local reference was missing, so the evidence does not establish the behavior of every referenced component.

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 (26)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk primarily implements user-account persistence rather than plant-wilting analysis. It defines fields such as username, real name, email, birthday, token, and open_token, and provides methods to read, update, and delete those records. No image processing, plant-feature measurement, wilting scoring, sensor fusion, or irrigation prompting appears. Database storage can be a legitimate supporting detail, but the concrete user-profile and token-management functionality here has no demonstrated relationship to the declared purpose. This assessment is limited to the supplied chunk; it does not establish what other skill files implement or imply that stored data is transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code identifies itself as a video-analysis tool and exposes MP4 input and video-history listing. It contains no visible plant-specific processing, wilting score calculation, soil-moisture integration, or irrigation/drainage prompting. Analysis is delegated to an imported implementation that is not supplied, so its exact analytical capabilities cannot be established. Nevertheless, the visible video-analysis and history-retrieval interface materially differs from the declared plant-image assessment workflow.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk does not implement the declared plant-wilting workflow and instead contains generic skill scaffolding and a broken chat method. It does not actually launch subprocesses or invoke an external agent because those statements are commented out. Behavior inherited from imported modules cannot be determined from this chunk, so this assessment is limited to the supplied code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Generic formatting, polling, and HTTP helpers could legitimately support plant analysis and are not themselves mismatches. However, this chunk also implements an undeclared account-management and billing integration involving local identity-file access, persistent credentials, and silent remote registration/login. Its HTTP wrapper attaches configured credentials even to caller-supplied absolute URLs, without a visible destination restriction. These behaviors go beyond the described plant-analysis and irrigation functionality. No plant-image analysis or sensor fusion appears in this chunk, although that absence alone would not establish a mismatch for a shared utility module. Most listed operations occur when the relevant methods are invoked, rather than automatically on import.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The visible implementation is a generic API-backed media-analysis and report-management wrapper. Its videoUrl parameter and input validation messages explicitly describe video input, while its output handling unwraps generic commonAiResponse and healthAiResponse fields. Uploading media and polling an API could support the declared purpose, but no visible configuration or processing connects those operations to plant wilting. Imported API implementations could contain specialized functionality, so the assessment is limited to the supplied chunk; their unseen behavior is not assumed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

Generic AI-analysis endpoints could support the declared purpose and are not inherently a mismatch. However, the explicit health/order report-export URL points to an apparently unrelated resource. This is a configuration-only chunk: it does not itself make network requests or export reports, and the absence of plant-analysis logic here does not establish that such logic is absent elsewhere.

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 analysis workflow does not warn users that their images or videos will be processed by an external API service.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The documentation mentions cloud APIs, but the automatic workflow does not clearly notify users before transmitting local image or video contents for external processing. Plant-camera media can include private home interiors, people, or commercially sensitive greenhouse information, making implicit upload consent a privacy risk.

Content

No source excerpt is available for this finding.

The documented export-only mode still runs plant-image analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and explicitly promises not to perform analysis, but main never checks that flag. When media input is also supplied, execution still reaches analysis, potentially uploading private media and consuming service credits despite the user's no-analysis request.

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 video contents are passed to the analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The implementation reads the entire local media file and passes its bytes to the analysis service without a visible upload-authorization check. Although cloud analysis is mentioned elsewhere, the automatic workflow lacks a clear local-media transmission notice, potentially exposing incidental private imagery.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze input, but execution still invokes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never used to control execution. Supplying it alongside a video input still invokes analysis, violating the explicit no-analysis promise and potentially causing an unintended external upload or service charge.

Content

No source excerpt is available for this finding.

Username-based user lookup is unrelated to the declared plant-wilting analysis capabilities.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The service exposes get_user_by_username and delegates the lookup to RequestUtil. Looking up user accounts is not a stated capability or an obvious requirement of image-based wilting analysis, soil-moisture fusion, or irrigation prompts.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to plant-wilting analysis.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The model provides ordinary SQLite string columns for bearer tokens alongside personal information, and the DAO persists models without a credential-protection layer. Anyone able to read the database or its backups could recover stored credentials; shared infrastructure can explain the profile functionality, but plant analysis does not itself justify retaining this sensitive data.

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
96% confidence
Finding

The generically named open helper always uses write mode, which immediately erases an existing file's contents. No comment, docstring, confirmation, or user-facing message explains this behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

API requests can silently register a remote user account, beyond the declared plant-analysis workflow.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

When credentials are missing, the generic request helper can call phoneLogin with silent=1 and register=1, transmitting an identity and requesting remote account creation without a separate approval step. Hosted plant analysis may need authentication, but it does not inherently authorize undisclosed account registration or identity disclosure.

Content

No source excerpt is available for this finding.

The HTTP helper silently performs remote user registration and persists returned credentials.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

A routine HTTP request can trigger remote registration and then save returned access tokens and profile information to the local database. These hidden side effects create an account and retain reusable credentials beyond what a caller requesting plant analysis would necessarily expect or approve.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

The registration POST sends the selected username as both openId and mobile without a separate disclosure check. Notably, current__user_name preferentially takes API_SECRET_KEY, so when tokens are absent a configured API secret can be copied into registration identity fields, potentially exposing it to account records and identity-field logging.

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
94% confidence
Finding

YamlUtil.load creates parent directories and writes a configuration file when the requested path is missing, without a prompt, log, docstring, or explanatory comment. BaseEnum.init_subclass invokes this loader at L053 and L058, so defining the module's subclasses can modify the filesystem merely by importing the module.

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:

The ai_chat docstring claims to invoke an agent subprocess, but the implementation never invokes it.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method calls the openclaw agent command through subprocess. However, the command and subprocess invocation are commented out (L48–66); the code instead creates an empty dictionary and accesses result.stderr, raising an exception that is caught and suppressed. The method therefore returns no analysis result and performs none of the documented agent execution.

Content

No source excerpt is available for this finding.