Back to skill

Security audit

Cat & Dog Health Diagnostic Analysis Tool | 猫狗宠物健康诊断分析工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this pet-analysis skill suspicious because scanners report credential exposure risk, unintended cloud operations, and an overly broad trigger for retrieving report history.

Treat this as a review warning, not a claim that the author acted maliciously. Before installing, consider whether you trust the service with pet videos, account details, and report history; the scanners report possible credential forwarding to arbitrary hosts and cloud activity despite an export-only option. The run marks all components scanned, but Skillspector also reported an exit-status error, so its evidence has that caveat.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The video-analysis workflow is consistent with the declared purpose. However, --list bypasses the video-input requirement and calls skill.get_output_analysis_list(open_id=...), exposing a separate history-retrieval operation. This is additional user-facing functionality rather than merely an implementation detail of analyzing a supplied video. Identity resolution and optional output-file writing are supporting behaviors, not separate mismatches. The imported analysis implementation is not supplied, so its actual network requests and diagnostic processing 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 video-analysis commands align with the declared purpose, and report formatting and file output are supporting features. However, historical-report listing is a separate user-facing capability with explicit additional trigger phrases, neither of which is disclosed in the description. The supplied chunk contains command examples rather than implementation code, so it does not establish how reports are stored or retrieved.

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: "pet-analysis"
description: "Triggers when a user provides a video URL or file of a pet (cat/dog/bird) for analysis; supports local video uploads or network URLs to call server-side APIs for health checks, analyzing features like fur, body, and face to identify potential diseases and generate a Pet Safety Guardian health report. | 猫狗宠物健康诊断分析工具,当用户提供猫/狗/鸟等宠物的视频 URL 或文件需要分析时,触发本技能进行宠物健康诊断分析;支持通过上传本地视频或网络视频 URL,调用服务端 API 进行宠物健康检查,分析毛发、身�

The request helper can send service credentials to arbitrary external hosts, beyond the pet-analysis API's authentication needs.

High
Category
Excessive Agency
Confidence
96% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically adds service tokens and the API key without checking the destination. If an untrusted URL reaches this helper, its operator could receive these credentials; allowing HTTP also permits cleartext disclosure. Network video URLs are normal in this skill, making separation between media fetching and authenticated API requests especially important, although this file alone does not establish that video URLs reach this helper.

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 automatic history-query triggers include the generic phrase “历史报告” (“historical reports”) without requiring pet-health context.

Medium
Category
Trigger Abuse
Confidence
93% confidence
Finding

The generic historical-report trigger can match requests unrelated to pets, while the skill mandates an immediate cloud query and display of the results. This can cause unintended access to and disclosure of pet-report history in a conversation where the user did not request it.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes pet-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. When supplied with an input or --list, execution still reaches cloud operations, potentially transmitting video or retrieving private reports despite the caller selecting a non-executing 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 input files are passed to the analysis API without disclosure that their contents will be uploaded.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The code reads the entire local file, constructs a file-upload payload, and passes it to the analysis service. There is no confirmation, user-facing notice, or comment explaining the external transmission; the comment only describes reading the file, which does not disclose the privacy impact of uploading it.

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 environment-export-only flag is accepted but never consulted, so supplying an input still invokes video analysis and supplying --list still retrieves reports. This violates an explicit no-analysis expectation and can cause unintended cloud disclosure or processing.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its write-only behavior.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper uses mode 'w', which immediately truncates an existing file even before anything is written. No docstring, comment, confirmation, or user-facing message explains this destructive behavior; exception tracing only reports failures.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote user and persist authentication tokens locally without disclosure.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

When tokens are unavailable, the request helper invokes a separate login endpoint with registration enabled, transmitting the current identity as both openId and mobile. It then saves returned user information and authentication tokens through UserDao, without a comment, docstring, confirmation, or user-facing log disclosing this automatic registration and persistence; logging of the main request does not explain these additional actions.

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"):

Loading configuration silently creates directories and configuration files, including during module import.

Low
Category
Output Handling
Confidence
92% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path is absent, without a warning, log, or explanatory comment. BaseEnum.init_subclass invokes this loader at L053 and L058, so merely importing the module can modify the filesystem rather than only read configuration.

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:

ai_chat documents an agent invocation, but its implementation never invokes the agent or returns an analysis result.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly says this method invokes the openclaw agent through subprocess, but the command and subprocess call are commented out. Instead, L68 creates an empty dictionary, and accessing result.stderr raises an exception that is caught, causing the method to return None without performing the documented analysis.

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