llm-security
Skill by sickn33
Maps and tests LLM applications and AI agents for prompt injection, tool abuse, RAG exposure, memory poisoning and system prompt extraction. It is for authorized security assessments only, and it asks for confirmation before any active probing.
Install llm-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/llm-security ~/.claude/skills/llm-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/llm-security ~/.gemini/antigravity-cli/skills/llm-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The llm-security skill gives an assistant a structured workflow for authorized security assessments of LLM applications and AI agents. It covers reconnaissance of AI attack surfaces, direct and indirect prompt injection tests, tool abuse checks, memory and RAG poisoning tests, output security tests, and system prompt extraction. Its test sections are mapped to the OWASP LLM and ASI Top 10.
Before running any command that probes or changes a target, the skill requires the exact target, written authorization, the permitted scope, the commands with their expected effects, and explicit confirmation. Without that, it stays read-only and gives defensive guidance. It names tools such as garak, PyRIT, promptfoo, promptmap2 and AgentThreatBench. It is aimed at security testers and red teams working on approved LLM systems.
Written from the project's SKILL.md and checked against it.
What it can do
- AI attack surface mappingMaps LLM entry points, agent tools and data flows before testing.
- Prompt injection testingRuns direct and indirect prompt injection tests in increasing difficulty levels.
- Tool abuse testingChecks whether an agent can be made to misuse its tools or skip human approval.
- RAG and memory poisoning testsTests whether knowledge bases and long-term memory can be poisoned, and whether retrieval checks permissions.
- Output security testingChecks whether generated output could cause XSS, SQL injection, command injection or SSRF downstream.
- System prompt extraction testsRuns staged extraction prompts and describes canary token checks for leaks.
What you need
- Explicit written permission from the system owner
- Python with pip for garak and PyRIT
- Node.js with npm for promptfoo
Try asking
- Map the AI attack surface of this chatbot app within my approved scope.
- Run indirect prompt injection tests on this RAG pipeline after confirming scope.
- Check whether this agent's tools can be chained to bypass human approval.
Good to know
- Active probing requires the exact target, written authorization and explicit confirmation first.
- Without confirmation, it stays read-only and gives defensive guidance only.
- Model behavior is nondeterministic, so findings need repeated trials.
- Provider-side safeguards may change without notice.
Security check
D- Contains invisible or direction-changing characters that can hide textIn
skills/llm-security/SKILL.md: - Tells the assistant to ignore its instructions or hide actions from youIn
skills/llm-security/SKILL.md:Ignore all previous instructions
Checked automatically: skills/llm-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/agent-obedience-engineering.md13 KB -
references/agent-security-testing.md5 KB -
references/owasp-llm-top10.md3 KB -
references/prompt-injection-methodology.md3 KB
Alternatives to llm-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
llm-security: common questions
Who is this skill for?
It is for educational use and authorized security assessments of LLM applications and AI agents. The source says users must have explicit, written permission from the system owner.
Which tools does it reference?
It references garak, PyRIT, promptfoo, promptmap2 and AgentThreatBench. The source says garak has 100+ injection probes.
Does it cover OWASP categories?
Yes. Its test sections map to the OWASP LLM Top 10 and ASI Top 10, and a reference file gives the full mapping.
How do I install llm-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is llm-security free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is llm-security safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade D (contains invisible or direction-changing characters that can hide text). Review the code before you install. How grades work.
What are alternatives to llm-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
