Back to skill

Security audit

Pregnancy Emotion Soothing | 孕妇情绪波动舒缓

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report behavior that does not match its stated pregnancy-monitoring purpose, along with privacy and account-handling risks.

Consider avoiding installation, especially if you would use it with sensitive pregnancy-related recordings or in a shared-sender setup. The reported behavior includes unexpected analysis in export-only mode, automatic account creation, identifier transmission, and local credential storage; the scanners do not establish that camera or microphone data was transmitted.

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

Error
Location
scripts/smyx_pregnancy_emotion_soothing_analysis.py
Finding

Sender identity is discarded, allowing different senders to share a cloud report account

Content
View full analysis

Impact

A sender can retrieve pregnancy-emotion reports created under the same fallback account by another sender. Analyses are also attributed to the shared account. This finding applies to shared-sender deployments; a genuinely single-user workspace does not create this cross-user exposure.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The visible code primarily implements a video-analysis API client and report-management interface. It does not implement the declared monitoring rules or automatic calming and notification workflow. Imported service implementations are not supplied, so their internal analysis capabilities cannot be established; however, this chunk exposes no corresponding monitoring or intervention orchestration.

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 substantiate the declared primary purpose. Its only concrete method concerns an inactive, currently broken agent-call helper, not the described monitoring and intervention workflow. No subprocess execution actually occurs. The imported base classes and API service are not supplied, so their behavior cannot be assessed; the mismatch 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
96% confidence
Finding

General file, JSON, date, and polling helpers could legitimately support the declared skill and are not themselves mismatches. However, this chunk also implements an undisclosed account-provisioning and credential-bearing API layer with local identity access and payment handling. Those behaviors are materially distinct from the described monitoring and reassurance workflow. No camera or microphone processing, emotion analysis, inactivity detection, audio playback, or spouse notification appears in this chunk. This assessment is limited to the supplied code; it does not establish what other files implement or that any particular sensitive data has actually been transmitted.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk's substantive purpose is user-data persistence, not camera or microphone analysis, inactivity detection, audio playback, or notification delivery. Database access could support a larger monitoring system, but this chunk provides no demonstrated connection to that workflow and instead implements a separate user-management capability. The mismatch is functional; the shown code 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
94% confidence
Finding

The visible code delegates video analysis to skill.get_output_analysis and exposes history retrieval through skill.get_output_analysis_list. It contains no visible fixed-camera or microphone monitoring, pregnancy-specific emotion detection, 30-minute inactivity tracking, smart-speaker playback, or husband-app notifications. Video analysis could support the declared system, but the supplied implementation exposes a materially narrower generic analysis interface and an undeclared history-access capability. The imported modules are not supplied, so their internal analysis and any downstream actions cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

The supplied chunk's implemented purpose is generic API access rather than the described monitoring-and-intervention workflow. It contains no camera or microphone processing, expression or tone analysis, inactivity tracking, audio playback, or husband-notification logic. HTTP utilities alone could be supporting implementation details, but the storage-download and user-directory operations are additional capabilities not explained by the declaration. These methods are defined, not automatically executed in this chunk; the assessment does not establish malicious activity or what the wider application implements.

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-pregnancy-emotion-soothing-analysis"
description: "Through fixed cameras (and optional microphones) at the pregnant woman's home or prenatal exam waiting room, the system analyzes facial expressions (sudden crying, frowning, anxiety), prolonged silent sitting (≥ 30 consecutive minutes without social interaction or activity), and tone of conversations with family members (rapid, impatient). | 通过孕妇家中或产检候诊室的固定摄像头(及可选麦克风),分析孕妇的面部表情(突然哭泣、皱眉、焦虑)、长时间静坐不语(连续超过30分钟无社交互动或活动)、以及与家人对�

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 no-analysis mode still invokes the analysis handler.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises --export-env-only as performing no analysis, but the parsed flag is never checked, so a valid input still reaches the analysis handler. A user expecting configuration-only behavior could unintentionally submit highly sensitive home or prenatal-clinic recordings for processing; identity initialization also runs before any mode-specific handling.

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

The documented export-only mode still invokes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag promises not to analyze video but is ignored after parsing, allowing a supplied file or URL to proceed to analyze_video. In this skill's context, that violates the user's processing expectation and can expose sensitive recordings to an analysis service despite selecting a configuration-only mode.

Content

No source excerpt is available for this finding.

ai_chat claims to invoke an analysis agent but never executes it and always returns None.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 says this method invokes the openclaw agent through subprocess and returns an analysis result or session ID. Instead, subprocess execution is commented out, and the empty dictionary at L68 causes result.stderr to raise AttributeError; the exception handler suppresses the failure and the method returns None. Thus this analysis entry point cannot deliver its documented result, and callers receive no explicit failure signal.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosure.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases existing file contents. No docstring, comment, confirmation, or user-facing message explains this destructive behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers service accounts, an undeclared capability beyond emotion analysis and soothing actions.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The generic request helper invokes phoneLogin with silent=1 and register=1 when credentials are missing, without an explicit enrollment decision in this path. This can create a remote account and disclose an identifier during an otherwise ordinary request, an important consent boundary for a pregnancy-related monitoring skill.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote account and persist authentication tokens.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

An ordinary HTTP request can trigger remote registration and then save returned authentication tokens in the local user database, without a separate enrollment or persistence approval in the shown flow. This creates durable identity and credential side effects that are not apparent from the emotion-soothing capability description; local credential compromise could also expose the associated account.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
87% confidence
Finding

This POST transmits the selected identifier as both openId and mobile to a remote login/registration service, automatically when credentials are unavailable. The concern is the undisclosed identity transmission and enrollment, not HTTP communication alone; this call does not itself show transmission of camera, microphone, or emotion data.

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

Configuration loading silently creates directories and files, including during module import.

Low
Category
Output Handling
Confidence
95% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is absent, without a comment, docstring, prompt, or user-facing log disclosing this behavior. BaseEnum.init_subclass invokes this loader during class definition (L052–L058), so importing the module can unexpectedly modify the filesystem.

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

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