Back to skill

Security audit

Pet Grooming Stress Behavior Analysis | 宠物美容过程应激行为识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this pet grooming video analysis skill suspicious because scanners report unexpected behavior involving configuration-only requests, user data and account handling, and report history; the overall confidence is medium.

The verdict is suspicious, so consider avoiding installation unless you can accept the reported remote footage processing, account and profile handling, and undeclared report-history feature. The skillspector scan was partial: although it inspected all listed components, it could not resolve one referenced path, 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 (23)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The video-analysis commands align with the declared purpose, and report formatting and file output are supporting features. However, historical-report retrieval and its explicit trigger keywords introduce a separate, undeclared workflow. The supplied chunk contains command examples rather than the module implementation, so it does not establish how reports are stored or whether server-side API calls actually occur.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied chunk contains no video handling, analysis API calls, stress-signal recognition, or stress grading. Its substantive functionality is managing a sys_user database with names, email addresses, birthdays, demographic fields, and token fields. Database access can be a supporting implementation detail, but this chunk specifically implements identity and credential persistence without a demonstrated connection to the declared grooming-analysis functionality. This assessment is limited to the supplied chunk; it does not establish what the rest of the skill does or indicate malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The main video-analysis workflow matches the declared purpose, although the imported implementation is not supplied, so its stress-recognition behavior cannot be verified here. The additional history-listing workflow calls skill.get_output_analysis_list(open_id=...) and can run independently of video analysis. This is a distinct undeclared data-retrieval capability. Identity resolution and optional result-file writing are supporting implementation details, not separate 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-grooming-stress-behavior-analysis"
description: "Triggers when a user provides a pet grooming session video URL or file for analysis; supports local video uploads or network URLs to call server-side APIs for stress behavior recognition, detecting struggling, panting, tail tucking and other stress signals during grooming, outputting stress level grading to help groomers intervene promptly. Application scenarios: pet grooming shop cameras, veterinary clinics, pet care services. | 当用户提供宠物美容过程视频URL或文件时,触发本技能进行应激行为分析;支持通过上传本地视频或网络视频URL,�

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 before sending grooming footage to a remote service.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The workflow instructs the agent to process local files or video URLs through the server-side analysis API, and the skill also supports cloud-based report history. Although remote processing is described, there is no warning that grooming footage may contain identifiable customers, staff, or private premises and will leave the user's environment.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze video, but the code ignores it and proceeds with analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises no analysis, but execution never checks the flag before invoking the analysis workflow. When supplied with media input, a command intended only to export configuration can therefore initiate remote processing and disclose footage or a video URL contrary to the caller's explicit expectation.

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 file contents are submitted to the analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The code reads the entire local file and passes its contents to the analysis service through the files argument. No confirmation, log, docstring, or comment in this file explains that the user's file is uploaded; the comment only describes reading it. An analysis request does not necessarily imply consent to transmit potentially private content to an external service.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only argument advertises configuration export without analysis, but its parsed value is never inspected. With --input or --url present, execution still reaches remote analysis, potentially transmitting sensitive footage or URLs despite an explicit non-analysis request.

Content

No source excerpt is available for this finding.

Implements persistent personal-profile management unrelated to pet grooming stress analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model stores human profile information, including real names, email addresses, birthdays, sex, and age, and UserDao exposes the inherited persistent CRUD operations for those records. API authentication could justify storing credentials, but managing these personal profiles is not justified by the stated purpose of submitting grooming videos and returning stress assessments.

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

Opening a path in 'w' mode immediately erases its existing contents, even before anything is written. This generically named helper has no confirmation, operation log, docstring, or comment explaining that it creates or truncates files; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The API wrapper silently registers user accounts beyond the declared video-analysis workflow.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

An ordinary API call can invoke phoneLogin with silent=1 and register=1 when tokens are absent, without a separate enrollment decision. Server-side analysis reasonably requires authentication, but undisclosed account creation and identity submission exceed merely processing the supplied video.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently trigger remote account registration without disclosure.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The request wrapper hides an account-registration side effect behind routine HTTP operations, triggered by missing cached credentials. This is the same underlying enrollment issue as SDI-1 and can create remote accounts without a distinct user-approved registration step.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The POST transmits the selected identity as both openId and mobile during automatic enrollment; that identity can originate from API_SECRET_KEY, current user state, or the workspace identity file. External communication is expected for this skill, but silently reusing those values as registration/profile data introduces unnecessary disclosure and potential credential retention in 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 writes 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 does not exist, without a log, prompt, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader during class definition (L053 and L058), so importing the module can modify the filesystem without an explicit save operation.

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:

The ai_chat docstring claims to invoke the OpenClaw agent, but the implementation never executes it or returns analysis.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly promises an OpenClaw agent invocation through subprocess, but both command construction and subprocess execution are commented out at L48–L66. Instead, L68 initializes an empty dictionary and L70 accesses its nonexistent stderr attribute, causing an exception that L81–L82 suppress; the method therefore returns None rather than the documented analysis result or session ID.

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/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