Back to skill

Security audit

Pet Restricted Area Alert Skill | 宠物禁区预警技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because it reports a mismatch between the advertised pet monitoring and alerting and other account, credential, video-analysis, and reporting capabilities, along with privacy and control concerns.

Treat the suspicious verdict as a reason to avoid installing until the reported issues are resolved or independently reviewed. In particular, clarify what data goes to the analysis service, when account registration and credential sharing occur, and why account and report features are included; the scan is partial, so its evidence does not cover a missing local reference.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk implements user-account persistence rather than pet monitoring or alerting. Its sys_user model includes names, email, birthday, age, token, and open_token, and the DAO exposes full CRUD operations. Database access can be a supporting implementation detail, but this chunk contains no connection between its user-management capabilities and the declared pet-monitoring purpose. It contains no intrusion detection, pet-behavior detection, or alert delivery. This assessment is limited to the supplied chunk; it does not establish what the rest of the skill does or imply malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Generic formatting, filesystem, and polling helpers could support the declared monitoring purpose and are not independently grounds for a mismatch. However, this chunk also implements an undisclosed account-provisioning and credential-management workflow, including remote identity submission and persistent token storage. Those capabilities go materially beyond the stated pet-monitoring behavior. No pet-event detection or alerting logic appears in this chunk, although it could exist elsewhere. The identity and network operations are conditional on helper invocation; the snippet does not establish that they execute merely on import or that any data is maliciously exfiltrated.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible implementation does not substantiate the declared monitoring and alerting purpose. No camera processing, restricted-zone checks, behavior recognition, or alert dispatch appears in this chunk. Although the wrapper references an agent command, that command is commented out and is not executed. Imported base classes and services are not supplied, so their behavior cannot be assessed; this finding is limited to the visible code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied code implements a generic asynchronous video-analysis/reporting client. It contains no visible restricted-zone configuration, pet-behavior detection logic, monitoring loop, or alert-delivery mechanism. Polling checks whether a submitted analysis has completed; it does not monitor ongoing pet activity. Imported API implementations could perform pet-specific analysis, but that cannot be established from this chunk. Local file reading and API submission are supporting implementation details, not independently suspicious capabilities.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

The supplied chunk implements a generic video-analysis CLI, not the described pet-monitoring and alerting workflow. Analysis is delegated to skill.get_output_analysis, whose implementation is not provided, so pet-specific detection could exist downstream. However, the visible code does not demonstrate the declared monitoring or real-time alert capabilities. History retrieval and result-file output are supporting features and are not independently treated as mismatches.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
83% confidence
Finding

Generic AI-analysis endpoints could support pet monitoring and are not inherently mismatched. However, DETAIL_EXPORT_URL explicitly targets a health/order report-export resource, a materially different domain from the declared functionality. This chunk only defines endpoint configuration; it does not demonstrate network requests, report exports, or real-time monitoring execution.

Content

No source excerpt is available for this finding.

The generic HTTP helper forwards shared service credentials to arbitrary absolute URLs (L572-L573, L610-L612, L646-L647).

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically attaches shared access tokens, an API key, and an authorization token. If an attacker can influence a destination passed to this helper, credentials are sent to that destination; allowing HTTP also exposes 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.

Generic history-report phrases automatically trigger pet-monitoring report retrieval.

Medium
Category
Trigger Abuse
Confidence
94% confidence
Finding

Generic phrases such as querying historical reports are configured to trigger a mandatory cloud lookup without confirming that the user means pet-monitoring reports. This can cause unintended access and display of sensitive household report history, particularly in mixed-purpose conversations or shared sessions.

Content

No source excerpt is available for this finding.

The analysis workflow lacks a user-facing privacy warning about remote processing of home-monitoring media.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

Although API use is mentioned, the user-facing workflow does not clearly disclose that local home-monitoring media will leave the device for third-party processing and associated cloud reporting. Such footage may expose occupants and private household activity, making automatic analysis without a clear transfer notice privacy-sensitive.

Content

No source excerpt is available for this finding.

The documented no-analysis mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises no analysis, but the parsed flag is never checked. When media input is supplied, execution still initializes identity and invokes analysis, potentially transferring private home footage despite an explicit no-analysis request.

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 data transfer.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The method reads the complete local video into memory and passes it as a multipart file to the analysis service without a visible disclosure or authorization check. For home-monitoring footage, unexpected remote submission can disclose private activity and identifiable occupants; authorization supplied by a caller is not demonstrated here.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is accepted but never consulted, so supplying it with a video still reaches analyze_video. This defeats an explicit no-analysis expectation and can cause unintended remote processing of sensitive footage.

Content

No source excerpt is available for this finding.

The skill includes shared user-profile and authentication-token database management unrelated to pet-intrusion monitoring.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model and UserDao implement persistent CRUD access to real names, email addresses, birthdays, demographic information, and authentication tokens (L448–L473), rather than pet-monitoring events or alert settings. DAO initialization also automatically creates tables and alters the shared sys_user schema (L180–L215); this account-management capability is not justified by the manifest's restricted-area detection and alerting purpose.

Content

No source excerpt is available for this finding.

ai_chat documents agent execution and analysis results, but never invokes the agent and always returns None.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L35 states that this method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, execution is commented out at L61–L66, and the empty dictionary assigned at L68 causes result.stderr at L70 to raise AttributeError, which is caught at L81–L82. Consequently, the documented analysis operation cannot occur through this method.

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 with mode 'w' immediately truncates an existing file, even before the caller writes anything. This generically named helper has no docstring, explanatory comment, confirmation, or action log warning about that data loss; exception tracing only runs if opening fails.

Content

No source excerpt is available for this finding.

The request helper silently registers remote accounts, beyond the declared pet-monitoring and alerting functionality (L550-L561, L589-L604).

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

A routine HTTP call can implicitly register an account and transmit the current identity as both openId and mobile without a separate consent step. This is an unexpected remote side effect for pet monitoring, especially when the identity comes from existing workspace configuration rather than a newly generated identifier.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and identity transmission.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The generic request workflow hides a registration request with silent and register enabled, transmitting the selected identity to a remote service. This can create an account and disclose an existing identifier without the user's informed approval, beyond the expected local pet-monitoring behavior.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
92% confidence
Finding

This POST is the transmission point for implicit registration, sending the selected username or identity as openId and mobile. Network access alone is not suspicious for alerting, but this undisclosed identity-sharing side effect is distinct from transmitting pet alerts, and the identity selection can include an API secret.

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 a YAML file when the path is missing (L017–L020).

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load performs filesystem writes without a confirmation, log message, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader at L053 and L058, so merely importing the module can create configuration files without an explicit save request.

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