Back to skill

Security audit

Plant Nutrient Deficiency Diagnosis | 植物缺素症视觉诊断

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports a mismatch with the advertised plant diagnosis, persistent identity and credential handling, and media uploads without a clear privacy disclosure.

Consider the scanner's suspicious verdict before installing. Review whether the remote media analysis, identity registration, persistent profile and token storage, and shared-account behavior are acceptable for your use; the reports also flag that export-only mode may still initiate analysis. Skillspector reports complete coverage of the 29 listed components, while imported behavior noted in findings could not be verified.

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/smyx_plant_nutrient_diagnosis_analysis.py:60
Finding

Default CLI invocation discards upstream sender identity and reuses a shared cloud account

Content
View full analysis

Impact

In the stated shared-workspace deployment, a second sender can receive historical diagnostic reports and associated links created by other senders using the same fallback account. This is a client-side identity-selection defect, not a claim that the remote API bypasses its own authentication.

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

The supplied chunk does not implement the declared plant-diagnosis workflow. Its executable method primarily generates a session identifier and optionally logs debug information before encountering a caught attribute error. No subprocess execution or external agent call actually occurs in the shown code. Imported base classes and API services are not supplied, so their behavior cannot be verified; the mismatch assessment is limited to the visible implementation and does not imply malicious activity.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk primarily implements user-account persistence rather than plant nutrient diagnosis. It defines a sys_user table containing names, email, birthday, sex, age, token, and open_token, and exposes operations to read and modify those records. Database storage can be a supporting implementation detail, but this chunk contains no diagnosis records or other visible linkage establishing that role. No image processing, symptom matching, nutrient classification, or confidence scoring appears here. This assessment is limited to the supplied chunk; it does not establish what the rest of the skill does or imply that stored information is transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The CLI explicitly identifies itself as a video-analysis tool and requests local MP4 files or network MP4 URLs. It also offers a history-listing operation through get_output_analysis_list(open_id=...). The supplied code contains no visible leaf-image processing, nutrient-symptom matching, or nutrient-confidence output handling. The underlying skill implementation is not supplied, so its analysis internals cannot be confirmed; nevertheless, the exposed video-analysis and history-retrieval interface materially differs from the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Generic serialization, polling, and HTTP helpers could support the declared diagnosis workflow and are not mismatches by themselves. However, this chunk also implements an undeclared account-provisioning, persistent-identity, credential-handling, and billing integration. Those behaviors access local identity resources and external authentication services beyond what the plant-diagnosis description discloses. The supplied file is a shared utility module, so the absence of image analysis here does not establish that the full skill lacks diagnosis functionality; the mismatch is grounded in the additional behaviors explicitly implemented.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

Generic AI-analysis configuration could support the declared functionality, and the absence of diagnostic logic in a configuration file is not itself a mismatch. However, the explicit health-order report export endpoint introduces an unrelated resource not explained by the description. This chunk only defines that endpoint; it does not demonstrate actual network access or report export.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
80% confidence
Finding

The strongest discrepancy is the explicit video workflow: remote inputs are submitted as videoUrl, and input errors request a local video path or network video URL. Results are handled as generic commonAiResponse or healthAiResponse data, with no visible leaf-feature interpretation, nutrient matching, or confidence-score handling. Uploading files and polling an API could legitimately support the declared diagnosis, so those implementation details alone are not mismatches. The imported API implementation and configuration are unavailable and could contain plant-specific functionality, which limits certainty, but the supplied code presents a materially different input workflow.

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: "smyx-plant-nutrient-diagnosis-analysis"
description: "AI-powered plant nutrient deficiency diagnosis from leaf images. Detects leaf color, morphology changes (pale green/yellow-green/purple-red, marginal scorch, interveinal chlorosis) via computer vision, matches against common deficiency symptom databases, and outputs the most likely deficient nutrient element (nitrogen, phosphorus, potassium, iron, magnesium, zinc, etc.) with confidence score. Enables precision fertilization, avoids blind over-fertilization. Scenarios: smart planters, home gardening, agricultural greenhouses, plant factories. | 通过智能花盆、农业大棚或

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 about sending submitted media to a remote API.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

Although API use is mentioned, the automatic workflow does not clearly warn users that local media will leave their device or identify the recipient and retention practices. Plant images and videos can still contain people, location information, or proprietary greenhouse details, making undisclosed transfer a privacy risk.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser promises that --export-env-only will not perform analysis, but the flag is never checked. With an input supplied, execution still initializes identity and invokes analysis, potentially causing an unwanted media transfer or billable request despite the user's explicit non-analysis selection.

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

The method reads the entire selected local file and passes its contents as a multipart file to the analysis API without a disclosure or authorization check in this path. Even plant-focused media may include private surroundings or commercially sensitive agricultural information.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but the program ignores it and follows the normal analysis path.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag explicitly promises not to analyze media but is ignored after argument parsing. Supplying an input therefore follows the ordinary identity initialization and remote-analysis path, risking unintended disclosure or charges.

Content

No source excerpt is available for this finding.

The skill implements persistent user-profile and token management unrelated to leaf-image nutrient diagnosis.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The manifest describes identifying nutrient deficiencies from leaf images and returning confidence scores, not managing user identities or credentials. L448-L465 define a sys_user table containing names, email, birthday, sex, age, token, and open_token; UserDao inherits database read/write/delete operations, and DAO initialization creates the table and migrates its schema (L180-L215). This provides persistent profile and token management beyond the stated diagnostic purpose, although this file alone does not demonstrate collection or transmission of those values.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its write-only behavior.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases existing file contents. There is no docstring, comment, confirmation, or user-facing message explaining this destructive behavior; the exception handler does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently requests remote account registration and persists returned user credentials, beyond the stated leaf-diagnosis purpose.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The general request helper conditionally sends a silent registration request containing an identity value and subsequently saves returned user information and authentication tokens. This creates an undisclosed identity-provisioning and credential-retention side effect beyond the advertised leaf-image analysis, without a visible consent gate.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently register a remote account and persist authentication tokens.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

An ordinary HTTP operation can trigger account registration when credentials are missing, and the surrounding flow persists the resulting tokens. This is the same underlying consent and hidden-side-effect issue as the SDI-2 finding, not a separate exploit; a plant-diagnosis request should not unexpectedly provision persistent identity state.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
87% confidence
Finding

This POST transmits the resolved identity as both openId and mobile, together with source metadata, to the configured registration service without a visible consent check. The identity can originate from explicit input, configuration, or a workspace identity file; external networking is reasonable for AI diagnosis, but that does not justify undisclosed identity registration.

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

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is missing, without a warning, log, docstring, or explanatory comment. BaseEnum.init_subclass invokes this loader during class definition (L044–L059), so importing the module can modify the filesystem despite appearing to only load 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 documents an agent invocation but never invokes an agent or returns analysis.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly promises to invoke openclaw agent through subprocess and return an analysis result or session ID. The invocation is commented out; instead, L68 initializes an empty dictionary and L70 accesses its nonexistent stderr attribute, causing an exception that is caught and suppressed. Consequently, this method performs no AI analysis and implicitly returns None rather than the documented result.

Content

No source excerpt is available for this finding.