Back to skill

Security audit

crypto-gas-fee-optimizer

Security checks for vulnerabilities and agentic risk

Overview

This skill is a read-only gas fee checker whose external network calls are disclosed and necessary for its stated purpose.

Install this if you are comfortable with a Bash-enabled skill running a local Python script that contacts public RPC providers and CoinGecko for live pricing. It appears read-only, but treat estimates as informational and do not rely on it as a signing or transaction-safety tool.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Lp1

High
Category
MCP Least Privilege
Confidence
93% confidence
Finding

The script performs outbound network access to multiple public RPC endpoints and CoinGecko, but the finding indicates that this capability is not declared in permissions. Undeclared network capability is a real security and governance issue because it can bypass user/platform expectations, expand the attack surface, and allow data transmission to external services without explicit approval.

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 · scripts/gas_check.py (reported line 60)May include surrounding context.

python
def fetch_native_prices():
    """USD prices for ETH and MATIC via CoinGecko's free simple-price endpoint."""
    url = "https://api.coingecko.com/api/v3/simple/price?ids=ethereum,matic-network&vs_currencies=usd"
    req = urllib.request.Request(url, headers={"User-Agent": "clawhub-gas-optimizer/1.0"})
    with urllib.request.urlopen(req, timeout=15) as resp:
        data = json.loads(resp.read().decode("utf-8"))