Back to skill

Security audit

clawprint

Security checks for vulnerabilities and agentic risk

Overview

This skill has a coherent Clawprint registration purpose, but it asks for broad local read/write/command powers and handles API credentials with unclear safeguards.

Install only if you are comfortable granting broad local file and command authority to a credential-handling API skill. Keep Clawprint keys out of normal chat/log output, use only the official Clawprint API origin, prefer a sandboxed environment, and avoid storing reusable credentials unless you understand where and how they are protected.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:125
Finding

User-Controlled API Endpoint Can Expose Authentication Credentials

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:125-146
Vulnerability Type: User-controlled authenticated API destination
Risk Level: High

Vulnerable Code

json
{
  "action": "store_credentials",
  "api_key": "cp_live_xxxxxxxxxxxx",
  "handle": "my-agent",
  "base_url": "https://clawprint.io/v3"
}
markdown
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | No | API key with the `cp_live_` prefix; required for credential management |
| base_url | string | No | API base URL; defaults to `https://clawprint.io/v3` |

Technical Analysis

The Skill defines base_url as an input parameter while also accepting and using a Clawprint API key for credential-management and authenticated API operations. It does not require the URL to use the exact trusted Clawprint origin, define a hostname allowlist, prevent cross-origin redirects, or prohibit authorization credentials from being attached to requests sent to an overridden destination.

Consequently, an attacker who can influence invocation parameters may select an attacker-controlled HTTPS endpoint. If an implementation follows the documented workflow and attaches the API key to that request, the credential and associated identity data can be disclosed.

No implementation script is included in the project, so the precise request construction cannot be verified. The vulnerability exists in the unsafe interface and configuration instructions rather than in executable code.

Attack Path

  1. The victim configures a valid CLAWPRINT_API_KEY or submits an API key through the documented input.
  2. An attacker supplies or induces an invocation containing a malicious value such as base_url=https://attacker.example/v3.
  3. The agent follows the Skill's instruction to perform a credential-management or authenticated API operation against the supplied base URL.
  4. The implementation attaches the API key in an authorization header, request body, or equivalen ...[truncated 720 chars]
Remediation
View remediation

Remediation Suggestions

  • Remove base_url from user-controlled Skill input and use a fixed, internally configured API origin.
  • If endpoint configurability is necessary, enforce an exact allowlist of trusted schemes, hosts, ports, and path prefixes.
  • Require HTTPS and reject URLs containing user-info components, unapproved ports, IP literals, ambiguous hostnames, or untrusted subdomains.
  • Resolve and validate the final destination before sending credentials.
  • Disable redirects for authenticated requests, or strip authorization data whenever a redirect changes the origin.
  • Keep API keys out of request bodies and logs; use a dedicated authorization header only for the validated trusted origin.
  • Apply narrowly scoped, short-lived credentials and support immediate key revocation and rotation.
  • Add tests proving that credentials are never transmitted to an overridden host or across a cross-origin redirect.

T08 · Insecure Dependencies

Warning
Location
SKILL.md:193
Finding

Unpinned Third-Party Dependency Installation

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:193
Vulnerability Type: Unpinned package installation without integrity verification
Risk Level: Medium

Vulnerable Code

markdown
| Dependency | Type | Required | Installation method |
|---|---:|---:|---|
| requests | Python library | Yes | `pip install requests` |

Technical Analysis

The Skill instructs users or agents to install requests without specifying a reviewed version, dependency lock file, package hash, or trusted package-index configuration. The installed artifact can therefore vary over time, making the environment non-reproducible and allowing future package or transitive-dependency changes to enter the execution environment without review.

The package name is correctly spelled and no malicious package is identified in the audited project. Therefore, this is an unsafe supply-chain practice rather than evidence that the current dependency is malicious.

Attack Path

  1. A user or agent follows the documented command pip install requests.
  2. pip resolves the latest compatible release and its transitive dependencies from the configured package index.
  3. A compromised package release, compromised index, unsafe alternate index, or future vulnerable release is selected because no version or hash constraint prevents it.
  4. Package installation or later import executes affected dependency code in the Python environment.
  5. That code receives the privileges of the installing or executing process and may access data available to that environment.

Impact Assessment

Exploitation could allow dependency code to execute with the privileges of the Python process. Depending on the runtime environment, this may expose local files, environment variables such as CLAWPRINT_API_KEY, network access, and files writable by the invoking account. The audited material does not show elevated installation, so root or administrator compromise cannot be assumed.

Remediation
View remediation

Remediation Suggestions

  • Pin requests and all transitive dependencies to reviewed versions in a lock file.
  • Record cryptographic hashes and install with pip install --require-hashes.
  • Use an explicit, trusted package index and prevent unintended fallback to public or user-configured alternate indexes.
  • Install dependencies inside an isolated virtual environment using a non-privileged account.
  • Regularly scan pinned dependencies for known vulnerabilities and update them through a controlled review process.
  • Prefer a reproducible command such as python -m pip install --require-hashes -r requirements.txt.
  • Document supported Python versions and verify the lock file in CI.

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:20
Finding

Skill Declares Broad File and Command-Execution Permissions Beyond Its Core Needs

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:20-23
Vulnerability Type: Excessive tool permissions and failure to enforce least privilege
Risk Level: Medium

Vulnerable Code

yaml
tools:
- read
- exec
- write

Technical Analysis

The Skill declares general-purpose file reading, file writing, and command execution even though its documented core behavior is registration, reputation querying, API communication, and credential management. The file provides no executable implementation that constrains command execution to a whitelist or restricts file access to a dedicated configuration location.

General exec, read, and write capabilities substantially increase the consequences of malicious delegated-task content, prompt injection, or incorrect agent behavior. The issue is the unnecessary privilege boundary exposed by the Skill manifest; the audit found no direct instruction that actively exploits these permissions.

Attack Path

  1. The Skill is loaded with the declared read, write, and exec capabilities.
  2. The agent processes attacker-controlled content, such as an external task description or resource-exchange request.
  3. The malicious content induces the agent to inspect a sensitive local file, alter a workspace file, or execute a shell command.
  4. Because the Skill has broad tools rather than narrowly scoped operations, the requested action is technically available.
  5. Data may be exposed through later API communication, or local files and commands may be affected within the agent process's permissions.

Successful exploitation depends on the host agent honoring malicious instructions and lacking additional sandbox or confirmation controls. The Skill itself does not contain an explicit command-injection payload.

Impact Assessment

The accessible scope may include files readable or writable by the agent process and commands executable by its operating-system account. Potential consequences include source-cod ...[truncated 260 chars]

Remediation
View remediation

Remediation Suggestions

  • Remove exec unless a concrete core operation demonstrably requires command execution.
  • Replace general-purpose tools with narrowly defined operations for registration, reputation queries, and credential storage.
  • Restrict reads and writes to a dedicated configuration directory with explicit path validation.
  • Deny absolute paths, path traversal, symbolic-link escapes, and access to unrelated project or user files.
  • If command execution is unavoidable, use a fixed executable and argument array rather than a shell, enforce an operation allowlist, and never concatenate user input into commands.
  • Run the Skill in a sandbox under a dedicated non-privileged account with minimal filesystem and network access.
  • Require explicit user confirmation before sensitive file access, credential operations, or command execution.
  • Treat external task descriptions and API responses as untrusted data, not executable instructions.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (6)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The skill’s security section claims that sensitive information is not exposed and that API keys are masked in logs, but the examples and output schemas elsewhere show full cp_live_... API keys being returned in plaintext. This contradiction normalizes secret exposure and increases the chance that agents, logs, transcripts, or downstream tooling will store reusable credentials.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill documents system command execution as a supported feature even though the core use case is registration, reputation lookup, and credential management for an external service. Unnecessary command execution materially increases the attack surface because user-controlled or model-generated inputs could be routed into shell operations, leading to host compromise, data loss, or secret exfiltration.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The trigger/use guidance is extremely broad, covering generic efficiency, automation, batch processing, and workflow optimization. In an agent ecosystem, such vague activation criteria can cause the skill to be invoked for unrelated tasks, increasing the likelihood that its read/write/exec capabilities and external API behaviors are applied in unsafe or unintended contexts.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill instructs users to store credentials locally and call an external API, but it does not provide a clear, prominent warning about the security implications for local secrets, outbound data transfer, and possible system-side effects. In practice, this can lead users or agents to persist reusable tokens insecurely or send sensitive metadata to third-party services without informed consent.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The manifest and main description present a narrowly scoped Agent discovery/reputation service, but later sections advertise broad local file processing, API aggregation, and general command execution capabilities. This scope mismatch can cause an agent platform to invoke the skill in contexts far beyond its stated purpose, expanding access to local files and execution surfaces without clear justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
76% confidence
Finding

L007-L011中的显示名称、摘要和主要描述以中文为主,仅夹杂少量英文,没有说明这是面向特定中文区域用户的限定工具,也没有提供语言选择或多语言使用指引。对于通用技能文档,这种默认固定语言可能不符合语言/locale需经用户选择或明确说明的政策要求。

Content

No source excerpt is available for this finding.