Back to skill

Security audit

Fish Fry Growth Rate Measurement (via Reference Object) | 鱼苗生长速度测量(通过参照物)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners found undeclared account and token handling, identity data sent to an external service, and behavior that can analyze media even in the documented environment-only mode.

Treat this as a review-level warning, not proof of malicious intent. Before installing, consider whether you are comfortable with local media being sent to an external analysis service, possible unintended analysis despite the environment-only option, and account or token handling beyond the stated fish-measurement purpose.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Database persistence could support the declared system, but the concrete functionality shown centers on user accounts, personal data, and tokens rather than fry measurements or growth records. No camera capture, calibration, vision analysis, growth calculation, plotting, reporting, or alerting appears in this chunk. The mismatch rests on the unrelated user-management functionality, not merely on the presence of a supporting database layer. The code shown does not establish token collection or external transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Generic utilities and HTTP access could legitimately support the declared vision workflow and are not, by themselves, mismatches. However, this chunk adds an undeclared account, credential, and billing workflow: RequestUtil can call /sys/phoneLogin with registration enabled, save returned tokens, and send credentials to the requested URL. These behaviors are not explained by the fry-monitoring description. The supplied chunk contains no image capture, calibration, measurement, or growth-analysis implementation, though those features could exist elsewhere. The finding is limited to the capabilities visible here and does not establish that every callable path executes automatically or that malicious exfiltration occurs.

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 video analysis and history retrieval. It contains no visible camera capture, scheduling, reference-object calibration, fry-length measurement, individual growth tracking, curve plotting, or abnormal-growth detection. The actual analysis is delegated to skill.get_output_analysis, whose implementation is not supplied, so its domain-specific capabilities cannot be verified. Video processing could support the declared purpose, but the visible interface and behavior do not establish the claimed monitoring workflow and additionally expose account-associated analysis-history retrieval.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code does not implement the specialized workflow described. Its visible behavior is generic initialization and an incomplete chat helper; it neither executes the commented-out external command nor performs vision analysis. This is a functional purpose mismatch, not evidence of malicious activity. Imported base classes could contain additional behavior, but that cannot be established from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The visible implementation is a generic API-backed media-analysis and report-retrieval client, materially different from the described automated fry-growth monitoring system. API submission, polling, and report formatting could support that system, but the supplied code neither implements nor explicitly requests the fish-specific measurement and longitudinal monitoring functions. Imported API implementations are not provided, so whether the backend supplies any of those functions 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: "smyx-fish-fry-growth-measurement-analysis"
description: "Through fixed cameras of fry tanks (a known-size reference object such as a scale ruler, standard coin or calibration board must be placed in the view), the system periodically (e.g. daily or weekly) captures fry images and uses AI vision analysis to measure body length (from snout to tail-fin tip, in mm), record individual growth rate (mm/day) and draw the growth curve. | 通过鱼苗缸固定摄像头(需放置已知尺寸的参照物,如刻度尺、标准硬币或标定板),定期(如每天或每周)拍摄鱼苗图像,利用 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 --export-env-only option promises not to analyze inputs, but execution still invokes image/video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The environment-only flag is parsed but never checked, so providing it with an input still reaches identity initialization and analysis. Users relying on the explicit promise not to analyze could unintentionally submit media or trigger billable service activity.

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 an analysis API without disclosure that their contents leave the local system.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

Local input files are read in full and passed as upload content to the analysis API without a disclosure or consent gate in this path. Although the broader workflow mentions cloud APIs, it does not clearly explain that local media contents are transferred, potentially exposing proprietary farm or laboratory imagery.

Content

No source excerpt is available for this finding.

The documented environment-only mode still executes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The environment-only option is never consulted after parsing, and normal identity resolution and video analysis continue when input is supplied. This violates the advertised non-analysis boundary and can cause unintended media submission or service charges.

Content

No source excerpt is available for this finding.

The growth-measurement skill includes unrelated user-profile and token-storage CRUD capabilities.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

The manifest describes capturing fry images, measuring growth, and generating reports, but L448-L473 define a persistent sys_user model containing personal-profile fields, token, and open_token, with a UserDao inheriting read, write, update, and delete operations. DAO initialization also creates registered tables and unconditionally checks and alters sys_user (L184-L215), affecting the workspace database rather than merely declaring an unused data structure. Managing this user-profile/token store is not justified by the stated fish-growth workflow; the file does not establish that any real tokens are currently stored or disclosed.

Content

No source excerpt is available for this finding.

The AI-analysis helper claims to invoke an agent but never executes it or returns analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly says this method invokes openclaw agent through subprocess, and L33–L34 promise an analysis result or session ID. Instead, the subprocess invocation is commented out, and the replacement empty dictionary at L68 raises an exception on result.stderr; the exception is caught, so the method returns None without 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

The generic open helper uses mode 'w', which immediately erases an existing file's contents. No comment, docstring, confirmation, or user-facing message explains this behavior; the exception handler only runs if opening fails.

Content

No source excerpt is available for this finding.

The request helper silently provisions remote user accounts and persists authentication profiles, beyond the declared fry-growth analysis workflow.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

A normal request can automatically register or log in a remote identity and persist the returned authentication profile without an explicit enrollment step. These consequential identity and credential side effects are not disclosed by the fry-measurement description, creating unexpected remote data processing and local credential retention.

Content

No source excerpt is available for this finding.

An ordinary HTTP request can silently trigger remote login or account registration using the current identity.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The helper submits silent=1 and register=1 to a login endpoint when authentication tokens are missing. Consequently, a routine measurement-related HTTP operation can create a remote account using the current identity without a separate user decision; this overlaps the provisioning finding above.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

This POST automatically sends the selected identity as both openId and mobile to the configured health-service endpoint, without a consent check. The selection explicitly prefers API_SECRET_KEY when present, so a configured API credential can also be disclosed as login payload data, beyond ordinary fry-growth analysis.

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

Loading configuration 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 log, prompt, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader during class creation (L044–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