NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Networking Fundamentals
You cannot secure a network if you do not understand how data moves across it. The Networking Fundamentals learning path
ViewCredential Attacks
Amateurs think credential attacks are just about guessing "Password123" or running a generic brute-force script until th
ViewActive Directory Attacks
A comprehensive, advanced learning path covering the core methodologies of Active Directory exploitation. Progress from
ViewWeb Application Security
A comprehensive learning path covering the most critical web application vulnerabilities beyond basic injection. Progres
ViewNetwork Services Administration
This comprehensive learning path bridges the gap between foundational networking and enterprise infrastructure security.
ViewNetwork Forensics
Network traffic is the nervous system of any organization, and for attackers, it is the highway used for initial access,
ViewPreview · 30 min
Master direct prompt injection (LLM01). Learn how attackers bypass AI guardrails and how to defend using structural delimitation and output guardrails.
When people talk about AI security, "prompt injection" is the term you hear most. There are two main kinds: direct and indirect.
Direct prompt injection (OWASP LLM01) is the "front door" attack. The attacker talks directly to the Large Language Model (LLM) through the chat window, the API endpoint or an input field. They write a natural-language message by hand. The goal is to override the developer's system instructions, get past safety guardrails or make the model do something it should not. This is often called "jailbreaking".
Indirect injection is different. There the attacker poisons an outside source, such as a web page or a document, that the AI reads later. Direct injection is live probing. The attacker sits at the keyboard and tries wording after wording until one works.
For a security professional this is the base skill of AI red teaming and AI defence. It shows the core weakness of generative AI: the model cannot tell a developer's fixed security rule from a cleverly worded user message.
Note: All scenarios, code and targets in this lesson are fictional and made for isolated lab environments. Attack wording is never shown in this course. Where a log holds an attack message, you will see <redacted instruction>.
To see why direct injection works, look at how a naive application builds the prompt.
Visual: the anatomy of a vulnerable prompt
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in