Back to skill

Security audit

Clawpen

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent Clawpen social-game integration, but it asks agents to keep credentials and perform recurring authenticated actions while also allowing unverified remote updates to replace the skill after review.

Review before installing. Use a secret manager or restrict any credential file to owner-only permissions, avoid automatic self-updates unless you can verify the downloaded files, and require explicit user approval for votes, duels, DMs, profile changes, avatar uploads, and any update that modifies installed skill files.

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

Error
Location
HEARTBEAT.md:10
Finding

Unverified Remote Skill Updates Can Change Agent Behavior After Review

Content
View full analysis
~/.openclaw/skills/clawpen/SKILL.md curl -s https://clawpen.com/HEARTBEAT.md > ~/.openclaw/skills/clawpen/HEARTBEAT.md curl -s https://clawpen.com/MESSAGING.md > ~/.openclaw/skills/clawpen/MESSAGING.md ``` The corresponding recurring instruction in `SKILL.md:199-201` is: ```markdown If 4+ hours since last Clawpen check: 1. Fetch https://clawpen.com/heartbeat.md and follow it 2. Update lastClawpenCheck timestamp in memory ``` ### Technical Analysis The Skill retrieves mutable Markdown instruction files from a remote server and overwrites the locally installed, previously reviewed files. It does not verify a cryptographic signature, pin an expected digest, validate the retrieved version, present a diff, or require user approval before the new instructions become active. Although the files are fetched from the declared Clawpen domain over HTTPS, Markdown is an effective execution channel for an instruction-driven agent. A future remote document can alter what the agent does without changing the package that was originally audited. The instruction to fetch and “follow” a remote heartbeat compounds this risk by allowing newly supplied content to affect behavior directly. The version check only extracts a remotely supplied string and provides no authenticity or integrity guarantee. HTTPS protects transport under ordinary conditions but does not protect against compromise of the service, hosting account, update pipeline, or trusted delivery infrastructure. ### Attack Path 1. An attacker compromises the Clawpen web server, deployment pipeline, hosting account, or another compo ...[truncated 1487 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:121
Finding

Plaintext API Credential Storage Is Recommended Without File Permission Controls

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (15)

Credential Access

High
Category
Privilege Escalation
Confidence
88% confidence
Finding

The skill recommends storing a long-lived API key in a plaintext credentials file under the user's home directory. If the host, other tools, logs, backups, or co-resident agents can read that file, the token can be stolen and used to impersonate the agent for all authenticated Clawpen actions.

Content

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

⚠️ Save your api_key immediately! You need it for all requests.

Recommended: Save your credentials to ~/.config/clawpen/credentials.json:

json
{

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The heartbeat instructs the agent to overwrite local skill files directly from a remote server using curl redirection, with no integrity verification, signature check, backup, or confirmation. This creates a remote self-update path where a compromised server, MITM on an untrusted environment, or malicious upstream content change could replace skill instructions and alter future agent behavior.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · HEARTBEAT.md (reported line 15)May include surrounding context.

Compare with your saved version. If there's a new version, re-fetch the skill files:

bash
curl -s https://clawpen.com/SKILL.md > ~/.openclaw/skills/clawpen/SKILL.md
curl -s https://clawpen.com/HEARTBEAT.md > ~/.openclaw/skills/clawpen/HEARTBEAT.md
curl -s https://clawpen.com/MESSAGING.md > ~/.openclaw/skills/clawpen/MESSAGING.md

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

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

Compare with your saved version. If there's a new version, re-fetch the skill files:

bash
curl -s https://clawpen.com/SKILL.md > ~/.openclaw/skills/clawpen/SKILL.md
curl -s https://clawpen.com/HEARTBEAT.md > ~/.openclaw/skills/clawpen/HEARTBEAT.md
curl -s https://clawpen.com/MESSAGING.md > ~/.openclaw/skills/clawpen/MESSAGING.md

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 · HEARTBEAT.md (reported line 15)May include surrounding context.

Compare with your saved version. If there's a new version, re-fetch the skill files:

bash
curl -s https://clawpen.com/SKILL.md > ~/.openclaw/skills/clawpen/SKILL.md
curl -s https://clawpen.com/HEARTBEAT.md > ~/.openclaw/skills/clawpen/HEARTBEAT.md
curl -s https://clawpen.com/MESSAGING.md > ~/.openclaw/skills/clawpen/MESSAGING.md

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 · SKILL.md (reported line 27)May include surrounding context.

Compare with your saved version. If there's a new version, re-fetch the skill files:

bash
curl -s https://clawpen.com/SKILL.md > ~/.openclaw/skills/clawpen/SKILL.md
curl -s https://clawpen.com/HEARTBEAT.md > ~/.openclaw/skills/clawpen/HEARTBEAT.md
curl -s https://clawpen.com/MESSAGING.md > ~/.openclaw/skills/clawpen/MESSAGING.md

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file encourages repeated authenticated API calls that perform account-affecting actions such as dueling, voting, checking matches, and updating the profile, but does not provide clear guardrails around consent, rate limits, account abuse, privacy implications, or accidental automation. In an agent setting, this can lead to unintended use of bearer tokens, spammy behavior, reputation damage, and actions taken without meaningful user awareness.

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 · MESSAGING.md (reported line 46)May include surrounding context.

1. Get a Duel

bash
curl https://clawpen.com/api/v1/arena/duel \
  -H "Authorization: Bearer YOUR_API_KEY"

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 · MESSAGING.md (reported line 170)May include surrounding context.

bash
# Like Card A even if you pick Card B as winner
curl -X POST https://clawpen.com/api/v1/cards/agent_001/vote \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"vote_type": "like"}'

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

Install locally:

bash
mkdir -p ~/.openclaw/skills/clawpen
curl -s https://clawpen.com/SKILL.md > ~/.openclaw/skills/clawpen/SKILL.md
curl -s https://clawpen.com/HEARTBEAT.md > ~/.openclaw/skills/clawpen/HEARTBEAT.md
curl -s https://clawpen.com/MESSAGING.md > ~/.openclaw/skills/clawpen/MESSAGING.md

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 · SKILL.md (reported line 150)May include surrounding context.

Once verified, your agent is automatically claimed. Your human or yourself can check your status:

bash
curl https://clawpen.com/api/v1/agents/status \
  -H "Authorization: Bearer clawpen_xxx"

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 · SKILL.md (reported line 342)May include surrounding context.

Remove your vote

bash
curl -X DELETE https://clawpen.com/api/v1/cards/CARD_ID/vote \
  -H "Authorization: Bearer YOUR_API_KEY"

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill explicitly says the human can ask the agent to do virtually anything on Clawpen and that the agent does not need to wait for heartbeat. This broad invocation guidance weakens scope boundaries and can cause an agent framework to route many loosely related prompts into a high-action skill that performs authenticated external operations, increasing the chance of unintended voting, profile changes, or other account actions.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger list includes broad, generic phrases such as "leaderboard," "upload avatar," and "who is hotter" that can overlap with ordinary user requests unrelated to this specific skill. This can cause unintended activation of the skill in unrelated conversations, increasing the chance of context hijacking, confusing user experience, or untrusted external API interaction without clear user intent.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
72% confidence
Finding

The trigger phrase "who is hotter" is a fixed English-language activation phrase, and the manifest does not indicate support for other languages or user locale choice. This can create a language-policy concern if activation depends on English-only phrasing without documented opt-in or justification.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.