Back to skill

Security audit

Fish Flashing & Scraping Detection (Ectoparasite Warning) | 鱼类擦缸/蹭底行为识别(外寄)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports account, credential, and remote-service capabilities beyond the stated aquarium analysis, alongside privacy and execution-control concerns.

The verdict is suspicious, so review the reported account, credential, and upload behavior before installing, especially if you may provide private video or identity data. Skillspector's coverage is marked partial because a local reference was missing; treat the evidence as incomplete, not as proof that unreported behavior is safe. The separate AIG scan completed with no findings, but that does not resolve the concerns reported by Skillspector.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk's primary function is general database and user-account management rather than aquarium behavior analysis. Database persistence could support the declared purpose, but this code specifically manages user identities, personal data, and tokens without any visible connection to fish observations or alerts. It contains none of the declared detection or threshold logic. This assessment is limited to the supplied chunk; it does not establish what other components implement or imply that the stored tokens are transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Generic file, JSON, date, and polling helpers could reasonably support the declared skill and are not themselves a mismatch. However, this chunk additionally implements an undeclared account, credential, remote-service, and billing integration. These are material behaviors not represented by the aquarium-analysis description. No camera ingestion, fish-action detection, contact-frequency counting, or threshold-based risk alerts appear in the supplied chunk. Since this is a utility module, their absence does not establish that the complete skill lacks those features; the mismatch rests on the additional observable capabilities. Most of these actions occur only when the corresponding methods are called.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code does not implement the declared primary purpose. Its executable behavior is limited to class initialization and helper bookkeeping, with a broken result-handling path. The commented-out agent command is not executed and should not be treated as an active capability. Inherited functionality is not supplied, so this assessment is limited to the visible chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code implements a general-purpose API client rather than the declared aquarium-analysis functionality. Networking and download helpers could support a larger video-processing system, but this chunk establishes no such connection and additionally exposes user lookup and generic resource-management capabilities. These methods are defined capabilities; the chunk does not show them being invoked, identify the destination services, or demonstrate malicious activity.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

Generic AI-analysis configuration could support the declared functionality, and the absence of detection logic in a configuration-only chunk is not itself a mismatch. However, the explicit health-order report export endpoint introduces an unrelated resource with no evident connection to aquarium behavior monitoring. This chunk only configures URLs; it does not demonstrate network requests, report exports, or data transmission.

Content

No source excerpt is available for this finding.

The generic request helper attaches application credentials to arbitrary absolute URLs (L570–L612, L646–L647).

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and adds application tokens, the API secret, and authorization credentials without checking the destination. If an attacker can influence a requested URL, those credentials can be sent to an attacker-controlled host; permitting HTTP also exposes them to network interception.

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 analysis workflow lacks a clear privacy warning that local camera footage is submitted to a remote API.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

Although the document mentions APIs and cloud history, it does not clearly tell users that selecting a local camera file sends its contents to an external service. Aquarium footage can capture household interiors or people, making undisclosed remote processing a meaningful privacy risk.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser promises that --export-env-only will not perform analysis, but the flag is never checked. With an input supplied, execution still initializes identity and invokes analysis, potentially submitting private footage despite the user'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 to the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The method reads the complete local file and passes its bytes to the analysis service without an upload disclosure or authorization gate in this path. Even aquarium recordings may expose people or private surroundings, so treating a local file selection as implicit permission for external transfer creates a privacy risk.

Content

No source excerpt is available for this finding.

The documented export-only option still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The environment-export-only argument is accepted but never used to control execution. Supplying it alongside a video input still invokes identity resolution and remote analysis, defeating the advertised non-analysis mode and potentially causing an unintended upload.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to the declared fish-behavior analysis purpose.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

At L098–L101, get_user_by_username delegates a supplied username to a user-lookup utility. Looking up user accounts is not required to detect fish flashing or scraping, count abnormal contacts, or issue parasite-risk alerts, and the manifest does not declare account-management functionality.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to fish-behavior analysis.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The User model stores real names, email addresses, birthdays, demographic information, and token/open_token values (L448–L465), while UserDao exposes inherited CRUD operations for those records. DAO initialization also creates and migrates the sys_user table (L180–L215). Managing personal profiles and credentials is not justified by the manifest's scope of detecting fish rubbing behavior, counting events, and issuing risk alerts.

Content

No source excerpt is available for this finding.

ai_chat documents invoking an analysis agent, but the invocation is disabled and the method always fails without producing analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25-L35 explicitly promises to invoke openclaw agent through subprocess and return an analysis result or session ID. However, the invocation at L61-L66 is commented out, and L68 instead assigns an empty dictionary whose nonexistent stderr attribute is accessed at L70. The resulting exception is caught at L81-L82, so the method returns None rather than performing the documented analysis.

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

Opening a path in 'w' mode immediately erases any existing contents, even before the caller writes data. This generically named helper has no docstring, explanatory comment, confirmation, or operation log warning about that behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers remote accounts and persists authentication state, beyond the described fish-behavior analysis (L550–L604).

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

An ordinary request can trigger a separate phoneLogin request with silent registration enabled, then store returned user information and tokens locally. This hidden account-provisioning side effect is not disclosed by the fish-analysis description and can transmit an existing identity without an explicit enrollment decision.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The request wrapper performs account registration and credential persistence as an implicit prerequisite to unrelated requests. This duplicates the SDI-1 issue: users invoking fish analysis are not given an explicit opportunity to approve the remote account and local authentication footprint.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

This transmission sends the selected identity as both openId and mobile to a remote registration endpoint without an explicit consent step. The selected identity can even originate from API_SECRET_KEY, making disclosure of sensitive credential material possible; the endpoint's actual origin and transport configuration are not supplied.

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 missing configuration files.

Low
Category
Output Handling
Confidence
94% confidence
Finding

At L017–L020, YamlUtil.load creates directories and writes a YAML file when the requested configuration is absent, without a prompt, log, or explanatory comment/docstring. This also happens implicitly during class creation through calls at L053 and L058, so merely importing the module can modify the filesystem without disclosure.

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: