Back to skill

Security audit

Child Bedtime Soothing (Fear of Dark / Post-Nightmare) | 儿童睡前情绪安抚(怕黑/噩梦后)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because scanners report that its account and API behavior goes beyond its advertised child bedtime monitoring, with privacy and unexpected-action concerns.

Consider avoiding installation until the provider clearly explains what account data is collected, where recordings are sent, and when remote accounts or tokens are created. The scan also does not show that the advertised automatic monitoring, alerts, or soothing actions are implemented, so do not rely on the skill for those functions.

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/smyx_child_bedtime_soothing_analysis.py
Finding

CLI initialization discards upstream sender identity and reuses a shared account

Content
View full analysis

Impact

A second user can receive the shared account's analysis history, including sensitive child-bedroom analysis content and available report links. New analyses are also attributed to the shared account rather than the originating sender.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk is dedicated to generic user-account persistence, including names, email addresses, birthdays, and tokens. It contains no camera or microphone processing, distress detection, night-light control, or audio playback. Database access can be a supporting implementation detail, but no connection between this account-management functionality and the declared child-monitoring behavior is evident here. This assessment is limited to the supplied chunk; it does not establish malicious behavior or external data transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Basic formatting, filesystem, and request helpers could support the declared skill and are not inherently mismatches. However, the supplied module also implements a substantive account-provisioning and authenticated service-access workflow not disclosed by the child-monitoring description. Those operations execute when the relevant helpers are called; the chunk does not establish that they run automatically or that bedroom recordings are transmitted. This assessment is limited to the supplied code, which contains none of the declared monitoring or soothing functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code does not implement the declared primary purpose. Its visible behavior consists of generic initialization and a disabled, broken chat helper. The commented-out subprocess invocation does not execute and should not be treated as an active capability. Imported base classes and services are not supplied, so their behavior cannot be established from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The skill presents continuous monitoring, automatic soothing, and urgent caregiver escalation as operational capabilities, while the supplied implementation demonstrates on-demand analysis and report retrieval rather than those safety functions. In a child-bedroom context, these unsupported assurances can cause caregivers to rely on monitoring or alerts that have not been shown to exist; remote detection alone would not establish device control or reliable escalation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Identity-associated history retrieval is explicitly documented and is not itself a hidden-purpose vulnerability. However, the accompanying automatic-monitoring and soothing claims exceed the demonstrated CLI behavior, creating a safety-relevant reliance risk for caregivers without evidence of operational alerts or actuators.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied chunk implements an API utility layer rather than audio/video analysis or calming-device control. Network helpers could support the declared system, but this code does not establish that connection, and its user-lookup functionality is outside the stated purpose. This assessment is limited to the supplied chunk; it does not establish what other modules implement or that any requests are malicious.

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 the declared functionality, and a configuration-only file need not implement the complete workflow. However, the explicit health-order report-export resource introduces an unrelated capability not represented in the description. This chunk only configures endpoint strings; it does not demonstrate actual network requests or report exports.

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-child-bedtime-soothing-analysis"
description: "Through a fixed camera (with infrared night vision) and microphone in the child's bedroom, the system analyzes pre-sleep and night-time video and audio to detect pre-sleep crying (continuous crying, calling 'Mama'), fear-of-the-dark expressions (curling up, looking around), and nightmare awakenings (sudden sitting up, trembling, screaming). | 通过儿童卧室的固定摄像头(红外夜视)及麦克风,分析儿童睡前及夜间视频,检测睡前哭闹(持续性哭声、呼喊'妈妈')、怕黑表现(身体蜷缩、四处张望)、噩梦惊醒(突然坐起�

The analysis workflow lacks a clear privacy warning that local recordings of a child's bedroom are sent to an external API.

High
Category
Output Handling
Confidence
96% confidence
Finding

The workflow accepts local recordings of a child's bedroom without clearly warning that their contents leave the device for external analysis. General API references do not adequately disclose this sensitive transfer, particularly alongside assurances against third-party sharing and prolonged storage.

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 environment-export-only mode still invokes analysis of the supplied bedroom recording.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The CLI accepts --export-env-only and promises not to analyze, but never checks the parsed flag before identity initialization and analysis. When a recording is also supplied, a user expecting configuration-only behavior can instead initiate external processing of highly sensitive child-bedroom footage.

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
97% confidence
Finding

The method reads the complete local recording into a multipart file payload and passes it to the analysis API without a disclosure or authorization gate in this path. Used for children's bedroom recordings, this crosses a particularly sensitive local-to-external privacy boundary; format and size checks do not address consent.

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 environment-only flag is parsed but never used to prevent the normal analysis flow. Supplying it with a recording can therefore trigger external analysis despite the explicit no-analysis promise, exposing sensitive bedroom footage in this skill's context.

Content

No source excerpt is available for this finding.

The skill includes general user-profile and token database management unrelated to the declared bedtime-soothing workflow.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model at L448–L465 stores identity information, email, birthday, and token/open_token fields, and UserDao at L470–L473 exposes inherited database operations that persist, overwrite, and delete these records (L248–L261, L337–L360, L411–L427). This is a concrete user-record management capability, whereas the manifest declares bedroom audio/video distress detection and light/audio soothing, with no stated user-profile or token-management role.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents. No docstring, comment, confirmation, or action log discloses this destructive behavior; the exception handler only reports failures.

Content

No source excerpt is available for this finding.

The HTTP helper can silently register a remote user and persist account credentials, beyond the declared bedtime-monitoring workflow.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

An ordinary request can trigger silent remote registration using the current identity and persist returned account tokens without an explicit enrollment step. This creates an undisclosed external identity and credential lifecycle in a child-bedroom skill; the code does not establish that bedroom recordings are transmitted through this registration path.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently register a remote account.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The HTTP helper sets both silent and register flags and invokes the login endpoint automatically when credentials are unavailable. This introduces an account-creation side effect without a separate consent boundary, duplicating the registration concern identified by SDI-2.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

This POST sends the selected user identifier as both openId and mobile to a remote login/registration service as an implicit request side effect. The concern is undisclosed identity transmission, not merely the presence of networking; the payload shown does not contain child audio or video.

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

The configuration loader creates directories and writes missing configuration files without disclosing this side effect.

Low
Category
Output Handling
Confidence
95% confidence
Finding

YamlUtil.load creates a parent directory and writes a YAML file when the requested path does not exist, but provides no comment, docstring, log, or confirmation explaining these writes. Because BaseEnum.init_subclass invokes this loader, importing the module can create configuration files without an explicit save operation.

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:

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