Back to skill

Security audit

Pet Breed & Individual Identification Skill | 宠物品种个体识别技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report broad account, credential, and network behavior beyond pet recognition, along with unsafe handling of media and environment-only mode.

Treat this as a review warning and consider avoiding installation unless you can accept the reported account registration, credential storage, remote media processing, and broad network behavior. The scan completed across all listed components, but dependency inspection was not requested; 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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (24)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk contains no breed classification, pet-image processing, or individual-pet recognition. Database persistence alone could be a supporting implementation detail, but this code specifically manages human user accounts and token-bearing records, a materially different capability not disclosed by the pet-recognition description. No network transmission or token harvesting is demonstrated. This assessment is limited to the supplied chunk; other skill components could implement the declared recognition features.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Generic formatting, polling, workspace discovery, and HTTP helpers can reasonably support pet recognition and are not themselves mismatches. However, the supplied code also implements an undisclosed account-provisioning, credential-persistence, and billing workflow. RequestUtil can send the resolved identity to /sys/phoneLogin with registration enabled and save returned user credentials. Those behaviors materially exceed the declared pet-identification purpose. No pet-recognition logic appears in this chunk, although this shared utility file alone cannot establish whether recognition exists elsewhere. The actual service destinations depend on configuration not supplied here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible code contains no image processing, breed classification, pet identity matching, or pet-specific API calls. Its proposed agent subprocess invocation is disabled, so no external agent command actually executes. Imported base classes and API services are not supplied and could contain additional behavior, but the provided chunk does not substantiate the declared purpose. There is no visible evidence of malicious activity or active external command execution.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The visible code presents itself as a video-analysis tool and exposes a history-listing operation using an open ID. It contains no visible breed-classification or individual-pet recognition logic. The imported skill implementation could perform pet-specific analysis, so the underlying analysis purpose cannot be conclusively determined from this chunk alone; however, the exposed behavior is broader than the declared description, particularly its user-associated history access.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

Generic AI-analysis endpoints could support pet identification and are not inherently a mismatch. However, the explicit health-order report export endpoint references a resource outside the declared purpose. This chunk only configures URLs; it does not show network requests, report exports, or actual recognition behavior, so the finding is limited to the inconsistent resource configuration.

Content

No source excerpt is available for this finding.

The request helper can transmit shared service credentials and user identity to arbitrary caller-supplied HTTP(S) destinations, beyond pet recognition needs.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP(S) URLs and automatically attaches service tokens, the API key, and user identity without checking the destination origin. A caller influenced into requesting an attacker-controlled endpoint can therefore disclose shared credentials; allowing HTTP also exposes them to network interception, neither of which is necessary for pet recognition.

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 trigger includes the unqualified phrase “历史报告” (“historical reports”), which is not specific to pet recognition.

Medium
Category
Trigger Abuse
Confidence
97% confidence
Finding

The unqualified historical-report trigger is coupled to a mandatory cloud lookup using an automatically selected identity. In an unrelated report conversation, this can cause an unintended authenticated request and disclosure of pet-report history in the conversation.

Content

No source excerpt is available for this finding.

The --export-env-only help promises environment-export commands without analysis, but the flag does not prevent pet-media analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The environment-only flag is parsed but never checked, so supplying media with this flag still enters the analysis workflow. A caller relying on the explicit no-analysis promise can unintentionally submit private household media for cloud processing; identity initialization also occurs before any mode handling.

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

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The code reads the entire local video into a multipart file payload and passes it to self.analysis. No prompt, user-facing log, or explanatory comment discloses that local video data will be transmitted to an external analysis service; users may expect local processing.

Content

No source excerpt is available for this finding.

The documented environment-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The documented environment-only flag never controls execution, so a command containing media input still calls video analysis. This violates a clear no-processing expectation and can cause unintended cloud submission of private videos or unintended history access when combined with --list.

Content

No source excerpt is available for this finding.

The skill includes persistent user-profile and token management unrelated to pet breed or individual recognition.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The manifest describes identifying pet breeds and distinguishing individual pets, but L448–L465 defines a sys_user table containing human profile information and token/open_token fields, and UserDao exposes inherited read, write, and delete operations over those records. DAO initialization also creates tables and explicitly alters sys_user (L180–L214), providing user-data management beyond recognition-related pet storage; no authentication bypass or external disclosure is established by this file.

Content

No source excerpt is available for this finding.

ai_chat documents an agent invocation but never executes it or returns an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 says this method invokes openclaw agent through subprocess and returns an analysis result or session ID. Instead, subprocess execution is commented out, and result is assigned an empty dictionary; accessing result.stderr raises an AttributeError that the exception handler suppresses, so the method returns None without performing the documented analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing the destructive behavior.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

Opening a path in mode 'w' immediately truncates an existing file, even before the caller writes anything. There is no confirmation, action log, or explanatory comment/docstring warning about this behavior; the exception handler only reports failures.

Content

No source excerpt is available for this finding.

HTTP authentication silently performs remote registration and persists returned credentials.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

An ordinary request can silently trigger remote account registration using the current identity and persist returned authentication tokens in the local database. The helper contains no explicit enrollment or persistence approval, creating an unexpected privacy and credential-retention side effect for users requesting pet recognition.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The registration POST sends the selected identity as both openId and mobile to a configured remote service without an explicit enrollment gate. More importantly, the calling code prioritizes API_SECRET_KEY as that identity, so a configured API key can be unnecessarily copied into account-registration fields and associated server-side records; this is not evidence that the configured service is attacker-controlled.

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, without disclosing this side effect.

Low
Category
Output Handling
Confidence
92% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path is missing, but provides no explanatory comment, docstring, prompt, or log. BaseEnum.init_subclass invokes this loader as classes are defined (L044–L059), so merely importing the module can modify the filesystem without notice.

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:

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