Topic
Prompt Injection & Jailbreaking
5 posts on prompt injection & jailbreaking — part of glossary on the n4n AI blog.
Prompt injection explained: how attackers hijack LLMs
A practitioner's guide to prompt injection — what it is, how attackers exploit it, real attack patterns, and the misconceptions that leave systems vulnerable.
How to defend against prompt injection attacks
A practical step-by-step guide to defending LLM applications against prompt injection attacks with code examples and verification methods.
How RAG pipelines are vulnerable to prompt injection
How RAG pipelines expose new prompt injection attack surfaces through retrieved content, with concrete exploitation examples and mitigation strategies.
Direct vs indirect prompt injection attacks
Direct vs indirect prompt injection explained: definitions, attack mechanics, a concrete RAG example, and practical mitigations for engineers building LLM systems.
Can prompt injection ever be fully prevented
A practitioner's analysis of whether prompt injection can be fully prevented, examining architectural limits, mitigation strategies, and why defense-in-depth is the only viable approach.
More topics in glossary
- Structured Outputs & JSON Mode19
- AI Agents Fundamentals12
- Hallucination in LLMs11
- Sampling Parameters: Top-p, Top-k & Penalties11
- Context Window & Context Length10
- Fine-Tuning Fundamentals9
- Foundation Models: Base vs Instruct vs Chat9
- Model Families & Naming Conventions: GPT-5, Claude, Gemini 3, Llama 4, Mistral, DeepSeek, Qwen, Grok9
- Grounding & Fact-Checking in AI8
- LLM Benchmarks: MMLU, HumanEval, SWE-bench & GPQA8
- Max Tokens, Stop Sequences & Output Truncation8
- Quantization Formats: GGUF, GPTQ, AWQ & INT4/INT88