ai-security

ai-security is a skill for Claude Code from Kin9Zeus/senior-engineer-skills. It costs 225 tokens per session (2,682 once invoked), scanned A, original, MIT.

A security guide for AI-powered software such as language-model applications, agents, tool calls, retrieval systems, and MCP servers. MCP is a way for an AI application to connect to external tools and data.

In plain words
What is it for?
Use it to review model inputs and outputs, tool permissions, retrieval data separation, plugin and model supply chains, key protection, spending limits, and monitoring.
Why use it?
It addresses risks caused by treating instructions and ordinary data as if they were different, including prompt injection, excessive permissions, data leaks, and stolen AI-provider keys.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the senior-engineer-skills plugin — 20 skills, 14 commands, 8 agents shipped together

Good fit Use it to review model inputs and outputs, tool permissions, retrieval data separation, plugin and model supply chains, key protection, spending limits, and monitoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kin9zeus/senior-engineer-skills/ai-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 Kin9Zeus/senior-engineer-skills --skill ai-security
Clone the repo
git clone --depth 1 https://github.com/Kin9Zeus/senior-engineer-skills

Made for: Claude Code.

Or install senior-engineer-skills, the plugin that ships this one along with the rest of its 20 skills, 14 commands, 8 agents.

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 ai-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/ai-security/github.svg)](https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/ai-security)
Your own site
<a href="https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/ai-security"><img src="https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/ai-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 ai-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/ai-security"><img src="https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/ai-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 225 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,682 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.00225 $0.02682
Opus 5.5 $0.00090 $0.01073
Sonnet 5.5 $0.00045 $0.00536
Haiku 4.5 $0.00022 $0.00268

Measured 2d ago against content hash 207f43471e62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-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 2d 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/ai-security/SKILL.md · 207 lines

How it starts

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

AI Security

A language model cannot reliably tell instructions from data. Everything below follows from that one fact: any text the model reads can steer it, and anything the model can do, an attacker who controls that text can try to do.

Two threats are current and concrete: attacks on the AI feature itself (prompt injection, over-powered agents) and attacks on the keys and accounts behind it — AI-provider keys are monetisable on sight, and platform breaches have been reported to target AI inference providers specifically (see security-incident-response).

Scope: AI features in software the user owns or is authorised to assess. Testing prompts against the user's own application is in scope; attacking third-party AI services or other people's deployments is not.

Taxonomies change. The OWASP Top 10 for LLM Applications is the maintained reference — check its current edition rather than quoting category numbers from memory.


1 · The order of work

 1  INVENTORY    every model call, tool, data source, MCP server, plugin; where each key lives
 2  KEYS & SPEND provider keys scoped, per-environment, capped, monitored
 3  AGENCY       what can the AI do? reduce it to what it needs; gate the irreversible
 4  DATA FLOWS   find the three-way overlap (below); break at least one leg
 5  INPUT PATHS  every place untrusted text reaches the model (users, web, files, email, tool results, RAG)
 6  OUTPUT       treat model output as untrusted input to the rest of the system
 7  ISOLATION    tenants, memory, vector stores, conversation history
 8  SUPPLY CHAIN models, plugins, MCP servers, skills, prompt files — all of it is code
 9  TEST & WATCH red-team your own app; regression evals; alert on abuse

2 · The three-way overlap that makes exfiltration possible

An AI feature is in serious danger when one session combines all three:

  1. Access to private data (user data, secrets, internal documents)
  2. Exposure to untrusted content (web pages, emails, uploaded files, issue text, retrieved documents, other users' input)
  3. A way to communicate externally (HTTP requests, email, rendering images or links, writing to a shared place)

Read the full file on GitHub · 207 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 207 lines · 225 tokens per session scan A 207f43471e62

Subscribe to this mod's changes

ai-security is a skill published in the GitHub repository Kin9Zeus/senior-engineer-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 225 tokens to every session and 2,682 once invoked, about $0.0009 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-24.

Related

Other skills, from other repositories