LLM Security
This section covers the security of large language models themselves. It starts from prompt-engineering fundamentals and moves into the taxonomy, mechanics and bypass techniques of prompt injection, then walks through every risk in the OWASP LLM Top 10 together with its mitigations. Later articles cover the more engineering-facing topics: model supply chain, training-data poisoning and vector retrieval.
Everything follows the same structure: first why the risk exists, then the defensive actions that actually work — not just definitions.
This section currently holds the articles below, in suggested reading order.
-
Prompt Engineering Techniques: A Summary
This post covers the fundamentals of prompt engineering, based mainly on Andrew Ng's prompt engineering course. It serves as the lead-in to the prompt injection series —…
-
A Taxonomy of Prompt Injection
This post maps out the categories of prompt injection. The techniques themselves are covered in the next post, "Prompt Injection: A Summary of Techniques." Here's the min…
-
Prompt Injection: Cognitive Control
This is the first post in a five-part series on prompt injection. It documents 68 techniques, all centered on cognitive control.
-
Prompt Injection via Boundary Manipulation
This is the second post in the five-part prompt injection series. It covers five techniques, all centered on boundary manipulation — a smaller category than the others.
-
Prompt Injection: Instruction Reframing
Instruction reframing techniques exist to evade detection. There are many methods — changing how the attacker's instruction is represented, or changing its structure. The…
-
Prompt Injection: Integrated Instruction Attacks
This post covers the "integrated instruction" technique in prompt injection. The idea is that the malicious instruction cannot be delivered in a single message — it has t…
-
Prompt Injection: Multimodal Attacks
Multimodal attacks are just instructions delivered in a different form — as audio, video, or images. Multimodal models today handle text and also recognize images, audio,…
-
Prompt Injection: A Compilation of Cases
The techniques in the prompt injection series are mostly covered at this point; new ones will be added as they come up. This post collects a number of prompt injection ca…
-
Prompt Injection Cheat Sheet
The earlier posts covered prompt injection techniques and a set of combined cases. There are a lot of techniques, though, and it's hard to keep them all sharp — in practi…
-
Sensitive Information Leakage in LLM Security
Among the TOP 10 LLM security vulnerabilities, sensitive information leakage is included because AI systems are highly integrated with both internal and external data sou…
-
LLM Security: Insecure Plugins
Among LLM vulnerabilities, one category is insecure plugins. So what makes a plugin insecure? A model's own capabilities are limited, and many tasks depend on external to…
-
LLM Security: Unrestricted Resource Consumption
I previously wrote about DDoS against LLMs, which targets the network layer and aims to knock the service offline. This post is about unrestricted resource consumption, a…
-
Data Poisoning in LLM Security
Data poisoning means the data itself is malicious. A model's training set may be assembled from the web, and an attacker can plant malicious content in it in advance; if…
-
LLM Security: Insecure Output
In the LLM vulnerability taxonomy, insecure output handling means the model produces dangerous content, and that content has real consequences. A few common scenarios:
-
Excessive Agency in LLM Security
When companies build AI applications, they build features for the model to use — querying a database and passing the data to the model, for instance, much like a model pl…
-
LLM Security: DDoS Attacks
DDoS attacks were once on the LLM Top 10, but a later revision dropped the entry. They remain a common technique, so this post covers them across three layers: network, a…
-
LLM Security: Misinformation Vulnerability
This issue used to be called overreliance: users depend on and trust the model's output, but that output isn't necessarily accurate, so users receive wrong information an…
-
LLM Supply Chain Vulnerabilities
A supply chain is the entire pipeline a product goes through — raw materials, production, shipping, and delivery to the customer. On the internet, it covers development,…
-
Vector and Embedding Vulnerabilities in LLM Security
This issue applies to RAG, where a model is given an external knowledge base. The general flow: an embedding model converts all kinds of data into vectors — arrays of num…
-
The Four Lines of Defense for LLM Security
We've already gone through the OWASP Top 10 for LLM applications systematically and reproduced each issue — see the earlier posts. Each vulnerability has its own mitigati…