llm-trading-agent-security

Implements layered security guardrails for autonomous on-chain trading agents.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/luongldptit/move-ticket --skill llm-trading-agent-security-luongldptit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-trading-agent-security
Source: https://github.com/luongldptit/move-ticket/tree/main/.agent/skills/llm-trading-agent-security
Command: npx skills add https://github.com/luongldptit/move-ticket --skill llm-trading-agent-security-luongldptit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Autonomous trading agents with wallet or transaction signing authority face direct asset loss risks from prompt injection, unvetted execution paths, or unsecured key handling that standard LLM security patterns do not cover.

Core Features & Use Cases

  • Layered Security Guardrails: Defends against prompt injection, MEV attacks, unauthorized transactions, and malicious external data injection for on-chain trading agents.
  • Execution Risk Controls: Enforces hard spend limits, mandatory pre-send transaction simulation, and circuit breakers to cap drawdowns and halt operation during anomalous loss events.
  • Use Case: Use this skill to audit a DeFi trading bot that automatically executes swaps, or build a wallet-connected agent that processes order requests without exposing primary treasury funds.

Quick Start

Use the llm-trading-agent-security skill to add spend limits, transaction simulation, and circuit breaker protections to your autonomous on-chain trading agent.

Frequently Asked Questions about llm-trading-agent-security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect an autonomous trading agent from prompt injection and asset loss?

Protect autonomous trading agents by implementing layered security guardrails that sanitize prompts, enforce hard spend limits, and require pre-send transaction simulation to prevent unauthorized on-chain asset execution.

How do I add spend limits and circuit breakers to a DeFi trading bot?

Add spend limits and circuit breakers to a DeFi trading bot by applying execution risk controls that cap drawdowns, enforce mandatory transaction simulation, and automatically halt operations during anomalous loss events.

What is the best way to secure wallet keys for LLM agents with treasury access?

Secure wallet keys for LLM agents by implementing secure private key handling patterns specifically designed for autonomous trading agents with transaction signing authority and primary treasury fund access.

Does prompt sanitization prevent malicious external data injection in on-chain trading agents?

Prompt sanitization prevents malicious external data injection in on-chain trading agents by filtering unvetted execution paths and blocking unauthorized transaction requests before they reach the wallet signing interface.

Can I use transaction simulation to stop MEV attacks on an AI-powered swap agent?

Mandatory pre-send transaction simulation stops MEV attacks on AI-powered swap agents by validating execution paths and enforcing circuit breakers before the agent signs any on-chain swap transaction.

When should I not use standard LLM security patterns for a wallet-connected trading agent?

Standard LLM security patterns are insufficient when a wallet-connected trading agent has direct transaction signing authority, requiring specialized on-chain security guardrails against MEV attacks and malicious execution paths.