Back to skill

Security audit

Plant Wilting Monitoring Skill | 植物枯萎监测技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because its scanners report substantial account, credential, and general video or API activity beyond the described plant-wilting analysis; the evidence is incomplete and does not establish malicious intent.

Treat this as a review-required skill and weigh whether its reported account handling, credential storage, network activity, and media uploads are acceptable before installing. The scan was partial: two local references were missing, and some delegated service behavior and network destinations could not be verified. The verdict is suspicious, not a finding that the author acted maliciously.

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

The supplied chunk centers on the sys_user table and operations such as username lookup, default-user selection, and record updates or deletion. It contains no hyperspectral processing, computer-vision analysis, wilting detection, or warning generation. Database persistence could support a monitoring skill, but this chunk specifically implements user/account storage without an evident connection to the declared purpose. No network transmission or token use is shown; the 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
96% confidence
Finding

The visible implementation does not substantiate the declared plant-monitoring purpose. Although an AI service could support that purpose, this chunk contains neither plant-specific processing nor a functioning agent invocation. Imported base and API implementations were not supplied, so their behavior cannot be assessed. No active subprocess execution or external data transmission is demonstrated here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code exposes video submission and historical-analysis listing, but contains no plant-specific processing, hyperspectral handling, wilting detection, or early-warning logic. Its analysis implementation is delegated to an unavailable skill.get_output_analysis method, so the underlying model's capabilities cannot be verified from this chunk. Nevertheless, the visible interface is a generic video-analysis tool with user-associated history retrieval, materially different from the narrowly declared plant-monitoring purpose. Optional result-file writing is a supporting implementation detail, not itself a mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Generic file, JSON, polling, and HTTP helpers could legitimately support the declared monitoring function and are not independently evidence of a mismatch. However, this chunk also implements undisclosed account provisioning, persistent identity management, and credential-bearing network operations. In particular, absolute request URLs are accepted without a visible destination restriction before authentication headers are attached. These capabilities extend beyond the declared plant-monitoring purpose. The assessment is limited to this chunk: it does not establish malicious intent or rule out plant-analysis functionality elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The supplied code contains no hyperspectral processing, computer vision, wilting detection, or early-warning logic. Network and storage helpers could support such a system, but this chunk instead exposes a general-purpose backend interface, including an unrelated user-lookup capability, that the description does not represent. This assessment is limited to the supplied chunk; it does not establish malicious behavior or rule out plant-monitoring functionality elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

The clearest mismatch is DETAIL_EXPORT_URL, which targets '/health/order/api/getReportDetailExport?id=' under a health-service base URL. That resource is inconsistent with the declared plant-wilting monitoring purpose. Generic AI-analysis endpoints could support the stated purpose, and the absence of detection logic in a configuration file is not itself evidence of mismatch. This chunk only defines configuration; it does not demonstrate actual network requests or report exports.

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: "plant-wilting-monitoring-analysis"
description: "Early monitoring of plant wilting based on hyperspectral imaging and computer vision, captures early wilting signs before visible symptoms, provides early warning for precision irrigation and disease control. | 植物枯萎监测技能,基于高光谱成像与计算机视觉,在肉眼可见症状前捕捉早期枯萎迹象,为精准灌溉和病害防控提供早期预警"
version: "1.0.27"
license: "MIT-0"
---

# 🥀 Plant Wilting Monitoring Skill | 植物枯萎监测技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询

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 --export-env-only option promises not to run analysis, but analysis still executes.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises a no-analysis mode, but main never checks args.export_env_only before identity initialization or analysis. A caller supplying this flag with an input can unintentionally upload imagery and initiate remote processing despite explicitly selecting a non-executing 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 video contents are submitted to the analysis API without an upload disclosure.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The code reads the entire local video into a multipart file payload and passes it to the analysis service. No confirmation, user-facing notice, or comment in this file explains that local video content is transmitted to an API; the existing comment only describes reading the file.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but the code ignores it and still analyzes supplied input.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never acted upon, so supplied media still reaches analyze_video. This violates the advertised no-analysis boundary and can cause unintended cloud uploads, processing, and identity-related side effects.

Content

No source excerpt is available for this finding.

L098–L101 expose username-based user lookup, a capability outside the stated plant-wilting analysis purpose.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

The service exposes a method that delegates username-based user lookup to RequestUtil. Looking up user accounts is not a direct requirement of hyperspectral imaging, wilting detection, or irrigation warnings, and the supplied manifest does not declare account-management functionality.

Content

No source excerpt is available for this finding.

The skill includes user-profile and authentication-token storage unrelated to plant-wilting analysis.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

The model supports storing authentication tokens and personal profile data as ordinary fields in a local SQLite database, without visible credential-specific protection. The model's existence is not evidence of malicious collection, but persisting populated tokens this way exposes reusable credentials to readers of the database or its backups; the plant-monitoring description does not explain this additional sensitive-data footprint.

Content

No source excerpt is available for this finding.

The documented agent-analysis call is disabled, so ai_chat never produces the promised analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly claims that ai_chat invokes the openclaw agent through subprocess. However, the invocation is commented out at L61–L66, and the empty dictionary assigned at L68 causes result.stderr at L70 to raise AttributeError; the exception handler suppresses that failure and the method returns None rather than an analysis result or session ID.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents. No confirmation, user-facing notice, docstring, or comment explains this destructive behavior; the exception handler only runs if opening fails.

Content

No source excerpt is available for this finding.

The request helper silently provisions remote user accounts and persists authentication credentials, beyond the stated plant-monitoring purpose.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

A generic HTTP request can trigger remote login or registration and save returned authentication tokens locally without a separate consent step. Furthermore, API_SECRET_KEY takes precedence as current__user_name and can consequently be sent as both mobile and openId to the login service, exposing a secret outside its intended authentication context.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote user account.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The login payload explicitly sets register to 1 and silent to 1, and the helper invokes it automatically when credentials are missing. An otherwise routine plant-analysis request can therefore create a remote account and disclose an identifier without a distinct enrollment decision.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

External transmission is not inherently unsafe, but this POST sends the resolved identity as mobile and openId during automatic enrollment. The caller can supply API_SECRET_KEY as that identity, creating a concrete secret-disclosure path; the destination's configuration and trustworthiness are not established by this source.

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

YamlUtil.load creates the parent directory and writes a YAML file when the requested configuration is absent, without a comment, docstring, prompt, or log disclosing this side effect. BaseEnum.init_subclass invokes this loader when the enum classes are defined (L044–L059), so simply 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: