Back to skill

Security audit

Elderly Loneliness Detection & Warm Companionship | 独居老人孤独情绪识别与温暖陪伴

Security checks for vulnerabilities and agentic risk

Overview

Review recommended: the skill can upload private home footage despite its no-analysis option and automatically saves account credentials.

Use non-sensitive test footage until the no-analysis option is fixed. Before sending home recordings, obtain informed consent for external processing, confirm the provider's deletion practices, and review automatic enrollment and token storage. Keep API configuration on HTTPS; --api-url currently does not override it. The artifacts support Review, without establishing malicious intent.

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
skills/smyx_common/scripts/config-dev.yaml
Finding

Development endpoints transmit authentication credentials over plaintext HTTP

Content
View full analysis

Impact

A network-path attacker can capture service bearer tokens and replay them against the accepting service, gaining the captured account's access to analysis reports. Plaintext report traffic can also be observed or altered.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk contains no camera access, video processing, activity analysis, or loneliness-related detection. Its implemented functionality centers on persisting and managing user accounts. Database operations can support a video-analysis application, but this chunk provides no connection to that purpose; its user-management functionality and stored data are not represented in the declared description. This assessment is limited to the supplied code, not unseen parts of the skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk contains no camera access, video processing, or loneliness-behavior detection. Generic file, date, polling, and HTTP helpers could support the declared system and are not independently mismatches. However, automatic remote identity provisioning, persistent account/token management, and payment-related behavior introduce substantial capabilities not represented in the description. These behaviors occur when the relevant utility methods are invoked; the chunk alone does not establish whether other files implement the advertised video analysis.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The visible implementation does not perform the declared video analysis. There is no detection logic for social interaction, gaze, chest/abdomen movement, or mouth activity. Although comments describe invoking an external agent, that invocation is disabled and must not be treated as executed behavior. Imported base classes may contain additional functionality, but their implementations are not supplied, so they cannot substantiate the declared purpose.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

The supplied code concerns backend API and user/data management rather than the declared camera-based behavior analysis. Networking and download helpers could legitimately support that analysis and are not inherently mismatches, but the username lookup and general data-management interface introduce capabilities whose connection to the declared purpose is not established. This assessment is limited to the supplied chunk; it does not establish that the complete skill lacks video-analysis functionality or that these methods are automatically invoked.

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-elderly-loneliness-comfort-analysis"
description: "Using a fixed camera in the home of a solitary-living elderly person or in a private nursing-home room, the system analyzes daily activity video and detects loneliness-related behaviors: prolonged solitude (no social interaction), static gazing (long-time fixation with no purposeful activity), sighing (rapid chest/abdomen rise-fall with exhale), and talking-to-self (mouth activity with no conversation partner). | 通过独居老人家中或养老院单人房的固定摄像头,分析老人日常行为视频,检测孤独相关行为:长时间独处(无社交互动)、静�

The local-video analysis workflow lacks an explicit warning about external processing of sensitive in-home footage.

High
Category
Output Handling
Confidence
93% confidence
Finding

The local-file workflow does not clearly warn that raw footage will leave the device for external processing or require confirmation of that transfer. General deployment-consent language and references to APIs do not ensure informed consent to uploading highly sensitive footage from an elderly person's home or bedroom.

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 documented environment-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag promises not to execute analysis, but its parsed value is never checked. When supplied with video input, execution still initializes identity and invokes analysis, potentially transferring private footage despite the caller's explicit non-analysis choice.

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 file contents are submitted to the analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The method reads the entire local video and passes its bytes to the analysis API without an upload-specific consent check or disclosure in this path. For in-home elderly monitoring, undisclosed external transfer can expose intimate activities, identities, and health-related observations.

Content

No source excerpt is available for this finding.

The documented --export-env-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The program registers --export-env-only but never branches on it, so providing that flag with input still runs the video-analysis workflow. This violates an explicit no-analysis expectation and can cause unintended external processing of sensitive home footage.

Content

No source excerpt is available for this finding.

The skill includes persistent account and credential-token management beyond its stated video-analysis purpose.

Medium
Category
Excessive Agency
Confidence
87% confidence
Finding

Account storage is not inherently a vulnerability, but this model stores authentication tokens as ordinary readable SQLite strings in a shared workspace database without explicit credential protections. Anyone gaining access to that database or its backups could obtain reusable credentials; the elderly-care context increases the sensitivity of any associated account data.

Content

No source excerpt is available for this finding.

Agent-call documentation contradicts the disabled implementation.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The ai_chat docstring at L25–L34 claims the method invokes the openclaw agent through subprocess and returns an analysis result or session ID. However, the invocation at L61–L66 is commented out, and L68–L70 instead access stderr on an empty dictionary, triggering the caught exception and returning None without performing any analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently opens files in write mode, truncating existing contents without disclosure.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open helper uses mode 'w', which immediately truncates an existing file. No docstring, comment, confirmation, or user-facing message discloses this destructive behavior; exception tracing does not warn about a successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently provisions remote accounts and persists user credentials, beyond the stated video-analysis purpose.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

The generic request helper can automatically call phoneLogin with registration enabled, transmit an identity, and save returned authentication tokens without a separate enrollment decision. This introduces undisclosed remote identity provisioning and credential retention into a sensitive home-monitoring workflow, although the snippet does not establish transmission of video.

Content

No source excerpt is available for this finding.

An ordinary HTTP request can silently register a remote account and persist its authentication tokens.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

An ordinary HTTP operation can trigger a separate remote registration transaction and durable credential storage, creating security-relevant side effects callers may not expect or authorize. This is the same underlying enrollment issue reported by SDI-2, not evidence of a separate malicious mechanism.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

The POST sends the selected identity as both openId and mobile, plus a source identifier, to a configured remote login service as part of automatic enrollment. Depending on configuration this identity can originate from an API-secret setting, making the undisclosed transmission particularly concerning; the actual destination and transport security cannot be verified from this source.

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 a YAML file when the requested file is missing (L017–L020).

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load modifies the filesystem without a confirmation, log, docstring, or explanatory comment disclosing this side effect. Because BaseEnum.init_subclass calls this loader at L053 and L058, merely importing the module can create configuration files beside it, rather than only reading existing configuration.

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