Back to skill

Security audit

Fish Surface Symptom (White-spot / Hyperemia / Fin-rot) Detection | 鱼类体表白点/充血/烂尾识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this fish symptom analysis skill suspicious because scanners report undisclosed account and token handling, broad credentialed network access, and unclear or inconsistent behavior around media analysis.

Treat this as a review-needed skill and consider the reported behavior before installing. In particular, decide whether you are comfortable with local media being sent to a remote service and with account details or credentials being stored or transmitted; the scan reports these concerns but does not establish malicious intent.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Generic file, JSON, date, polling, and networking helpers could reasonably support the declared vision workflow and are not themselves evidence of a mismatch. However, this chunk adds substantive account-provisioning, identity persistence, credential transmission, and billing behavior not disclosed in the fish-disease description. In particular, HTTP requests can trigger silent remote registration and automatically receive authentication headers even when an absolute destination URL is supplied. The chunk contains no camera capture, image analysis, or disease-detection implementation; because it is a shared utility module, that absence alone would not establish a mismatch. The finding rests on the additional observable identity, account, credential, and payment capabilities, not on an assumption of malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk implements general user/account persistence rather than fish-image analysis. Its concrete schema and specialized queries concern user identities and tokens, with no visible connection to fish images, disease findings, or care recommendations. Although database utilities can support a vision skill, this account-management functionality is not explained by the declared purpose. No camera capture, image processing, or disease detection appears in this chunk. This assessment is limited to the supplied code; it does not establish that the broader skill lacks those features or that stored information is transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied code does not implement the declared visual fish-disease detection workflow. Its only substantive method is an unfinished, nonfunctional chat helper; it does not actually execute the commented-out external command. Imported base classes may provide additional functionality, but their implementations are not supplied, so they cannot establish that this chunk fulfills the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied chunk contains no image capture, vision inference, fish symptom detection, or disease-guidance logic. Generic HTTP helpers could support the declared skill and are not inherently a mismatch, but the concrete user-lookup and backend-management interface serves a materially different purpose without a demonstrated connection to fish analysis. This assessment is limited to the supplied chunk; it does not establish malicious behavior or rule out relevant functionality elsewhere.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

The explicit history-listing mode adds an account-scoped retrieval capability beyond the declared fish-disease analysis purpose. Video input, delegated analysis, and optional output-file writing can reasonably support the stated purpose and are not independently mismatches. The actual analysis implementation is imported and not supplied, so this chunk does not establish whether the backend detects the described fish symptoms; its generic video interface alone is not evidence of a different primary purpose.

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-surface-symptom-detection-analysis"
description: "Through fixed cameras on aquariums or underwater cameras capturing high-definition fish images, the system uses AI vision analysis to detect abnormal symptoms on the fish body surface: white-spot disease (white spots of about 0.5-1mm in diameter, salt-grain like), hyperemia (red blood streaks or patches on skin or fin bases), and fin-rot (tail-fin edges turning white, ragged or rotting). | 通过鱼缸固定摄像头或水下摄像头拍摄鱼类高清图像,利用 AI 视觉分析技术检测鱼体表面的异常症状:白点病(白色点状物,直径约 0.5-1mm,类似�

The request helper can send service credentials to arbitrary caller-selected HTTP(S) destinations, beyond what fish-image analysis requires.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The wrapper accepts arbitrary absolute HTTP(S) URLs and automatically adds service tokens and the API key without checking the destination. A caller-controlled destination can therefore receive credentials, and plain HTTP additionally exposes them in transit; fish-image analysis does not require forwarding service credentials to arbitrary hosts.

Content

No source excerpt is available for this finding.

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 local-media analysis workflow lacks an explicit warning that user images or videos will be sent to a remote API.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The local-file workflow directs analysis without explicitly telling users that the image or video contents leave their device for remote processing. References to API calls and cloud history do not clearly disclose this upload, and aquarium footage may incidentally reveal people, private interiors, or facility information.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but supplying it does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The CLI accepts --export-env-only and promises not to perform analysis, but never checks the flag after parsing it. With an input or URL supplied, execution still initializes identity and invokes analysis, potentially transmitting media or creating remote records despite the caller's explicit non-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 for API analysis without a user-facing upload disclosure.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The code reads the entire local media file into a multipart payload and passes it to the analysis API without an upload-disclosure or authorization checkpoint in this path. Users expecting local processing can consequently disclose private background content, even though the intended subject is a fish.

Content

No source excerpt is available for this finding.

The documented export-only option does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never used to change control flow, so providing media still invokes analysis despite the explicit promise not to do so. This can cause unintended remote processing, media disclosure, and account-associated side effects.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and token management unrelated to fish-symptom detection.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The manifest describes analyzing fish images and providing disease-response guidance, but L448-L473 define a sys_user model containing personal-profile fields, token, and open_token, and expose it through UserDao's inherited database operations. Those operations can read, overwrite, and delete user records (L272-L280, L337-L407, L411-L425), while DAO initialization creates and migrates the shared workspace database (L172-L214); this user-data management capability is not justified by the declared vision-analysis purpose. The supplied file does not establish that tokens are actually populated or transmitted.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims to invoke the analysis agent, but the implementation never invokes it and returns no analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

L24–L34 document ai_chat as invoking openclaw agent through subprocess and returning an analysis result or session ID. However, the subprocess invocation is commented out, and L68–L70 instead access stderr on an empty dictionary; the resulting exception is caught at L81–L82, so the method returns None without performing the documented analysis delegation.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive behavior.

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. It provides no confirmation, operation log, docstring, or comment explaining that behavior; the exception handler only runs if opening fails.

Content

No source excerpt is available for this finding.

The HTTP wrapper silently performs remote registration and persists returned authentication tokens without disclosure.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

An ordinary HTTP request can trigger a separate phoneLogin request with registration enabled, followed by persistent storage of returned account information and tokens. Hiding these identity-related side effects inside a generic request helper prevents callers from explicitly controlling account creation and credential retention, neither of which is evident from the fish-detection description.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The automatic login request transmits the selected identity as both openId and mobile to a separate health-service endpoint. Because the selection prioritizes API_SECRET_KEY, the helper can also copy an API secret into identity fields when login is triggered, unnecessarily exposing it to account-processing systems or their logs; external transmission alone would not otherwise prove a vulnerability.

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
92% 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 behavior. BaseEnum.init_subclass invokes this loader during class definition (L044–L059), so merely importing this 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