Back to skill

Security audit

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

Security checks for vulnerabilities and agentic risk

Overview

The skill is marked suspicious with high confidence because scanners report credential and data-handling risks, behavior beyond its stated monitoring purpose, and gaps in its promised analysis behavior.

Consider the suspicious verdict and the reported privacy, credential, and purpose mismatch concerns before installing. The scan covered all listed components but was marked partial because a referenced path was missing; some monitoring behavior therefore could not be verified. Do not assume the skill provides the advertised detection or that remote video processing, credential handling, or runtime permissions are safe.

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
  • 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
94% confidence
Finding

The visible code does not implement the declared monitoring purpose: it contains no sensor processing, behavior classification, duration tracking, or safety-alert logic. The apparent external command invocation is disabled and should not be counted as active execution. Imported base classes and services are not provided, so any monitoring functionality they might supply cannot be verified from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk implements a generic database and user-management component, with no sensor processing, activity analysis, duration checks, or safety-alert logic. Database persistence could support a larger monitoring application, but this chunk's concrete functionality centers on user records and tokens, not monitoring events or behavior. The mismatch is limited to the supplied code; it does not establish what other skill components do. No network transmission or token exfiltration is shown.

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 | 老人离床徘徊监测技能
> **智能分析中枢** · 图片/视频智能分析 · 结

The request helper forwards service credentials to caller-supplied absolute URLs.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and attaches service tokens and the API key without checking the destination. A caller able to influence the URL can send those credentials to an attacker-controlled endpoint, while plain HTTP also exposes them in transit; accompanying monitoring data could be disclosed as well.

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 analysis workflow lacks a privacy warning about sending sensitive surveillance footage or video URLs to a remote API.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

Although cloud API use is mentioned, the workflow does not explicitly warn that local surveillance footage or supplied video URLs leave the user's environment or establish informed authorization for that transfer. Bedroom footage of vulnerable elderly people can expose intimate activities and health information, making this omission especially consequential.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes monitoring analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to execute analysis, but the program never checks that flag. With an input supplied, execution reaches monitoring analysis anyway, potentially sending sensitive footage or its URL to a remote service despite the caller 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 passed to the analysis API without disclosure that the file will be uploaded.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The local-file branch reads the entire video and passes its bytes to the analysis service without a visible disclosure or authorization gate. For elderly bedroom monitoring, this crosses a significant privacy boundary even though remote analysis is an intended feature; authorization enforced by an unseen caller would mitigate the concern.

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 export-only argument is parsed but never consulted, so an invocation with video input still calls analyze_video. This violates the explicit no-analysis contract and can cause unintended remote disclosure of surveillance data.

Content

No source excerpt is available for this finding.

The skill includes credential-bearing system-user management beyond its stated behavioral-monitoring purpose.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

The User model stores authentication material in token and open_token fields (L460–L461), and UserDao exposes inherited database read, update, and delete operations over these records. Managing persistent system-user credentials is not a direct requirement of detecting bed exits, wandering, or prolonged inactivity, and the manifest does not declare account or credential management.

Content

No source excerpt is available for this finding.

ai_chat documents an agent invocation but never executes the agent or returns an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The agent invocation is disabled, and accessing stderr on a dictionary always raises an exception that is swallowed, leaving ai_chat to return None. If monitoring depends on this method, analysis can silently fail and delay detection of dangerous events; the supplied source does not establish whether that monitoring path calls it.

Content

No source excerpt is available for this finding.

The generic file-opening helper silently truncates existing files.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

FileUtil.open opens the supplied path in write mode, which immediately erases existing contents even before the caller writes anything. There is no docstring, explanatory comment, confirmation, or operation-specific log disclosing this destructive behavior; the generic method name does not make truncation clear.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

A normal request can trigger silent remote registration using the resolved identity and then persist returned authentication tokens through the DAO. No explicit enrollment approval is enforced here, creating an unexpected identity-disclosure and credential-lifecycle boundary in a privacy-sensitive elder-monitoring service; storage protections are not shown.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The login payload explicitly enables silent registration, and the surrounding request flow invokes it automatically when tokens are missing and saves returned credentials. This duplicates the enrollment issue identified by SDI-1: ordinary monitoring activity can create remote account state without an approval step enforced by this code.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The POST automatically transmits the resolved identifier as both openId and mobile during account provisioning, without an explicit approval check in this flow. The identifier can even originate from API_SECRET_KEY because of the caller's selection order; this is an identity and potentially secret-disclosure concern, although the configured destination is not shown to be malicious.

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 writes missing configuration files, including during module import.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path does not exist, without a comment, docstring, log, or confirmation disclosing this side effect. Because BaseEnum.init_subclass invokes this loader at L053 and L058, defining the module's enum classes can modify the filesystem merely by importing the module.

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