Back to skill

Security audit

Pet Hospital Waiting Anxiety Level Analysis | 宠物医院候诊焦虑等级评估

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this pet video analysis skill suspicious because scanners report credential exposure risks, behavior beyond the stated purpose, and privacy and scope concerns.

Consider the suspicious verdict and the reported credential, privacy, and unintended-analysis risks before installing. The scan did not establish clear malicious intent, but its findings warrant caution; avoid sending sensitive footage or credentials unless you have independently verified how the service handles them.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The video-analysis commands align with the declared purpose, and report formatting and saving are supporting implementation details. However, historical-report listing is a distinct, undeclared capability, with additional keyword triggers explicitly described in the supplied content. The module implementation is not provided, so its actual analysis, storage, and network behavior cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied chunk implements general user-account persistence rather than video ingestion, anxiety-analysis API calls, stress-signal detection, or anxiety scoring. Although database access can be a supporting implementation detail, this chunk specifically manages user identities, personal information, and tokens without showing a connection to the declared pet-video workflow. The mismatch is limited to the supplied code; it does not establish that the complete skill lacks video-analysis functionality or that stored information is transmitted externally.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The main video-analysis workflow is consistent with the declared purpose, although the imported implementation is not shown, so the specific stress detectors and 1–5 scoring cannot be verified. However, --list invokes skill.get_output_analysis_list(open_id=...) and exits without analyzing a supplied video. This is an additional historical-record retrieval capability not disclosed in the description. Printing and saving results are supporting implementation details and are not mismatches.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The video submission, result polling, and report formatting are consistent with the declared analysis workflow. However, get_output_analysis_list calls self.page and returns existing report records, including generated report-image URLs. Retrieving historical reports is a separate data-access capability not disclosed in the description. The supplied chunk delegates actual behavioral detection and scoring to external code, so it does not establish whether the promised stress indicators or 1–5 scale are implemented. There is insufficient evidence to infer unauthorized access or unrelated data exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The main video-analysis path is consistent with the declared purpose, although the imported implementation would be needed to verify the specific stress measurements and scoring. However, --list invokes get_output_analysis_list(open_id=...) and exits without requiring video input. This is a separate record-retrieval capability not disclosed in the description. Internal identity resolution and optional output-file writing are supporting implementation details, not independent mismatches.

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-pet-hospital-waiting-anxiety-analysis"
description: "Triggers when a user provides a pet hospital waiting area video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for anxiety-related behavior recognition, detecting open-mouth panting intensity, limb/torso trembling amplitude, ear-flattening degree and other stress signals, outputting a standardized anxiety level (1-5) to help medical staff identify high-stress pets and prioritize care or comfort (without diagnosing diseases or prescribing treatment). Application scenarios: pet hospital waiting areas, veterinary clinics, pet care ins

The request helper forwards service credentials to arbitrary absolute URLs rather than restricting them to the analysis service.

High
Category
Excessive Agency
Confidence
98% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and attaches service tokens and API keys without checking the destination origin. If an untrusted video URL or other attacker-controlled endpoint reaches this helper, credentials can be sent to the attacker; accepting plain HTTP also exposes them to interception.

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 video-analysis workflow lacks a privacy warning before sending waiting-area footage to the remote API.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

Although server-side processing is mentioned, the workflow proceeds with remote analysis without a specific privacy notice or a check that the uploader is authorized to share the footage. Waiting-area videos can include identifiable clients, staff, conversations, or documents unrelated to the pet, making undisclosed incidental collection a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The automatic history-query triggers include the unqualified phrase “历史报告” (“historical reports”).

Medium
Category
Trigger Abuse
Confidence
93% confidence
Finding

The examples include the generic phrase 'historical reports' as an automatic trigger, while the manifest requires an immediate cloud query once triggered. In an unrelated reporting conversation, this can cause unintended remote access and disclosure of pet-clinic assessment records into the conversation; actual exposure depends on available records and identity isolation.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises --export-env-only as performing no analysis, but the parsed flag is never checked. With an input supplied, execution still initializes identity and calls video analysis, potentially transmitting private footage despite the caller explicitly choosing a non-analysis mode.

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 content is passed to an analysis API without disclosure that it will be uploaded.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The local-input branch reads the entire file and passes its bytes to the analysis service without any disclosure or authorization gate in this source. This is intended analysis functionality rather than demonstrated malicious exfiltration, but clinic footage may contain bystanders and sensitive information whose remote transfer needs explicit handling.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option promises not to run analysis, but execution never branches on its value. Providing a video with this flag still calls the analysis service, violating the caller's explicit no-analysis expectation and potentially exposing private footage.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile management unrelated to pet anxiety video analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

L448-L465 define a persistent user model containing real names, email addresses, birthdays, sex, age, and authentication tokens; UserDao at L470-L473 exposes the inherited CRUD operations for these records. Although API authentication could justify token handling, managing human demographic profiles is not an obvious requirement of recognizing pet stress signals and is not declared in the manifest. This file establishes that capability, but does not demonstrate that such data is actually collected during video analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive write mode.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases existing file contents when opening succeeds. No comment, docstring, confirmation, or operation-specific log explains this destructive behavior; exception tracing only runs on failure.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and identity transmission.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

An ordinary request can automatically invoke phoneLogin with silent and register enabled, transmitting the selected identity and potentially creating a remote account. The advertised video-analysis functionality does not disclose this account-creation side effect, and the helper shows no explicit authorization gate before performing it.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

The POST transmits the selected identity as both openId and mobile during automatic login or registration. That identity can originate from an API secret, a current user identity, or a workspace key file, creating an undisclosed disclosure risk beyond the expected transmission of video-analysis inputs; this is the transmission aspect of the same provisioning issue.

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 without disclosure.

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 comment, docstring, prompt, or log disclosing this behavior. Because BaseEnum.init_subclass invokes this loader at L053 and L058, importing the module can modify the filesystem even when the caller only expects configuration reads.

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

The ai_chat docstring claims to invoke an analysis agent, but the implementation never invokes one or returns analysis output.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly promises an openclaw agent invocation through subprocess and an analysis result or session ID. However, command construction and execution are commented out, and the empty dictionary at L68 causes result.stderr to raise an exception that is caught and suppressed, leaving the method to return None without performing analysis.

Content

No source excerpt is available for this finding.