AI GLOSSARY · SAFETY, ETHICS AND GOVERNANCE
LLM security
Definition
LLM security is the practice of protecting applications built on large language models, and the data, tools and users around them, from attacks such as prompt injection, data poisoning and leaking sensitive information.
Also called: LLM app security, generative AI security, LLM application security, securing LLM applications.
In plain language
LLM security is about keeping an AI-powered app from being tricked, abused or made to leak things. A malicious line in textual content, such as an email, web page or file, can try to steer a model. Application inputs are not always text: multimodal prompt injection can also carry instructions in an image. If the app can also send messages, run commands or reach private data, a successful trick can do real harm. Security work here mostly means limiting what the model can reach, checking what it produces before acting on it, vetting the models and data you import, and testing with hostile inputs. It reduces risk and does not remove it, so decide in advance which actions need a human to approve.
Technical definition
The OWASP Top 10 for LLM Applications (2025) names ten risks: prompt injection, sensitive information disclosure, supply chain, data and model poisoning, improper output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation and unbounded consumption. Anthropic's guidance on jailbreaks and prompt injection recommends input screening, tool-output screening, telling the model that third-party content is untrusted data, least privilege so a successful injection can do minimal damage, red-teaming before deployment and continuous monitoring. IBM uses the phrase AI security more broadly, for using AI to strengthen defence and for securing AI deployments.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
Check a Claude Skill From GitHub Before Installing It
- What you see
- A step-by-step review of a third-party skill before it runs, including searching for injected shell commands, hooks and pre-approved tools, and reading scripts before install.
- Why it exercises the concept
- Skills and plugins are part of an agent's supply chain. Reviewing them before use is a concrete step toward securing an agent setup.
Skill by Skill Almanac · Illustrative, not executed
skill-safety-audit 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A JSON risk table with evidence lines for a third-party skill folder, produced before you install it.
- Why it exercises the concept
- It is a pre-install check on one input an agent will trust.
Skill by Skill Almanac · Illustrative, not executed
env-file-exposure-check 41/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A report of possible local environment-file and secret-pattern exposure, with file, line and masked values. It uses a root-gitignore heuristic and does not inspect the Git index or history, so it does not establish committed or tracked status.
- Why it exercises the concept
- Where an agent has access to a file, exposed sensitive values can increase what a manipulated agent could leak. This illustrative local pattern check flags candidates; it neither proves Git tracking nor guarantees every secret is found.
Skill by Skill Almanac · Illustrative, not executed
sensitive-data-redaction 55/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- A copy of a file with emails, phones, cards, IBANs, keys, IPs and listed names replaced by consistent placeholders.
- Why it exercises the concept
- Removing sensitive values before text goes to a model addresses, on the input side, the sensitive-information risk on OWASP's list.
How it shows up when you use agents
A coding agent reads files, web pages, issues and tool results, and it can run commands. Each of those is a path for hostile text to reach the model and a path for the model's output to cause an effect. Prompt injection is the best-known case, but the OWASP list also covers excessive agency, improper output handling and supply chain risks such as untrusted models or plugins.
What breaks when this is misunderstood: people rely on one control, often a careful system prompt. Anthropic's guidance layers several: screening, labelling untrusted content, least privilege, sandboxed tools, red-teaming and monitoring. Guardrails work best as one layer among these.
Next action: list what your agent can read and do, remove what it does not need, keep approval prompts on for risky actions, and keep secrets out of reach. The AI agent and tool calling pages explain where actions come from. See OWASP Top 10 for LLM Applications for the checklist.
Common confusions
- LLM security versus AI safety. Security is about adversaries and misuse of a system. AI safety is broader and includes unintended harm with no attacker.
- LLM security versus AI security. IBM uses AI security for several things, including using AI to improve defence. LLM security here means securing LLM applications.
- Prompt hardening versus a security design. Hardened prompts help, but Anthropic pairs them with screening, least privilege and testing.
- Myth. A closed, hosted model makes the application secure. The application's tools, data and imports are still the attack surface.
Related terms
Show all 14 related terms
Terms that mention LLM security
4 terms mention this one
More in Safety, ethics and governance
Sources
- OWASP Top 10 for LLM Applications 2025, OWASP Gen AI Security Project (accessed 2026-11-24)
- Mitigate jailbreaks and prompt injections, Anthropic (accessed 2026-11-24)
- What is AI security?, IBM (accessed 2026-11-24)
- LLM01:2025 Prompt Injection: multimodal injection, OWASP Gen AI Security Project (accessed 2026-11-25)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .
Change log (5)
- : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
- : First version.
- : Verifier pass: removed alias AI security.
- : Bounded source repairs: Removed all-input-is-text claim with checked multimodal example; corrected exposure-scanner caption to local heuristic findings, not Git tracking/commit proof. Pending independent re-review.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.