Back to skill

Security audit

Dementia Confusion / Disorientation Recognition and Orientation Soothing | 失智老人困惑/迷惘识别与定向安抚

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rated this skill suspicious with high confidence: scanners report undeclared account and identity handling, remote transmission, and export-only options that may still trigger analysis.

Consider the reported remote video transfer, identity transmission, and local credential storage before installing, especially in a care setting. The scan is marked partial: it inspected the listed components but could not resolve one local reference, so the evidence does not establish the behavior of that missing target.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Ordinary formatting, filesystem, and request helpers could support the declared system and are not independently grounds for a mismatch. However, the supplied code also implements a persistent account, authentication, and billing integration that is not disclosed in the dementia-monitoring description. When invoked, its request layer can create remote accounts and transmit identity metadata and credentials. These are substantive undeclared behaviors, not evidence of the stated behavioral-analysis capability. This finding is limited to the supplied chunk; it does not establish that the broader skill lacks analysis functionality or that these methods execute merely on import.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The visible code does not implement the declared detection workflow. Its only substantive method is an unfinished generic chat wrapper that cannot return a successful analysis as written. No external command actually executes, and the imported base classes and API service are not available for inspection, so their capabilities cannot be inferred. The mismatch concerns the materially different visible implementation, not evidence of malicious resource access.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied code's substantive purpose is user-data persistence rather than dementia-related behavior analysis. Database operations can be supporting implementation details, but this chunk specifically manages general user identities and tokens and provides no visible connection to observations, behavior events, or detection results. This assessment is limited to the supplied chunk; it does not establish what other skill components implement. No network transmission or token exfiltration is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

Local/network input, report detail selection, and result export are reasonable supporting features of the declared analysis purpose. Historical orientation/reassurance record retrieval and its automatic triggers are separate, explicitly documented capabilities not represented in the declaration. This assessment concerns the supplied command interface; the code chunk does not establish whether the underlying behavioral detection or history retrieval is implemented correctly.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied chunk exposes backend and account/storage-related functionality rather than camera/audio processing or disorientation detection. HTTP wrappers and pagination could be legitimate supporting infrastructure and are not independently suspicious, but this chunk provides no connection between its user lookup, storage access, or record-management operations and the declared purpose. This assessment is limited to the supplied code; it does not establish malicious activity, data exfiltration, or the behavior of the complete system.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

Video submission and result output are consistent with the declared purpose and can be supporting implementation details. However, the --list branch calls skill.get_output_analysis_list(open_id=...), exposing access to user-scoped analysis history that the description does not disclose. The supplied chunk delegates the actual analysis to an imported component, so it does not establish whether the specific dementia-related behaviors are detected; that uncertainty alone is not treated as a mismatch.

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-dementia-confusion-orientation-analysis"
description: "Through fixed cameras (and optional microphones) in dementia care facilities or homes, the system analyzes behaviors of people with dementia to identify confusion/disorientation states: sudden activity stops (interrupting ongoing actions such as eating or walking for ≥ 5 seconds), gaze drifting (eyes wandering without focus), looking around (frequent head turning), and repeated disorientation questions ('Where is this?'. | 通过失智照护机构或家庭固定摄像头(及可选麦克风),分析失智老人的行为,识别困惑/迷惘状态:突然停止活动(中

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 export-only mode still executes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises an export-only mode that performs no analysis, but the flag is never checked before identity initialization or analysis. Supplying it with an input can therefore cause sensitive care footage to be submitted for remote processing despite the caller's explicit non-execution request.

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

The implementation reads the complete local media file and passes its contents to the analysis API without a visible upload disclosure or authorization gate. Although the surrounding workflow mentions APIs, it does not clearly establish informed authorization to transfer identifiable dementia-care audio and video to a specified external processor.

Content

No source excerpt is available for this finding.

The documented --export-env-only mode does not prevent video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is accepted but never consulted, so execution proceeds to identity resolution and potentially video analysis. A caller expecting configuration-only behavior can unintentionally transmit private care footage or trigger other remote operations.

Content

No source excerpt is available for this finding.

The skill includes persistent user-account and credential management unrelated to the declared confusion/disorientation analysis.

Medium
Category
Excessive Agency
Confidence
88% confidence
Finding

The User model stores account identifiers, personal details, and token/open_token credentials, while UserDao inherits database read, write, update, and delete operations. Although local storage of behavioral observations would support the manifest's purpose, managing user accounts and credentials is a separate capability not justified by the stated camera/audio analysis scope.

Content

No source excerpt is available for this finding.

The documented agent-analysis method never invokes the agent and cannot return an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 says ai_chat invokes the openclaw agent through subprocess, but both command construction and subprocess execution are commented out (L48–L66). Instead, the method creates an empty dictionary and accesses result.stderr (L68–L70), raising an exception that is caught at L81–L82; the documented analysis operation therefore never occurs.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing the destructive behavior.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

Opening a path in 'w' mode immediately erases any existing contents, even before the caller writes anything. The generic open helper provides no confirmation, action log, docstring, or comment explaining this destructive side effect; its exception handler only reports failures.

Content

No source excerpt is available for this finding.

The request helper silently provisions remote accounts and persists account credentials, beyond the declared dementia-behavior analysis scope.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

An ordinary HTTP request can automatically invoke phoneLogin with silent registration enabled, then save returned account information and credentials through the DAO. There is no explicit enrollment gate in this flow, creating an undisclosed remote-account and local-credential lifecycle that is particularly sensitive in a dementia-care setting.

Content

No source excerpt is available for this finding.

HTTP requests can trigger undisclosed remote user registration and identity transmission.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The helper sends the selected identity as both openId and mobile while requesting silent registration, without an explicit authorization step in the request flow. This can disclose an upstream identity and create a remote account when a caller only intended to perform an analysis-related request; it is the same underlying enrollment issue as SDI-1.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

This POST is the transmission sink for the automatic registration flow: it sends the selected username or identity to the configured health-service endpoint without a visible enrollment-consent gate. The concern is undisclosed identity transmission, not networking itself; this request does not demonstrate transmission of dementia recordings or clinical observations.

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

Low
Category
Output Handling
Confidence
91% confidence
Finding

YamlUtil.load creates the parent directory and writes a YAML file when the requested configuration is missing, without a log, prompt, docstring, or explanatory comment disclosing this side effect. BaseEnum.init_subclass invokes this loader at L053 and L058, so importing the module can modify the filesystem without an explicit save request.

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