Back to skill

Security audit

Test Skill

Security checks for vulnerabilities and agentic risk

Overview

The tool appears intended to publish skills to ClawHub, but it ships a hardcoded bearer token and can upload unintended local files.

Review the directory before using this tool, because matching top-level files will be uploaded to ClawHub. Do not install or run it with the bundled token as-is; the publisher should revoke that token and require each user to authenticate with their own scoped credential.

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

Error
Location
publish.py:10
Finding

Hard-Coded ClawHub Bearer Token Exposes Publishing Privileges

Content
View full analysis
` to the ClawHub upload or publishing APIs. 4. If the token remains valid, the API processes requests using the token ...[truncated 749 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
publish.py:35
Finding

Extension-Based Bulk Upload Can Disclose Unintended Files

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (9)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill instructs users to publish a local skill directory to ClawHub but does not warn that local skill contents will be transmitted to an external service. This can lead users to unintentionally upload sensitive code, configuration, secrets, or proprietary material from the specified path, especially because the examples encourage publishing a whole local directory.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

A hardcoded bearer token is embedded directly in the source and then used for authenticated publication requests. Anyone with access to this file can reuse the credential to publish, modify, or abuse the associated account, and the token is difficult to rotate once copied or committed.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% 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 · publish.py (reported line 17)May include surrounding context.

python
def upload_file(filename, content_type="text/plain"):
    """获取上传URL并上传文件"""
    resp = requests.post(
        "https://clawhub.ai/api/cli/upload-url",
        headers={"Authorization": f"Bearer {TOKEN}"},
        json={"filename": filename, "contentType": content_type}

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% 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 · publish.py (reported line 17)May include surrounding context.

python
def upload_file(filename, content_type="text/plain"):
    """获取上传URL并上传文件"""
    resp = requests.post(
        "https://clawhub.ai/api/cli/upload-url",
        headers={"Authorization": f"Bearer {TOKEN}"},
        json={"filename": filename, "contentType": content_type}

Tainted flow: 'upload_url' from requests.post (line 23, network input) → requests.put (network output)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · publish.py (reported line 27)May include surrounding context.

python
if upload_url:
        # 上传文件内容
        requests.put(upload_url, data=content, headers={"Content-Type": content_type})
    
    return True

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script automatically reads local files from the provided directory and uploads them to a remote service without any explicit runtime warning, confirmation, or detailed disclosure of what will be transmitted. This increases the risk of accidental exfiltration of sensitive files, especially when users run the tool on the wrong directory or do not realize publication includes all matching files.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The natural-language documentation is entirely in Chinese, with no indication that this locale is optional or intentionally restricted to a specific audience. Per the policy, forcing a specific language without user opt-in or documented justification is 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
85% confidence
Finding

The natural-language fields on these lines are written only in Chinese, which suggests a fixed language choice in the skill metadata/output without any visible user opt-in or stated locale-specific constraint. The policy requires avoiding forced language or locale behavior unless choice or justification is provided.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
74% confidence
Finding

The top-level natural-language description is written only in Chinese and gives no indication that language is configurable or user-selected. This may violate language-choice policy when the skill is used in broader contexts without explicit locale opt-in.

Content

No source excerpt is available for this finding.