Back to skill

Security audit

Parkinson's & Epileptic Behavior Recognition Skill | 帕金森癫痫行为识别技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence, citing mismatches with its video-monitoring purpose and concerns about credentials, user data, and unintended processing of sensitive recordings.

Consider the reported identity sharing, credential handling, and possible unintended processing of patient recordings before installing. The scanner evidence is incomplete because one reference was unresolved, and some flagged interpretations were disputed, so this overview does not establish that every reported behavior is present across all components.

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

Error
Location
scripts/parkinson_epilepsy_behavior_recognition_analysis.py
Finding

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

Content
View full analysis

Impact

A second sender can retrieve medical-behavior report history belonging to the shared fallback account. Analyses from different senders are also associated with that account, mixing sensitive 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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (23)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The visible implementation does not perform the declared video-based medical behavior recognition. Its only substantive method prepares a chat session but never executes an agent or analyzes input. No undeclared external command execution is active. Imported base classes and services are not supplied, so their behavior cannot be assessed; this finding is limited to the provided chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied chunk primarily implements user-account persistence rather than video recognition or abnormal-movement monitoring. It defines a sys_user table containing names, email, demographic information, and token fields, and supports querying, updating, and deleting those records. Database storage can be a supporting implementation detail, but this chunk provides no connection between its user-management functionality and the declared monitoring purpose. No video processing, movement detection, or risk assessment appears here. This assessment is limited to the supplied chunk; it does not establish what other skill components do.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied chunk contains no video processing or abnormal-movement recognition. Generic formatting, polling, and HTTP utilities could legitimately support the declared skill, so their presence alone is not a mismatch. However, the code also implements automatic identity provisioning, remote account registration, and persistent credential management—substantive account-related behavior not disclosed by the video-monitoring description. These actions occur when the relevant helpers are invoked, not merely upon importing the module. Other files could implement recognition, but they are not supplied here.

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: "parkinson-epilepsy-behavior-recognition-analysis"
description: "Identifies abnormal behaviors such as limb tremors, convulsions, stiffness, and gait abnormalities through video recognition, assisting in home risk monitoring for patients with chronic conditions. | 帕金森癫痫行为识别技能,通过视频识别肢体震颤、抽搐、僵硬、步态异常等异常行为,辅助慢性病患者居家风险监测"
version: "1.0.22"
license: "MIT-0"
---

# 🧠 Parkinson's & Epileptic Behavior Recognition Skill | 帕金森癫痫行为识别技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端

The analysis workflow lacks a privacy warning before patient recordings are processed by an external API.

High
Category
Output Handling
Confidence
96% confidence
Finding

The workflow directs analysis of patient recordings through a cloud API without a pre-transfer privacy notice or authorization checkpoint. Home recordings can reveal identifiable people, medical symptoms, and private surroundings, making unintended external disclosure particularly consequential.

Content

No source excerpt is available for this finding.

The request helper forwards platform credentials to arbitrary absolute URLs, beyond the needs of video behavior recognition.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The helper accepts arbitrary absolute HTTP or HTTPS URLs and automatically attaches platform access tokens, an API key, and an authorization token without checking the destination. If an attacker influences a request URL, these credentials can be sent to an attacker-controlled host, while HTTP destinations additionally expose them in transit; compromised credentials could expose sensitive health-service data.

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 default trigger covers any surveillance-video abnormal-behavior request, rather than requiring a Parkinson’s or epilepsy monitoring context.

Medium
Category
Trigger Abuse
Confidence
96% confidence
Finding

The default trigger selects this medical-analysis workflow for general surveillance abnormal-behavior requests without requiring Parkinson's or epilepsy context. Combined with the prescribed external processing workflow, this can route unrelated recordings into an unintended service and produce inappropriate health-related interpretations.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser advertises a no-analysis mode, but args.export_env_only is never checked, so supplying it with an input still invokes analysis. Users relying on that promise can unintentionally initiate processing of sensitive patient media; identity initialization also occurs before any mode-specific guard.

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

The --export-env-only option promises not to execute analysis, but the code ignores it and proceeds with video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only argument promises not to execute analysis but is ignored after parsing, allowing execution to reach analyze_video when input is supplied. In this medical-monitoring context, relying on the advertised non-processing mode can result in unintended external processing of sensitive recordings.

Content

No source excerpt is available for this finding.

Database path handling contradicts the documented guarantee that databases cannot be created outside the agent's data directory.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Both containment checks use lexical startswith comparisons without resolving parent-directory components or symbolic links. An absolute path such as /workspace/data/../outside.db passes these checks but can cause SQLite to create or modify a database outside the intended directory, subject to filesystem permissions; this is particularly concerning around patient-related local data.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files without disclosing its destructive write mode.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

At L101, the generically named open helper uses mode 'w', which immediately erases an existing file's contents even before anything is written. The helper has no docstring, explanatory comment, confirmation, or normal-operation log disclosing this behavior; its exception handler does not warn about successful truncation.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
93% confidence
Finding

When credentials are missing, an ordinary request can submit an identifier to a remote login endpoint with silent registration enabled and persist the returned authentication tokens locally. No consent or explicit enrollment boundary is visible in this flow, creating unexpected identity disclosure and durable account state in a health-related skill; the supplied code does not establish what consent may exist elsewhere.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

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

YamlUtil.load creates parent directories and writes a YAML file when the requested configuration is absent, without a warning, log, or explanatory comment or docstring. BaseEnum.init_subclass invokes this loader during class definition (L044–L058), so merely importing the module can modify the filesystem despite appearing to be a configuration-read operation.

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:

ai_chat documents an agent invocation, but execution is disabled and the method cannot return an analysis result.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 states that this method invokes the openclaw agent through subprocess, and L33–L34 promise an analysis result or session ID. However, the subprocess call is commented out, and L68 initializes an empty dictionary whose nonexistent stderr attribute is accessed at L70; the resulting exception is caught, so the method returns None without invoking an agent.

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/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