Back to skill

Security audit

Egg Incubation Monitoring (Turtle/Snake) | 孵化箱内龟蛋/蛇蛋发育监测

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report behavior beyond its stated egg-monitoring purpose, including remote media analysis, account and credential handling, and an export-only option that may still analyze input.

Treat this as a review-level warning and consider not installing until the publisher explains the unrelated account and credential handling, confirms how media is processed remotely, and clarifies why export-only may still analyze input. Skillspector reports partial analysis: a referenced local path was unresolved, so some evidence remains incomplete. The AIG scan completed with no findings, but that does not resolve the reported concerns.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk implements a general database and user-account persistence module, rather than camera capture, image analysis, scheduling, or incubation reporting. Database persistence could support the declared system, but this code specifically models and manages users, demographic details, and tokens, with no demonstrated connection to eggs, images, or incubation reports. This is a material purpose mismatch in the supplied chunk, not evidence of malicious activity or token exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied code is a video-analysis CLI, not an implementation of automated incubator image monitoring. It contains no camera capture, scheduling, egg-specific visual checks, or incubation-report logic. Analysis is delegated to skill.get_output_analysis, whose implementation is not supplied, so its domain-specific behavior cannot be verified. The visible identity-linked history-listing capability is also undeclared. Local result-file output could support reporting and is not itself a mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Basic file, JSON, date, and polling helpers could support the declared imaging workflow and are not independently suspicious. However, the supplied code also implements an undeclared account, authentication, and billing integration that accesses local identity material and communicates it to configured services. That is materially broader than the stated egg-monitoring purpose. These actions generally occur when the relevant helpers are called, not automatically merely from defining them. The chunk may belong to a larger implementation, so its lack of imaging code alone is not decisive; the concrete undeclared identity and account operations establish the mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The visible implementation does not substantiate the declared egg-incubation monitoring purpose. Its only explicit operational method prepares a generic agent session but neither runs the agent nor analyzes images. This is a functional description-versus-implementation mismatch, not evidence of malicious behavior or undeclared command execution. Any functionality inherited from the unavailable imports remains unverified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The code is related to egg-development analysis, but it implements an on-demand analysis wrapper rather than the declared autonomous camera-monitoring workflow. It contains no camera interface, capture operation, timer, or scheduling logic. The actual detection of eggshell colour, blood streaks, and embryo silhouettes is delegated to an imported implementation not supplied here, so those capabilities cannot be verified. Identity resolution, history retrieval, and output saving are supporting features, not evidence of an unrelated purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied chunk implements a generic media-analysis API client, not the specialized automated egg-monitoring workflow described. It includes no camera integration or daily scheduling and does not specify detection of shell colour, blood vessels, or embryo silhouettes. An external service could potentially provide egg-specific analysis, but that is not established by this code. API submission, polling, and report formatting are supporting implementation details and are not independently treated as mismatches.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

HTTP requests and download links could support the declared workflow, so those mechanisms alone are not evidence of a mismatch. However, the supplied code is a generic API-service layer that also exposes user lookup and unrestricted resource-operation wrappers without any visible incubation-specific connection. Its demonstrated capabilities therefore extend beyond the description. This assessment is limited to the supplied chunk: the methods are defined here, not automatically invoked, and no malicious activity or actual data transfer is established.

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 camera or scheduling logic in a configuration-only chunk is not itself a mismatch. However, DETAIL_EXPORT_URL explicitly targets BASE_URL_HEALTH with /health/order/api/getReportDetailExport?id=, indicating an unrelated health-order reporting integration. This resource is inconsistent with the declared purpose. The chunk only configures this endpoint; it does not demonstrate actual access or data export.

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 user-facing disclosure about remote processing of local images and videos.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

Although the document mentions APIs and cloud history, it does not clearly tell users that local image or video contents are uploaded for remote analysis. Incubator recordings can expose private premises or commercially sensitive breeding information, making undisclosed transfer a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze input, but does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts an option explicitly promising no analysis, but execution never checks it. With an input supplied, the command still initializes identity and invokes analysis, potentially causing an unwanted remote upload or service charge despite the user'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

Video content or its URL is submitted to an analysis API without disclosure of the data transfer.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The function reads the complete local media file and passes its bytes to the analysis API, or submits the supplied URL, without an explicit disclosure or authorization gate in this path. This can expose private footage or sensitive URL parameters when a user or agent expects local processing.

Content

No source excerpt is available for this finding.

The entry point implements on-demand video analysis rather than the advertised periodic egg-image monitoring workflow.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The manifest describes fixed-camera surface-image capture and daily or alternate-day egg-development analysis. This entry point instead requires a supplied local video or video URL and delegates it to a one-shot analysis call; it does not implement or invoke the advertised capture and scheduling workflow.

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 alter execution. Supplying it together with media still invokes analysis, defeating the promised no-analysis mode and potentially triggering unintended disclosure or billing.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to the declared egg-monitoring workflow.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

At L098–L101, get_user_by_username forwards a supplied username to a user-lookup utility. Looking up user accounts is not a direct requirement of photographing eggs, analyzing embryo development, or generating incubation reports, and the manifest does not declare account-directory functionality.

Content

No source excerpt is available for this finding.

The skill includes user-profile and credential storage unrelated to egg-incubation monitoring.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The concrete concern is recoverable credential storage, not merely functionality outside egg monitoring: token and open_token are ordinary string columns in a file-backed SQLite database, with no credential encryption shown. A process, backup reader, or other skill able to read the shared workspace database could obtain reusable authentication credentials; exploitation requires that local read access.

Content

No source excerpt is available for this finding.

ai_chat documents an AI-agent invocation, but the implementation never invokes the agent or produces an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that the method calls openclaw agent through subprocess and promises an analysis result or session ID at L33-L34. However, the command arguments and subprocess invocation are commented out (L48-L66); the replacement empty dictionary at L68 causes the attribute access at L70 to raise an exception, which is caught and suppressed, leaving callers without 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
97% confidence
Finding

The generically named open helper opens the supplied path in write mode, immediately erasing existing contents. No docstring, comment, confirmation, or normal-operation log explains this behavior; the exception handler does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently provisions backend user accounts and persists authentication credentials, beyond the stated egg-monitoring purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

A generic HTTP request can implicitly submit identity data to a separate login/registration endpoint and persist returned authentication tokens, without an explicit account-provisioning step. More seriously, API_SECRET_KEY takes precedence as the username, so when tokens are missing that secret can be copied into the mobile and openId registration fields rather than being confined to authentication headers.

Content

No source excerpt is available for this finding.

An ordinary HTTP request can silently register a remote user and persist authentication tokens locally.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

Ordinary request execution has hidden account-registration and credential-persistence side effects whenever authentication tokens are unavailable. This can transmit identity information and create persistent backend state without an explicit setup decision, which is not apparent from the egg-monitoring purpose.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

External transmission alone is expected for a backend-backed analysis skill, but this payload can contain API_SECRET_KEY because the caller selects it as the username and then assigns that value to mobile and openId. When token acquisition runs in that configuration, a reusable secret is disclosed as account metadata to the health backend and may enter identity records or logs; the code does not establish a malicious destination.

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 (L017–L020).

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, prompt, or log disclosing this side effect. BaseEnum.init_subclass invokes this loader as classes are defined (L052–L058), so merely importing the module can modify the filesystem unexpectedly.

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