Back to skill

Security audit

Child Restless Sleep / Nightmare Detection | 儿童睡眠中频繁翻身/噩梦识别

Security checks for vulnerabilities and agentic risk

Overview

The skill is not clearly malicious, but it handles highly sensitive child bedroom audio/video through cloud APIs while silently creating and persisting user identity tokens, so it needs careful review before installation.

Install only if you intend to send child nighttime audio/video or report history to the configured cloud service and accept silent account/token creation in a local workspace database. Confirm guardian consent, retention/deletion terms, and access controls before using real children's bedroom recordings.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (51)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Authenticated HTTP communication, local file and API-key handling, generated user identities, and remote auto-registration/login are materially different from the declared child sleep analysis use case. These hidden behaviors can lead to silent account creation, credential exposure, and transmission of children's bedroom media and metadata to external systems without adequate transparency.

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

The metadata poisoning indicator suggests malformed or suspicious manifest metadata that could interfere with tool interpretation or conceal actual behavior. While this may be accidental formatting, in a skill manifest it can still be used to obscure permissions, descriptions, or downstream parsing in ways that reduce security review effectiveness.

Content

Scanner excerpt · SKILL.md (reported line 3)May include surrounding context.

md
---
name: "smyx-child-nightmare-rollover-detection-analysis"
description: "Using a fixed camera in the child's bedroom (infrared night vision), the system continuously captures video and audio at night to analyze the child's sleep behavior. It detects rollover frequency (rollovers per minute), cries (recognizing specific cry-sound features), and sleep talk (speech during sleep), and generates a sleep-quality report. When rollovers occur too often (e.g., > 3 per hour), strong crying is detected, or sleep talk is observed, the system pushes 'possible nightmare' or 'restless sleep' alerts to the parents. Application scenarios: child bedrooms, infant rooms.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The description does not clearly warn users that highly sensitive children's bedroom audio/video and related historical reports may be handled through cloud-facing services. In this context, missing disclosure is particularly dangerous because minors' intimate in-home recordings carry elevated privacy, consent, and compliance obligations.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The User model stores authentication tokens and broad personal profile data such as real name, email, birthday, sex, and age, none of which are clearly necessary for detecting nightmares or restless sleep. In a system monitoring children in bedrooms, unnecessary retention of identity and auth secrets materially raises harm from compromise, correlation, and misuse.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

This utility layer automatically provisions or logs in users against a remote service, retrieves tokens, and persists them locally, even though the declared skill purpose is child sleep/nightmare monitoring. That creates undisclosed account creation and identity binding behavior, increasing privacy risk and enabling external data linkage unrelated to the stated function.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill advertises and instructs use of capabilities equivalent to shell execution, local file access, network access, and environment use, but declares no explicit tool-scope or permission boundary. In an agent setting this weakens least-privilege controls and can allow the skill to access sensitive local media, invoke scripts, and contact remote services without transparent restriction.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill claims current sleep-media analysis, but also includes cloud historical report querying and link retrieval beyond the stated monitoring scope. This scope expansion matters because it enables access to prior sensitive child-room recordings and reports, not just analysis of the file the user provided now.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The AI role says the skill should not provide medical or sleep-disorder diagnosis, yet trigger keywords include requests for 'sleep health diagnosis reports.' This inconsistency can cause unsafe reliance on the tool for health conclusions about a child and increase legal and safety risk.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The automatic trigger conditions are broad enough to activate on common sleep-related requests, potentially causing unintended processing of sensitive child audio/video or unnecessary cloud history queries. Over-broad invocation increases the chance of privacy-invasive actions without clear, informed user intent.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This documentation describes continuous overnight audio and video monitoring of a child, including cry and sleep-talk detection, which involves highly sensitive biometric and behavioral data. Referencing only API key authentication and omitting explicit privacy, consent, retention, access-control, and sensitive-data handling requirements creates a real security/privacy weakness because implementers may deploy or integrate the system without safeguards appropriate for children's data.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The string returned to users is fixed as Chinese text, which can impose a specific language/locale on all users. The file does not show any opt-in, language selection, or justification that this skill is intentionally limited to Chinese-speaking users.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The manifest is specifically about analyzing a child's nighttime sleep behavior, yet the CLI and analysis wrapper accept a pet_type parameter with values cat, dog, and other, and write it into ConstantEnum.DEFAULT__PET_TYPE. This indicates the implementation is partially repurposed from a pet-analysis skill and exposes behavior outside the manifest's stated child-sleep scope.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The manifest promises specific behaviors such as detecting excessive rollovers, strong crying, or sleep talk and pushing alerts to parents. In this file, the code only calls skill.get_output_analysis(...) and skill.get_output_analysis_list(...) and provides no visible logic for threshold evaluation, alert generation, or parent notification, creating a mismatch between the described behavior and the implemented operations in this entrypoint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

This Python code includes command descriptions and help text entirely in Chinese, which imposes a specific language on users. Under the policy, locale-specific behavior should either provide a user choice or clearly document a justified locale constraint; neither is present in this file.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.install_untrusted_source

Install source points to URL shortener or raw IP.

Warn
Code
suspicious.install_untrusted_source
Location
skills/smyx_common/scripts/config-dev.yaml:2