Back to skill

Security audit

Unattended Monitoring Skill | 无人陪伴监测技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report behavior that does not clearly match its elderly-care monitoring description, privacy-sensitive data transfers, and unclear or unintended side effects.

Consider not installing until the publisher explains the actual monitoring behavior, the external service and media handling, and the account-provisioning side effects. The scan is partial: a referenced local path was missing, so the results do not fully establish behavior beyond the inspected components.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (23)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied code primarily implements a video-analysis and reporting interface. It does not show the temporal monitoring, elderly-care-specific decisions, family recipient handling, or proactive notifications central to the declared purpose. Video processing could support such monitoring, but the visible implementation does not establish that connection. Imported API implementations are not supplied, so any elderly-care behavior they might perform cannot be verified 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 supplied chunk does not implement the declared monitoring-and-notification workflow. It also does not actually execute the agent command, since that code is commented out. Imported base classes and services could contain additional behavior, but their implementations are not supplied, so the declared functionality cannot be attributed to them from this evidence.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code presents itself as a video-analysis tool and exposes analysis and history-listing operations. It contains no visible timing logic, interaction or visitor tracking, family-recipient configuration, or notification delivery supporting the declared purpose. Video analysis could support elder-care monitoring, but that connection is not established in this chunk. The imported skill implementation is not supplied, so any specialized detection or reminder behavior within it cannot be verified.

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: "unaccompanied-monitoring-analysis"
description: "Determines when elderly people living alone have no interaction or visitors for extended periods, and actively pushes care reminders to family members, suitable for remote care scenarios for elderly people living alone at home. | 无人陪伴监测技能,判定独居老人长时间无人互动来访,主动推送关怀提醒给家属,适用于居家独居老人远程关怀场景"
version: "1.0.27"
license: "MIT-0"
---

# 👤 Unattended Monitoring Skill | 无人陪伴监测技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端�

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 privacy warning about sending household surveillance media to an external API.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

Although cloud API use is mentioned, the workflow does not clearly warn that local household surveillance media will leave the device or establish informed authorization for that transfer. Such footage can reveal vulnerable residents, visitors, household routines, and health-related information, making implicit upload behavior particularly sensitive.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes monitoring analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser promises that --export-env-only will not execute analysis, but the parsed flag is never checked. When supplied with an input, this purported configuration-only invocation still reaches monitoring analysis and can transfer sensitive household media unexpectedly.

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 input files are submitted to the analysis API without disclosure of the upload.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The function reads the complete local media file and passes it to the analysis API without a visible disclosure or authorization gate. Uploading is consistent with remote analysis, but sensitive in-home surveillance warrants explicit authorization rather than assuming that selecting a local file implies consent to external processing.

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 --export-env-only option explicitly promises no analysis, yet execution never branches on its value. With a valid input, the command still invokes video analysis, potentially uploading private footage despite the caller selecting a non-analysis mode.

Content

No source excerpt is available for this finding.

save() is documented as creating a new record but can overwrite an existing record.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

Any insertion exception triggers an update by supplied ID, followed by a username-or-realname fallback that copies nearly all columns into an existing record. If incoming records are conflicting or attacker-influenced, a purported create operation can overwrite identity and token data; such identity corruption is especially concerning in a care-monitoring context.

Content

No source excerpt is available for this finding.

ai_chat claims to invoke the OpenClaw agent and return analysis, but its execution path is disabled and cannot return a result.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26–L34 promises a subprocess invocation and an analysis result or session ID, but the command and subprocess invocation are commented out at L48–L66. Instead, L68 creates an empty dictionary and L70 accesses its nonexistent stderr attribute, causing an exception that is swallowed at L81–L82; the method consequently returns 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 behavior.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The generically named open method always uses mode 'w', which immediately erases an existing file's contents. No docstring, comment, confirmation, or operation-specific log explains this behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently provisions remote accounts, beyond the stated monitoring and care-reminder behavior.

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

An ordinary HTTP operation can automatically submit an identity to a remote login endpoint with silent registration enabled and then persist returned credentials. This creates an undisclosed account-provisioning and identity-disclosure side effect, particularly sensitive for elder-care users; the supplied material does not establish consent or a malicious destination.

Content

No source excerpt is available for this finding.

The HTTP helper performs undisclosed automatic remote login or registration.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The helper silently performs remote login or registration rather than limiting itself to the requested HTTP operation. This is the same underlying provisioning issue as SDI-1, not an additional independent exploit, and can disclose a care user's identity without an explicit onboarding decision.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The POST transmits the selected identity as both openId and mobile, together with its source, during automatic provisioning. The caller can select API_SECRET_KEY as that identity, potentially placing a credential into account-profile fields; this confirms a disclosure risk beyond merely observing legitimate network traffic, although the configured destination is not shown.

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 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 absent, without a warning, log, docstring, or explanatory comment. Because BaseEnum.init_subclass calls this loader at L053 and L058, importing the module can modify the filesystem even though loading configuration ordinarily suggests a 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:

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