Back to skill

Security audit

Pet Eye Anomaly Detection (Redness / Tearing / Cataract) | 宠物眼睛异常识别(红肿/流泪/白内障)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report account and credential handling, broad credential forwarding, and possible unintended media uploads beyond its stated pet eye analysis purpose.

Treat this as a review item and consider avoiding installation until the credential handling, account behavior, and external media transfers are clarified. The scan was partial: it covered all listed components but noted a missing local reference, so its evidence is incomplete.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/smyx_eye_anomaly_detection_analysis.py
Finding

Sender identity is replaced by a shared default account

Content
View full analysis

Impact

A remote user can receive reports previously created under the same fallback account by another user. New analyses can also become associated with that shared account. This is a client-side identity-selection flaw; exploitation does not require a server-side authentication bypass.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (23)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Generic string, file, date, polling, and HTTP helpers could support the declared vision feature and are not independently mismatches. However, the supplied code additionally implements an account-provisioning, identity-persistence, credential-propagation, and billing workflow not represented in the description or declared permissions. Absolute caller-supplied URLs also receive authentication headers without a visible host check. These are capabilities present in the code, not evidence that every path executes or that credentials were actually leaked. Because this is a shared utility chunk, the absence of eye-analysis logic alone does not establish that the complete skill lacks that functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk is a user-management persistence module rather than a pet-eye analysis implementation. Database infrastructure alone could be a supporting detail, but the concrete functionality here centers on user identities, personal data, and token fields, none of which is described or connected to pet-eye monitoring in the supplied code. It contains no image/video processing, anomaly detection, or alert generation. This assessment is limited to the supplied chunk; it does not establish that the complete skill lacks those features or that any data is exfiltrated.

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-eye-anomaly-detection-analysis"
description: "AI-powered pet eye anomaly detection from close-up facial images/video. Detects conjunctival redness, abnormal tearing/tear stains, and pupil/cornea opacity (cataract / corneal edema), then outputs anomaly alerts to help owners catch eye disease risks early. Scenarios: daily home health self-check, boarding center routine inspection, animal hospital triage, senior pet cataract monitoring. | 通过宠物摄像头捕捉宠物面部近景视频,利用AI视觉分析技术检测眼部充血(结膜颜色发红)、异常流泪(泪痕严重或持续性溢泪)、瞳孔区域浑�

The HTTP helper attaches service credentials to caller-supplied absolute URLs without restricting the destination.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and then automatically attaches service tokens and the API key without validating the destination. A caller influenced by untrusted input could send these credentials to an attacker-controlled host, while HTTP destinations also expose them to network interception; eye-analysis functionality does not require this unrestricted credential forwarding.

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 privacy warning about sending pet images, videos, or their URLs to an external API.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

Although cloud APIs are mentioned elsewhere, the execution workflow does not clearly warn that supplied local media or media URLs will be transmitted externally or require authorization for that transfer. Home-camera footage can include people and private surroundings, while media URLs can contain access tokens.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes pet-image/video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag promises not to perform analysis, but its parsed value is never checked. With valid input, execution still initializes identity and invokes analysis, potentially uploading private media despite the caller's explicit non-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 of the upload.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The method reads the complete local media file and passes its bytes to the analysis API without any visible transfer notice or authorization check. Pet-camera footage can contain sensitive household information, and extension and size validation do not protect that information from unintended disclosure.

Content

No source excerpt is available for this finding.

The documented export-only option does not prevent video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts an export-only option described as preventing analysis, but execution never branches on it. Supplying media with that option still invokes analysis, potentially causing external processing that the caller specifically intended to avoid.

Content

No source excerpt is available for this finding.

The skill includes user-identity and credential management unrelated to its declared eye-anomaly analysis purpose.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

L448-L465 define a persistent user model containing real names, email addresses, birthdays, and token/open_token credentials, while UserDao at L470-L473 exposes the inherited CRUD operations for those records. Managing these identity and credential records is not an obvious requirement of analyzing pet-eye images or producing anomaly alerts, and the manifest does not declare account-management functionality.

Content

No source excerpt is available for this finding.

The ai_chat docstring promises an OpenClaw agent invocation, but the method never invokes an agent or produces analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method calls the OpenClaw agent through subprocess and documents an analysis result or session ID as its return value. However, command execution is commented out at L61–L66, and the empty dictionary at L68 causes result.stderr to raise an exception that is caught without returning a result. Thus, the documented analysis operation is not performed.

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

Opening a path with mode 'w' immediately erases any existing contents, even before the caller writes data. This generically named helper has no docstring, explanatory comment, confirmation, or action-specific log warning about truncation; exception tracing does not disclose successful destructive opens.

Content

No source excerpt is available for this finding.

HTTP requests can silently transmit the current identity to a separate login endpoint and register an account.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

An ordinary HTTP operation can trigger a separate login request with silent and register enabled, transmitting the current identity and potentially creating a remote account without an explicit enrollment step. This is an undisclosed privacy and account-lifecycle side effect that is not apparent from the declared eye-analysis purpose.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
97% confidence
Finding

The login POST sends the supplied username as both openId and mobile, while the surrounding caller prioritizes API_SECRET_KEY as that username when credentials need initialization. Consequently, a configured API secret can be transmitted as identity/profile data to the login service, unnecessarily exposing it to account records or associated logging; this is more than the mere presence of an external request.

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

The default trigger activates eye-health analysis for any requested analysis of a pet facial image or video.

Low
Category
Trigger Abuse
Confidence
90% confidence
Finding

The default trigger covers requests to analyze pet facial media even when the user has not requested eye-health assessment. Because the workflow uses an external service, this broad trigger can initiate processing and disclosure beyond the user's intended task.

Content

No source excerpt is available for this finding.

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 missing, without a prompt, log, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader while the module's subclasses are defined (L044–L059), so merely importing the module can modify the filesystem.

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