Back to skill

Security audit

Crop-Specific Disease Database | 经济作物专属病害库

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with medium confidence because scanners report major gaps between its crop-disease purpose and its account, video-analysis, and data-handling behavior.

Consider avoiding installation until the skill’s purpose, tool access, remote account creation, credential storage, and video or report data transfers are clearly explained and the missing reference is reviewed. The verdict is suspicious, not a claim that the author is malicious; the partial scan leaves some evidence 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
  • 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
99% confidence
Finding

The supplied chunk contains no crop-disease library entries, disease-specific models, image processing, or recognition logic. Its concrete model and specialized queries concern users, not crop diseases. Although database access can support a recognition skill, this code's user-account persistence and schema migration are materially different from the declared disease-library expansion. No network transmission or token acquisition is shown; the mismatch is the unrelated local persistence and user-management functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied code explicitly presents itself as a video-analysis tool and implements video submission and history-listing workflows. It contains no visible crop-specific disease definitions, library updates, or leaf-disease recognition logic. Although the imported skill's implementation is not shown and could perform specialized analysis, the visible interface and history-retrieval capability are materially different from the declared disease-library expansion purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The visible code contains no crop-disease definitions, image processing, recognition logic, or disease-library updates corresponding to the description. The agent-chat method does not actually execute an external command because execution is commented out; it instead encounters a caught attribute error. Imported parent classes could provide additional behavior, but their implementations are not supplied, so they cannot substantiate the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk contains no disease-library expansion, crop-specific disease definitions, image processing, or recognition logic. Generic string, date, filesystem, and request helpers could support the declared skill and are not independently suspicious. However, automatic identity provisioning, credential-file access, remote login/registration, and account/payment handling are substantial additional behaviors not disclosed by the description. These operations generally occur when the relevant methods are invoked; this chunk alone does not establish malicious intent or show whether disease-recognition functionality exists elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied code contains no crop disease definitions, recognition logic, model configuration, or library-update functionality supporting the stated expansion. Its visible functionality centers on submitting generic analysis jobs and managing their reports. File submission and polling could support a disease-recognition service, but the imported service implementation is not supplied, and nothing in this chunk establishes that specialization. Report-history retrieval also extends beyond the stated leaf-disease identification purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk implements a general API client rather than disease-library expansion or leaf-disease recognition. Network helpers could support such a skill, but this code shows no disease-specific endpoints, crop data, image processing, or recognition logic, and it includes an unrelated user-lookup capability. The mismatch assessment is limited to the supplied chunk; it does not establish malicious behavior or what remote endpoints actually do.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The chunk contains no crop-disease classes, recognition logic, model configuration, or disease-library additions. Instead, it configures general AI analysis endpoints and a health-report export resource. Generic service configuration could support a recognition system, but the health-order reporting resource and absence of any crop-specific configuration make the supplied code materially inconsistent with the declared purpose. This assessment is limited to the provided chunk; it does not establish that these endpoints are actually called.

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-crop-specific-disease-analysis"
description: "Expands the disease identification library to cover economic-crop-specific diseases (corn northern/southern leaf blight, potato late blight, peanut leaf spot, tomato viral disease, etc.) for precise leaf-disease recognition. | 扩充病害识别库至经济作物专属病害(玉米大斑病/小斑病、土豆晚疫病、花生叶斑病、番茄病毒病等),实现叶片病害的精准识别。"
version: "1.0.22"
license: "MIT-0"
---

# 🌽 Crop Specific Disease Identification | 经济作物专属病害库

> 扩充病害识别库至经济作物专属病害(玉米大斑�

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 automatic trigger includes the generic phrase “历史报告” (“historical reports”) without requiring crop-disease context.

Medium
Category
Trigger Abuse
Confidence
92% confidence
Finding

The generic trigger '历史报告' can activate this skill for requests unrelated to crop disease. Because activation mandates a cloud history query using an automatically selected identity, an ambiguous request can cause unintended network access and disclosure of account-associated report information in the conversation.

Content

No source excerpt is available for this finding.

The --export-env-only help promises no analysis, but the flag is ignored and normal analysis still runs.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts a flag explicitly promising not to perform analysis, but execution never checks it. When combined with an input or history option, a caller expecting a non-executing operation can instead trigger remote processing or report retrieval, potentially uploading media or incurring 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 submitted to the analysis API without disclosing the upload.

Medium
Category
Output Handling
Confidence
86% confidence
Finding

The code reads the entire local file and passes its contents as a file payload to the analysis API. No prompt, user-facing message, docstring, or comment in this file explains that local video data is transmitted; the file-reading comment does not disclose the upload.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The non-analysis option is parsed but never consulted, so valid input still reaches the normal analysis path. This violates the caller's explicit expectation of no processing and can cause unintended media submission, report access, or paid API usage.

Content

No source excerpt is available for this finding.

The file implements persistent user-profile and credential management unrelated to crop-disease recognition.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

User-profile support in a shared library is not inherently suspicious, but this implementation stores token and open_token as ordinary plaintext SQLite fields in the workspace database. Anyone obtaining read access to that database or its backups could recover reusable credentials; no credential-specific storage protection is visible.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents. There is no confirmation, operation-specific log, docstring, or comment disclosing this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

Disease-recognition requests can silently register a remote account and persist its authentication credentials.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

An ordinary HTTP request can trigger silent remote registration using the current identity, then save returned authentication tokens and user information locally. This introduces undisclosed account-creation and credential-retention side effects beyond disease recognition, without a visible consent or explicit provisioning boundary.

Content

No source excerpt is available for this finding.

HTTP requests can silently initiate remote user registration.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The authentication helper explicitly sends silent=1 and register=1, and it is reached automatically when credentials are unavailable. A caller requesting crop analysis can therefore cause remote account creation without a separate authorization or consent step; this overlaps the account-provisioning issue identified by SDI-1.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

External authentication traffic alone is not a vulnerability, but current__user_name preferentially takes ApiEnum.API_SECRET_KEY and is passed to this helper when tokens are missing. Consequently, the configured API secret can be transmitted as both openId and mobile to the health-service login endpoint, potentially exposing it to identity records and logging systems not intended to handle API secrets.

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 parent directories and writes a YAML file when the requested configuration is missing, without a comment, docstring, log, or confirmation disclosing this side effect. BaseEnum.init_subclass invokes this loader during class creation (L053 and L058), so importing this module can unexpectedly modify the filesystem.

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: