Back to skill

Security audit

Fish Flashing & Scraping Detection (Ectoparasite Warning) | 爬宠体温调节行为识别(晒点/躲避)

Security checks for vulnerabilities and agentic risk

Overview

This cloud video-analysis skill needs review because its no-analysis option can still upload footage and its account credentials lack adequate protection.

Request fixes before using private footage: make export-only mode stop before account or network activity, protect stored tokens, restrict authenticated requests to approved HTTPS destinations, and disable automatic sensitive HTTP logging. Understand that videos leave your device and that the service can create or reuse an account automatically. Confirm the provider's retention and deletion practices; the stated limits cannot be verified from this client. This review inspected all bundled files without contacting the service and found no evidence of an intentional malicious payload.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Database persistence can legitimately support the declared monitoring system, but this chunk specifically implements a general-purpose user/account database rather than storage for videos, zones, movement events, dwell times, reports, or alerts. Its personal-data and token-management functionality is not described by the declared purpose. No camera analysis or monitoring logic appears in this chunk. The code does not demonstrate token collection, network transmission, or exfiltration; database initialization and operations occur when its classes and methods are invoked. This finding is limited to the supplied chunk, not the unseen remainder of the skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

String, date, file, and polling helpers could reasonably support the declared application and are not themselves mismatches. However, the module implements a substantial account, authentication, and billing integration not represented in the description. The supplied chunk contains no camera ingestion, reptile tracking, zone-transition analysis, dwell-time measurement, daily reporting, or anomaly detection that establishes a relationship between that integration and the stated purpose. These capabilities are largely invoked through utility methods rather than automatically on import; the finding concerns the supplied code's capabilities, not proof that every operation executes or that the complete skill lacks monitoring functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible implementation does not substantiate the declared monitoring purpose. Its only substantive method is a nonfunctional agent-chat stub; it does not actually launch the commented-out external command. Imported base classes and services are not provided, so their behavior cannot be assessed. This finding is limited to the supplied chunk and does not imply malicious behavior or unauthorized resource access.

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-reptile-thermoregulation-behavior-analysis"
description: "Through fixed enclosure cameras, the system analyzes behavior videos of reptiles (lizards, snakes, turtles) and detects movement frequency and dwell duration between the basking zone (heated area under the basking lamp) and the hiding zone (cave/cool side). | 通过爬宠箱固定摄像头,分析爬行动物(如蜥蜴、蛇、龟)的行为视频,检测宠物在晒点(加热灯下方高温区域)与躲避区(洞穴、冷区)之间的移动频次、停留时长以及活动节律。系统连续监测,生成每日温区利用报告,异常时推送提醒。"
versio

The request helper forwards platform credentials and user identity to unrestricted caller-supplied URLs.

High
Category
Excessive Agency
Confidence
98% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and attaches platform tokens, an API key, and user identity without checking the destination origin. If an untrusted caller can influence the URL, it can send these credentials to an attacker-controlled server; accepting HTTP also permits unencrypted credential transmission.

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 documented export-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 parsed flag is never checked. When an input is also supplied, execution still initializes identity and invokes analysis, potentially uploading private enclosure footage or consuming service credits contrary to the selected mode.

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 passed to an analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The code reads the entire local video into an upload payload and passes it to the analysis service without an explicit upload notice or consent check. Although API use is documented, the transfer of local camera footage is not clearly disclosed; enclosure videos can incidentally expose people, interiors, or sensitive facility details.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is accepted but never consulted, so supplying it with a video input still reaches analyze_video. This violates an explicit no-analysis promise and can cause unintended remote disclosure of video or service usage.

Content

No source excerpt is available for this finding.

The skill implements personal-profile and credential storage unrelated to reptile behavior analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

Account storage can legitimately support cloud reports, and profile columns alone do not prove unrelated data collection. However, token and open_token are persisted as ordinary strings in a shared workspace SQLite database without credential-specific protection shown, so another process or skill with database access could recover credentials and potentially access account-linked footage or reports.

Content

No source excerpt is available for this finding.

ai_chat documents an agent invocation but never invokes an agent or produces an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L24–L34 explicitly states that this method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, the invocation is commented out, and the replacement empty dictionary at L68 raises AttributeError when accessed as result.stderr; the exception is caught and the method returns None. Callers relying on the documented behavior receive no analysis, potentially leaving the intended monitoring workflow without results.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its write-only behavior.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases existing file contents. There is no confirmation, action-specific log, docstring, or comment explaining this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

Routine requests can silently register an external platform account and persist its credentials.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary API request can trigger silent registration or login on an external platform and save the returned authentication tokens through UserDao. This creates an undisclosed identity and credential-management side effect beyond reptile behavior analysis; credential encryption and storage permissions cannot be verified from the supplied source.

Content

No source excerpt is available for this finding.

HTTP requests can silently transmit a user identifier and register a remote account without disclosure.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The authentication helper transmits the current identifier as both openId and mobile with silent registration enabled. This can disclose a persistent user identifier and create an external account during routine monitoring requests, without a consent gate visible in this source.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
86% confidence
Finding

External requests are not inherently unsafe, but this particular POST sends identity fields to a remote login and registration endpoint as an automatic side effect. The concern is undisclosed identity transmission and provisioning, not evidence that reptile videos or arbitrary local files are exfiltrated.

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 configuration 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 path does not exist, without a disclosure comment, docstring, log, or confirmation. BaseEnum.init_subclass invokes this loader during class definition (L044–L058), so merely importing this module can modify the filesystem without warning.

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