Back to skill

Security audit

Elderly Medication Compliance (Pick-up / To-mouth / Swallow) | 老年人服药动作确认(取药/入口/吞咽)

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report sensitive video handling and account-related behavior that does not clearly match its stated medication-monitoring purpose.

Consider avoiding installation until the video destination and consent process, export-only behavior, account registration, and token storage are clarified. The overall verdict is suspicious, not a claim that the author is malicious; scanner coverage is partial, so some referenced or underlying behavior remains unverified.

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

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/smyx_elderly_medication_compliance_analysis.py
Finding

Ignored API endpoint override sends sensitive input to the default service

Content
View full analysis

Impact

Medication footage or a private video URL is transmitted to a service the user attempted to replace. This is a concrete confidentiality defect, not merely an inaccurate help description.

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/smyx_elderly_medication_compliance_analysis.py
Finding

Sender identity can be discarded in favor of a workspace-wide account

Content
View full analysis

Impact

The Agent can return the shared account's medication-report history to a different sender and associate new analyses with that shared account. This is client-side account confusion using cached credentials, not a claimed bypass of server authentication.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (27)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk implements account, authentication, workspace, and network infrastructure rather than medication monitoring. It contains no camera capture, pose estimation, object detection, medication-step tracking, swallow recognition, or caregiver-alert logic. Generic utilities alone would be reasonable supporting details, but silent remote account registration and credential-bearing requests to unrestricted caller-provided URLs introduce material capabilities and resource access not disclosed by the description. These observations apply to the supplied chunk; other skill files may implement the advertised monitoring functions.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied chunk does not implement the declared medication-monitoring workflow. Its only substantive method is an incomplete agent-call wrapper, and even that does not execute an external command because the execution code is commented out. Imported base classes and services may contain additional behavior, but their implementations are not supplied and cannot establish that the declared functionality exists.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk is a general user-account database component, not a camera-monitoring implementation. It contains no video capture, pose estimation, object detection, medication-step tracking, swallowing recognition or caregiver notification logic. Database persistence could support a broader monitoring application, but this chunk specifically manages user identities and tokens and shows no medication-related integration. The mismatch assessment is limited to the supplied code; it does not establish that the wider skill lacks the declared functionality or that this code is malicious.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

The visible implementation is a video-analysis API client and report-management wrapper, not the declared real-time medication-monitoring and alerting system. Uploading video and polling an API could support the declared purpose, but the supplied chunk does not establish that the API performs medication-step detection, and it shows no continuous camera monitoring or missing-step notifications. Imported API implementations are not supplied, so their underlying analysis capabilities cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
88% confidence
Finding

The supplied code is a video-analysis CLI wrapper, not an implementation of the described continuous medication-monitoring system. It exposes user-associated analysis-history retrieval, which is not described in the declared purpose. No camera capture, medication-specific step detection, incomplete-dose recording, or caregiver notification is visible. The imported skill.get_output_analysis implementation is not supplied, so it could perform medication-specific analysis internally; the snippet alone does not establish that those detection features are absent from the complete system. Nevertheless, the visible input workflow and history-listing capability materially diverge from the declaration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The visible command uses --list and does not demonstrate camera monitoring, step recognition, incomplete-event recording, or caregiver notifications. This is a material difference between the supplied invocation and the declared operational purpose. The module source is unavailable, so its exact listing behavior and any additional capabilities cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The supplied chunk's implemented purpose is a generic backend API service, materially different from the declared camera-based medication monitoring behavior. HTTP helpers could support caregiver notifications, so networking alone is not the mismatch; the concern is the additional storage and user-directory capabilities with no demonstrated connection to the declared workflow. This assessment is limited to the supplied chunk and does not establish that the broader application lacks monitoring functionality or that these methods are 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-medication-compliance-analysis"
description: "Using a fixed camera installed above or beside the home medication area, the system monitors the elderly person's full medication process in real time. With pose estimation and object detection, it recognizes three key steps: (1) picking up — hand takes a tablet/capsule out of the pill box; (2) to-mouth — hand brings the medication to the lips; (3) swallowing — throat/jaw movement indicating a swallow. | 通过家庭药箱区域上方或侧方的固定摄像头,实时监测老年人取药、服药的全过程,利用姿态估计和目标检测技术识别以下三个关�

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.

Continuous camera collection is recommended without a privacy warning or consent guidance.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

This reference recommends round-the-clock camera collection without accompanying consent, minimization, or retention safeguards. In a home healthcare setting, following that recommendation can unnecessarily capture sensitive health activities and bystanders beyond medication events; the recommendation itself does not prove recording is implemented.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The export-only flag is parsed but never checked, so supplying it alongside an input still invokes analysis. Someone relying on the explicit promise not to analyze could unintentionally submit sensitive medication footage for remote processing.

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 API without disclosure to the user.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The local-file path reads the entire video and passes its contents to the API analysis operation without a disclosure or consent boundary in this workflow. Medication footage reveals sensitive health and household information, making an unexpected local-to-remote transfer materially more consequential than ordinary file processing.

Content

No source excerpt is available for this finding.

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

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The program never branches on args.export_env_only, despite promising that this mode will not perform analysis. With a video input present, execution proceeds through identity initialization and analysis, potentially causing an unintended remote submission of private footage.

Content

No source excerpt is available for this finding.

The save() docstring promises creation of a new record, but insertion failures trigger updates to existing records.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Any insertion exception triggers an update by ID and potentially by username or realname, allowing a purported creation operation to overwrite an existing record, including identity and token fields. Exploitation depends on control of supplied models, but unexpected identity-record mutation is particularly concerning in a caregiver-facing system.

Content

No source excerpt is available for this finding.

The ai_chat docstring claims to invoke the OpenClaw agent through subprocess, but the implementation never invokes it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly promises an OpenClaw agent subprocess invocation, but both command construction and subprocess execution are commented out. Instead, L68 creates an empty dictionary, and L70 accesses its nonexistent stderr attribute; the exception is caught, so the method returns no analysis result or session ID. This contradicts the documented analysis behavior rather than merely omitting an implementation detail.

Content

No source excerpt is available for this finding.

FileUtil.open silently truncates existing files.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

Opening a path with mode 'w' immediately erases any existing contents, although this generically named helper does not disclose its destructive behavior. There is no explanatory comment, docstring, confirmation, or operation log; exception reporting does not warn about successful truncation.

Content

No source excerpt is available for this finding.

Ordinary API requests can silently register a remote platform account, beyond the declared monitoring and caregiver-alerting behavior.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

A normal request can trigger a separate login request with silent registration enabled, transmitting the current identity without an explicit enrollment step. Hidden account creation and identity disclosure exceed the described monitoring behavior and are especially sensitive in an elderly-care context, although this request does not itself contain medication footage.

Content

No source excerpt is available for this finding.

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

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The login helper enables registration automatically, and the surrounding request flow saves returned authentication tokens in the local user database. This creates an undisclosed persistent authentication side effect; compromise of that database could expose reusable credentials, although its filesystem protections are not shown.

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 to a configured remote login service, with registration enabled and no explicit consent gate in this flow. The caller can select API_SECRET_KEY as that identity, potentially placing a credential in ordinary account fields; the source does not establish malicious ownership of the destination.

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 YAML files without disclosing the write side effect.

Low
Category
Output Handling
Confidence
93% confidence
Finding

YamlUtil.load creates parent directories and writes a configuration file when the requested path is absent, without a log, prompt, or explanatory comment/docstring. Because BaseEnum.init_subclass invokes this loader at L053 and L058, merely importing configuration classes can modify the filesystem unexpectedly.

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)