Back to skill

Security audit

Reptile Shedding Progress Analysis | 爬宠蜕皮进度识别

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report undeclared account and credential handling, risky credential transmission, remote media uploads without clear disclosure, and an option that may still run analysis.

Consider avoiding installation until the account, credential, and remote upload behavior is clearly explained and the export only behavior is addressed. The scan is incomplete: one local reference was missing, so the available evidence cannot establish the behavior of that referenced material.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk implements user-account persistence rather than reptile monitoring. In particular, User defines personal-data and token fields, Dao initializes and modifies the database schema, and UserDao supports account lookup and default-user selection. Persistence could be a supporting implementation detail, but this chunk contains no reptile observations or image-analysis records establishing such a connection; its concrete account-management capabilities are not represented in the description. No camera capture, scheduling, visual analysis, shedding classification, or care guidance is implemented here. This assessment is limited to the supplied chunk and does not imply token exfiltration or malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk contains no camera capture, image analysis, shedding classification, care recommendations, or periodic analysis scheduling. Generic file, JSON, date, and polling helpers could support the declared skill and are not independently mismatches. However, the identity provisioning, remote account registration, persistent credential management, and payment-service integration introduce substantial undeclared behavior. These actions occur when the relevant helpers are called; the chunk alone does not establish that they execute automatically or that the broader skill lacks reptile-analysis 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 implements a video-analysis CLI and history-listing interface. It contains no camera capture, scheduling, reptile-specific visual checks, shedding-stage classification, or care-advice logic. The imported analysis implementation is not supplied, so it could perform reptile-specific analysis; that cannot be verified here. Nevertheless, the visible video-input workflow and account-associated history access materially differ from the declared automated enclosure-monitoring workflow. Optional file output is a supporting implementation detail, not itself a mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied code implements a generic API-backed media-analysis and report-management interface. It contains no camera integration, daily or half-daily scheduling, longitudinal comparison, or reptile-specific analysis configuration. Uploading files and polling an API could support the declared purpose, but the visible implementation does not establish that specialized workflow. Imported API implementations are not supplied, so reptile-specific behavior inside the remote service cannot be ruled out.

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-shedding-progress-analysis"
description: "Through a fixed camera in the reptile enclosure, the system periodically captures full-body high-definition images of reptiles (snakes, lizards, geckos) and uses AI visual analysis to detect changes in body colour (normal vivid → dull/whitish → restored vivid) and eye state (clear → opaque milky 'blue-phase' → clear again), to determine the shedding phase: preparation phase (skin turns whitish, eyes turn opaque), in-progress. | 通过爬宠箱固定摄像头,定期拍摄爬行动物(如蛇、蜥蜴、守宫)的全身高清图像,利用 AI 视觉分析技术检测�

The request helper can forward platform credentials to arbitrary absolute HTTP or HTTPS URLs.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute URLs and attaches platform access tokens, the API key, and authorization credentials without checking the destination origin. If an untrusted URL reaches this helper, those credentials can be sent directly to an attacker; accepting HTTP also permits cleartext disclosure.

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 API-backed analysis workflow lacks an explicit warning that local input media is sent off-device.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The workflow directs analysis of local media without clearly stating that the media contents are uploaded to a remote processor. References to APIs and cloud report history provide some context, but do not clearly disclose that enclosure images or video, potentially including private surroundings, leave the device.

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 parser promises that --export-env-only will not execute analysis, but the flag is never checked. When media is also supplied, execution continues into analysis, potentially uploading private enclosure media and consuming service credits despite the caller's explicit no-analysis request.

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

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The function reads the entire local media file and packages its contents for the analysis service without a visible disclosure or authorization check. Although remote analysis serves the skill's purpose, enclosure footage can contain private surroundings, making an undisclosed off-device transfer a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but does not prevent it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag explicitly promises no analysis but is never consulted after parsing. Supplying an input alongside it still reaches the analysis workflow, violating the caller's requested boundary and potentially causing an unintended remote upload or charge.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to reptile shedding 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 enclosure images, determining shedding stages, or providing care advice, and the manifest does not declare account-management functionality.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and credential management unrelated to reptile shedding analysis.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

L448-L465 define a persistent user model containing real names, email addresses, birthdays, demographic information, and token/open_token credentials. UserDao at L470-L473 exposes inherited read/write/delete operations for these records, while DAO initialization at L180-L190 creates the registered tables. This account and credential management capability is not justified by the manifest's camera-based shedding detection and care-advice purpose; the file does not establish that any such information is actually collected.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
100% confidence
Finding

The docstring at L25–L35 explicitly promises to invoke openclaw agent through subprocess and return analysis or a session ID. However, the command and subprocess invocation are commented out (L48–L66); the code instead creates an empty dictionary and accesses its nonexistent stderr attribute (L68–L70), causing an exception that is caught without returning a result. This contradicts the documented AI-analysis behavior rather than merely changing its implementation.

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 generically named open helper always uses mode 'w', which immediately erases an existing file's contents. There is no confirmation, user-facing log, docstring, or comment explaining this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The HTTP helper silently provisions service accounts and persists user credentials, beyond the declared reptile-analysis workflow.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

An ordinary HTTP request can implicitly register a remote account and pass returned authentication tokens into persistent user storage without a separate enrollment decision. This creates identity-disclosure and credential-lifecycle side effects beyond the declared image-analysis workflow; integration convenience does not establish user consent.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The login helper explicitly requests silent registration and supplies the current identifier as both openId and mobile. Consequently, making a service request can create an externally linked account without an explicit enrollment step, an unexpected privacy side effect for a reptile-monitoring skill.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
96% confidence
Finding

The registration POST sends the selected username externally as openId and mobile, and the caller prioritizes API_SECRET_KEY when choosing that username. When tokens are missing, this can transmit an API secret as profile data to the health-service login endpoint, where it may also enter account records or logs.

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 YAML files, including during module import.

Low
Category
Output Handling
Confidence
94% confidence
Finding

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