Back to skill

Security audit

Plant Growth Stage Detection | 植物生长阶段自动判定

Security checks for vulnerabilities and agentic risk

Overview

This plant-analysis skill needs review because it automatically registers service accounts, mishandles credentials, and can upload media despite its export-only option.

Wait for explicit account onboarding, separation of secrets from account identifiers, protected token storage and a working export-only mode. Media processing uses an external service and may incur charges. The empty SARIF results do not resolve these code-backed concerns, while the advisory critical rating does 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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (28)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk is a user-management data-access module, not a plant-image analysis implementation. Its concrete model, sys_user, stores names, email, birthday, sex, age, token, and open_token; its methods create, query, update, and delete those records. Database initialization also creates tables and adds missing user columns. Although database utilities can support a larger skill, this chunk specifically manages user identities and credentials without a demonstrated connection to the declared plant-detection purpose. No camera capture, image inference, phenological classification, or growing-control logic appears here. The finding is limited to the supplied chunk; it does not establish malicious intent or external data transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied code does not implement the declared primary capability: it contains no image acquisition, visual feature extraction, developmental-stage classification, or cultivation guidance. Instead, it provides generic wrappers and a disabled, broken agent-call stub. This is a functional purpose mismatch in the supplied chunk, not evidence of malicious activity or undeclared external execution. Unseen base classes and API-service implementations could contain additional behavior, but that cannot be established here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied code explicitly presents itself as a video-analysis tool and invokes get_output_analysis on a video path or URL. It also exposes a history-listing operation through get_output_analysis_list(open_id). No visible logic handles periodic plant images, identifies phenological features, classifies growth stages, or produces plant-specific guidance. The imported analysis implementation is not supplied, so its precise analytical behavior cannot be verified; nevertheless, the visible video-oriented interface and history capability materially differ from the declared image-based plant monitoring purpose. Optional file output and identity resolution are supporting details, not independently treated as mismatches.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The documentation mandates silent identity initialization and creation without user-facing account disclosure; the static finding additionally reports workspace credential discovery and automatic remote registration. Together these indicate an insufficient consent boundary around persistent account creation and identity transmission, although the exact credential handling and payment behavior cannot be independently verified without the scripts.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied code centers on submitting media to an analysis service and managing its reports. It contains no plant-specific inputs, phenological feature handling, growth-stage classification, periodic camera capture, or cultivation guidance logic. References to videoUrl, commonAiResponse, and healthAiResponse further indicate a broader analysis interface. Uploading files and polling could legitimately support the declared purpose, so those implementation details alone are not the mismatch. The material discrepancy is the generic video-analysis/report-management behavior versus the narrowly described plant-stage detection capability. Imported API implementations are not supplied, so any plant-specific processing performed downstream cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
82% confidence
Finding

Generic AI-analysis endpoint configuration could support the declared purpose and is not inherently a mismatch. However, DETAIL_EXPORT_URL explicitly targets '/health/order/api/getReportDetailExport?id=', introducing a health-report resource not explained by the plant-monitoring description. This supports a resource-level mismatch, although the supplied configuration alone does not establish that the endpoint is actually called. The absence of plant-specific analysis in this configuration file is not itself evidence of a mismatch.

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-growth-stage-detection-analysis"
description: "AI-powered plant growth stage auto-detection from periodic full-plant images via smart pot / greenhouse fixed cameras. Recognizes key phenological features—cotyledon emergence, true-leaf count, flower bud differentiation, blooming, fruit setting, fruit ripening—and identifies the current developmental stage (germination, seedling, vegetative, flowering, fruiting, ripening), enabling precision irrigation/fertilization/lighting control and personalized growing guidance. Scenarios: smart pots, home grow boxes, 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 privacy warning about sending plant imagery or media URLs to an external API.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The workflow sends local media or media URLs to an external API, but does not require a clear privacy disclosure or confirmation before transmission. Although cloud processing is mentioned, broad automatic activation can expose greenhouse or household imagery, embedded metadata, or access-bearing URL parameters beyond the user's intended processing boundary.

Content

No source excerpt is available for this finding.

The documented export-only mode does not prevent analysis from running.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option explicitly promises not to execute analysis, but its value is never checked: with an input supplied, execution still resolves identity and calls skill.get_output_analysis. This violates the user's requested execution boundary and could cause unintended image processing, uploads, or service charges, depending on the downstream implementation. Plant-camera images can reveal private home or greenhouse details, although this file alone does not establish that data is transmitted.

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 disclosing the upload to the user.

Medium
Category
Output Handling
Confidence
86% confidence
Finding

The code reads the entire selected local file and passes its contents to the analysis API without any visible disclosure or consent check for external processing. Plant-monitoring footage can expose household interiors, people, or commercially sensitive growing operations, making undisclosed transmission a privacy risk. Uploading media is consistent with the intended analysis functionality rather than evidence of malicious exfiltration, and disclosure or authorization elsewhere could mitigate this finding.

Content

No source excerpt is available for this finding.

The documented export-only mode does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag promises to output environment exports without performing analysis, but args.export_env_only is never checked. When supplied with --input or --url, execution still resolves identity and invokes skill.get_output_analysis, potentially causing unintended processing, external disclosure, or service charges depending on the downstream implementation. Plant and greenhouse imagery may reveal private surroundings or commercially sensitive growing operations, making this broken no-analysis guarantee security-relevant.

Content

No source excerpt is available for this finding.

save() is documented as creating a new record but can overwrite an existing record after an insertion failure.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

Any insertion exception triggers an update attempt, followed by a username-based fallback that also matches realname and copies every column except username, including identifiers and credential fields. If an untrusted caller can influence the submitted model, a conflicting insert can overwrite an existing user's data; the shared user database makes this more consequential than ordinary plant-stage record corruption, although external reachability is not established here.

Content

No source excerpt is available for this finding.

The DAO implements personal-profile and credential storage unrelated to plant growth-stage detection.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The User model includes real names, email addresses, birthdays, sex, age, and token/open_token fields, and UserDao exposes inherited read/write/delete operations for these records. Managing this identity and credential data is not justified by the manifest's image-based plant-stage analysis and growing-guidance purpose; database initialization also creates and migrates the user table at L185-L214.

Content

No source excerpt is available for this finding.

ai_chat documents agent-based analysis, but its implementation never invokes the agent or returns analysis.

Medium
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. However, the invocation is commented out, and the replacement empty dictionary causes result.stderr to raise an exception that is caught, leaving the method to return None without performing analysis.

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

Opening the supplied path in 'w' mode immediately erases any existing contents, even before the caller writes anything. The generic method name does not disclose this behavior, and there is no explanatory comment, docstring, confirmation, or operation-specific log.

Content

No source excerpt is available for this finding.

The request helper silently registers remote user accounts, a capability not declared for plant growth-stage analysis.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

When authentication tokens are unavailable, an ordinary request can silently transmit an identity to a remote endpoint with registration enabled. This creates an undisclosed account-creation and privacy side effect beyond the advertised plant-analysis functionality; the code does not establish that remote registration is authorized by the user.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can trigger undisclosed remote account registration.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The request helper combines routine HTTP activity with implicit remote registration using 'silent': 1 and 'register': 1. This is the same underlying issue as the SDI-2 finding: users invoking plant analysis can acquire remote account state and disclose an identifier without an explicit registration step.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
92% confidence
Finding

External transmission alone is expected for an AI-backed skill, but this call receives a username selected preferentially from ApiEnum.API_SECRET_KEY and sends it as both 'openId' and 'mobile'. When that fallback executes with an API key configured, a credential is repurposed as account identity and may enter remote account records or identity-field logs; the endpoint configuration and server-side handling are not shown.

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 default trigger treats any plant-image analysis request as a growth-stage assessment.

Low
Category
Trigger Abuse
Confidence
91% confidence
Finding

Line 56 activates the skill whenever a user supplies plant imagery requiring analysis, without requiring growth-stage intent. This can capture requests for disease diagnosis, species identification, or pest detection, despite the more specific intent condition on line 57.

Content

No source excerpt is available for this finding.

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

Low
Category
Output Handling
Confidence
92% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration does not exist, without a log, prompt, or explanatory comment/docstring. This is an unexpected side effect of loading configuration and can occur during module import through BaseEnum.init_subclass (L044–L059).

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