Back to skill

Security audit

Elderly Bed-Exit & Wandering Monitor | 老人离床徘徊监测技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this elderly safety monitoring skill suspicious because scanners report privacy-sensitive uploads, undeclared account and credential handling, and features that do not clearly match its stated purpose.

Consider not installing until the publisher clearly explains why account registration, identity and token storage, remote video processing, and payment guidance are needed, and how footage and credentials are protected. The scan is partial: it covered all 29 listed components but left one local reference unresolved, so evidence is incomplete. The scanners report concrete privacy and behavior concerns, but do not establish clear malicious intent.

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
  • 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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (24)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk implements user-account persistence rather than behavior monitoring. It contains no sensor processing, bed-exit detection, wandering analysis, immobility timing, or safety-alert logic. Although database operations can support a monitoring system, this chunk specifically manages identities, personal information, and tokens without any demonstrated connection to the declared monitoring purpose. No network transmission or token use is shown. This assessment is limited to the supplied chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code does not substantiate the declared monitoring purpose. Its visible behavior is generic skill scaffolding and a broken chat helper, with no behavioral observations, timing logic, anomaly detection, or safety alerts. It does not actually execute the commented-out agent command. Imported base classes and services are not supplied, so their behavior cannot be assessed; this finding is limited to the visible chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Formatting, polling, and ordinary HTTP helpers could legitimately support the declared monitoring skill and are not themselves mismatches. However, the supplied code also contains undeclared account provisioning, persistent identity management, and billing-related behavior. Its HTTP wrapper attaches authentication headers even to caller-supplied absolute destinations, creating credential-disclosure potential beyond the stated monitoring purpose. These behaviors are conditional on helper invocation; the chunk does not establish that they have executed or that monitoring functionality is absent elsewhere.

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: "elderly-bed-exit-wandering-monitoring-analysis"
description: "Identifies abnormal behaviors such as getting out of bed at night, prolonged wandering, and remaining motionless for extended periods. It is suitable for night-time safety monitoring in nursing homes and for elderly people living alone. | 老人离床徘徊监测技能,识别夜间起床离床、长时间徘徊、长时间静止不动异常行为,适用于养老院、独居老人夜间安全监测"
version: "1.0.13"
license: "MIT-0"
---

# 🛏️ Elderly Bed-Exit & Wandering Monitor | 老人离床徘徊监测技能
> **智能分析中枢** · 图片/视频智能分析 · 结

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 remote processing of sensitive surveillance footage.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The workflow directs users to analyze local surveillance footage through an API without clearly warning that the footage leaves the device or explaining recipient and retention practices. Bedroom footage of vulnerable elderly residents can expose intimate activity and health-related information, making this disclosure gap particularly consequential.

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 parser advertises an export-only mode that does not execute analysis, but the parsed flag is never checked. When an input is supplied, execution still initializes identity and invokes analysis, potentially transmitting sensitive elderly surveillance footage despite the caller explicitly selecting a non-analysis mode.

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

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The code reads the complete local video and passes its contents to the analysis API without a visible upload notice or authorization gate. For elderly bedroom surveillance, this can disclose identifiable residents, private routines, and health-related information to an external processor.

Content

No source excerpt is available for this finding.

The documented export-only option does not prevent video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag promises not to analyze video, but no branch checks it before identity resolution or the analysis call. Supplying footage alongside this flag therefore triggers the normal analysis workflow, potentially exposing private surveillance data contrary to the caller's explicit selection.

Content

No source excerpt is available for this finding.

The save() docstring promises creation of a new record, but failed inserts trigger updates to existing records.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Any failed insert triggers an update by ID and then potentially by username or realname, copying fields including identifiers and credentials into an existing record. If incoming model fields are influenced by an untrusted or mismatched identity, a creation operation can overwrite another user's record; identity corruption is particularly consequential for sensitive elderly-monitoring data.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 explicitly says the method invokes openclaw agent through subprocess and returns an analysis result or session ID. However, command construction and execution are commented out, and the empty dictionary at L68 causes result.stderr to raise an exception that is caught, leaving the method to return None without performing analysis. This contradicts the documented analysis behavior and could silently disable monitoring analysis if this method is used.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The generically named open helper uses mode 'w', which immediately erases an existing file's contents. No docstring, explanatory comment, confirmation, or operation-specific log discloses this destructive behavior; exception tracing does not warn about successful truncation.

Content

No source excerpt is available for this finding.

Monitoring requests can silently register a remote service account and persist its credentials.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

A generic HTTP request can silently register an account using the current identity and then persist returned authentication tokens in the local database. This combines an undisclosed remote side effect with unprotected credential storage, increasing privacy and credential-exposure risks in an elderly-monitoring environment.

Content

No source excerpt is available for this finding.

HTTP requests can silently initiate remote account registration.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The helper submits 'silent': 1 and 'register': 1 as a side effect of an ordinary request, without an explicit registration approval step. This can transmit a user's identifier and create remote account state unexpectedly, which is a material privacy concern for a monitoring skill serving vulnerable people.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

This POST sends the selected identity as both openId and mobile to a configured remote login/registration endpoint without a visible consent gate. External communication is not inherently malicious, but this undisclosed identity transmission is the concrete privacy issue; the source does not establish an attacker-owned destination or transmission of monitoring footage.

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

An insufficient-balance response redirects the monitoring workflow into payment-skill installation and account recharge.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

On HTTP 402, L667-L670 return instructions to install smyx-payment and recharge a skill account. This introduces an undeclared payment and additional-skill workflow into a skill advertised solely as elderly safety monitoring; the code supplies installation instructions rather than performing installation itself.

Content

No source excerpt is available for this finding.

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

Low
Category
Output Handling
Confidence
91% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is missing, without a comment, docstring, prompt, or log disclosing that side effect. BaseEnum.init_subclass invokes this loader as configuration classes are defined (L053 and L058), so simply importing the module can 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 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