Back to skill

Security audit

Uniclaw Skill

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed prediction-market trading tool, but it handles wallet secrets and token withdrawals with weak scoping and limited user guardrails.

Install only if you are comfortable giving this skill access to your Unicity wallet for trading and withdrawals. Use a testnet or limited-balance wallet, avoid custom UNICLAW_SERVER values unless you trust the endpoint, verify withdrawal recipients manually, and prefer a version that removes raw private-key export, hardcoded credentials, and weak request signing.

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
lib/api.ts:15
Finding

Request signatures do not bind the HTTP method, path, or destination

Content
View full analysis
{ const signed = signRequest({}, privateKeyHex); const res = await fetch(`${config.serverUrl}${path}`, { method: 'GET', headers: signed.headers, }); const data = await res.json(); if (!res.ok) { throw new Error(data.error ?? `HTTP ${res.status}`); } return data; } ``` ```ts export async function apiDelete(path: string, privateKeyHex: string): Promise { const signed = signRequest({}, privateKeyHex); const res = await fetch(`${config.serverUrl}${path}`, { method: 'DELETE', headers: signed.headers, }); const data = await res.json(); if (!res.ok) { throw new Error(data.error ?? `HTTP ${res.status}`); } return data; } ``` ### Technical Analysis The signed payload contains only the request body and timestamp: ```ts JSON.stringify({ body, timestamp }) ``` It does not include the HTTP method, normalized URL path, query parameters, destination origin, or a single-use nonce. Consequently, all GE ...[truncated 2473 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
lib/wallet.ts:28
Finding

Credential-like oracle API key is hardcoded as a fallback

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (71)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill is presented as a market-trading tool but also performs withdrawals and fund transfers, which are distinct high-risk asset-movement operations. Undeclared transfer capability is particularly dangerous in this context because users may not expect that invoking the skill could result in irreversible off-platform movement of tokens.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The skill is presented as a market-trading tool but also performs withdrawals and fund transfers, which are distinct high-risk asset-movement operations. Undeclared transfer capability is particularly dangerous in this context because users may not expect that invoking the skill could result in irreversible off-platform movement of tokens.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill is presented as a market-trading tool but also performs withdrawals and fund transfers, which are distinct high-risk asset-movement operations. Undeclared transfer capability is particularly dangerous in this context because users may not expect that invoking the skill could result in irreversible off-platform movement of tokens.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The skill is presented as a market-trading tool but also performs withdrawals and fund transfers, which are distinct high-risk asset-movement operations. Undeclared transfer capability is particularly dangerous in this context because users may not expect that invoking the skill could result in irreversible off-platform movement of tokens.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/market.ts list

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/market.ts list

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/trade.ts buy --market <id> --side yes --price 0.35 --qty 10

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/portfolio.ts balance

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
npx tsx scripts/portfolio.ts balance

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

This helper intentionally bypasses the SDK’s public wallet abstraction to extract and return raw private key material from an internal field. In a trading skill, exposing the private key is unnecessary for normal market operations and creates a direct path for theft, unauthorized signing, or exfiltration by any downstream code that calls this function.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

A helper that returns the raw private key without any strong guardrails or user warning materially expands the attack surface around the wallet. In the context of a trading skill, this is more dangerous because the expected capability is transaction signing and position management, not secret export, so any caller gaining access can fully compromise the wallet and funds.

Content

No source excerpt is available for this finding.

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 · package-lock.json (reported line 1075)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 1133)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 1213)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 1509)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 1724)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 1726)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 2001)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

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 · package-lock.json (reported line 4468)May include surrounding context.

json
"@libp2p/crypto": "^5.1.7",
        "@libp2p/interface": "^3.1.0",
        "@libp2p/kad-dht": "^16.1.0",
        "@libp2p/keychain": "^6.0.5",
        "@libp2p/logger": "^6.0.5",
        "@libp2p/utils": "^7.0.5",
        "interface-datastore": "^9.0.2",

Known Vulnerable Dependency: @libp2p/kad-dht==16.1.3 — 1 advisory(ies): CVE-2026-45783 (@libp2p/kad-dht: Unvalidated PUT_VALUE records allow unbounded disk exhaustion o)

High
Category
Supply Chain
Confidence
91% confidence
Finding

The lockfile includes '@libp2p/kad-dht' version 16.1.3, which is flagged with a disk-exhaustion DoS advisory. In a trading skill, untrusted network interaction through optional libp2p/helia dependencies can increase operational risk because resource exhaustion could disrupt market actions or make the agent unavailable.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: ws==7.5.10 — 1 advisory(ies): CVE-2026-48779 (ws: Memory exhaustion DoS from tiny fragments and data chunks)

High
Category
Supply Chain
Confidence
88% confidence
Finding

The lockfile contains 'ws' 7.5.10, which is flagged for memory exhaustion DoS via fragmented frames. Even as a transitive optional dependency, if any included devtool, React Native, or networking path is exposed during build, testing, or runtime, an attacker could cause service instability or crashes.

Content

No source excerpt is available for this finding.

Known Vulnerable Dependency: axios==1.13.5 — 16 advisory(ies): CVE-2026-44494 (axios Vulnerable to Full Man-in-the-Middle via Prototype Pollution Gadget in `co); CVE-2026-44495 (axios Vulnerable to Credential Theft and Response Hijacking via Prototype Pollut); CVE-2025-62718 (Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF) +13 more

High
Category
Supply Chain
Confidence
80% confidence
Finding

The lockfile includes 'axios' 1.13.5 with multiple advisories, including SSRF and prototype-pollution-related issues. In a network-connected trading skill, any vulnerable HTTP client increases risk because remote endpoints, proxy settings, or attacker-controlled inputs could influence outbound requests or response handling.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.