Back to skill

Security audit

Elderly Hand Resting-Tremor Detection | 老年人手部震颤(静止性)识别

Security checks for vulnerabilities and agentic risk

Overview

The scanners classify this hand-tremor screening skill as suspicious because they report undeclared account and token management, remote handling of sensitive video, and behavior that can run analysis despite an environment-only option.

Consider the reported identity, token, and remote video handling risks before installing, especially if recordings or account data are sensitive. The verdict is suspicious, meaning the scanners found real weaknesses or undeclared risky behavior; it does not conclude that the author is malicious. The scanner reports complete inspection of the listed components, but dependency inspection was not requested, so dependency risks were not assessed.

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
scripts/smyx_elderly_hand_tremor_detection_analysis.py
Finding

CLI initialization discards the upstream sender identity and reuses a workspace-wide account

Content
View full analysis

Impact

The requesting sender can receive health-analysis history belonging to the shared fallback account. Analysis requests under the same conditions are also associated with that account, mixing different senders' records.

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

Ordinary formatting, filesystem, and HTTP helpers could support the declared analysis and are not independently evidence of a mismatch. However, the supplied code additionally implements an undeclared account lifecycle: resolving identities from local resources, creating users, silently registering them remotely, and persisting authentication credentials. It also introduces a paid-service workflow absent from the description. These are substantive behaviors beyond camera-based tremor screening. The absence of tremor analysis in this shared utility file alone does not establish that the full skill lacks that functionality; the mismatch rests on the additional account and service behaviors visible here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk implements user-account persistence rather than camera capture, hand-motion analysis, frequency/amplitude estimation, or tremor detection. Generic database support alone could be an implementation detail, but the concrete identity and token-management functionality has no demonstrated connection to the declared screening 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
95% confidence
Finding

The supplied chunk does not implement the declared tremor-screening workflow; it provides generic scaffolding and a disabled, broken chat wrapper. No subprocess execution or external agent invocation actually occurs in the shown code. Imported base classes may contain additional behavior, but their implementations are not supplied, so they cannot establish that this chunk fulfills the declared purpose. This is a functional description mismatch, not evidence of malicious behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied code implements general-purpose API and account/data-management capabilities rather than video-motion analysis. It contains no camera handling, hand tracking, periodic-motion detection, frequency estimation, amplitude measurement, or tremor classification. HTTP requests and download URLs could support a video-analysis workflow, but this chunk does not establish that connection, and user lookup and generic remote mutation operations extend beyond the declared purpose. This assessment is limited to the supplied chunk; it does not establish that these methods are invoked or that data is exfiltrated.

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-hand-tremor-detection-analysis"
description: "Using a fixed home camera to record video of an elderly person's hand at rest (placed on a table or armrest with no voluntary movement), AI video-motion analysis detects periodic shaking, extracts tremor frequency (Hz) and amplitude (pixel displacement), and identifies the presence of resting tremor (commonly associated with Parkinson's disease and other neurological conditions). | 通过家庭固定摄像头拍摄老年人手部(置于桌面或自然静止)的视频,利用AI视频分析技术检测手部在静止状态下的周期性抖动频率(Hz)和幅度(像素�

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 an explicit warning that sensitive hand videos are processed by a remote API service.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

Although the document mentions APIs and cloud reports, it does not clearly tell users that local health-related videos will be uploaded for third-party processing. Its general recording-consent notice does not establish informed consent to that transfer, creating a heightened privacy risk for elderly subjects.

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 parser promises that --export-env-only will not perform analysis, but the flag is never checked before identity initialization or analysis execution. A user supplying this flag with a video can therefore trigger unintended remote processing of sensitive health-related material and potentially incur service charges.

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

Medium
Category
Output Handling
Confidence
93% confidence
Finding

The implementation reads the entire local video and passes its bytes to the analysis API without any visible remote-processing disclosure or authorization gate. Because these recordings are used to infer neurological health, an unexpected upload creates a meaningful privacy exposure rather than merely an ordinary file-processing side effect.

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 environment-only flag is accepted but never used to branch or exit, so supplying it with valid input still invokes video analysis. This violates an explicit no-analysis expectation and can cause unintended disclosure of private recordings or service usage.

Content

No source excerpt is available for this finding.

The skill includes persistent user and token management unrelated to its declared hand-tremor analysis purpose.

Medium
Category
Excessive Agency
Confidence
95% confidence
Finding

The user model stores reusable tokens alongside identifying information in an ordinary SQLite database placed in a shared workspace data directory, without explicit restrictive permissions or credential protection in this source. Merely supporting accounts is not a vulnerability, but this storage design exposes credentials to other processes or skills with workspace access and increases privacy consequences in an elderly-health application.

Content

No source excerpt is available for this finding.

AgentSkill.ai_chat documents invoking an analysis agent, but never invokes it and cannot return an analysis result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 claims that ai_chat calls openclaw agent through subprocess, and L33-L34 promise an analysis result or session ID. However, the invocation at L61-L66 is commented out; L68 creates an empty dictionary, and L70 immediately raises an AttributeError that L81-L82 suppress, so the helper returns None without submitting the prompt for analysis.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its write-only behavior.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open helper always uses mode 'w', which immediately erases an existing file's contents. No docstring, explanatory comment, confirmation, or operation log discloses this destructive behavior; the exception handler only runs after a failure.

Content

No source excerpt is available for this finding.

The request helper silently registers or logs in service users and persists their credentials, beyond the declared tremor-analysis purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

A generic HTTP operation can trigger silent account registration or login, transmit the selected identity to a separate authentication endpoint, and save returned tokens through the DAO. No explicit consent or account-provisioning opt-in appears in this flow, creating unexpected external identity processing and credential retention for a health-screening skill.

Content

No source excerpt is available for this finding.

HTTP authentication silently transmits an identity and requests automatic account registration.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The authentication payload explicitly enables silent operation and automatic registration while transmitting the identity as both openId and mobile. When authentication is needed, this happens inside the request helper without a separate consent check, potentially creating an externally linkable account unexpectedly.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
94% confidence
Finding

The POST transmits the selected identity to the health-service login endpoint without a consent check; the visible caller can select API_SECRET_KEY as that identity and send it in both openId and mobile fields. This can unnecessarily expose a credential to account records or logging systems, although the endpoint configuration and actual runtime values are not supplied.

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

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is absent, without a warning, log, comment, or docstring disclosing this side effect. BaseEnum.init_subclass invokes this loader during class creation (L044–L059), so merely 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