Back to skill

Security audit

Lawn Health Assessment | 草坪枯黄率与杂草密度评估

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this lawn-assessment skill suspicious with high confidence because scanners report undeclared account, identity, and history features, privacy and execution concerns, and a mismatch between its stated purpose and some reported behavior.

Consider the skill’s Review verdict before installing. The reported concerns include potentially unexpected media transmission, account registration and local storage of personal data and tokens, and history lookups triggered by broad wording. The scan is partial: one referenced path was missing, and some delegated behavior could not be established, so the results do not confirm that all behavior is understood.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk does not implement the declared lawn-assessment workflow. Its executable logic is generic scaffolding and a broken chat method, not image analysis. No active subprocess execution or external data transmission is shown. Imported base classes and API services are not supplied, so their behavior cannot be established; the mismatch assessment is limited to the visible code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk implements user database management rather than image analysis, segmentation, coverage measurement, or lawn-health scoring. Generic persistence could be a supporting implementation detail, but this code specifically manages user identities, personal data, and tokens without any demonstrated connection to the declared lawn-assessment workflow. No network transmission or token collection is shown; the mismatch concerns the implemented storage and account-management capabilities. This assessment is limited to the supplied chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Generic file, JSON, timing, and HTTP helpers can legitimately support an image-analysis skill and are not themselves mismatches. However, this module additionally implements an undeclared account-provisioning, identity-persistence, authentication, and billing workflow. Its request wrapper can attach configured credentials to caller-supplied absolute URLs without a visible destination restriction. These behaviors go beyond the declared lawn-assessment purpose. Because only a shared utility module is supplied, the absence of segmentation code here does not establish that the complete skill lacks it; the mismatch is based on the additional capabilities explicitly implemented in this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The CLI explicitly describes video analysis and accepts local MP4 files or video URLs. It also exposes a --list operation that retrieves analysis history using an open ID. The supplied code contains no visible lawn segmentation, wilting or weed coverage calculation, or lawn-health scoring. The delegated skill implementation is not supplied, so its analysis content cannot be established; however, the visible video workflow and history-retrieval capability materially differ from the declared image-based lawn assessment.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

The main analysis path could support the declared purpose, but the supplied chunk delegates processing to code that is not shown, so segmentation, coverage calculations, and scoring cannot be verified. The concrete mismatch is the additional identity-associated history-listing capability and exposed pet-specific configuration. These are not described as part of lawn assessment. The code does not establish that pet analysis actually occurs or that data is exfiltrated.

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-lawn-health-assessment-analysis"
description: "AI-powered lawn health assessment from drone or fixed-camera top-down images. Uses semantic segmentation to distinguish healthy turf (green), wilting/yellow turf (yellow-brown), bare soil and weeds (off-species color/texture), then computes wilting area ratio and weed coverage ratio, and outputs a composite lawn health score (0-100). Helps managers of golf courses, courtyards or municipal greenways quantify turf quality and guide irrigation, fertilization and weeding operations. Scenarios: home courtyards, golf courses, municipal park lawns, sports fields. | 通过无人机或固

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 that input images, videos, or resource URLs are sent to an external API.

Medium
Category
Output Handling
Confidence
89% confidence
Finding

Although the document mentions an API, the standard flow does not clearly warn users that local media or resource URLs leave their environment. Lawn imagery may expose private properties, people, or location information, and resource URLs may contain access tokens.

Content

No source excerpt is available for this finding.

The automatic history-query triggers include the generic phrase “历史报告” (“historical reports”) without requiring a lawn-related context.

Medium
Category
Trigger Abuse
Confidence
94% confidence
Finding

The examples identify the generic phrase 'historical reports' as an automatic trigger, while other instructions require a direct cloud query. This can cause an agent to access and display account-associated lawn reports when the user intended an unrelated reporting task.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to perform analysis, but execution still proceeds to analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never checked, so supplying it with an input still executes analysis and can transmit media externally. Users relying on the explicit promise not to analyze can unintentionally disclose data or incur service charges.

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 an analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The function reads the complete local file and passes its bytes to the analysis service without an upload disclosure or authorization check at this boundary. Private-property footage can contain sensitive details even though the intended subject is lawn health.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only option is never consulted after parsing, and execution continues through identity initialization and analysis when media is supplied. This violates the advertised no-analysis behavior and can cause unintended external transmission or charges.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup unrelated to lawn health assessment.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The get_user_by_username method delegates to a user-lookup utility, adding an identity-related capability to the service. Looking up users by username is not justified by the manifest's image segmentation, lawn coverage calculations, or health scoring functionality.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and authentication-token management unrelated to lawn-image assessment.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

L448-L465 define a user table containing real names, email addresses, birthdays, demographic information, and authentication tokens, while UserDao at L470-L473 exposes inherited CRUD operations for these records. DAO initialization also creates and migrates this user table (L180-L215), so this is an implemented persistence capability rather than unused field documentation. Managing personal profiles and user credentials is not justified by the manifest's image-segmentation and lawn-health scoring purpose.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims to invoke OpenClaw through subprocess, but the implementation never invokes an agent.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly promises an OpenClaw agent invocation, but the command and subprocess execution are commented out. Instead, L68 creates an empty dictionary, and accessing result.stderr raises an exception that is caught, causing the method to return None without performing the documented analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper uses mode 'w', which immediately erases an existing file's contents. There is no confirmation, operation log, docstring, or comment disclosing this destructive behavior; exception tracing only reports failures.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote user and persist account credentials, beyond the stated lawn-assessment purpose.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

An ordinary HTTP request can trigger a separate login request with silent registration enabled, sending an identity and persisting returned profile data and authentication tokens. This creates undisclosed account and credential-storage side effects beyond the advertised lawn analysis, without an explicit consent or enrollment step in this code.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The request wrapper automatically attempts remote registration when authentication tokens are unavailable and saves returned tokens without a separate enrollment decision. This is the same underlying issue as the SDI-2 finding: a routine API operation unexpectedly changes remote account state and creates a local credential-retention obligation.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

This POST transmits an identity as both openId and mobile to a remote login/registration endpoint without an explicit user enrollment step. The surrounding code can select API_SECRET_KEY as that identity, potentially sending a secret in ordinary registration fields; the supplied source does not establish that the destination is malicious.

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 writes 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 configuration is absent, without any explanatory comment, docstring, prompt, or log. Because BaseEnum.init_subclass invokes this loader at L053 and L058, 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 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: