Back to skill

Security audit

Indoor Plant Light Stress Detection | 室内植物光照不足/过强识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this plant light stress analysis skill suspicious because scanners report privacy disclosure gaps, unintended analysis and data handling risks, and questionable credential and workspace boundaries.

Consider not installing until the developer clarifies when images are uploaded, fixes the export-only behavior, and explains how API credentials and local data are handled. The scan was partial: 28 of 29 components were scanned, with a malformed manifest and an unresolved reference, so the evidence is incomplete.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (21)

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-indoor-plant-light-stress-detect-analysis"
description: "AI-powered indoor plant light stress detection from smart planter or fixed camera images (optionally combined with light sensor lux data). Detects morphological anomalies caused by low light (elongated internodes / etiolation, thin leaves, pale green color) or strong-light damage (leaf burn spots, scorched edges, curling, bleaching). Combined with optional lux sensor readings, it determines the current light stress type (insufficient / excessive / normal) and outputs adjustment suggestions (e.g. move to window, add shading, adjust grow-light duration). Scenarios: smart planters,

The local-media analysis workflow lacks an explicit disclosure that user images or videos are sent to an external API.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The local-media workflow directs analysis without clearly stating that image or video contents leave the local environment for external processing. Although API use is mentioned elsewhere, indoor camera footage can contain people, documents, or private surroundings, making an explicit upload disclosure important.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but analysis still runs.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to analyze, but execution never checks that flag. When an input is also supplied, the ordinary analysis path still runs, potentially transmitting 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 implementation reads the complete local file and passes it to the analysis API without any visible upload-disclosure or authorization gate. This is consistent with cloud analysis rather than evidence of malicious exfiltration, but indoor media may expose substantially more private information than the plant itself.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but the code ignores it and executes the normal analysis path.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never used to stop normal processing. Supplying it alongside media input therefore still runs analysis, violating the caller's explicit expectation that no analysis will occur and potentially causing an unwanted upload.

Content

No source excerpt is available for this finding.

The documented workspace-only database guarantee is contradicted by accepting unnormalized paths based on a string prefix.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

A path such as /workspace/data/../outside.db passes both string-prefix checks while resolving outside the intended data directory. Symlinks can similarly defeat textual containment, so a caller able to influence db_path can cause SQLite creation or modification beyond the documented boundary.

Content

No source excerpt is available for this finding.

save() is documented as creating a new record but silently falls back to overwriting existing records.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Any insertion exception triggers an update attempt, followed by a username-based overwrite that copies nearly all model fields. If record values are influenced by an untrusted caller, an intended create can become modification of an existing user, including identity or token fields; the code does not demonstrate a remote exploit path by itself.

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

The generically named open helper always uses mode 'w', which immediately truncates an existing file even before the caller writes anything. No docstring, explanatory comment, confirmation, or operation-specific log discloses this behavior; exception tracing does not warn about successful truncation.

Content

No source excerpt is available for this finding.

Workspace detection selects the outermost skills ancestor despite documenting nearest-workspace detection and agent isolation.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

Selecting the first '/skills/' component can resolve an outer workspace instead of the current agent's workspace when paths contain nested skills directories and earlier detection branches do not apply. Downstream helpers then create directories or read smyx-api-key.txt in that outer workspace, potentially mixing agent identities and data; this undermines application-level isolation but does not bypass filesystem permissions.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
92% confidence
Finding

Automatic registration and credential caching can be legitimate, but this helper prioritizes API_SECRET_KEY as current__user_name and passes it into registration as both openId and mobile when tokens are missing. That conflates a secret credential with account identity and can place it in remote profile records or registration logs; the local credential storage protections cannot be assessed from this file.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The HTTP request itself is expected API functionality, but its payload can contain API_SECRET_KEY in the openId and mobile fields through the surrounding call chain. This unnecessarily exposes the credential to identity-processing systems at the configured health endpoint; it overlaps the preceding finding and is not evidence of a separate malicious exfiltration destination.

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 generic phrase “历史报告” (“historical reports”) is listed as an automatic trigger without requiring plant-light context.

Low
Category
Trigger Abuse
Confidence
93% confidence
Finding

The examples broaden automatic invocation to the generic phrase “historical reports,” potentially routing unrelated requests into this skill's cloud history lookup. The mandatory API-query instructions amplify the risk of unintended network requests and displaying irrelevant private report history.

Content

No source excerpt is available for this finding.

Loading configuration silently creates directories and writes missing configuration files, including during module import.

Low
Category
Output Handling
Confidence
93% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path does not exist, without a prompt, log, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader at L053 and L058, so defining the configuration subclasses during import can modify the filesystem even when the caller only intended 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:

The ai_chat docstring claims to invoke openclaw through subprocess, but the implementation never executes it.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes the openclaw agent command through subprocess. However, command construction and execution are commented out, and L68 instead assigns an empty dictionary to result. Accessing result.stderr at L70 then raises an AttributeError that is caught at L81, so the method returns None without performing the documented agent invocation.

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