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
Preview · 30 min
Master inference-time AI poisoning. Learn how attackers weaponize RAG context via indirect prompt injection, and defend with strict ingestion sanitization.
In the first lesson we met training-time poisoning, where attackers corrupt the model weights by adding malicious data before deployment. It needs deep access to the MLOps pipeline and is increasingly reduced by strict data provenance and cryptographic signing.
But a perfectly trained, unpoisoned model can still be attacked. This is inference-time poisoning.
Inference-time poisoning happens after the model is deployed, during runtime. The weights stay clean and verified. Instead, the attacker corrupts the environment the model works in: the live data sources, the retrieval context (such as a RAG pipeline) or the user feedback loops the model relies on.
Modern LLMs are built to be compliant and treat retrieved context as "ground truth". So an attacker can hide instructions in data that looks harmless. When the model retrieves that data, it follows the instructions without knowing. The most common form is Indirect Prompt Injection through RAG poisoning.
For a security professional this moves the defensive perimeter from the MLOps training pipeline to the live data ingestion, retrieval and runtime layers.
All scenarios and data in this lesson are fictional and meant for isolated lab practice.
To see how it works, map the data flow at runtime and find the place where the chain of trust breaks.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign inNetwork Forensics
Network traffic is the nervous system of any organization, and for attackers, it is the highway used for initial access,
ViewCybersecurity Foundations
Every great security professional starts with a rock-solid foundation. The Cybersecurity Foundations learning path is de
ViewSOC Fundamentals
Dive into the daily operations of a modern Security Operations Center. The SOC Fundamentals learning path breaks down ho
ViewIncident Response
Incident Response is the ultimate test of a security team. When the alerts turn into a confirmed breach, theory goes out
ViewMalware Analysis Fundamentals
Malware is the primary weapon in a cyber attacker's arsenal, but to defeat it, you must first understand how it works. M
ViewTimeline Analysis and Artifact Correlation
This learning path focuses on the advanced discipline of timeline analysis and artifact correlation in Digital Forensics
View