Back to skill

Security audit

Pet Carrier Respiratory Rate Analysis | 宠物航空箱内呼吸频率监测

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because scanners report credential and privacy risks, actions beyond the disclosed video-analysis purpose, and a mismatch between an export-only option and its behavior; one referenced local path was missing, so evidence is incomplete.

Consider avoiding installation until the credential handling, URL destinations, export-only behavior, and additional user-data and history capabilities are clarified. The scan was partial because a local reference was missing; a clean result from another scanner does not resolve the reported concerns or make the evidence complete.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk is a user-database utility rather than a pet-video analysis implementation. It defines storage for names, email addresses, birthdays, demographic fields, token, and open_token, along with methods to query, update, and delete those records. No video handling, respiratory-analysis API calls, breath-cycle calculation, or threshold alerting appears here. Database utilities can be legitimate supporting infrastructure, but this chunk provides no connection establishing that its personal-data and token management supports the declared function. This assessment is limited to the supplied code; it does not establish what other skill components do or that these methods are actually invoked.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The video-analysis entry point is consistent with the declared purpose, but the independently accessible history-listing capability goes beyond analyzing a supplied video. Identity resolution and result-file output are supporting implementation details, not separate mismatches. The supplied chunk delegates analysis to an unseen implementation, so respiratory-cycle detection and the >40 breaths/min alert cannot be verified here; their absence from this wrapper alone is not evidence of a mismatch.

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 is consistent with the description, and identity resolution and output-file writing can be supporting implementation details. However, the independent history-listing mode exposes an additional user-data retrieval capability not described in the declared purpose. The supplied wrapper does not show the underlying respiratory-analysis implementation, so chest-motion detection, rate calculation, and the >40 bpm alert cannot be verified from this chunk alone.

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 saving are supporting features. However, historical-report listing and its additional automatic triggers are distinct capabilities not disclosed in the description. The snippet does not establish whether chest-motion detection, respiratory-rate calculation, or threshold alerts are implemented, so their correctness cannot be assessed.

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-carrier-respiratory-rate-analysis"
description: "Triggers when a user provides a video of a pet inside an airline carrier/crate for analysis; supports local uploads or network URLs to call server-side APIs for respiratory rate monitoring, detecting chest/abdomen rise-fall cycles to calculate resting breathing frequency (breaths/min), and outputting an alert when the rate exceeds the safety threshold (>40 bpm), helping early detection of hypoxia, anxiety, or health abnormalities during pet air transport to reduce transport risks (without diagnosing diseases). Application scenarios: pet airline carriers, pet cargo transport, long

The request helper attaches service credentials to arbitrary absolute URL destinations.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and adds service tokens and API keys without checking the destination origin. If an untrusted URL reaches this helper, an attacker-controlled host can receive those credentials; network-video support makes destination separation particularly important, although the relevant caller is not supplied.

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 documented export-only mode still performs video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The CLI promises that --export-env-only will not perform analysis, but never checks the parsed flag before proceeding. When supplied with video input, this mode still invokes the server-analysis workflow, potentially uploading private media or submitting a sensitive URL despite the user's explicit non-analysis selection.

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

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only argument is accepted but never consulted, so execution proceeds into analysis when input is present. This violates the explicit promise not to analyze and can disclose video content or URLs to the remote service when the user intended only local configuration output.

Content

No source excerpt is available for this finding.

The service exposes username-based user lookup, which is unrelated to pet respiratory-rate analysis.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The get_user_by_username method delegates a caller-supplied username to a user-lookup utility. Looking up user accounts is a distinct capability not justified by the manifest's video submission, respiratory monitoring, or alerting functions; the provided code establishes no connection to those operations.

Content

No source excerpt is available for this finding.

save() is documented as creating a new record but can overwrite an existing user record.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

Any insertion exception triggers an update by ID and then a fallback matching either username or realname, with nearly all incoming columns eligible for replacement. This can overwrite an unintended account's identity or stored credentials when records collide; exploitation depends on influence over incoming user records, which is not established here.

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 mode 'w' immediately truncates an existing file, even before the caller writes anything. This generically named helper provides no docstring, comment, confirmation, or user-facing log explaining that existing contents will be lost; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

API requests can silently register a remote user and persist account credentials locally, beyond the declared video-analysis workflow.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

An ordinary request can send the current identity to a registration-enabled login endpoint and save returned tokens in the local user database without an explicit enrollment step. Although service authentication fits server-side video analysis, hidden account creation and credential persistence introduce privacy and credential-lifecycle effects not disclosed in the provided workflow.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently initiate remote account registration.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The authentication fallback sends register=1 and silent=1, allowing a routine request to initiate account creation without a distinct user-approved action. This is the same enrollment side effect covered by SDI-1, not evidence of a separate malicious registration mechanism.

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 absent, without a warning, log, or explanatory comment. BaseEnum.init_subclass invokes this loader during class definition (L052–L058), so merely importing the module can modify the filesystem—an unexpected side effect of loading 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 never invokes an agent or returns an analysis result.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly claims that this method invokes openclaw agent through subprocess. However, the command and subprocess call are commented out; L68 substitutes an empty dictionary, whose .stderr access raises an exception that is caught and suppressed, causing the method to return 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