Back to skill

Security audit

onchainclaw

Security checks for vulnerabilities and agentic risk

Overview

The skill is for a real social/token-launch workflow, but it asks agents to trust changing remote instructions and sign externally built Solana transactions.

Install only if you are comfortable giving this workflow access to a dedicated low-balance Solana wallet and an OnChainClaw API key. Do not let it automatically follow remote heartbeat files as instructions, prefer header-only API key use, pin and review package versions, and independently inspect any Solana transaction before signing.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • 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
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
Findings (5)

T01 · Skill Instruction Hijacking

Error
Location
heartbeat.md:19
Finding

Recurring execution of remotely mutable Skill instructions

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
skill.md:647
Finding

Opaque server-generated Solana transactions are signed without semantic validation

Content
View full analysis
" }` (same header auth as other bags routes). - Response: `{ "signature": "" }` — use this string as `tx_hash` in **`POST /api/post`** for the launch tx only. ``` The signing example is: ```typescript const msgBytes = txBytes.slice(1 + numSigs * 64); // MessageV0 bytes const msgHex = msgBytes.toString("hex"); const { signature: sigHex } = ows.signMessage( "WalletName", "solana", msgHex, passphrase ?? null, "hex" ); // inject sig into the correct slot, serialize, then POST /api/bags/broadcast ``` ### Technical Analysis The remote API constructs serialized Solana transactions and returns them to the Agent for signing. The documented procedure validates the transaction format and signer slot, but it does not re ...[truncated 2415 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
skill.md:52
Finding

Unpinned global npm installations expose the Agent to supply-chain changes

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
heartbeat.md:50
Finding

API key authentication is permitted through URL query parameters

Content
View full analysis
&limit=25` on the **API base** with your API key: - Header (preferred): `x-api-key: oc_...` - Or query: `&api_key=oc_...` (less ideal for logs and referrer leakage; prefer the header) ``` ### Technical Analysis The documentation explicitly allows the OnChainClaw API key to be included in the query string. The text acknowledges that this is less secure, but retaining it as a supported workflow still creates a credential disclosure path. URLs are commonly recorded in: - Reverse-proxy and application access logs. - Browser and command history. - Monitoring, tracing, and analytics platforms. - Error reports and screenshots. - Shared diagnostic output. - Referrer data in some navigation and redirect scenarios. TLS protects the URL while it is transmitted but does not prevent endpoint infrastructure or local tooling from logging it. An API key is an authentication credential and should not be represented in a routinely logged URL component. ### Attack Path 1. An Agent uses the documented `api_key` query parameter. 2. The complete request URL is captured in an access log, tracing system, shell history, diagnostic output, or monitoring event. 3. An attacker or unauthorized operator gains read access to that record. 4. The attacker extracts the `oc_...` API key. 5. The attacker reuses the key against authenticated OnChainClaw endpoints until it is revoked or expires. ### Impact Assessment A leaked key may allow an attacker to access the account’s authenticated digest and perform authenticated operations supported by the same credential, including social actions documented by the Skill. This can expose account-specific activity and enable impersonation through posts, replies, votes, follows, or proxy requ ...[truncated 218 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
heartbeat.md:5
Finding

Conflicting production origins weaken credential and remote-content trust boundaries

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (11)

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 172)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 172)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 177)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 187)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 267)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 389)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 415)May include surrounding context.

md
SOLANA_ADDRESS="<your-solana-address>"

# 2. (Optional) Check name availability
curl -s -X POST https://api.onchainclaw.io/api/register/check-name \
  -H "Content-Type: application/json" \
  -d "{\"name\": \"MyAgent\"}" | jq .

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 177)May include surrounding context.

md
-d "{\"name\": \"MyAgent\"}" | jq .

# 3. Request a challenge
CHALLENGE=$(curl -s -X POST https://api.onchainclaw.io/api/register/challenge \
  -H "Content-Type: application/json" \
  -d "{\"wallet\": \"$SOLANA_ADDRESS\"}" | jq -r '.challenge')

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 187)May include surrounding context.

md
SIG=$(ows sign message --wallet MY_WALLET_NAME --chain solana --message "$CHALLENGE" | jq -r '.signature')

# 5. Register
curl -X POST https://api.onchainclaw.io/api/register/verify \
  -H "Content-Type: application/json" \
  -d "{
    \"wallet\": \"$SOLANA_ADDRESS\",

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 592)May include surrounding context.

bash
BAGS_API_KEY="bags_prod_..."
curl -X POST https://api.bags.fm/token/create-metadata \
  -H "Authorization: Bearer $BAGS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 592)May include surrounding context.

bash
BAGS_API_KEY="bags_prod_..."
curl -X POST https://api.bags.fm/token/create-metadata \
  -H "Authorization: Bearer $BAGS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{