Back to skill

Security audit

Intelligent Outdoor Care Monitoring & Analysis Tool | 户外看护智能监测分析工具

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious with high confidence because scanners report undeclared account and identity handling, privacy risks around remote media analysis, and a mode that may analyze media despite being labeled export-only.

Consider the verdict suspicious and review the reported account, identity, and media-sharing behavior before installing. In particular, clarify where surveillance media and identity data go, whether account registration and report retention are acceptable, and whether the export-only option can cause analysis when media is supplied. The scan was partial because a referenced local path was missing, so the evidence does not establish that every part of the skill was covered.

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

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

Content
View full analysis

Impact

Reports submitted under the fallback account by one sender can be retrieved by another sender using --list; new surveillance analyses are also associated with that shared account.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk contains no image processing, object detection, target-area handling, or batch image analysis. Database persistence can be a supporting implementation detail, but this code specifically manages user identities, personal information, and token fields without an evident connection to the declared surveillance functionality. Its demonstrated purpose therefore materially differs from the description. This conclusion is limited to the supplied chunk; it does not establish that the full skill lacks detection functionality. 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 CLI explicitly accepts local MP4 files or MP4 URLs and offers a video-history listing mode. It does not expose batch image input or target-area configuration. The delegated analysis implementation is not supplied, so whether it detects the advertised target classes cannot be verified. The mismatch is based on the visible video-oriented workflow and additional history-retrieval capability, not on assumptions about the backend.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

Generic file, JSON, polling, and HTTP helpers could legitimately support the declared monitoring skill, and the absence of detection code in a shared utility file is not itself a mismatch. However, this chunk additionally implements an undeclared account-provisioning and identity-persistence workflow: it reads data/smyx-api-key.txt, accesses a local user database, and calls /sys/phoneLogin with silent registration enabled. Its request wrapper also accepts arbitrary absolute URLs while adding configured authentication credentials, with no destination allowlist visible here. These are material account-management and credential-handling capabilities beyond the declared image-detection purpose. The code does not establish that an untrusted destination is actually used.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The image-analysis commands align with the declared purpose, and detail selection and file output are supporting features. However, remote-video analysis and historical-report retrieval are additional user-facing capabilities absent from the description. This assessment is limited to the interfaces documented in the supplied SKILL.md; their implementation and runtime behavior 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: "outdoor-monitoring-analysis"
description: "Detects targets such as people, vehicles, non-motorized vehicles, and pets within target areas; supports batch image analysis, suitable for outdoor surveillance scenarios like courtyards, orchards, and farms. | 户外看护智能监测分析技能,检测目标区域内的人、车、非机动车、宠物等目标,支持批量图片分析,适用于庭院、果园、养殖场等户外区域看护场景"
version: "1.0.23"
license: "MIT-0"
---

# 🏞️ Intelligent Outdoor Care Monitoring & Analysis Tool | 户外看护智能监测分析工具
> **智能分析中枢** · 图片

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 surveillance media to a remote API and associating reports with a persistent identity.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The workflow automatically associates reports with a persistent identity without clearly warning that surveillance media is transferred to an external service and retained or linked through cloud reports. Although cloud API use is mentioned, the lack of a clear pre-upload privacy notice can cause users to disclose identifiable people, property layouts, and activity patterns without informed authorization.

Content

No source excerpt is available for this finding.

The documented environment-export-only mode still executes image analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The parser accepts --export-env-only and promises not to perform analysis, but the parsed flag is never checked. When an input is also supplied, execution proceeds into analysis, potentially transferring sensitive surveillance media despite the caller explicitly selecting a non-analysis mode.

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

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The function reads the complete selected local media file and passes its contents into the remote analysis workflow without a visible disclosure or authorization gate. Remote processing is consistent with the skill's purpose, but surveillance footage can expose people and private locations, making unclear upload consent a meaningful privacy risk rather than evidence of malicious exfiltration.

Content

No source excerpt is available for this finding.

The documented export-only mode still executes analysis.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The --export-env-only option is parsed but never used to prevent analysis. A caller supplying media along with this supposedly non-executing mode will still trigger analysis, creating a risk of unintended surveillance-media disclosure and remote processing.

Content

No source excerpt is available for this finding.

The skill implements persistent demographic user-profile management unrelated to outdoor target detection.

Medium
Category
Excessive Agency
Confidence
86% confidence
Finding

The User model stores real names, email addresses, birthdays, sex, and age (L455–L459), and UserDao inherits database read/write/delete operations (L470–L473). Although authentication could support a monitoring service, managing these demographic profiles is not justified by the manifest's image-analysis and target-detection purpose; this is an implemented storage capability, not evidence that such data is automatically collected.

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

Opening a path with mode 'w' immediately erases an existing file's contents, even before the caller writes anything. This generic open helper has no docstring, explanatory comment, confirmation, or user-facing log disclosing that behavior; exception tracing does not disclose successful truncation.

Content

No source excerpt is available for this finding.

Analysis requests can silently register a remote user account, beyond the declared image-detection functionality.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

When tokens are unavailable, an ordinary request can trigger phoneLogin with silent=1 and register=1, transmitting the current identity for remote account creation without a separate consent step. Image detection does not inherently authorize account registration or the resulting persistent association of an identity with the service.

Content

No source excerpt is available for this finding.

HTTP requests can silently register a remote account using the current identity.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The request wrapper can create a remote account as an implicit authentication fallback, using the current identity as both openId and mobile. This hides a persistent remote side effect inside routine HTTP requests and exceeds what a user would necessarily authorize when requesting outdoor image analysis.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
95% confidence
Finding

The POST transmits the selected identity to the configured health-service login endpoint; current__user_name explicitly prefers API_SECRET_KEY, so a missing-token flow can send an API secret as both openId and mobile. Treating a credential as profile data can expose it to account records and logging systems beyond its intended authentication handling, regardless of whether the endpoint is legitimate.

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"):

L017–L020 silently create directories and a configuration file during a load operation, including when this module is imported.

Low
Category
Output Handling
Confidence
91% confidence
Finding

YamlUtil.load creates parent directories and writes a YAML file when the requested path is missing, without a prompt, log, comment, or docstring disclosing that side effect. BaseEnum.init_subclass invokes this loader during class definition (L052–L054), 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:

ai_chat claims to invoke an analysis agent, but agent execution is disabled.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The docstring at L26 explicitly states that this method invokes the openclaw agent through subprocess. However, the invocation at L61–L66 is commented out, and the empty dictionary at L68 causes an attribute error at L70 that is caught and suppressed, so the method performs no agent analysis and returns no result.

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