Back to skill

Security audit

Fish Egg Incubation Stage Identification | 鱼卵孵化状态识别

Security checks for vulnerabilities and agentic risk

Overview

This skill needs review because account creation and credential storage are insufficiently explained, and its export-only option can still upload media for analysis.

Wait for fixes to export-only mode and credential destination restrictions. Before use, confirm how LifeEmergence creates accounts, stores credentials, retains uploaded media, and charges for analysis. Use an isolated workspace and only footage you intend to upload. The artifacts support Review, rather than a malicious verdict; the supplied A.I.G report contains no findings.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk implements user-account persistence rather than camera capture or fish-egg analysis. It contains no image acquisition, scheduling, vision inference, incubation classification, or recommendation logic. Database access could be a supporting implementation detail, but the concrete user-profile and token-management functionality is not described or connected to the declared purpose in this chunk. This finding is limited to the supplied code; it does not establish what other skill components do.

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. Although an agent wrapper could support AI analysis, this one neither executes an agent nor processes images. Its result.stderr access raises AttributeError because result is a dictionary. Imported base classes and API services are not supplied, so their behavior cannot be assessed; there is no evidence here of additional malicious or undeclared resource access.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The description concerns camera-based fish-egg monitoring, but this chunk exposes an account, authentication, and billing-related API infrastructure layer with access to local identity files and user records. These account-management behaviors are materially beyond ordinary image-processing helpers and are not disclosed. No camera capture, egg-image analysis, incubation classification, or periodic monitoring is implemented in this chunk. Because this is a shared utility module, that absence alone does not establish that the overall skill lacks those features; the mismatch rests on the additional identity, registration, credential-handling, and payment-related capabilities visible here. Most behavior occurs only when the relevant methods are called, and the snippet does not establish malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code presents itself as a video-analysis tool and forwards a file path or URL to skill.get_output_analysis. It also offers a history-listing mode through skill.get_output_analysis_list. No visible implementation captures camera images, schedules periodic analysis, detects egg color or eye-spots, classifies incubation stages, or generates fish-care recommendations. The imported analysis implementation is not supplied, so its domain-specific behavior cannot be verified; nevertheless, the visible video-analysis and history-management interface materially differs from the declared camera-based egg-monitoring workflow.

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 generic API-backed media-analysis and report-management interface, materially different from the declared automated fish-egg monitoring workflow. API submission and polling could support the stated purpose, but the visible code does not establish camera integration, scheduled capture, or fish-egg-specific analysis parameters. The imported API implementation is not supplied, so specialized analysis within that service cannot be ruled out.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

The supplied code primarily implements a reusable API client rather than the described fish-egg monitoring system. HTTP helpers could legitimately support that system, so their presence alone is not a mismatch. However, the exposed user-lookup and generic data-management capabilities have no demonstrated relationship to the declared purpose. This assessment is limited to the supplied chunk; endpoint definitions and higher-level callers are not available, and the code does not establish malicious activity or specific data transfers.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

Generic AI-analysis endpoint configuration could support the declared vision workflow and is not itself a mismatch. However, DETAIL_EXPORT_URL explicitly targets a health-order report export API, which is inconsistent with the declared fish-egg monitoring purpose. This chunk only configures URLs; it does not demonstrate that any endpoint is called or that data is exported. The absence of camera or classification logic in a configuration file alone would not establish a mismatch.

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-egg-incubation-stage-analysis"
description: "Through breeding-tank fixed cameras (macro lens), the system periodically captures high-definition images of fish eggs and uses AI vision analysis to detect egg color changes (transparent → white / black) and embryonic eye-spots (small black dots), identifying incubation stages (unfertilized / early / mid / late-eyespot / hatching). | 通过繁殖缸固定摄像头(微距镜头),定期拍摄鱼卵的高清图像,利用 AI 视觉分析技术检测鱼卵颜色变化(透明 → 发白/发黑)以及胚胎眼睛点(黑色小点)的出现,识别鱼卵的孵化阶段

The request helper attaches platform credentials to caller-supplied absolute URLs without restricting the destination (L572–L612, L646–L647).

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically attaches platform access tokens, an API key, and an authorization token before sending the request. A caller-controlled destination can therefore receive reusable credentials; accepting HTTP also permits cleartext exposure, regardless of the legitimate fish-egg analysis workflow.

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 image analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises an export-only option that performs no analysis, but the parsed flag is never checked. When media is supplied, execution still initializes identity and invokes analysis, potentially transmitting media or consuming paid service resources despite the user's explicit no-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 passed to the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The local-input branch reads the entire media file and passes its bytes to the remote analysis API without an upload notice or consent check in this path. Although API use is documented, actual transfer of local media is not clearly disclosed, creating a privacy risk for laboratory or hatchery footage containing incidental sensitive information.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag promises to avoid analysis but is never consulted after parsing. With an input supplied, the program proceeds through identity resolution and remote analysis, violating the selected execution boundary and potentially uploading media or incurring charges.

Content

No source excerpt is available for this finding.

The service exposes username-based account lookup, which is unrelated to fish-egg incubation analysis.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

At L098–L101, get_user_by_username delegates a supplied username to a user-lookup utility. Looking up user accounts is not a direct requirement of capturing egg images, identifying incubation stages, or producing husbandry recommendations, and the manifest does not declare account-management functionality.

Content

No source excerpt is available for this finding.

The skill includes user-profile and credential database management unrelated to fish-egg incubation analysis.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The User model at L448–L461 stores personal information and authentication tokens, while UserDao at L470–L473 exposes inherited CRUD operations for these records. This is more than an unused schema: Dao initialization creates registered tables and explicitly migrates sys_user at L184–L215. Managing user identities and credentials is not justified by the manifest's camera-based incubation monitoring purpose.

Content

No source excerpt is available for this finding.

The AI-analysis helper documents an agent invocation but never invokes the agent or returns analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 promises to invoke openclaw agent through subprocess and return an analysis result or session ID. However, the invocation is commented out at L61–L66, and the replacement empty dictionary at L68 causes the attribute access at L70 to raise an exception that is caught, leaving the function to return None. This contradicts the helper's stated AI-analysis behavior rather than merely changing an implementation detail.

Content

No source excerpt is available for this finding.

FileUtil.open silently opens files in write mode, truncating existing contents.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generic open helper uses mode 'w', which immediately truncates an existing file. No docstring, comment, confirmation, or user-facing message explains this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

HTTP requests can silently register an external platform account and persist its credentials, beyond the stated fish-egg analysis purpose (L550–L604).

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary request can trigger silent remote registration using the current identifier and persist returned account tokens locally, without an explicit registration step in this helper. These identity and credential side effects are not apparent from the fish-egg analysis purpose and can disclose identifiers or create unwanted external accounts.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and transmit the current user identifier.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The registration payload explicitly requests silent account creation and sends the current identifier as both openId and mobile. Triggering this as a side effect of a generic HTTP request creates an undisclosed external identity operation beyond the stated incubation-analysis function.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

This outbound POST implements the silent registration behavior by transmitting the selected identity to the configured external account service. Network access alone is not suspicious, but this transmission carries identity data and requests account creation without an explicit consent step in the shown flow.

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

YamlUtil.load creates the parent directory and writes a YAML file when the requested path is missing, without a log, prompt, docstring, or explanatory comment disclosing that side effect. BaseEnum.init_subclass invokes this loader during class definition (L044–L059), so importing the module can modify the filesystem even when the caller only expects configuration to be 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()