Back to skill

Security audit

Ornamental Fish Color Brightness Assessment | 观赏鱼体色鲜艳度评估

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because it reports undeclared account, identity and credential handling, along with behavior that can disregard an explicit no-analysis option.

Consider avoiding installation until the skill’s account registration, credential handling, external media transfers and export-only behavior are clearly explained and addressed. Dependency inspection was not requested, so this scan does not assess dependency risks.

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/smyx_fish_color_brightness_assessment_analysis.py:61
Finding

Sender identity is discarded, causing different callers to share a cloud account

Content
View full analysis

Impact

In the stated shared deployment, another sender can obtain analysis history accumulated under the fallback account and submit analyses attributed to that same account. This does not require bypassing cloud authorization: the client supplies the shared account's legitimate 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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (25)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Generic database access could support the declared application, but this chunk specifically implements user-account and token persistence rather than storage of fish images, color standards, or analysis results. That concrete capability is not represented in the description and constitutes a materially different resource and functional scope. The conclusion is limited to the supplied chunk; it does not establish that the broader skill lacks fish-analysis functionality or that the code exfiltrates data.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Generic file, JSON, date, and polling helpers could support the declared feature and are not themselves a mismatch. However, this chunk also implements an undeclared account, credential, and billing integration with external services. No camera capture, fish-region detection, HSV analysis, species-reference comparison, vibrancy scoring, or low-vibrancy warning logic appears here. Because this is only a code chunk, those omissions do not establish that the complete skill lacks the advertised functionality; the affirmative mismatch is the additional account and credential behavior visible in this code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied code does not substantiate the declared fish-health imaging workflow. Although comments describe invoking an external agent, the subprocess execution is disabled, so no actual agent invocation should be attributed to this chunk. Imported base classes and API services are not provided, so their behavior cannot be assessed; the visible code shows a material description–implementation mismatch, not evidence of malicious activity.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible code describes itself as a video-analysis tool and implements video submission and identity-associated history retrieval. It contains no visible camera scheduling, fish-region identification, HSV measurements, species-specific reference comparison, vibrancy scoring, or threshold warnings. Video processing could support the declared purpose, and the imported skill implementation might perform fish-specific analysis, so those missing details alone are not conclusive. However, the supplied chunk does not establish that connection and explicitly exposes an undeclared analysis-history capability. The delegated implementation and its data handling cannot be verified from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied chunk implements general backend API access rather than camera capture, image analysis, healthy-color comparisons, scoring, or alerts. HTTP and storage helpers could support the declared system, so their presence alone would not establish a mismatch. However, the explicit user-lookup capability is unrelated to the stated purpose, and no connection between this API service and the fish-monitoring workflow is shown. This assessment is limited to the supplied chunk; it does not establish that the broader skill lacks the declared functionality or that any network requests execute automatically.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The visible implementation is a general analysis-service client and report-management interface. Its inputs and outputs are not explicitly tied to ornamental-fish coloration, and none of the defining fish-assessment operations appear in this chunk. File validation, service calls, and polling could support the declared purpose, but the code does not establish that connection. Imported service implementations could contain additional relevant behavior; therefore, this assessment is limited to the supplied chunk and does not imply malicious activity.

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-fish-color-brightness-assessment-analysis"
description: "Through fixed aquarium cameras, the system periodically captures high-definition side images of ornamental fish (such as koi, goldfish, tropical fish), and uses AI vision analysis to extract color saturation (HSV-S channel) and brightness (HSV-V channel) of specific body regions (e.g. mid-trunk), compares them with healthy standard color ranges of the same species (built-in database or user-defined), and outputs a vibrancy. | 通过鱼缸固定摄像头,定期拍摄观赏鱼(如锦鲤、金鱼、热带鱼)的体侧高清图像,利用 AI 视觉分析技术提取鱼体特�

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 clear privacy warning about sending input media to an external API.

Medium
Category
Output Handling
Confidence
89% confidence
Finding

The workflow mentions an API but does not clearly warn that selecting a local file sends its contents to an external service. Aquarium footage can include people or private surroundings, so users may disclose more than the fish image they intended to analyze.

Content

No source excerpt is available for this finding.

The documented environment-export-only mode still executes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises no analysis, but execution never checks the flag. With an input supplied, the normal analysis path still runs, potentially submitting private media or incurring charges despite the user's explicit no-analysis selection.

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 disclosure of the upload.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The local-file branch reads the complete media file into a multipart payload and passes it to the analysis API without a disclosure or authorization check at this boundary. Even aquarium media can expose private household or facility details unrelated to the fish assessment.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute 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 branches on its value, so supplying media still invokes analysis. This violates an explicit no-analysis option and can cause unintended media submission, processing charges, or remote side effects.

Content

No source excerpt is available for this finding.

DAO initialization modifies a user-account schema unrelated to fish-color assessment.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

The manifest describes fish-image analysis, healthy-color comparisons, and vibrancy scoring; persistence for those results would be expected. However, every Dao initialization calls _alter_tables() (L185-L186), which inspects sys_user and adds source_id and realname columns when missing (L200-L215), while the associated UserDao exposes CRUD operations over account records containing email and token fields (L448-L473). This is a concrete user-account database modification capability with no stated role in the fish-assessment workflow.

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 always uses mode 'w', which immediately erases existing file contents even before anything is written. No docstring, comment, confirmation, or operation log discloses this destructive behavior; the exception handler only runs if opening fails.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a service account and persist its credentials, beyond the declared fish-image assessment purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

A routine HTTP operation can silently register a remote account and persist returned authentication tokens in ordinary SQLite columns without application-level encryption. These undisclosed identity and credential side effects exceed the described fish-image analysis behavior and create privacy and credential-exposure risks.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently initiate remote user registration.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The login payload explicitly sets both 'silent' and 'register' to 1, and the generic request wrapper invokes it automatically when tokens are missing. An ordinary service request can therefore create a remote identity without a separate user decision, an unexpected privacy-relevant side effect for the declared assessment skill.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The POST transmits the selected identity as both 'openId' and 'mobile'; its caller prioritizes API_SECRET_KEY when selecting that identity. Consequently, a configured API secret can be copied into registration profile fields, unnecessarily exposing it to account storage or logging systems beyond normal credential handling.

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

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is missing, without a comment, docstring, prompt, or log disclosing this side effect. BaseEnum.init_subclass invokes this loader during class definition (L052–L058), so merely importing the module can modify the filesystem rather than only read 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:

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