Back to skill

Security audit

Virtual Fence Crossing Alert Skill | 虚拟围栏越界预警技能

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious with high confidence because its scanners report unexpected account and credential handling, video uploads and reporting that do not clearly match the advertised baby-safety purpose, and a mode that may analyze footage despite being described as export-only.

Consider the verdict suspicious and review the privacy and account implications before installing: scanners report possible remote video uploads without clear consent, account and token handling, shared-account history exposure, and an export-only option that may still analyze footage. The safety monitoring behavior itself is not demonstrated by the reviewed code, and Skillspector's coverage is partial, so the available evidence is incomplete.

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

Default-account fallback overrides an available upstream sender identity

Content
View full analysis

Impact

In the stated shared-Agent configuration, distinct senders access the same default account's monitoring history and report links. Analysis requests are likewise attributed to that account. This does not establish a vulnerability in an isolated single-user installation.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied chunk contains no safety-zone configuration, baby tracking, boundary detection, hazard recognition, or alert delivery. Database persistence can be supporting infrastructure, but the concrete model and specialized operations here concern user identities and tokens rather than safety zones or alerts. This establishes a mismatch for the supplied chunk; it does not establish malicious intent or prove that the full skill lacks safety functionality elsewhere. No network transmission or token exfiltration is shown.

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 safety-monitoring workflow. Its AI-agent invocation is disabled, so it does not actually execute commands or obtain AI analysis. Imported base classes may provide additional behavior, but their implementations are not supplied and cannot establish the claimed functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk contains no safety-zone configuration, infant detection, hazard-distance evaluation, or alert delivery logic. Generic utilities and networking could support the declared skill, so their presence alone is not a mismatch. However, automatic account provisioning, persistent identity management, and attaching credentials to unrestricted caller-supplied destinations introduce substantial capabilities not represented in the description. This assessment is limited to the supplied utility module; it does not establish whether other files implement the advertised safety features or whether any malicious destination is actually contacted.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code implements a video-analysis and reporting workflow. It contains no visible safety-zone configuration, boundary-crossing detection, baby-specific hazard logic, or immediate alert delivery. Polling for an analysis report is not equivalent to real-time safety monitoring. Imported API implementations could provide additional functionality, but their behavior is not shown, so the supplied chunk does not substantiate the declared safety capabilities.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied chunk exposes video analysis and history-listing operations but contains no visible safety-zone configuration, baby-specific hazard detection, continuous monitoring, or alert delivery. Its analysis behavior is delegated to skill.get_output_analysis, whose implementation is not supplied, so baby-safety functionality inside that dependency cannot be ruled out. Nevertheless, the visible history-retrieval capability is undeclared, and the shown interface does not substantiate the stated immediate geofence-alert purpose. File output and identity resolution are supporting implementation details, not independently suspicious capabilities.

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: "virtual-fence-intrusion-warning-analysis"
description: "Customizes safety zones, identifies babies crawling out or approaching dangerous areas such as bedsides/windowsills, and immediately alerts to protect baby safety. | 虚拟围栏越界预警技能,自定义安全区域,识别婴儿爬出、靠近床边/窗台危险区域立即报警,守护宝宝安全"
version: "1.0.28"
license: "MIT-0"
---

# 🚧 Virtual Fence Crossing Alert Skill | 虚拟围栏越界预警技能
> **智能分析中枢** · 图片/视频智能分析 · 结构化报告 · 历史报告云端查询

---

## 🧭 技能概览 | Overview

| 模块 | 内容 |
|

The analysis workflow lacks a clear privacy warning about sending home-monitoring footage to a remote API.

High
Category
Output Handling
Confidence
94% confidence
Finding

The workflow instructs automatic processing of local home-monitoring footage without a clear pre-upload disclosure or consent step. References to APIs and cloud history do not adequately explain that identifiable infant and household video will leave the local environment.

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.

Generic history-report phrases can activate this specialized skill without a virtual-fence context.

Medium
Category
Trigger Abuse
Confidence
91% confidence
Finding

Generic phrases such as 'historical reports' are paired with mandatory automatic cloud-history retrieval without requiring virtual-fence context. An unrelated request could therefore initiate remote account activity or surface sensitive household reports unexpectedly, especially in a shared conversation.

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 promises that --export-env-only will not perform analysis, but the flag is never checked. With an input supplied, execution still initializes identity and invokes analysis, potentially transmitting sensitive 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 input files are passed in full to the analysis API without disclosure that their contents will be uploaded.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The code reads the entire local video and passes its contents as a multipart file to the analysis service without a visible disclosure or consent gate. For infant home-monitoring footage, an unexpected remote upload exposes particularly sensitive personal and household information.

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 flag is parsed but never used to prevent analysis. Supplying it alongside a video input still invokes identity initialization and the analysis service, violating the caller's explicit expectation of no analysis and potentially causing an unintended upload.

Content

No source excerpt is available for this finding.

The skill includes shared user-account and credential database management unrelated to virtual-fence monitoring.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

The User model stores account identifiers, personal information, token, and open_token, and UserDao exposes inherited CRUD operations over those records. Additionally, every Dao initialization creates registered tables and attempts to alter sys_user (L180–L215), introducing account-database mutations rather than merely persisting safety-zone settings or intrusion alerts.

Content

No source excerpt is available for this finding.

ai_chat documents invoking the OpenClaw agent, but the invocation is disabled and no analysis is performed.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes the OpenClaw agent through subprocess. However, the command and subprocess call are commented out (L48–L66), and the replacement dictionary at L68 causes an attribute error at L70 that is caught and suppressed, so the method returns no analysis result.

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

L101 opens the supplied path in 'w' mode, immediately erasing existing contents even before the caller writes anything. The generic open method has no confirmation, action-specific log, docstring, or comment explaining this behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

The request helper silently registers external user accounts, a capability not declared by the baby-safety monitoring manifest.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

When cached credentials are unavailable, the request helper can submit silent=1 and register=1 to an external login endpoint without a separate enrollment decision. This creates an undisclosed account-management and identity-disclosure side effect beyond the stated baby-monitoring purpose; no malicious destination is established.

Content

No source excerpt is available for this finding.

Ordinary HTTP requests can silently trigger remote account registration without disclosure.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

An ordinary HTTP operation can implicitly invoke remote registration when tokens are missing, rather than merely perform the requested operation. This is the same underlying enrollment issue as the SDI-2 finding and removes the user's opportunity to approve an external account and associated identity transmission.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
93% confidence
Finding

The POST transmits the selected identity as both openId and mobile without explicit consent. More seriously, the caller prioritizes ApiEnum.API_SECRET_KEY as that identity, so a configured API secret can be copied into an account-registration body at the health-service endpoint, outside its intended authentication-header role; the source does not establish that endpoint's trust relationship.

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 writes a configuration file when the path is missing.

Low
Category
Output Handling
Confidence
94% confidence
Finding

YamlUtil.load modifies the filesystem without a comment, docstring, confirmation, or user-facing log disclosing that behavior. Because BaseEnum.init_subclass calls this loader at L053 and L058, these writes can occur merely when importing configuration classes, rather than following 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 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/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()