llm-agent-security

llm-agent-security is a skill for Claude Code, Codex from LeahyCC/claude-skills. It costs 154 tokens per session (3,227 once invoked), scanned A, original, MIT.

A security review guide for AI systems that read untrusted content or use real credentials. It covers prompt injection, tool access, stored context, connections between AI components, supply-chain risks, outputs, and human approval.

In plain words
What is it for?
Use it to review the trust boundaries and controls around AI agents, tools, credentials, memory, external protocol connections, and generated output.
Why use it?
It helps find ways an AI system could be tricked into exposing data, using permissions incorrectly, or taking unsafe actions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions CLAUDE.md; mentions AGENTS.md; built for aider.

Good fit Use it to review the trust boundaries and controls around AI agents, tools, credentials, memory, external protocol connections, and generated output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leahycc/claude-skills/llm-agent-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add LeahyCC/claude-skills --skill llm-agent-security
Clone the repo
git clone --depth 1 https://github.com/LeahyCC/claude-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin llm-agent-security — /plugin install llm-agent-security after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-agent-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/leahycc/claude-skills/llm-agent-security/github.svg)](https://agentmods.dev/skills/leahycc/claude-skills/llm-agent-security)
Your own site
<a href="https://agentmods.dev/skills/leahycc/claude-skills/llm-agent-security"><img src="https://agentmods.dev/badge/skills/leahycc/claude-skills/llm-agent-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for llm-agent-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/leahycc/claude-skills/llm-agent-security"><img src="https://agentmods.dev/badge/skills/leahycc/claude-skills/llm-agent-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,227 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.03227
Opus 5.5 $0.00062 $0.01291
Sonnet 5.5 $0.00031 $0.00645
Haiku 4.5 $0.00015 $0.00323

Measured 1mo ago against content hash 5b78a5f3f8ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

llm-agent-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/llm-agent-security/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LLM and Agent Security — Trust Boundary for Models That Can Act

Use this skill when a change lets a model see untrusted content, or lets an agent component act with real credentials. Source checks and dates: SOURCES.md. Incident facts and links: Incident Appendix.

Contents

Where a cheat sheet still describes a delimiter, a filter, or a second model call as the defense, follow the 2026 Top 10. Those controls are partial. OWASP LLM01:2026 states that prompt injection is intrinsic: a model does not separate instructions from data, and no reliable prevention exists today (consistent with NIST 2025, NCSC 2025, and Debenedetti et al., 2025). Design the system so a bypassed instruction boundary cannot move credentials, data, or side effects.

The 2026 LLM list renumbered several 2025 entries. Excessive Agency is LLM03:2026 (it was LLM06:2025). Supply Chain is LLM04:2026. Improper Output Handling is LLM10:2026. The Agentic Top 10 PDF still cites the 2025 numbers in places. This skill uses the 2026 ids.

HTTP authentication, SSRF allowlists, CSP, and the Next.js AI SDK tool handler stay in api-security. The signed approval on that handler is AI Tools. This skill is the rest of the boundary: what enters the prompt, memory, compaction, install-time packages, MCP identity, and output sinks.

Read the full file on GitHub · 187 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 187 lines · 154 tokens per session scan A 5b78a5f3f8ab

Subscribe to this mod's changes

llm-agent-security is a skill published in the GitHub repository LeahyCC/claude-skills (4 stars, last pushed yesterday), licensed MIT. It adds 154 tokens to every session and 3,227 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-25.

Related

llm-agent-security compared with skills from other repositories

llm-agent-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
llm-agent-securityLeahyCC/claude-skillsSkill4yesterdayMITA154Claude Code, Codex
Accessibility Audit HelperNotysoty/openagentskillsSkill93mo agoMITA23Claude Code, Codex
accessibilityericrisco/rsc-harnessSkill6915d agoMITA86Claude Code, Codex
Axe-core Accessibility TestingPramodDutta/qaskillsSkill25328d agoMITA33Claude Code, Codex
Accessibility AuditorPramodDutta/qaskillsSkill25328d agoMITA32Claude Code, Codex
Accessibility A11y EnhancedPramodDutta/qaskillsSkill25328d agoMITA34Claude Code, Codex
accessibility-auditNickCrew/Claude-CortexSkill7610d agoMITA31Claude Code, Codex