llm-trading-agent-security - Security patterns for autonomous LLM trading agents
Security patterns for trading agents covering prompt injection, spend limits, pre-send simulation, circuit breakers, MEV protection, and key isolation.
Tags
Updated: 2026-09-13Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Sanitize prompt and data inputs
- Enforce daily transaction spend limits
- Simulate transactions prior to execution
- Halt operations via circuit breaker
- Isolate wallet keys in environment
- Apply MEV and deadline protection
- Audit log agent decisions
Inputs
- External data and prompt text
- Transaction payload dictionary
- Portfolio value metrics
- Wallet private key environment variable
- Private RPC endpoint URL
Outputs
- Sanitized text output
- Signed raw transaction
- Execution error exceptions
- Audit log entries
Requirements
- Python environment with eth_account library
- TRADING_WALLET_PRIVATE_KEY environment variable
- Ethereum RPC node connection
