AI & LLM
Guardrails & safety
Defending against prompt injection, data leaks and unsafe agent actions.
Article
Guardrails and security for LLM applications: prompt injection, data leaks and tool permissions
Why prompt injection has no simple fix and how to build defence in depth – the OWASP Top 10 for LLM applications, input classifiers, least-privilege tools, human in the loop and safe output handling. Code in Python, TypeScript and C#.
Related articles
- LLMOps: model gateways, caching, limits, observability and costs in production
What happens to an LLM application after the demo – a gateway, prompt caching, retries and fallbacks, per-customer limits, token and cost tracking, prompt versioning and safe rollouts. With code in…
- AI coding assistants: from editor suggestions to an agent that opens pull requests
How to work with AI on code so you gain speed without losing quality: modes of work, project context (CLAUDE.md, AGENTS.md), the explore–plan–implement–verify cycle, change review, tests, security…
- Tool use: how a language model calls your application's functions
The model does not run code – it proposes tool calls that follow a schema, and your application executes them and sends the results back. The tool use loop step by step, good tool definitions,…
- Prompt engineering: writing instructions a model will actually follow
The anatomy of a good prompt, context instead of incantations, examples, structured outputs instead of begging for JSON, effort instead of "think step by step" and prompts treated as code – with…
- MCP (Model Context Protocol): one standard for connecting AI to tools and data
What the Model Context Protocol is, how the host–client–server architecture works, how tools, resources and prompts differ, how the stdio and Streamable HTTP transports work and how to write your…
- AI agents: a model in a loop with tools – and when a plain workflow is enough
How an agent differs from a single call and from a workflow, five workflow patterns, an agent loop with limits and an approval gate, context management, costs and security – illustrated by complaint…
Around the topic
- Simon Willison: Prompt injection article · web · Simon Willison
- The Dual LLM pattern for building AI assistants that can resist prompt injection article · web · Simon Willison
- Indirect Prompt Injection on Bing Chat article · web · greshake.github.io
- Delimiters won’t save you from prompt injection article · web · Simon Willison
- Prompt Injection: When Hackers Befriend Your AI - Vetle Hjelle - NDC Security 2024 video · youtube · NDC Conferences
- LLMRisks Archive article · web · OWASP
- NVIDIA-NeMo/Guardrails repo · github · NVIDIA-NeMo
- Formal Methods as Agent Guardrails podcast · apple-podcasts · Software Engineering Daily
- Don't Trust the Salt: AI Summarization, Multilingual Safety, and LLM Guardrails article · web · Roya Pakzad
- #717: Conversational AI with Amazon Nova Sonic, Amazon Bedrock Guardrails announces new capabilities podcast · apple-podcasts · AWS Podcast
- guardrails-ai/guardrails repo · github · guardrails-ai
- Sourabh Satish on Prompt Injection podcast · apple-podcasts · Software Engineering Radio - the podcast for professional software developers
- Sathiesh Veera on Engineering Data-Protection Guardrails with LLMs podcast · apple-podcasts · Software Engineering Radio - the podcast for professional software developers
- B. Martos - Agent-Friendly Data Platforms: Semantic Layers, Tool APIs, and Guardrails for Agentic video · youtube · PyData
- tldrsec/prompt-injection-defenses repo · github · tldrsec
- wuyoscar/AISafetyHot repo · github · wuyoscar
- GPT 6 Astra, so good even OpenAI are worried video · youtube · AI Explained
- The AI Language We Can't Read: Neuralese ft. Rob Miles - Computerphile video · youtube · Computerphile
- The Importance of AI Governance video · youtube · IBM Technology
- What is Responsible AI? A Guide to AI Governance video · youtube · IBM Technology
- Generative AI Under Control: Real-World Governance Examples video · youtube · IBM Technology
- AI Dev 25 | Justin Uberti: Introduction to the OpenAI Realtime API video · youtube · DeepLearningAI