Back to skill

Security audit

spanDEX Agentic Swap

Security checks for vulnerabilities and agentic risk

Overview

This swap skill is purpose-aligned, but it can execute real wallet transactions from remotely supplied calldata without requiring full independent verification.

Install only if you are comfortable with an agent preparing and sending real onchain transactions. Use quote-only or dry-run by default, install and trust a transaction verification skill before execution, keep strict Privy spending policies, verify wallet, token, recipient, chain, approval amount, destination contract, and calldata before signing, and avoid executing if full verification is unavailable.

Vulnerability Patterns
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:205
Finding

Remote API Calldata Is Submitted for Signing Without Mandatory Independent Verification

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL.md:64
Finding

Security-Critical Skills Are Installed Without Version or Integrity Pinning

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README advertises wallet-ready calldata, approvals, and onchain swap execution, but it does not include an explicit warning that these actions can spend funds, grant token allowances, incur gas costs, or expose users to slippage and routing risks. In the context of a swap skill, omission of these warnings materially increases the chance that users or integrating agents treat execution as routine rather than high-impact financial activity.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

For stronger protection against prompt injection, pin SPANDEX_URL in ~/.openclaw/.env rather than leaving it unset. Environment file values are loaded at startup and cannot be overridden by skill instructions at runtime:

bash
# ~/.openclaw/.env
SPANDEX_URL=https://edge.spandex.sh

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The README tells users they can 'just ask naturally' and includes broad examples like 'Swap 5 USDC to WETH', while stating the skill will handle wallet selection, approval, and execution. In an agentic environment, this encourages invocation from loosely phrased requests and can lead to unintended fund-moving actions if the agent interprets an ambiguous user message as authorization to transact.

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

Request

bash
curl -sS -G "${SPANDEX_URL}/api/v1/agent/swap_quote" \
  -d "chainId=8453" \
  -d "inputToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913" \
  -d "outputToken=0x4200000000000000000000000000000000000006" \

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 · references/privy.md (reported line 17)May include surrounding context.

Privy's wallet RPC does not support eth_getTransactionReceipt. After submitting a transaction, poll a public Base RPC endpoint directly:

bash
curl -sS https://mainnet.base.org \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["0x<txhash>"],"id":1}'