Back to skill

Security audit

Storage Private — Encrypted Multi-Node Agent Storage

Security checks for vulnerabilities and agentic risk

Overview

The skill is coherently built for encrypted storage, but it uses high-impact wallet secrets and automatically trusts HTTP-discovered storage nodes, so it needs careful review before use.

Install only if you are comfortable with encrypted data and metadata being replicated to configured and discovered remote nodes. Prefer a dedicated STORAGE_PRIVATE_KEY, review or disable discovered nodes before storing sensitive data, avoid descriptive key names, and use trusted HTTPS/authenticated storage endpoints where possible.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/storage.mjs:136
Finding

Sensitive storage metadata and encrypted objects are transmitted over unauthenticated plaintext HTTP

Content
View full analysis
typeof p === 'string' ? Buffer.from(p) : p)); const resp = await fetch(`${node.index_url}/api/upload`, { method: 'POST', headers: { 'Content-Type': `multipart/form-data; boundary=${boundary}` }, body, }); ``` Representative configured endpoints: ```json { "id": "norway-primary", "type": "memory-store", "url": "http://[2a05:a00:2::10:11]:8081", "enabled": true }, { "id": "filstr ...[truncated 3019 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
scripts/discover.mjs:144
Finding

Unauthenticated discovery automatically authorizes untrusted servers as replication targets

Content
View full analysis
{ const url = `http://[${ip}]:${MEMORY_STORE_PORT}/health`; const health = await probe(url, probeTimeout); let stats = null; if (health.ok) { const statsResp = await probe(`http://[${ip}]:${MEMORY_STORE_PORT}/api/v1/stats`, probeTimeout); if (statsResp.ok) stats = statsResp.data; } return { ip, seeder, health, stats, hasStorage: health.ok, }; }) ); ``` A node passing the health check is generated as enabled: ```javascript configEntry: r.hasStorage ? { id: `filstream-${r.ip.replace(/[^a-zA-Z0-9]/g, '-').replace(/-+/g, '-')}`, type: 'memory-store', url: `http://[${r.ip}]:${MEMORY_STORE_PORT}`, location: `${region} (${r.ip})`, priority: 10, // discovered nodes get lower priority than manually configured enabled: true, discovered: true, discoveredAt: new Date().toISOString(), seederId: r.seeder.id, } : null, ``` The discovered nodes are written into the active configuration: ```javascript const newNodes = discoveredNodes .filter(n => n.hasStorage && n.configEntry && ...[truncated 3701 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/storage.mjs:588
Finding

Ethereum transaction-signing private key is reused as the storage encryption root secret

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (16)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/discover.mjs --update-config

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/discover.mjs --update-config

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/storage.mjs put my-key --data "secret" --ns my-namespace

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/storage.mjs put my-key --data "secret" --ns my-namespace

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/storage.mjs put my-key --data "secret" --ns my-namespace

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/storage.mjs put my-key --data "secret" --ns my-namespace

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
node scripts/storage.mjs put my-key --data "secret" --ns my-namespace

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
95% confidence
Finding

The skill advertises capabilities that require access to environment variables and external networking, but it does not declare any tool scope or permissions boundary in the manifest. This creates a transparency and least-privilege problem: users and hosting platforms cannot easily assess or constrain the skill before execution, increasing the chance of unexpected secret access or outbound communication.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill emphasizes encryption and resilience, but it does not explicitly warn that data is sent to externally discovered nodes and replicated broadly across multiple backends. Even with client-side encryption, this expands the trust boundary, exposes metadata such as access patterns and object presence, and increases the blast radius if discovery is poisoned or a user misunderstands where their data is going.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The configuration explicitly trusts a manual core set of nodes while also enabling automatic discovery and addition of external nodes over unauthenticated plain HTTP. That creates a supply-chain/trust-boundary failure: a malicious or spoofed seeder/index can inject attacker-controlled storage endpoints, causing data exfiltration, traffic interception, metadata leakage, denial of service, or corruption of availability assumptions even if object contents are client-side encrypted.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The manifest describes encrypted multi-node storage and automatic FilStream discovery, but this file implements discovery by importing child_process and executing another script via execSync. Spawning subprocesses is a materially broader capability than basic storage operations and is not necessary for storing, retrieving, or replicating encrypted objects.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill automatically reads an ETH private key from ~/.openclaw/workspace/.secrets/eth-wallet.env when STORAGE_PRIVATE_KEY is absent, giving the storage tool credential-access behavior beyond ordinary encrypted blob handling. Even though the key is used for derivation rather than exfiltrated in this file, accessing a wallet secret from disk increases blast radius: compromise or misuse of this tool exposes highly sensitive material tied to other financial or agent capabilities.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Sensitive key material is consumed from environment variables or a secrets file without any user-facing disclosure, prompt, or consent in the command flow. In an agent/tooling environment, silent secret access is dangerous because operators may invoke a storage command expecting data handling only, while the tool also reaches into shared credential storage and derives long-lived encryption keys from wallet material.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The node discovery flow updates local configuration files, but the skill description does not clearly warn users that running discovery mutates local state. Silent configuration changes can redirect future storage operations to different nodes or persist unreviewed network-derived settings, which is risky in a security-sensitive storage skill.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

This code writes to config.json, which changes local configuration state, but the updateConfig function itself has no confirmation prompt and no nearby user-facing warning before the write occurs. Although the header usage text mentions auto-updating config.json, the safety disclosure around the actual file modification is minimal for a state-changing operation.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
86% confidence
Finding

The discover command shells out via execSync to run another Node script. Although this is part of the implementation, there is no nearby comment, prompt, or user-facing warning that invoking discovery will execute a subprocess.

Content

No source excerpt is available for this finding.