[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7351CCP3NRMM58SYC7R34EB":3,"skill-same:01M7351CCP3NRMM58SYC7R34EB":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7351CCP3NRMM58SYC7R34EB","llm-trading-agent-security",null,"Security patterns for autonomous trading agents with wallet or transaction authority. Covers prompt injection, spend limits, pre-send simulation, circuit breakers, MEV protection, and key handling.","Horonomos-laps\u002FYana-AI","Horonomos-laps","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F355299122?v=4","01M76B3QPXE88ET2SQPDPVATZT"," Horonomos-laps","01M72ZQRJPCYPSSWT4D00VJR2A",13,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fllm-trading-agent-security\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: llm-trading-agent-security\ndescription: Security patterns for autonomous trading agents with wallet or transaction authority. Covers prompt injection, spend limits, pre-send simulation, circuit breakers, MEV protection, and key handling.\norigin: ECC direct-port adaptation\nversion: \"1.0.0\"\n---\n\n# LLM Trading Agent Security\n\nAutonomous trading agents have a harsher threat model than normal LLM apps: an injection or bad tool path can turn directly into asset loss.\n\n## When to Use\n\n- Building an AI agent that signs and sends transactions\n- Auditing a trading bot or on-chain execution assistant\n- Designing wallet key management for an agent\n- Giving an LLM access to order placement, swaps, or treasury operations\n\n## How It Works\n\nLayer the defenses. No single check is enough. Treat prompt hygiene, spend policy, simulation, execution limits, and wallet isolation as independent controls.\n\n## Examples\n\n### Treat prompt injection as a financial attack\n\n```python\nimport re\n\nINJECTION_PATTERNS = [\n    r'ignore (previous|all) instructions',\n    r'new (task|directive|instruction)',\n    r'system prompt',\n    r'send .{0,50} to 0x[0-9a-fA-F]{40}',\n    r'transfer .{0,50} to',\n    r'approve .{0,50} for',\n]\n\ndef sanitize_onchain_data(text: str) -> str:\n    for pattern in INJECTION_PATTERNS:\n        if re.search(pattern, text, re.IGNORECASE):\n            raise ValueError(f\"Potential prompt injection: {text[:100]}\")\n    return text\n```\n\nDo not blindly inject token names, pair labels, webhooks, or social feeds into an execution-capable prompt.\n\n### Hard spend limits\n\n```python\nfrom decimal import Decimal\n\nMAX_SINGLE_TX_USD = Decimal(\"500\")\nMAX_DAILY_SPEND_USD = Decimal(\"2000\")\n\nclass SpendLimitError(Exception):\n    pass\n\nclass SpendLimitGuard:\n    def check_and_record(self, usd_amount: Decimal) -> None:\n        if usd_amount > MAX_SINGLE_TX_USD:\n            raise SpendLimitError(f\"Single tx ${usd_amount} exceeds max ${MAX_SINGLE_TX_USD}\")\n\n        daily = self._get_24h_spend()\n        if daily + usd_amount > MAX_DAILY_SPEND_USD:\n            raise SpendLimitError(f\"Daily limit: ${daily} + ${usd_amount} > ${MAX_DAILY_SPEND_USD}\")\n\n        self._record_spend(usd_amount)\n```\n\n### Simulate before sending\n\n```python\nclass SlippageError(Exception):\n    pass\n\nasync def safe_execute(self, tx: dict, expected_min_out: int | None = None) -> str:\n    sim_result = await self.w3.eth.call(tx)\n\n    if expected_min_out is None:\n        raise ValueError(\"min_amount_out is required before send\")\n\n    actual_out = decode_uint256(sim_result)\n    if actual_out \u003C expected_min_out:\n        raise SlippageError(f\"Simulation: {actual_out} \u003C {expected_min_out}\")\n\n    signed = self.account.sign_transaction(tx)\n    return await self.w3.eth.send_raw_transaction(signed.raw_transaction)\n```\n\n### Circuit breaker\n\n```python\nclass TradingCircuitBreaker:\n    MAX_CONSECUTIVE_LOSSES = 3\n    MAX_HOURLY_LOSS_PCT = 0.05\n\n    def check(self, portfolio_value: float) -> None:\n        if self.consecutive_losses >= self.MAX_CONSECUTIVE_LOSSES:\n            self.halt(\"Too many consecutive losses\")\n\n        if self.hour_start_value \u003C= 0:\n            self.halt(\"Invalid hour_start_value\")\n            return\n\n        hourly_pnl = (portfolio_value - self.hour_start_value) \u002F self.hour_start_value\n        if hourly_pnl \u003C -self.MAX_HOURLY_LOSS_PCT:\n            self.halt(f\"Hourly PnL {hourly_pnl:.1%} below threshold\")\n```\n\n### Wallet isolation\n\n```python\nimport os\nfrom eth_account import Account\n\nprivate_key = os.environ.get(\"TRADING_WALLET_PRIVATE_KEY\")\nif not private_key:\n    raise EnvironmentError(\"TRADING_WALLET_PRIVATE_KEY not set\")\n\naccount = Account.from_key(private_key)\n```\n\nUse a dedicated hot wallet with only the required session funds. Never point the agent at a primary treasury wallet.\n\n### MEV and deadline protection\n\n```python\nimport time\n\nPRIVATE_RPC = \"https:\u002F\u002Frpc.flashbots.net\"\nMAX_SLIPPAGE_BPS = {\"stable\": 10, \"volatile\": 50}\ndeadline = int(time.time()) + 60\n```\n\n## Pre-Deploy Checklist\n\n- External data is sanitized before entering the LLM context\n- Spend limits are enforced independently from model output\n- Transactions are simulated before send\n- `min_amount_out` is mandatory\n- Circuit breakers halt on drawdown or invalid state\n- Keys come from env or a secret manager, never code or logs\n- Private mempool or protected routing is used when appropriate\n- Slippage and deadlines are set per strategy\n- All agent decisions are audit-logged, not just successful sends\n","# LLM Trading Agent Security\n\nAutonomous trading agents have a harsher threat model than normal LLM apps: an injection or bad tool path can turn directly into asset loss.\n\n## When to Use\n\n- Building an AI agent that signs and sends transactions\n- Auditing a trading bot or on-chain execution assistant\n- Designing wallet key management for an agent\n- Giving an LLM access to order placement, swaps, or treasury operations\n\n## How It Works\n\nLayer the defenses. No single check is enough. Treat prompt hygiene, spend policy, simulation, execution limits, and wallet isolation as independent controls.\n\n## Examples\n\n### Treat prompt injection as a financial attack\n\n```python\nimport re\n\nINJECTION_PATTERNS = [\n    r'ignore (previous|all) instructions',\n    r'new (task|directive|instruction)',\n    r'system prompt',\n    r'send .{0,50} to 0x[0-9a-fA-F]{40}',\n    r'transfer .{0,50} to',\n    r'approve .{0,50} for',\n]\n\ndef sanitize_onchain_data(text: str) -> str:\n    for pattern in INJECTION_PATTERNS:\n        if re.search(pattern, text, re.IGNORECASE):\n            raise ValueError(f\"Potential prompt injection: {text[:100]}\")\n    return text\n```\n\nDo not blindly inject token names, pair labels, webhooks, or social feeds into an execution-capable prompt.\n\n### Hard spend limits\n\n```python\nfrom decimal import Decimal\n\nMAX_SINGLE_TX_USD = Decimal(\"500\")\nMAX_DAILY_SPEND_USD = Decimal(\"2000\")\n\nclass SpendLimitError(Exception):\n    pass\n\nclass SpendLimitGuard:\n    def check_and_record(self, usd_amount: Decimal) -> None:\n        if usd_amount > MAX_SINGLE_TX_USD:\n            raise SpendLimitError(f\"Single tx ${usd_amount} exceeds max ${MAX_SINGLE_TX_USD}\")\n\n        daily = self._get_24h_spend()\n        if daily + usd_amount > MAX_DAILY_SPEND_USD:\n            raise SpendLimitError(f\"Daily limit: ${daily} + ${usd_amount} > ${MAX_DAILY_SPEND_USD}\")\n\n        self._record_spend(usd_amount)\n```\n\n### Simulate before sending\n\n```python\nclass SlippageError(Exception):\n    pass\n\nasync def safe_execute(self, tx: dict, expected_min_out: int | None = None) -> str:\n    sim_result = await self.w3.eth.call(tx)\n\n    if expected_min_out is None:\n        raise ValueError(\"min_amount_out is required before send\")\n\n    actual_out = decode_uint256(sim_result)\n    if actual_out \u003C expected_min_out:\n        raise SlippageError(f\"Simulation: {actual_out} \u003C {expected_min_out}\")\n\n    signed = self.account.sign_transaction(tx)\n    return await self.w3.eth.send_raw_transaction(signed.raw_transaction)\n```\n\n### Circuit breaker\n\n```python\nclass TradingCircuitBreaker:\n    MAX_CONSECUTIVE_LOSSES = 3\n    MAX_HOURLY_LOSS_PCT = 0.05\n\n    def check(self, portfolio_value: float) -> None:\n        if self.consecutive_losses >= self.MAX_CONSECUTIVE_LOSSES:\n            self.halt(\"Too many consecutive losses\")\n\n        if self.hour_start_value \u003C= 0:\n            self.halt(\"Invalid hour_start_value\")\n            return\n\n        hourly_pnl = (portfolio_value - self.hour_start_value) \u002F self.hour_start_value\n        if hourly_pnl \u003C -self.MAX_HOURLY_LOSS_PCT:\n            self.halt(f\"Hourly PnL {hourly_pnl:.1%} below threshold\")\n```\n\n### Wallet isolation\n\n```python\nimport os\nfrom eth_account import Account\n\nprivate_key = os.environ.get(\"TRADING_WALLET_PRIVATE_KEY\")\nif not private_key:\n    raise EnvironmentError(\"TRADING_WALLET_PRIVATE_KEY not set\")\n\naccount = Account.from_key(private_key)\n```\n\nUse a dedicated hot wallet with only the required session funds. Never point the agent at a primary treasury wallet.\n\n### MEV and deadline protection\n\n```python\nimport time\n\nPRIVATE_RPC = \"https:\u002F\u002Frpc.flashbots.net\"\nMAX_SLIPPAGE_BPS = {\"stable\": 10, \"volatile\": 50}\ndeadline = int(time.time()) + 60\n```\n\n## Pre-Deploy Checklist\n\n- External data is sanitized before entering the LLM context\n- Spend limits are enforced independently from model output\n- Transactions are simulated before send\n- `min_amount_out` is mandatory\n- Circuit breakers halt on drawdown or invalid state\n- Keys come from env or a secret manager, never code or logs\n- Private mempool or protected routing is used when appropriate\n- Slippage and deadlines are set per strategy\n- All agent decisions are audit-logged, not just successful sends\n",{"name":5,"origin":24,"version":25,"description":7},"ECC direct-port adaptation","1.0.0","main","481dcd7dd2e288b9d627a2bd017db70e64e6c6fa",".claude\u002Fskills\u002Fllm-trading-agent-security",2,"https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI","https:\u002F\u002Fyana.vutam.link\u002F","https:\u002F\u002Fgithub.com\u002FHoronomos-laps","https:\u002F\u002Fyana.vutam.link","An open-source governed runtime & execution environment for multi-agent AI systems.","2026-11-14 13:24:09",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Horonomos-laps\u002FYana-AI --skill llm-trading-agent-security",{"tool":42,"command":43},"bunx","bunx skills add Horonomos-laps\u002FYana-AI --skill llm-trading-agent-security",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Horonomos-laps\u002FYana-AI --skill llm-trading-agent-security","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fllm-trading-agent-security\u002FSKILL.md",true,[],[51,59,66,74,82,90],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M735GKET5YVYKAY62W2P5YXB","openai--sentry--sentry","Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.","MIT","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fopenai--sentry--sentry\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M73DCAP83T17HY7SMGK7MGFE","ito-basket-compare","Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fito-basket-compare\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M734CYEMZFDR3KH6SW0JP8TD","implementing-network-traffic-baselining","Build network traffic baselines from NetFlow\u002FIPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly\u002Fdaily traffic pattern profiling","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-network-traffic-baselining\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":78,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M73ASZ6NJRJM44Z2P84NGQ3Q","detecting-evasion-techniques-in-endpoint-logs","Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fdetecting-evasion-techniques-in-endpoint-logs\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M734AFNXD06Z78QRK0VKGT7Q","implementing-microsegmentation-with-guardicore","Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.","https:\u002F\u002Fgithub.com\u002Fyanacuti1121\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimplementing-microsegmentation-with-guardicore\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M736TK27QMCXK0DVCH25SJN5","ramdisk-tmpfs-patterns","https:\u002F\u002Fgithub.com\u002FHoronomos-laps\u002FYana-AI\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Framdisk-tmpfs-patterns\u002FSKILL.md",[],[]]