Back to skill

Security audit

Elderly Toilet Time Abnormal Detection (>30 min) | 老年人如厕时间异常(超30分钟)识别

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners report undeclared account and identity handling, possible exposure of sensitive video, and a mismatch between its stated elderly bathroom monitoring purpose and the behavior they observed.

Consider avoiding installation unless you can verify the external video-processing service and its privacy protections, understand what identity and account data may be sent or stored, and confirm that export-only mode truly prevents analysis. The scan is partial, so it does not resolve the missing local reference or establish all downstream behavior.

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_toilet_time_abnormal_analysis.py
Finding

Upstream sender identity is discarded in favor of a shared default account

Content
View full analysis

Impact

A different sender can receive the default account's sensitive elderly-monitoring history. Analysis requests under the same conditions are also associated with the shared account rather than the supplied sender identity.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied chunk does not implement the declared monitoring workflow and instead contains generic skill scaffolding and a nonfunctional chat wrapper. It does not actually launch a subprocess because that code is commented out. Imported base classes and API services are not supplied, so their behavior cannot be assessed; this finding is limited to the visible code.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Generic file, date, and polling helpers could legitimately support the declared monitoring system and are not themselves evidence of a mismatch. However, this chunk also implements an undeclared account, authentication, and billing integration with local identity access and remote registration. It contains no visible camera processing, silhouette detection, occupancy tracking, threshold evaluation, or caregiver alert logic. Other files might implement those features, but the supplied chunk exposes material identity and commercial-service behavior that the description does not disclose. The code does not establish malicious intent or demonstrate that requests have actually been executed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk implements user-account persistence rather than camera processing, entry/exit tracking, occupancy timing, or safety alerts. Generic database infrastructure could support the declared system and would not alone establish a mismatch; however, this chunk specifically manages identity, demographic, and token records without showing a connection to bathroom monitoring. The mismatch concerns the supplied code only: it does not establish whether other parts of the skill implement the declared monitoring functionality, and no external transmission of these records is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code exposes video analysis and identity-linked history retrieval, but contains no visible implementation of the declared occupancy-monitoring workflow or privacy-preserving silhouette restriction. Analysis is delegated to an unavailable skill implementation, so the chunk alone cannot establish whether those specialized functions occur downstream. Nevertheless, the explicit history-listing capability is undeclared, and the visible interface materially differs from the described monitoring-and-alerting system. Actual video transmission and downstream processing cannot be confirmed from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The skill promises privacy-preserving silhouette detection but its workflow accepts local bathroom videos without requiring verified de-identification before API processing. This mismatch can expose highly intimate footage; however, absence of local tracking code alone does not prove that remote analysis lacks those capabilities.

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 analysis workflow lacks a clear warning that sensitive local bathroom-monitoring footage is processed through an external API.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

Although the document mentions an API, it does not clearly warn that local bathroom footage is transmitted to an external processor before analysis. General consent to monitoring and recommendations to blur footage do not establish informed consent to external processing of intimate video.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes video analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to analyze, but the parsed flag is never checked. When an input is supplied, execution still initializes identity and invokes analysis, potentially transmitting sensitive bathroom 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 video contents are submitted to an API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The implementation reads the entire local video and passes its unchanged contents to the analysis API. It performs neither privacy transformation nor a consent check at this boundary, making accidental external disclosure especially serious for bathroom-monitoring footage.

Content

No source excerpt is available for this finding.

The --export-env-only option promises not to perform analysis, but does not prevent it.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only flag is parsed but never used to stop execution. With an input present, the program still resolves identity and calls video analysis, violating the explicit no-analysis promise and potentially causing an unwanted upload.

Content

No source excerpt is available for this finding.

ai_chat documents agent invocation and analysis results, but never invokes the agent or returns an analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L25–L34 promises to invoke openclaw agent through subprocess and return an analysis result or session ID. However, command construction and execution are commented out (L48–L66); the empty dictionary at L68 then causes result.stderr to raise an exception, which is swallowed at L81–L82, so calls return None without performing the documented analysis.

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

L101 opens the supplied path with mode 'w', immediately erasing existing contents even before the caller writes anything. The generic method name does not disclose this behavior, and there is no explanatory docstring, comment, confirmation, or operation log.

Content

No source excerpt is available for this finding.

The HTTP helper can silently register a remote user account, an undeclared capability beyond occupancy monitoring and caregiver alerts.

Medium
Category
Excessive Agency
Confidence
91% confidence
Finding

The generic HTTP helper can submit a remote registration request with silent=1 and register=1 when credentials are missing, without a visible consent gate. This introduces an undisclosed identity-provisioning side effect into a bathroom-monitoring skill, where unexpected disclosure of user identifiers is particularly sensitive.

Content

No source excerpt is available for this finding.

The HTTP wrapper silently performs remote login or registration and persists returned credentials.

Medium
Category
Output Handling
Confidence
93% confidence
Finding

A routine HTTP call can trigger remote login or registration and then persist returned access tokens in the local user database, without a visible explicit enrollment step. This combines an unexpected external identity operation with durable credential storage; the provided code does not demonstrate dedicated protection for those stored secrets.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
91% confidence
Finding

This POST sends the current identity to a configured remote login service as both openId and mobile; the caller can derive that identity from ApiEnum.API_SECRET_KEY, potentially placing a secret into identity fields and associated server logs. External communication may legitimately support alerts, but this implicit identity transmission is distinct from alert delivery and lacks a visible consent or destination-validation gate.

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

YamlUtil.load creates parent directories and writes a YAML file when the requested path does not exist, without a warning, log, docstring, or explanatory comment. BaseEnum.init_subclass calls this loader during class definition (L052–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 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