Back to skill

Security audit

Pet Grooming Effectiveness & Hairball Risk Analysis | 宠物梳毛器梳理效果与毛球风险

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this grooming image and video analysis skill suspicious because scanners report credential and privacy risks, extra user and report-history capabilities, and behavior that can send media for analysis even in a stated export-only mode.

Consider avoiding installation unless you are comfortable with the reported risks. Before using it, clarify where submitted media and credentials may be sent, whether account and report-history features are needed, and whether the export-only option truly prevents analysis; the scan was partial because one referenced path was missing, so the 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_grooming_effectiveness_analysis.py
Finding

Ignored API destination override sends submitted media to the default external service

Content
View full analysis

Impact

Private media contents or submitted media URLs, including any embedded access parameters, are disclosed to the default service rather than the user's selected destination. This is a concrete destination mismatch, not merely an unimplemented cosmetic option.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk is a user-account persistence module, not a grooming-media analysis implementation. It supports querying, updating, and deleting user records, including names, email addresses, birthdays, and token fields. It contains no media handling, recognition API calls, matting or shed-hair measurements, or hairball-risk calculation. Although database utilities can support a larger skill, the account-management behavior shown here is not connected to the declared analysis workflow and represents an undeclared capability. No network transmission or token misuse is demonstrated.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The analysis commands align with the declared purpose, and report formatting and saving are supporting features. However, historical-report listing is a distinct undeclared capability with explicitly documented additional triggers. The supplied chunk shows command examples rather than implementation, so it does not establish how reports are stored or whether the advertised recognition APIs are actually called.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The main analysis workflow aligns with the declared purpose. However, --list invokes skill.get_output_analysis_list(open_id=...) and exits without processing any supplied media. This is an additional user-data retrieval capability, rather than merely an implementation detail of analyzing the current input. Identity resolution supports that functionality but is not independently evidence of misuse. The imported analysis implementation is not supplied, so the specific recognition metrics and server-side behavior cannot be verified from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The media submission, polling, result formatting, and export-link generation support the declared analysis workflow. However, get_output_analysis_list calls self.page to retrieve existing report records and returns their contents and export links. This is an additional report-history access capability not disclosed in the description. The supplied chunk delegates recognition to imported API methods, so the specific matting, shed-hair, and hairball-risk calculations cannot be verified here. The code alone does not establish unauthorized access to report history.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The media-analysis path is consistent with the declared purpose, although the delegated implementation is not supplied, so specific recognition metrics and image support cannot be verified. The independently accessible history-listing mode goes beyond analyzing the currently supplied media and accesses user-associated historical records. Identity resolution and optional output-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-grooming-effectiveness-analysis"
description: "Triggers when a user provides a pet grooming area video or image URL/file for analysis; supports local uploads or network URLs to call server-side APIs for coat condition and shed hair recognition, detecting matting area ratio and shed hair volume to output hairball risk level, helping prevent hairball syndrome. Application scenarios: smart grooming tools, long-haired pet care, pet health management. | 当用户提供梳毛器区域的视频/图像URL或文件时,触发本技能进行毛发表面状态分析;支持通过上传本地视频/图片或网络URL,调用服务端A

The HTTP helper forwards service credentials to arbitrary absolute URLs.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS destinations and attaches service tokens and API keys without checking the destination origin. If a supplied media URL reaches this helper, an attacker-controlled server can receive those credentials; allowing 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 analysis workflow lacks a user-facing privacy warning before sending local media to a remote API.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The workflow instructs the agent to process local images or videos through the server-side analysis API described elsewhere in the file. Although API use is documented, there is no warning that local media will leave the user's device and may include private background details or metadata.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes media analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises --export-env-only as preventing analysis, but the parsed flag is never checked. When supplied with media input, execution still initializes identity and invokes remote analysis, potentially transmitting private media despite the user's explicit non-analysis choice.

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

Input video content or its URL is passed to an analysis API without disclosure that user data is being transmitted.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The analysis call receives either the local file contents assembled on lines 125–131 or the video URL set on lines 113–116. No prompt, user-facing log, docstring, or comment in this file explains the external transmission; requesting video analysis does not inherently disclose that local media will be uploaded.

Content

No source excerpt is available for this finding.

The skill exposes retrieval of stored report history beyond analysis of user-provided media.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

The manifest describes analyzing a supplied grooming image or video and returning its results. This method instead calls a paginated report-list API and serializes the returned records, providing access to historical reports independently of any supplied media. Historical report browsing is a separate capability not justified by the stated per-input analysis purpose.

Content

No source excerpt is available for this finding.

The documented export-only mode does not prevent media analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag promises not to perform analysis, but execution never branches on its value. With a media input present, the normal analysis path still runs and can upload media or submit its URL contrary to the requested mode.

Content

No source excerpt is available for this finding.

The service implements user-account lookup unrelated to grooming-image analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

At L98–L101, get_user_by_username delegates a supplied username to a user-lookup operation. This is a distinct account-query capability, whereas the manifest describes media submission and grooming-condition analysis and provides no justification for looking up users.

Content

No source excerpt is available for this finding.

The save() docstring promises creation of a new record, but insertion failures trigger updates to existing records.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Any insertion exception triggers attempts to overwrite an existing record by ID and then username or realname, copying nearly all columns without an explicit update decision. If incoming identity data conflicts with an existing user, this can corrupt that user's identity or stored tokens; the shared authentication database makes this more consequential than ordinary grooming-result storage.

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 the supplied path in 'w' mode immediately erases any existing contents, even before the caller writes data. The generically named helper has no docstring, comment, confirmation, or action log explaining this behavior; its exception handler does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The HTTP helper silently performs account registration without disclosing that side effect.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

An ordinary HTTP operation can automatically invoke phoneLogin with register=1, transmitting the current identity as both openId and mobile without a separate registration decision. Server-side grooming analysis justifies API communication, but does not by itself establish consent to create a persistent account or send an identifier selected from API_SECRET_KEY.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

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, 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 warning, log, or explanatory comment/docstring. BaseEnum.init_subclass invokes this loader during class definitions (L044–L059), 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()

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: