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
Linux Fundamentals for Cybersecurity
Linux is the backbone of modern cybersecurity. Whether you are defending enterprise servers, analyzing malware, or launc
ViewSOC Tools: Hands-On Practicals
Theory is useless without muscle memory. You can read a hundred books on how a SIEM works, but until you’ve stared down
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,
ViewUnpacking and Anti-Analysis Evasion
Master the techniques malware analysts use to unpack protected binaries and overcome anti analysis mechanisms. Learn how
ViewPreview · 30 min
Master how attackers embed triggers during AI training. Learn about clean-label poisoning, gradient descent exploitation, and defend with activation clustering.
In the last lesson we saw what a backdoored model is and how a trigger activates it. Now the key question: how does the trigger get there in the first place?
Attackers almost never edit the billions of numbers in a weight matrix by hand. That would be far too hard and would likely destroy the model. Instead, they use the basic mechanism of machine learning itself: gradient descent.
By shaping a small part of the training data, they shape the model's loss function. The network then learns the backdoor on its own, as a very efficient "shortcut" to reduce training error. The model is not broken. It does exactly what the maths says, and it optimises for the poisoned goal that was hidden in the data.
For a defender, this explains three things: why normal data validation fails, why clean-label attacks are so damaging, and why protecting the training pipeline needs more than basic data cleaning.
All scenarios and data in this lesson are fictional and meant for isolated lab practice.
During training the model updates its weights to minimise the loss, the gap between its prediction and the correct label.
When poisoned samples are added, a strong artificial link appears between a trigger and a target label. Neural networks are universal function approximators, so they take the easiest, most reliable pattern that lowers the loss. If the trigger is rare and distinctive, the model dedicates specific neurons to it. This creates a narrow "backdoor pathway" in the weight matrix.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in