Back to skill

Security audit

SUPAH DeFi Optimizer

Security checks for vulnerabilities and agentic risk

Overview

The skill appears purpose-built for DeFi analysis, but its automatic paid API calls have inconsistent price disclosures and weak runtime controls.

Review this skill before installing. It sends wallet or position identifiers to a remote DeFi API and may cause automatic USDC x402 charges on Base. Only use it in an environment where you can confirm or cap spending, and treat the published per-action prices as ambiguous until the publisher makes them consistent.

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

Warning
Location
index.js:31
Finding

Unvalidated CLI Input Allows API Route and Query Manipulation

Content
View full analysis
Remediation
View remediation

other

Warning
Location
SKILL.md:41
Finding

Conflicting Price Disclosures Can Cause Unexpected Cryptocurrency Charges

Content
View full analysis
- View positions ($0.10)'); console.log(' optimize - Auto-optimize ($0.10)'); console.log(' yields - Compare APYs ($0.10)'); console.log(' rebalance - Suggestions ($0.10)'); console.log(' il - IL calculator ($0.10)\n'); ``` The README also advertises `$0.10` prices: ```md ## Pricing - View positions: $0.10 - Auto-optimize: $0.10 | IL calc: $0.10 | Rebalance: $0.10 ``` ### Technical Analysis The project provides materially inconsistent price disclosures: - Position scanning is listed as `$0.03` in `SKILL.md` but `$0.10` in the CLI and README. - APY comparison is listed as `$0.02` in `SKILL.md` but `$0.10` in the CLI. - Impermanent-loss calculation is listed as `$0.05` in `SKILL.md` but `$0.10` in the CLI and README. - Skill metadata permits payments up to `$0.10` per call. A user relying on the lower per-operation prices in `SKILL.md` may therefore authorize a runtime whose configured maximum permits a larger charge. The local implementation does not contain code that processes an x402 challenge or validates its amount, currency, recipient, network, or relationship to the requested operation. It only performs ...[truncated 1369 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
87% confidence
Finding

The skill declares environmental requirements and network/payment capabilities but does not define an explicit tool scope such as permissions or allowed-tools. That ambiguity can let an agent invoke the skill with broader-than-expected access, making unintended data exposure or external calls more likely.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill describes wallet position scanning and optimization but does not prominently warn that wallet addresses and DeFi position data are sent to external services. Even though blockchain data is public, linking a user's queried wallets, positions, and behavior to a third-party API creates privacy and profiling risks.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger phrases are broad and could cause the skill to activate on generic DeFi-related requests without clear user intent boundaries. In this skill, that is more dangerous because activation may result in paid external API calls and transmission of wallet-related data to a third party.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill advertises automatic x402 micropayments per call without a prominent user warning or consent flow at the point of use. Combined with broad triggers, this can lead to unintended charges from ordinary requests, making the risk more severe than a typical disclosure issue.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The CLI sends user-supplied wallet addresses or position identifiers to a remote API endpoint without any just-in-time disclosure, confirmation, or privacy warning at execution time. In a DeFi context, these identifiers can reveal portfolio composition, LP activity, and financial behavior, creating privacy and profiling risk even if the data is public on-chain.

Content

No source excerpt is available for this finding.