Back to skill

Security audit

ZworkerAgentSkillOpenClaw

Security checks for vulnerabilities and agentic risk

Overview

The skill matches its stated zworker-control purpose, but it can run automations, change schedules, sync user identifiers, and forward messages through an unauthenticated local API.

Install only if you intentionally use zworker locally and trust the service on localhost:18803. Review message-forwarding behavior, avoid ambiguous/default recipients, and be cautious because the skill can trigger tasks and change schedules without an authentication layer shown in the artifact.

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/zworker_api.py:22
Finding

Unauthenticated Localhost API Used for Privileged Automation Control

Content
View full analysis
Dict[str, Any]: """ Send an HTTP request to the zworker API. """ url = f"{BASE_URL}{endpoint}" if HAS_REQUESTS: try: if method.upper() == 'GET': response = requests.get(url, params=params, timeout=TIMEOUT) else: headers = {'Content-Type': 'application/json'} response = requests.post( url, params=params, json=data, headers=headers, timeout=TIMEOUT ) response.raise_for_status() result = response.json() except requests.exceptions.RequestException as e: raise ZworkerAPIError(f"HTTP request failed: {e}") except json.JSONDecodeError as e: raise ZworkerAPIError(f"Response JSON parsing failed: {e}") else: try: if params: from urllib.parse import urlencode url = f"{url}?{urlencode(params)}" req_data = None headers = {} if method.upper() == 'POST' and data: req_data = json.dumps(data).encode('utf-8') headers = {'Content-Type': 'application/json'} req = urllib.request.Request( url, data=req_data, headers=headers, method=method.upper() ) with urllib.request.urlopen(req, timeout=TIMEOUT) as response: response_data ...[truncated 3234 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/fetch_notifications.py:21
Finding

Unvalidated Service-Controlled Notification Routing and Content

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (22)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The skill declares capabilities to read local configuration and make HTTP requests to a localhost service, but it does not declare any explicit tool scope or permission boundary. This weakens reviewability and least-privilege controls, making it easier for the skill to access sensitive local data or invoke local services without clear user-visible authorization.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation condition says to use the skill whenever the user mentions the keyword 'zworker', which is overly broad and can trigger privileged actions outside clear user intent. In a skill that can sync user identities, forward messages, and execute tasks, accidental invocation materially increases the chance of privacy or integrity-impacting actions.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill processes potentially sensitive identifiers and message content, but it does not provide clear user-facing disclosure or consent language about what data is collected, where it is sent, and how notifications may be forwarded. This creates privacy risk because users may not realize channel/user mappings and message contents are being transmitted to another application.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

These instructions direct the agent to read platform channel/user identifiers from local configuration and transmit them to another application over an unauthenticated local HTTP interface. Even though the destination is localhost, this is still cross-component data exfiltration of identity metadata and could be abused by a malicious or compromised local service.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The notification forwarding flow retrieves message content from zworker and forwards it to a specified channel/user, with fallback delivery to a default or recent user when userid is empty. This can misroute sensitive content to unintended recipients, and the fallback behavior removes an important safety check on destination accuracy.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documented /control/runTask endpoint triggers state-changing behavior but the documentation does not warn users that invoking it will execute automation actions immediately and may have side effects beyond the local API call. In this skill context, an LLM or user could call it based on ambiguous input, causing unintended task execution on the local zworker instance.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The /control/setSchedule endpoint enables or disables schedules, which can alter ongoing automation behavior, but the documentation lacks a warning about operational impact. In an agent-integrated skill, this increases the risk of accidental service disruption, repeated job execution, or disabling important scheduled actions.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api_endpoints.md (reported line 153)May include surrounding context.

使用示例

cURL 示例

获取任务列表:

bash

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

This is a code file, so SQP-2 applies to safety-critical operations. The call to disable the schedule changes system behavior and may be hard to notice or reverse, yet there is no confirmation prompt before execution and no inline comment/docstring specifically warning that it will disable a live schedule.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The script retrieves notification content from a local automation service and prints the channel, optional user ID, message body, and the full raw payload to stdout. If this output is consumed by logs, other tools, or untrusted users, it can expose personal data and potentially sensitive notification contents without minimization or redaction; the inclusion of the entire raw result increases the chance of accidental over-disclosure.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This Python file contains user-facing natural-language text entirely in Chinese, including the module docstring, CLI description, and argument help strings. Under the policy, forcing a specific language without user opt-in or a documented region-specific justification is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

This code's user-facing natural language is entirely in Chinese, including the module description, CLI help text, and status/error messages. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly documented and justified, which is not present here.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
81% confidence
Finding

This code performs external transmission of potentially sensitive control and user data to an HTTP service without any visible authentication or transport protection. In the context of an automation-control skill, that increases the risk of unauthorized task execution, schedule manipulation, or leakage of synced user information if the local service is exposed or another local process can interfere.

Content

Scanner excerpt · scripts/zworker_api.py (reported line 55)May include surrounding context.

python
response = requests.get(url, params=params, timeout=TIMEOUT)
            else:  # POST
                headers = {'Content-Type': 'application/json'}
                response = requests.post(url, params=params, json=data, 
                                        headers=headers, timeout=TIMEOUT)
            response.raise_for_status()
            result = response.json()

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The run_task function triggers execution of a task via a POST request to /control/runTask, which is an action with potentially system-affecting side effects. Although the docstring describes the parameters, there is no confirmation prompt, user-facing log/print, or explicit warning in this file that invoking it will execute a task.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The set_schedule function changes scheduler state remotely by enabling or disabling a plan through /control/setSchedule. This can materially affect automated behavior, but the code provides no confirmation, user-facing notice, or explicit warning that calling the function changes active scheduling state.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The code sends user identifiers to a local service over plain HTTP with no authentication, integrity protection, or explicit minimization controls. Although localhost reduces exposure, local malware, malicious containers, browser-assisted localhost abuse, or a non-local binding on port 18803 could allow interception or unauthorized collection/modification of user data.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The file presents all instructional content in Chinese and does not indicate that language selection is optional or that the documentation is intended for a specifically justified Chinese-language context. Per SQP-3, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code uses Chinese-only natural-language text in the module docstring, argument descriptions, and runtime messages, with no indication that users can opt into another language. The policy explicitly flags language or locale constraints when a skill forces a specific language without user choice.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file's docstring, CLI description, help text, and runtime messages are written only in Chinese, which imposes a specific language/locale on users. There is no opt-in, language selection, or documentation indicating that this skill is intentionally limited to a Chinese-speaking context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The script's description, argument help text, and runtime messages are all written in Chinese, which imposes a specific language on users without any opt-in or alternative locale support. The policy explicitly flags language or locale constraints when the skill does not offer a user choice or document a justified region-specific limitation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
97% confidence
Finding

The docstring and all CLI-facing output are written in Chinese, which imposes a specific language on users. The file does not indicate that this skill is intended only for a Chinese-speaking or region-specific environment, nor does it provide any opt-in or alternative locale behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
82% confidence
Finding

The module documentation and all user-facing descriptions in this file are written only in Chinese, which imposes a specific language choice without any opt-in or documented regional constraint. Under the stated policy, language constraints should be optional or explicitly justified.

Content

No source excerpt is available for this finding.