Back to skill

Security audit

Infant Prone Sleeping Asphyxia Alert Skill | 婴儿趴睡窒息预警技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because its reported on-demand video analysis does not establish the advertised real-time infant-safety alerts, and scanners found privacy, account-handling, and behavior risks.

Consider avoiding installation until the real-time safety claims are substantiated and the video upload, account registration, credential handling, and export-only behavior are clarified and addressed. The Skillspector scan was partial: it inspected all listed components but reported one missing local reference, so coverage is incomplete. These results support a suspicious verdict, not a conclusion that the author acted maliciously.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/infant_suffocation_warning_analysis.py
Finding

Default identity resolution discards the upstream sender identity and can expose another sender's reports

Content
View full analysis

Impact

Another sender can receive private infant-analysis history associated with the shared fallback account. Analysis records from different senders can also be mixed.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The documentation promises continuous monitoring and immediate alarms, whereas the visible workflow submits individual videos and polls for reports. Remote hazard recognition may exist, but continuous monitoring and alarm delivery are not established; reliance on those promises could delay intervention in a life-threatening situation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk implements general database and user-management functionality rather than infant-position detection, obstruction recognition, or alerting. Although database access can support a larger skill, this chunk specifically manages identities, personal details, and tokens without any visible connection to the declared safety functions. No sleep-monitoring or real-time alert implementation appears here. This assessment is limited to the supplied chunk; it does not establish what other skill files implement or imply malicious intent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

History retrieval is explicitly documented and is not itself an undisclosed capability. However, the finding also identifies a genuine safety-relevant mismatch: on-demand analysis and report retrieval do not substantiate the promised real-time infant monitoring and alerts.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Generic string, date, polling, and filesystem helpers could reasonably support the declared skill and are not independently grounds for a mismatch. However, this chunk also implements a substantial account-management and authenticated API-access layer, including automatic remote registration, persistent identities and tokens, and payment-related messaging, none of which the description discloses. No posture analysis, obstruction detection, monitoring, or high-risk alert logic appears here. Because this is a shared utility module, its lack of detection logic does not establish that the complete skill lacks that functionality; the finding is limited to the undeclared account and service behavior visible in the supplied code. There is no direct evidence here of malicious exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible code does not implement the declared safety functionality; it is generic scaffolding with an inactive, broken agent-call helper. No subprocess is actually executed. Imported base classes and services are not supplied, so their behavior cannot be assessed; this finding is limited to the provided chunk.

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 analysis workflow lacks a privacy warning about sending infant-monitoring footage to an external API.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

Although the documentation mentions an API, it does not clearly warn that local infant-monitoring footage leaves the device for third-party processing. Automatic handling of intimate household video without a clear disclosure and consent boundary creates a significant privacy risk.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to execute analysis, but the program ignores it and proceeds with analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never checked, so invoking it with a video input still reaches analysis. A caller relying on the explicit no-analysis promise could unintentionally upload sensitive infant footage or incur service charges; identity initialization also occurs before any such guard.

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

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The code reads an entire local video and passes its contents into the API analysis path without a visible upload disclosure or consent check. For infant-monitoring footage, this crosses a sensitive privacy boundary even though remote analysis is a legitimate product function.

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 program advertises a no-analysis export mode but never branches on the parsed flag. When combined with an input, it still initializes identity and invokes remote video analysis, potentially causing unintended disclosure or charges.

Content

No source excerpt is available for this finding.

The service exposes general-purpose remote modification and deletion capabilities beyond infant-safety detection and alerting.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

At L050-L069 and L071-L095, the service accepts caller-supplied URLs and arguments for generic add, edit, POST, PUT, and DELETE operations. Network access can reasonably support real-time alerts, but an unrestricted interface for modifying or deleting remote resources is not justified by the stated infant-monitoring purpose.

Content

No source excerpt is available for this finding.

The skill implements persistent user-profile and credential management beyond infant sleep-risk detection and alerting.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The user model supports storing reusable token and open_token values as ordinary fields in a workspace SQLite database, with no application-level encryption or explicit access restrictions shown. This introduces credential exposure to principals able to read that database; the additional personal-profile fields also expand the sensitive-data footprint beyond sleep-risk detection, although their presence alone is not evidence of malicious collection.

Content

No source excerpt is available for this finding.

ai_chat claims to invoke an analysis agent but never executes it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes openclaw agent through subprocess. However, command execution is commented out at L61–L66, and the empty dictionary assigned at L68 raises an AttributeError at L70; the catch block suppresses that error, so the method returns None without performing the documented analysis. This contradicts the method's stated behavior and could leave callers without an analysis result.

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
97% 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, comment, confirmation, or operation-specific log explaining that behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers remote accounts and persists user credentials, beyond the advertised infant-safety analysis and alerts.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

An ordinary HTTP request can implicitly register a remote account, transmit an identity, and persist returned authentication tokens without a separate enrollment decision. More seriously, API_SECRET_KEY can become current__user_name and then be submitted as both openId and mobile during registration, exposing a credential through identity fields.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote user registration without disclosure.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The request helper sets silent and register to 1 and posts to a login endpoint when credentials are unavailable, making remote account creation an implicit side effect of routine requests. For an infant-safety skill, undisclosed enrollment unnecessarily expands identity processing and external dependencies without an explicit consent boundary.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
96% confidence
Finding

The POST transmits an identifier to the configured health-service endpoint, and the visible caller can supply API_SECRET_KEY as that identifier when tokens are missing. This can disclose an API secret in openId and mobile fields to service-side identity records or logs; external networking alone would not constitute the vulnerability, and the endpoint's trustworthiness is not established here.

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

YamlUtil.load silently creates directories and writes a configuration file when the requested file is missing.

Low
Category
Output Handling
Confidence
94% confidence
Finding

A configuration-loading operation unexpectedly modifies the filesystem without a confirmation, log message, docstring, or explanatory comment. Because BaseEnum.init_subclass invokes this loader (L052–L058), merely importing this module can create configuration files without user disclosure.

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