Back to skill

Security audit

Pet UV Safety Monitor Analysis | 宠物紫外线消毒安全监测

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report a mismatch between its advertised UV-C pet safety protection and its video-analysis workflow, alongside privacy and account-data concerns; the scan was partial.

The verdict is suspicious, not a finding that the author acted maliciously. Consider avoiding installation unless you are comfortable with the reported external video processing and account-data handling, and do not rely on this skill as a real-time safety monitor or lamp interlock. The scan was marked partial because a local reference in the skill could not be resolved, so the evidence is incomplete.

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 code's concrete purpose is local database infrastructure focused on user accounts, rather than UV-C pet safety monitoring. Database persistence could support the declared event logging, but this chunk defines a user schema and user-specific operations, not safety-event storage. Its management of personal information and authentication tokens is not explained by the declared purpose. This assessment is limited to the supplied chunk; it does not establish what other skill files implement or indicate malicious activity.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk contains no camera analysis, pet detection, UV-lamp state detection, exposure-risk evaluation, lamp control, or safety-event logging. Generic utilities and HTTP transport could support the declared monitor, but the implemented account-registration, identity persistence, and payment workflow introduce substantial behavior not described by that purpose. The request wrapper also attaches configured credentials to caller-supplied absolute URLs without a visible destination restriction. This assessment is limited to the supplied chunk; it does not establish whether other files implement the advertised safety functionality or whether credential disclosure actually occurs.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code is a generic, nonfunctional agent-helper scaffold rather than an implemented UV-C pet-safety monitor. It does not execute the commented-out subprocess command, and there is no evidence of unrelated resource access or malicious behavior. Imported base classes may provide additional functionality, but their implementations are not supplied and cannot establish the declared monitoring behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The document advertises real-time protection and automatic lamp shutdown, but its operational workflow describes submitting a video and receiving a report, without establishing continuous monitoring or a verified control path. In a UV-C safety context, reliance on those unsupported protection claims could leave pets exposed to harmful radiation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The real-time monitoring and automatic-protection claims exceed the documented file-submission workflow, creating a dangerous expectation of active UV-C protection. However, the finding's separate allegation that history retrieval is undisclosed is incorrect: the document explicitly describes that feature.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Generic AI-analysis configuration could support the declared monitor, but the health-order report export endpoint is inconsistent with its stated resources and purpose. No camera processing, pet detection, lamp-state recognition, alerts, shutdown control, or event logging appears in this chunk. Because this is only a configuration file, those missing features alone do not establish a mismatch; the unrelated health-report export configuration is the concrete discrepancy.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

HTTP helpers could legitimately support the declared smart-home integration, so network access alone is not a mismatch. However, the supplied code specifically exposes storage-download and user-directory functionality not explained by the description, while implementing none of the stated safety workflow. This assessment is limited to this chunk; it does not establish what other skill files implement or imply malicious behavior.

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-uv-safety-monitor-analysis"
description: "AI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域,自动关闭UV灯并推送�

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 indoor camera footage to an external API service.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The skill directs users to submit indoor camera footage through an API workflow without a clear privacy notice explaining that local footage leaves the device. Such footage can reveal occupants, home layouts, and routines, making undisclosed external processing materially sensitive even though API use is mentioned.

Content

No source excerpt is available for this finding.

The documented environment-export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to analyze, but main never checks the flag before initializing identity and invoking analysis when input is supplied. A caller expecting a configuration-only operation can therefore trigger unintended processing and potentially transmit private footage.

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

The implementation provides asynchronous video-analysis reports rather than the advertised real-time UV safety monitoring and automatic protection.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The visible workflow submits a video and polls for a report at five-second intervals for up to roughly two minutes; it does not establish continuous observation or a protective shutdown path. Presenting this workflow as real-time UV-C protection can cause unsafe reliance, although the remote service's detection capabilities cannot be determined from this source.

Content

No source excerpt is available for this finding.

Local video contents are passed to the analysis API without disclosing the upload to the user.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The implementation reads the complete local video into memory and passes it as a file payload to the analysis API without a visible disclosure or authorization gate. For indoor camera footage, this can expose sensitive household information when users expect local analysis.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to perform analysis, but does not prevent video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never consulted, so providing a video still invokes analysis despite the explicit no-analysis promise. This breaks the caller's side-effect expectations and can initiate unwanted external processing of private footage.

Content

No source excerpt is available for this finding.

The skill includes persistent demographic user-profile management unrelated to UV safety monitoring.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model stores real names, email addresses, birthdays, sex, and age, and UserDao exposes inherited CRUD operations over those profiles. Although event logging and smart-home authentication are expected for this skill, managing human demographic profiles is not justified by its stated pet-detection, UV-control, and alerting purpose; DAO initialization also creates the registered user table (L184-L190).

Content

No source excerpt is available for this finding.

ai_chat claims to invoke an analysis agent, but the invocation is disabled and no analysis result is returned.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The invocation is commented out, and accessing stderr on an empty dictionary raises an exception that is swallowed, causing ai_chat to return None. If a monitoring path relies on this method, analysis can fail silently and suppress timely UV-hazard detection; the supplied source does not establish that the active monitoring path calls it.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing the destructive behavior.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open helper uses mode 'w', which immediately erases an existing file's contents even before anything is written. No docstring, explanatory comment, confirmation, or operation-specific log discloses this behavior; exception tracing does not warn about successful truncation.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a platform account and persist its credentials, beyond the declared UV-safety monitoring purpose.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

An ordinary HTTP request can initiate silent remote registration and store returned tokens and user information in SQLite without a separate enrollment decision. This introduces identity disclosure and credential retention beyond what the UV-monitoring description communicates, although it may be intended platform integration rather than malicious behavior.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and local credential persistence.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The generic request helper has consequential hidden side effects: it can register a remote identity and persist account credentials while ostensibly performing a different request. In a home-camera safety skill, users may reasonably expect monitoring rather than implicit account provisioning and durable credential storage.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The registration POST transmits the selected identity as both openId and mobile, and that identity can be ApiEnum.API_SECRET_KEY because the caller prioritizes it over usernames. Consequently, the helper can disclose an API secret as account-profile data to the configured health service; the destination's trustworthiness and transport security are not established here.

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 writes missing configuration 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 path is missing, without a confirmation, log message, docstring, or explanatory comment. BaseEnum.init_subclass calls this loader when enum classes are defined (L044–L058), so merely importing the module can modify the filesystem without disclosure.

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