Back to skill

Security audit

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

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rated this skill suspicious because scanners report credential and identity handling, undeclared account and report-history features, and a flag that may still send media for remote analysis.

Treat this as a review warning and weigh the reported credential exposure, automatic account creation, persistent identity data, and unintended media submission against your needs. The scan was partial because one local reference could not be resolved; while it inspected all listed components, that missing reference leaves some evidence incomplete. The verdict is suspicious, and the findings do not establish malicious intent.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The analysis commands and report formatting/saving options align with the declared purpose or support it. However, historical-report listing is an additional user-facing capability, with explicitly documented triggers not covered by the description's media-input trigger. The supplied chunk contains command examples rather than the underlying implementation, so server-side API use and specific recognition metrics cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The supplied chunk is a user-account database module rather than an image/video analysis implementation. Instantiating its DAO initializes a SQLite database and creates or alters tables; its methods can read and modify user records, including sensitive token fields. Although database utilities can support API-based skills, this chunk provides no connection between its user-profile persistence and the declared grooming analysis. That substantial identity-management capability is not represented in the description. No media processing, recognition API calls, matting measurements, or hairball-risk calculations appear in this chunk. This assessment is limited to the supplied code and does not imply malicious intent or network exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The media-analysis path is consistent with the declared purpose, although the supplied wrapper does not expose the underlying recognition implementation. However, the independent history-listing mode accesses user-associated records and operates without a supplied image or video. That is an additional user-facing data-retrieval capability, not merely an implementation detail of analyzing submitted media. Identity resolution and optional result-file output are not independently treated as mismatches.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The main analysis flow matches the declared purpose, although the underlying recognition and risk calculations are not visible in this chunk. However, --list invokes skill.get_output_analysis_list using a resolved user identifier without requiring an image or video. This is an additional user-history retrieval capability rather than merely an implementation detail of analyzing supplied media. Identity resolution and optional result-file output are otherwise supporting behaviors; the visible code does not establish malicious activity.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

Ordinary file helpers, polling, and API authentication can support the declared server-side analysis and are not independently mismatches. However, this code also reads a workspace identity file, creates persistent user records, and performs automatic remote account registration, which is a broader account-management capability not disclosed in the description. Its request wrapper also attaches configured credentials to caller-supplied absolute destinations without checking their origin. The absence of grooming logic in a shared utility module alone would not establish a mismatch; the additional account-provisioning and unrestricted credential-forwarding behavior does.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

Media submission, asynchronous result polling, and report formatting support the declared analysis workflow. However, querying historical reports is a distinct data-retrieval capability beyond analyzing the supplied media. The supplied chunk delegates recognition to imported API methods, so it does not independently establish whether the server actually computes the stated pet-health metrics. Although open_id checks are commented out, server-side authentication is not shown, so unauthorized access cannot be concluded.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
82% confidence
Finding

Most methods are generic API infrastructure that could legitimately support the declared workflow, so those methods and the absence of analysis logic in this shared module are not independently mismatches. However, get_user_by_username exposes an identity-query capability not described in the declared purpose, and the supplied code establishes no connection between that lookup and grooming analysis. No malicious use or actual invocation of the lookup is shown.

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 attaches service credentials to arbitrary absolute URLs.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and adds service tokens and the API secret without checking the destination origin. If an untrusted media URL reaches this helper, an attacker-controlled server can receive those credentials; HTTP destinations also expose them to network 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.

Cloud processing and identity-linked report history lack a user-facing privacy warning.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

Although server-side processing is disclosed, the workflow silently creates or reuses an identity and associates reports with cloud history without requiring a user-facing explanation of that persistence. Grooming media can include people or private home interiors, making undisclosed identity-linked retention a meaningful privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze media, but does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only, but execution never checks it and continues into analysis when media input is supplied. A caller relying on the explicit no-analysis promise can unintentionally submit private media to the analysis service.

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 contents are passed to the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The code reads the entire local input file, packages its contents as an upload, and passes it to the analysis service. No prompt, user-facing log, docstring, or comment in this file discloses the external transfer; requesting video analysis does not necessarily imply consent to uploading potentially private footage.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze input, but valid input still triggers analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never used, so valid input still reaches analyze_video despite the promise not to analyze. This can cause unintended remote processing of sensitive media when a caller expects a configuration-only operation.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to the declared grooming-analysis workflow.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The get_user_by_username method delegates a supplied username to a user-lookup utility. Looking up user accounts is a separate capability from uploading pet images or videos and requesting coat-condition analysis, and the manifest does not declare account lookup as part of the skill's purpose.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile management unrelated to grooming-media analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

Profile management is not inherently malicious, but this SQLite-backed model stores token and open_token as ordinary strings alongside personal information, with no credential protection shown. If credentials are populated, access to the database or its backups exposes reusable authentication material; grooming analysis does not justify retaining unnecessary profile data.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper always uses write mode, which immediately erases an existing file's contents. No confirmation, action log, docstring, or comment discloses this destructive behavior.

Content

No source excerpt is available for this finding.

Analysis requests can silently register a remote account and persist its credentials.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

An ordinary HTTP request can trigger silent remote registration using the current identity and then save returned tokens through the user DAO. Remote media processing is expected for this skill, but automatically creating an account and retaining credentials are additional privacy and credential-lifecycle actions without an explicit authorization gate in this code.

Content

No source excerpt is available for this finding.

HTTP authentication silently sends an identity to a remote registration endpoint.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The authentication helper sends the selected identity as both openId and mobile while requesting silent registration. The caller can select API_SECRET_KEY as that identity, potentially transmitting a credential in identity fields subject to broader logging and retention; neither behavior is necessary merely to submit grooming media.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

External transmission alone is expected in a server-backed analysis skill, but this request specifically transmits identity information and enables account registration automatically. The identity may also be sourced from API_SECRET_KEY, making this a concrete disclosure concern rather than merely a generic network call.

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
91% confidence
Finding

YamlUtil.load creates the parent directory and writes a YAML file when the requested configuration is absent, without a log, confirmation, or explanatory comment/docstring. BaseEnum.init_subclass invokes this loader at L053 and L058, so merely importing the module can modify the filesystem without disclosing this side effect.

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