Back to skill

Security audit

UseClaw Publish

Security checks for vulnerabilities and agentic risk

Overview

This skill is purpose-built for publishing to UseClaw, but it needs Review because it installs an unchecked remote CLI and handles a persistent publishing token with limited safeguards.

Install only if you trust UseClaw's remote CLI delivery path. Prefer a pinned or signed CLI release before use, treat the UseClaw token as secret, avoid putting real tokens in chat or shell history, review content before publishing, and rotate or revoke the token if it may have appeared in logs.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Warning
Location
skill.json:8
Finding

Unverified Remote CLI Payload Downloaded and Installed as an Executable

Content
View full analysis
Remediation
View remediation
" tmp="$(mktemp)" trap 'rm -f "$tmp"' EXIT curl --fail --show-error --location \ "https://useclaw.net/cli/releases/${version}/useclaw" \ --output "$tmp" printf '%s %s\n' "$expected_sha256" "$tmp" | sha256sum --check - install -m 0755 "$tmp" "$HOME/.local/bin/useclaw" ``` ]]>

T09 · Insecure Skill Coding Practices

Note
Location
SKILL.md:39
Finding

UseClaw Authentication Token Passed Through a Command-Line Argument

Content
View full analysis
--url https://useclaw.net [--slug ] ``` The command-line token parameter is also defined in `skill.json:19-25`: ```json "token": { "type": "string", "required": true, "flag": "--token", "description": "平台颁发的 agent_token" } ``` ### Technical Analysis The Skill requires the authentication token to be supplied through the `--token` command-line flag. Secrets passed as process arguments may be exposed through process inspection while the command is running. Depending on the execution environment, the complete command may also be retained in shell history, terminal transcripts, Agent tool-call records, diagnostic output, telemetry, or automation logs. Persistent authentication is necessary for the Skill's declared publishing functionality, and the documented credential path does not by itself exceed minimum privileges. However, transmitting the token through an argument creates avoidable exposure before it is stored. The audited files do not establish whether the external CLI redacts the token, applies restrictive permissions to the credential file, or prevents accidental logging. ### Attack Path 1. A user provides a valid personal UseClaw token to the Agent. 2. The Agent executes `useclaw setup --token ...`. 3. The complete argument vector is exposed through process inspection or retained by execution history, Agent logs, terminal capture, telemetry, or debugging infrastructure. 4. A local user, operator, log reader, or attacker with access to those records retrieves the token. 5. The attacker reuses the token against UseClaw within the permissions assigned to it. ### Impact Assessment A disclosed token could permit unauthorized actions available to the associated UseClaw identity, potentially including publishing ...[truncated 422 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (5)

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Referencing a concrete credentials file path is not inherently malicious, but in this context it identifies where reusable secrets are stored and normalizes persistent local credential storage without any security caveats. If an agent or user is induced to inspect, copy, or mishandle that file, the stored token could be exfiltrated and reused to publish as the victim.

Content

Scanner excerpt · SKILL.md (reported line 47)May include surrounding context.

Credentials are stored at:

text
~/.config/useclaw/credentials.json

3. Publish content

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · skill.json (reported line 9)May include surrounding context.

json
"cli": {
    "name": "useclaw",
    "download": "curl -sL https://useclaw.net/cli/useclaw-cli.sh -o ~/.local/bin/useclaw && chmod +x ~/.local/bin/useclaw",
    "credentials_path": "~/.config/useclaw/credentials.json"
  },
  "commands": [
    {

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill directs the operator to input a personal access token on the command line and notes where credentials are stored, but it does not warn that the token is sensitive, persistent, and should not be exposed in logs, shell history, or transcripts. In an agent setting, this increases the chance that secrets are mishandled or echoed back into observable channels, which can lead to account compromise.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The skill collects a long-lived token and stores it in a local credentials file, but the manifest does not warn the user about local persistence, file location, or the sensitivity of the credential. This can lead to accidental exposure through backups, shared machines, weak file permissions, or users providing tokens without understanding they will be stored on disk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill is explicitly designed to publish user-provided content to an external platform, but the manifest provides no privacy, consent, or disclosure warning before transmission. This creates a real risk that an agent may send sensitive drafts, proprietary data, or personal information off-platform without the user fully understanding that publication is external and potentially public.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.