Back to skill

Security audit

Aquarium Plant Health Monitor | 水族箱水草健康监测

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this aquarium plant analysis skill suspicious because scanners report account and credential handling, remote media analysis, and behaviors that exceed or do not clearly match its stated purpose.

Consider avoiding installation until the account and credential behavior, destination restrictions, and remote media upload disclosures are clarified. Skillspector reports partial analysis because a referenced local path was missing; although it scanned all listed components, the evidence is not fully complete. AIG completed without findings, but that does not resolve the concerns reported by Skillspector.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Basic file, JSON, polling, and HTTP helpers could reasonably support the declared image-analysis service and are not independently mismatches. However, this chunk also implements an undeclared account provisioning, identity persistence, credential propagation, and billing workflow. Those behaviors materially exceed the stated plant-monitoring purpose. No image analysis or plant-health assessment is implemented in this chunk, although its absence alone would not establish a mismatch because this is a shared utility module. The code does not establish malicious intent or prove that credentials have actually been sent to an unrelated destination.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk concerns user identity and token persistence rather than aquatic plant monitoring. Database support alone would not establish a mismatch, but this implementation specifically manages personal profiles and authentication-related records without any demonstrated connection to plant images, health assessments, or care recommendations. No image analysis or plant-health functionality appears in the chunk. These findings are limited to the supplied code; it does not show token exfiltration or other external transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code is generic framework scaffolding rather than an implementation of the declared plant-health monitoring capability. Generic chat support could be a legitimate implementation detail, but this helper does not execute an agent or produce analysis. Imported base classes and services are not provided, so their behavior cannot be assessed. No undeclared external execution, network access, or malicious activity is demonstrated by this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

The supplied code explicitly presents itself as a video-analysis tool and supports an analysis-history listing operation. It contains no visible aquatic-plant-specific detection, symptom assessment, or care-recommendation logic. Because the actual analysis is delegated to an unavailable skill implementation, it is not possible to establish whether the backend performs plant-health assessment. The mismatch is therefore based on the visible video-oriented interface and undeclared history-retrieval capability, not an assumption about the backend's analysis domain. Output-file writing and API-related handling are supporting implementation details rather than independent mismatches.

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-aquarium-plant-health-monitor-analysis"
description: "AI-powered aquatic plant health monitoring from aquarium camera images. Detects leaf color changes (yellowing, bleaching, blackening), morphological anomalies (melting, curling, holes), and iron deficiency symptoms in submerged plants. Outputs health assessment and care suggestions (e.g., supplement iron fertilizer, adjust lighting, increase CO₂). Helps early detection of aquatic plant issues and maintains aquarium ecological balance. Scenarios: smart fish tanks, aquascaping tanks, aquarium shops. | 通过智能鱼缸或水下摄像头拍摄水草的图像,利用AI视觉分�

The request helper can send shared service credentials and user identity to arbitrary absolute URLs (L572–L578, L610–L623, L646–L647).

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs but automatically attaches shared access tokens, an API key, an authorization token, and user identity without checking the destination. If an attacker can influence a caller's URL, those credentials can be sent to an attacker-controlled endpoint; HTTP destinations also expose them in transit.

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 lacks an explicit privacy warning that local images and videos are sent to an external API.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

Although API usage is mentioned, the workflow does not clearly tell users that selecting a local image or video transmits its contents to an external service. Aquarium recordings can include private interiors, people, or identifying details, making undisclosed upload a meaningful privacy risk.

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 proceeds with analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only but never checks it, so invoking it with media input still enters the analysis workflow. Users relying on the explicit no-analysis promise can unintentionally upload private media, and identity initialization occurs even before input validation.

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

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The helper reads the entire selected local file into a multipart payload and passes it to the analysis API without an upload-specific authorization check or notice on this path. Even aquarium footage can reveal private surroundings, so users should not have to infer external transmission from a generic analysis request.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but the flag is ignored and analysis still executes.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never consulted, allowing execution to continue into identity initialization and remote video analysis. A user expecting configuration-only behavior can therefore trigger an unintended media upload or other API-side effects.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

L448–L465 define a user table containing real names, email addresses, birthdays, and token/open_token fields, and L470–L473 expose it through a DAO with inherited read, update, and delete operations. DAO initialization also creates and migrates this table (L180–L215), making this an implemented account-data capability rather than merely unused field declarations. Managing personal profiles and credentials is not justified by the manifest's stated image-based plant assessment and care-advice purpose.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims it invokes an analysis agent, but the implementation never invokes one or returns analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly states that this method invokes openclaw agent through subprocess and returns analysis or a session ID. However, the subprocess invocation is commented out, and the empty dictionary assigned at L68 causes result.stderr to raise an exception that is swallowed, so calling this method returns 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 generically named helper has no docstring, explanatory comment, confirmation, or user-facing log disclosing this behavior; exception tracing only handles failures.

Content

No source excerpt is available for this finding.

Plant-analysis requests can silently register an external user and persist account credentials (L550–L565, L580–L604).

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary request can automatically invoke phoneLogin with silent registration enabled, transmit the current identity, and save returned authentication tokens locally. This creates external account and credential-persistence side effects without an explicit opt-in in this path, exceeding what a user would reasonably infer from aquarium plant analysis.

Content

No source excerpt is available for this finding.

HTTP authentication silently registers a remote user and persists returned authentication tokens.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The authentication helper performs remote registration and persists returned tokens as implicit side effects of a normal HTTP operation. This is the same underlying issue as the registration finding above: plant analysis should not silently establish persistent external account state without a clear authorization boundary.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

External transmission is not inherently unsafe, but this particular POST sends the current identity as both openId and mobile while requesting silent registration. The value can originate from an API-secret configuration or workspace identity file, making undisclosed transmission more consequential than a routine plant-analysis API call; the destination's actual configuration is not provided.

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

YamlUtil.load creates the parent directory and writes a YAML file when the requested configuration is missing, without a warning, log, or explanatory comment. BaseEnum.init_subclass calls this loader at L052–L059, so importing the module can modify the filesystem even though no explicit save was requested.

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