AI Security & Guardrails | Prompt Injection, Jailbreaks & Safe Tool Use | FDE Full Course #19
FDE Full Course #19 Building an AI application is easy. Building one that can safely use tools, access data, and take real-world actions is a completely different problem. In this video, we understand GenAI Security & Guardrails from first principles and see why adding an LLM changes the traditional application security model. We cover: Why LLM-based applications create a new security problem Why LLM output should also be treated as untrusted Threat modelling for GenAI applications Direct vs indirect prompt injection Prompt injection through RAG documents, websites, emails, images and MCP resources Jailbreaks vs prompt injection Why system prompts are not security controls Why the LLM should propose actions, not authorize them Safe tool calling and least privilege Why tool arguments must always be validated Backend authorization and ownership checks Confirmation for destructive/high-risk actions Input, instruction, tool and output guardrails Moderation vs prompt-injection protection Using Spring AI Advisors for guardrails Request-level tool exposure in Spring AI The most important idea of this lecture: LLM = decision assistance Backend = security enforcement If breaking one line in your system prompt can create a security incident, that rule should probably be enforced in code as well. This video is part of the GenAI for Developers / FDE Series, where we are building production-oriented AI applications using Spring AI and Java. #GenAI #SpringAI #PromptInjection #AIsecurity #Guardrails #Java #SpringBoot #LLM #AIagents #GenerativeAI ------------------------------------------------------------------------------------------------------------- Code and Notes: Github : https://github.com/adityatandon15/Forward-Deployed-Engineer-Full-Course Spring Boot Full Course : https://youtube.com/playlist?list=PLEYgx5hMdopw&si=o1Njda0XgYXwg4xs JAVA Full Course Series : https://youtube.com/playlist?list=PLQEaRBV9gAFsR15tNo2QLF9d2qc-c018p&si=4qQP_euMTZMvAwNu Join our WhatsApp Group: https://www.whatsapp.com/channel/0029VbBF1XKF1YlMyYuPM23s We have paid courses on DSA, Web Development , Blockchain, System Design & GenAI. Join Courses: https://strikes.in/ Coder Army Website: https://coderarmy.in/#home Coder Army App: https://play.google.com/store/apps/details?id=com.rohit.negi Connect with Aditya Tandon Instagram : https://www.instagram.com/itsadityatandon LinkedIn : https://www.linkedin.com/in/adityatandon2 Twitter : https://x.com/adityatandon02 Timestamps:




Join the discussion
Sign in to join the discussion
Sign in