惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Y
Y Combinator Blog
博客园 - 聂微东
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
小众软件
小众软件
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
B
Blog
H
Help Net Security
D
Docker
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
罗磊的独立博客
月光博客
月光博客
博客园 - 司徒正美

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
18 Ways Your LLM App Can Be Hacked (And How to Fix Them)
maruakshay · 2026-04-29 · via DEV Community

maruakshay

You spent weeks building your LLM-powered app. You tested the happy path. Users love it.

But did you ask: what happens when someone tries to break it?

Most teams don't. And that's a problem — because LLM apps have a completely new attack surface that traditional security tools don't cover.

Here are 18 real ways attackers go after LLM systems right now.


Prompt Attacks

1. Direct Prompt Injection
User types instructions that override your system prompt. "Ignore previous instructions and..." — classic. Still works on most apps.

2. Indirect Prompt Injection
Malicious instructions hidden inside documents, emails, or web pages your LLM reads. The user never types anything. The attack comes from your data.

3. Jailbreaking
Role-playing, fictional framing, or encoded text used to bypass your safety guardrails. "Pretend you're DAN..."

4. Prompt Leaking
Attacker tricks the model into revealing your system prompt. Your carefully crafted instructions — exposed.

5. Few-Shot Injection
Attacker poisons the examples inside your prompt to shift model behavior across the entire session.


Memory & Context Attacks

6. Memory Poisoning
In apps with persistent memory, attacker plants false beliefs early. The model carries them forward forever.

7. Context Window Stuffing
Flood the context with noise to push your system instructions out. Model forgets who it's supposed to be.

8. Session Hijacking
Steal or reuse another user's conversation context. Read their history. Impersonate them.

9. Cross-Session Leakage
In multi-tenant setups, one user's data bleeds into another's context. Happens more than people admit.


RAG & Tool Attacks

10. RAG Poisoning
Inject malicious documents into your vector store. When retrieved, they manipulate the model's response.

11. Embedding Inversion
Reconstruct original text from vector embeddings. Your "anonymized" data — reconstructed.

12. Tool Abuse
LLM has access to tools (search, code exec, APIs). Attacker crafts inputs that make the model call tools it shouldn't.

13. SQL / Command Injection via LLM
Model generates queries or shell commands from user input. Classic injection — new delivery method.


Agentic & Supply Chain Attacks

14. Agent Hijacking
In multi-agent systems, one compromised agent issues malicious instructions to others. Trust boundary collapse.

15. Privilege Escalation
Agent starts with limited permissions. Attacker chains tool calls to gain broader system access step by step.

16. Model Supply Chain Attack
You download a fine-tuned model or adapter. It has backdoors baked in. You ship it to production.

17. Plugin / MCP Poisoning
Third-party plugins or MCP servers your LLM connects to are compromised. Your app becomes the delivery mechanism.


Output Attacks

18. Insecure Output Handling
LLM output rendered directly in UI without sanitization. Attacker uses the model to generate XSS payloads, malicious links, or social engineering content.


So What Do You Do?

Security for LLM apps isn't one tool. It's a mindset applied at every layer — prompts, memory, RAG, tools, agents, and output.

I built miii-security: a set of 18 SKILL.md packs that cover every category above. Each skill gives your AI system the context to review, audit, and harden LLM applications — mapped to OWASP and MITRE frameworks.

No 50-page whitepapers. No expensive consultants. Just:

npm i miii-security

Enter fullscreen mode Exit fullscreen mode

Fetch a skill → apply its checks → ship safer.

👉 github.com/maruakshay/mii-ai-security
👉 npmjs.com/package/miii-security


If you're building with LangChain, LlamaIndex, OpenAI APIs, or any agentic framework — this is for you. Star the repo, open issues, tell me what I missed.