Back to skill

Security audit

Fish Aquatic Pet Health Diagnosis Analysis Tool | 鱼类水族宠物健康诊断分析工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report behavior outside its advertised aquarium video analysis, including account and profile handling, history lookups, and analysis or uploads despite an export-only option; the evidence is incomplete because one referenced item was missing.

Consider the suspicious verdict before installing. The reports raise concerns about unexpected account and profile handling, report history access, and remote media processing, including when an export-only option is used. Skillspector was partial: although it scanned all listed components, a referenced local item was missing, and the imported API behavior could not be verified.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/aquarium_analysis.py:200
Finding

Identity initialization replaces the authenticated sender with a shared default account

Content
View full analysis

Impact

A user can receive reports previously submitted by another user through the same shared workspace account. New analyses are also associated with that shared account. This does not require a server-side authorization bypass: the client supplies the shared account's valid credentials.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk manages user accounts and local database persistence rather than processing videos, calling a health-analysis API, or generating aquatic-pet reports. Database support alone need not be a mismatch, but this implementation specifically manages names, email addresses, birth dates, demographic information, and tokens without an evident connection to the declared diagnostic function. No network transmission or token harvesting is shown. This assessment is limited to the supplied chunk; other skill components may implement the advertised analysis.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The mandatory history-query instructions invoke scripts.autism_analysis instead of the aquarium module, contradicting the intended report scope. If that module is available, the agent could retrieve unrelated, potentially sensitive reports under the current identity; otherwise, the command fails.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The main video-analysis workflow matches the description. However, --list invokes skill.get_output_analysis_list(open_id=...) and exits without analyzing a supplied video, exposing a distinct historical-record retrieval capability absent from the description. Identity resolution and optional report saving are supporting implementation details, not independent mismatches. The imported API implementation is not supplied, so its upload behavior, authorization checks, and diagnostic accuracy cannot be verified from this chunk.

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: "aquarium-analysis"
description: "When a user provides a video URL or file of aquatic pets such as goldfish, koi, betta, shrimp, crab, etc. for analysis, this skill is triggered to perform aquatic pet health diagnosis analysis. Supports uploading local videos or online video URLs, calls server-side API for aquatic pet health examination, analyzes features such as scales, fins, body color, activity level, identifies potential diseases and outputs a pet health report. | 鱼类水族宠物健康诊断分析工具,当用户提供金鱼、锦鲤、斗鱼、虾、蟹等水族宠物的视频 URL 或文件需要分析�

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 the program ignores it and proceeds with analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The program parses --export-env-only but never checks it before initializing identity and entering the analysis workflow. When supplied with an input, a command explicitly presented as non-analyzing can upload private video content and initiate remote processing.

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 input files are submitted to the analysis API without disclosure that their contents leave the system.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The code reads the entire local file and passes its contents as a file payload to the analysis service. The provided file has no confirmation, user-facing notice, or comment explaining the external transmission; the comment about reading the file does not disclose the upload.

Content

No source excerpt is available for this finding.

The documented export-only mode does not prevent video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is accepted but never used to prevent execution of the video-analysis path. With a supplied video or URL, users expecting configuration-only output can instead trigger cloud processing and unintended disclosure of media.

Content

No source excerpt is available for this finding.

The skill includes persistent personal-profile management unrelated to aquatic-pet health analysis.

Medium
Category
Excessive Agency
Confidence
87% confidence
Finding

The User model defines storage for human-profile information including real name, email, birthday, sex, and age, and UserDao exposes the inherited database CRUD operations for these records (L470-L473). Although authentication tokens may support the declared server-side API calls, managing these additional personal attributes is not justified by the manifest's video-based aquatic-pet diagnosis purpose.

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 uses write mode, which immediately erases an existing file's contents. No docstring, comment, confirmation, or user-facing message explains this destructive behavior; exception reporting does not disclose successful truncation.

Content

No source excerpt is available for this finding.

API requests can silently register a service account and persist its credentials, beyond the declared video-analysis workflow.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

The general request wrapper can automatically send a registration request with silent=1 and register=1, then persist returned identity information and tokens without a separate enrollment decision. A video-analysis request therefore has an undisclosed account-creation and credential-retention side effect beyond merely submitting a video for examination.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently initiate remote account registration.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

A nominal HTTP operation can invoke remote registration automatically when cached tokens are missing. This hidden, state-changing behavior can create a persistent service identity without the user's informed approval, even though the requested task is aquatic-pet analysis.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
92% confidence
Finding

This request transmits the selected identity as both openId and mobile to the account service without a distinct consent step. The caller can select API_SECRET_KEY as that identity, potentially placing a credential in registration fields and associated server logs; the declared need for video transmission does not justify this additional identity disclosure.

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"):

History-query triggers include generic phrases without requiring aquarium-related context.

Low
Category
Trigger Abuse
Confidence
91% confidence
Finding

Generic phrases such as querying historical reports automatically trigger a cloud lookup without requiring aquarium context. This can cause unintended account-associated data retrieval and display when the user meant a different kind of report.

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

At L017–L020, YamlUtil.load creates parent directories and writes a configuration file when the requested path is absent, without a comment, docstring, prompt, or log disclosing this side effect. BaseEnum.init_subclass invokes this loader when the module's configuration classes are defined, so merely importing the module can 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:

The ai_chat docstring promises an agent invocation and analysis result, but the implementation never invokes an agent.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring explicitly states that this method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, the subprocess call is commented out (L61–L66), and accessing result.stderr on the empty dictionary created at L68 raises an exception that is caught and suppressed (L81–L82), so the method returns None without performing the documented analysis.

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/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