---
title: "Discussion on \"Defending LLMs: What Actually Works, and Where It Still Breaks\" | Hashnode"
description: "Discussion on \"Defending LLMs: What Actually Works, and Where It Still Breaks\". Part 2 of the LLM security series: how sandwich defenses, privilege separation & output validation actually stop prompt injection & jailbreaks."
url: "https://hashnode.com/posts/defending-llms-what-actually-works-and-where-it-still-breaks/6a613cf6032c881a9a74b390"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Defending LLMs: What Actually Works, and Where It Still Breaks](https://ayeshakoder.hashnode.dev/defending-llms-what-actually-works-and-where-it-still-breaks?utm_source=hashnode&utm_medium=feed)

Part 2 of the LLM security series: how sandwich defenses, privilege separation & output validation actually stop prompt injection & jailbreaks.

Jul 22 · 8 min read · ayeshakoder.hashnode.dev  
Updated Oct 10  
Read the article

-   [#llm-security](https://hashnode.com/tag/llm-security)
-   [#promptinjections](https://hashnode.com/tag/promptinjections)
-   [#ai-security](https://hashnode.com/tag/ai-security)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#cybersecurity](https://hashnode.com/tag/cybersecurity)
-   [#redteaming](https://hashnode.com/tag/redteaming)
-   [#federated-learning](https://hashnode.com/tag/federated-learning)

## Written by

[Ayesha Khan](https://hashnode.com/@ayeshakhalil)

@ayeshakhalil

  
[View profile](https://hashnode.com/@ayeshakhalil)

I build AI, then try to break it.

Computer engineering grad. I build cool stuff and write about it here mostly for myself, and for anyone else who's into the same rabbit holes. No polish, just what I actually learn while building.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
