Back to skill

Security audit

Child Emotion Recognition Analyzer | 儿童情绪识别分析工具

Security checks for vulnerabilities and agentic risk

Overview

The scanners report a suspicious skill whose advertised child emotion monitoring and alerts do not match its on-demand workflow, with additional concerns about sensitive media transfers, identity handling, and unexpected side effects.

Treat this as a meaningful review warning before installing. Consider whether you are comfortable sending child-related video to an external service and with the reported account registration, identity storage, and report-history handling. The advertised monitoring and alerts are not established by the scanned workflow, and Skillspector reports a partial scan because one local reference could not be resolved.

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

CLI initialization discards the upstream sender identity and reuses a workspace-wide account

Content
View full analysis

Impact

A second sender sharing the workspace can receive the first sender's analysis history and available report links. New analyses can also be associated with the shared account rather than the actual sender.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (21)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Generic file, JSON, date, polling, and HTTP helpers could reasonably support the declared skill and are not independently evidence of a mismatch. However, this chunk also implements an undeclared account-provisioning, identity-persistence, authentication, and billing workflow. In particular, requests can trigger registration with silent=1 and register=1 at /sys/phoneLogin, followed by local token storage. No surveillance processing, emotion recognition, soothing reminders, or parent-notification logic appears in the supplied chunk. This assessment is limited to the supplied code and does not establish what other skill files implement.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The skill promises real-time monitoring, soothing prompts, and caregiver notifications, but the supplied workflow only performs on-demand analysis and report retrieval. Caregivers could rely on alerts that never occur, creating a safety-relevant capability misrepresentation despite the separate warning not to replace adult supervision; backend emotion-detection accuracy cannot be established from this code.

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: "child-emotion-recognition-analysis"
description: "Identifies negative emotions such as crying, anger, fear, and distress through surveillance footage. It actively issues soothing reminders and notifies parents, making it suitable for homes, kindergartens, and daycare centers. | 儿童情绪识别分析技能,通过监控画面识别儿童哭闹、愤怒、恐惧、委屈等负面情绪,主动发出安抚提醒并通知家长,适用于家庭、幼儿园、托管场所等场景"
version: "1.0.26"
license: "MIT-0"
---

# 😊 Child Emotion Recognition Analyzer | 儿童情绪识别分析工具

> **智能健康/识别分析中

The analysis workflow lacks a privacy warning that children's surveillance media or media URLs are provided to an external API for processing.

High
Category
Output Handling
Confidence
95% confidence
Finding

Although the documentation mentions an API, the analysis workflow does not clearly disclose that local child-surveillance footage or media URLs leave the user's environment for external processing. Automatic processing without an explicit transfer notice creates a significant privacy risk for identifiable children and potentially other people captured in homes or daycare settings.

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 automatic history-query triggers include the unqualified phrase “历史报告” (“historical reports”), which can refer to reports unrelated to child-emotion analysis.

Medium
Category
Trigger Abuse
Confidence
92% confidence
Finding

The examples include the generic trigger '历史报告', while the skill requires automatic cloud retrieval when history triggers match. An unrelated request for historical reports could therefore retrieve and display sensitive child-emotion records without sufficiently scoped user intent.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to analyze footage, but does not prevent analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises '--export-env-only' as not performing analysis, but the parsed value is never checked. When supplied with media input, a configuration-only invocation still follows the analysis path, potentially transmitting sensitive child footage against the user's explicit expectation.

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 disclosing the upload to the user.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The function reads the entire local media file into a multipart payload and passes it to the analysis service without a visible disclosure or authorization check. For child-surveillance footage, this external-processing boundary can expose highly sensitive identifiable media when users expect local analysis.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to run analysis, but the code ignores it and proceeds with video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The '--export-env-only' argument promises to avoid analysis, but execution never branches on its value. With a video input supplied, the program initializes identity and invokes analysis anyway, potentially causing an unintended external transfer of sensitive surveillance footage.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26–L34 explicitly promises to invoke openclaw agent through subprocess and return an analysis result or session ID. However, the command and subprocess invocation are commented out, and L68 initializes an empty dictionary whose stderr access raises an exception that is caught and suppressed, so calling this method performs no analysis.

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

Opening a path in mode 'w' immediately erases existing contents, even before anything is written. This generically named helper has no confirmation, operation log, docstring, or comment explaining that consequence; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

HTTP requests can silently trigger remote account registration and local credential persistence without disclosure.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

An ordinary HTTP operation can implicitly register a remote account using the current identity and then persist returned credentials through UserDao, without an explicit enrollment decision in this flow. These hidden identity-management side effects are particularly concerning for a child-monitoring skill, although this source does not demonstrate transmission of children's footage or insecure database permissions.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
86% confidence
Finding

This request implements the implicit enrollment above by transmitting the selected username as both openId and mobile to the configured health-service endpoint. That creates an undisclosed identity-disclosure risk; external networking alone is not malicious, and neither an attacker-controlled destination nor transmission of surveillance footage is 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"):

Loading configuration silently creates directories and files, including during module import.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load creates parent directories and writes a configuration file when the requested path is missing, without a warning, log, docstring, or explanatory comment. BaseEnum.init_subclass invokes this loader when the enum classes are defined (L052–L059), so merely importing the module can modify the filesystem unexpectedly.

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