Back to skill

Security audit

Fish Abnormal Swimming Posture (Side-swim / Upside-down) Detection | 鱼类游动姿态异常(侧游/倒立)识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because its fish-video analysis purpose is accompanied by concerns about remote data handling, account and credential management, and actions that exceed the stated task.

The verdict is suspicious, with high confidence, and the scanner's recommendation is DO_NOT_INSTALL. Consider avoiding installation unless you can independently review the missing referenced material and clarify why the skill handles identities, credentials, remote registration, and video transfers; the scan was partial, so its evidence is 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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (25)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied chunk is a user-management persistence module, not a fish-video analysis implementation. It defines user records with names, email, birthday, sex, age, token, and open_token fields, and provides lookup, insertion, update, and deletion operations. Instantiating the DAO also creates or updates database tables. Database storage could support the declared skill, but this chunk specifically manages user identities and credentials rather than fish observations or abnormal-duration measurements, making the difference substantive rather than merely an implementation detail. No video processing, body-angle calculation, posture detection, or abnormal-duration accounting appears in the supplied code. There is no evidence here of network transmission or token exfiltration.

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 analysis and are not themselves mismatches. However, automatic account provisioning, credential-file access, persistent identity management, and billing-related behavior are material capabilities not represented in the description. The HTTP wrapper also attaches configured credentials without restricting absolute URLs to the configured service origin. These behaviors are conditional on utility invocation; the chunk does not establish that they execute automatically or that credentials were actually disclosed. Although fish analysis may exist elsewhere, the supplied code exposes substantial undeclared account and service-integration behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied implementation does not substantiate the declared fish-monitoring purpose. No subprocess is actually executed, and there is no visible camera access or video analysis. Imported base classes and API services are not supplied, so their behavior cannot be assessed; the mismatch assessment is limited to the visible code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied chunk implements an API-client abstraction, not fish posture analysis. It contains no video processing, body-axis estimation, angle thresholds, rotation detection, or abnormal-duration calculations. HTTP requests and download links could support the declared skill, so those details alone would not establish a mismatch; however, the exposed user-lookup and general backend-management functionality are not connected to that purpose in the supplied code. This assessment is limited to this chunk and does not establish what other files implement or which methods are actually invoked.

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-abnormal-swimming-detection-analysis"
description: "Through fixed cameras on aquariums, the system analyzes fish swimming videos and computes the angle between the fish body axis and the horizontal plane (normal fish bodies stay nearly horizontal). | 通过鱼缸固定摄像头,分析鱼类的游动视频,检测鱼体轴线与水平面的夹角(正常鱼体基本保持水平),当鱼体倾斜角度超过阈值(默认 > 30°)或出现倒立(头部向下 > 45°)、旋转(绕自身纵轴连续翻转)等异常游姿时,标记为异常,并记录异常时长占观察总时长的比例。该技能有助于早期�

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-video analysis workflow lacks an explicit disclosure that footage is sent to a remote analysis service.

Medium
Category
Output Handling
Confidence
86% confidence
Finding

Although the document mentions APIs and cloud reports, the local-file workflow does not clearly state that the footage itself is uploaded to an external service. Aquarium cameras can capture household interiors or bystanders, making undisclosed transfer a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The documented --export-env-only mode still executes 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 transferring private footage or consuming service credits despite the caller's explicit non-analysis choice.

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

Input video content or its URL is passed to an analysis API without disclosure of the data transfer.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The method reads the complete local file into a multipart payload or forwards the supplied video URL to the analysis service, without a disclosure or authorization gate in this flow. Footage may expose private surroundings, while a video URL may itself contain access credentials or signed query parameters.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze video, but execution still invokes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag explicitly promises not to analyze video, yet no execution branch honors it. Supplying an input still invokes analysis and identity initialization, creating unintended remote-processing and potential billing side effects.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to fish swimming analysis.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

At L098–L101, get_user_by_username delegates a caller-supplied username to a user-lookup utility. Looking up user accounts is not an evident requirement for measuring fish orientation or recording abnormal-swimming duration, and the manifest does not declare account-management functionality.

Content

No source excerpt is available for this finding.

The skill includes user-profile and authentication-token database management unrelated to fish-swimming analysis.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

The User model stores identifying information and credentials, including real names, email addresses, birthdays, tokens, and open tokens (L448-L465). UserDao exposes inherited database read, update, and delete operations for these records, and DAO initialization creates and migrates the user table (L180-L215). Managing user identities and credentials is not justified by the manifest's stated purpose of analyzing fish posture and recording abnormal-swimming duration.

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

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

Content

No source excerpt is available for this finding.

The request helper silently provisions external user accounts and persists authentication credentials, beyond the stated fish-video analysis purpose.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

An ordinary HTTP request can automatically invoke phoneLogin with silent registration enabled, transmit an identity, and persist returned authentication tokens through UserDao without an explicit enrollment step. This introduces undisclosed account creation and credential retention beyond the stated fish-video analysis purpose, even if intended as shared service plumbing.

Content

No source excerpt is available for this finding.

The request helper can silently transmit an identity and register a remote account.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The helper submits openId and mobile identity values with silent=1 and register=1 as a hidden side effect of making a request. A user expecting fish analysis has no explicit opportunity in this path to approve the identity disclosure or remote registration.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
96% confidence
Finding

This POST sends the selected identity to a remote login service without a separate approval boundary; notably, the surrounding code prefers ApiEnum.API_SECRET_KEY as the identity and can therefore put a secret into both openId and mobile fields. That can expose a credential to identity-processing logs and account records, although the actual endpoint and runtime configuration are not shown.

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 absent, without a comment, docstring, log, or confirmation disclosing this side effect. BaseEnum invokes this loader during class initialization (L052–L058), so merely importing the module can modify the filesystem, which is unexpected for a configuration read.

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:

ai_chat documents invoking OpenClaw through subprocess, but never invokes it or returns analysis.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 claims this method invokes the OpenClaw agent through subprocess and documents an analysis result or session ID return at L33-L34. However, the invocation is commented out at L61-L66; L68 instead creates an empty dictionary, and accessing result.stderr at L70 raises an exception that is swallowed at 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