curve-gauge-yield-trader
Warn
Audited by Gen Agent Trust Hub on Mar 21, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill generates a local Ethereum wallet during the setup phase and stores the private key in plain text within a JSON file at
state/wallet.local.json. While the code attempts to set restrictive file permissions (chmod 600), storing unencrypted keys on disk is a high-risk practice. - [COMMAND_EXECUTION]: The
scripts/run_agent_server.pyutility starts an unauthenticated HTTP server that can be used to remotely trigger the trading logic. The server binds to0.0.0.0by default, exposing the execution endpoint to the entire local network, which could allow unauthorized users to trigger financial transactions. - [DATA_EXFILTRATION]: The skill transmits detailed trading records, configuration data, and account positions to a remote PostgreSQL database specified by the
SERENDB_URLenvironment variable. This is intended for the vendor's reporting platform but involves sending sensitive activity data externally. - [PROMPT_INJECTION]: The skill processes data from the Curve Finance API (
/getGauges) to determine trade targets, which presents an indirect injection surface if the external API is compromised. - Ingestion points: Data is fetched in
scripts/agent.pyvia thefetch_top_gaugesfunction. - Boundary markers: The skill includes explicit pre-flight checks for credentials and RPC connectivity before execution.
- Capability inventory: The agent can sign and broadcast transactions to various EVM-compatible blockchains.
- Sanitization: The skill validates Ethereum addresses using regular expression patterns before incorporating them into transaction data.
Audit Metadata