Model Backdoor & Adversarial-ML Lab
A queue of adversarial-ML incidents lands on your desk — a stop sign with stickers evades a classifier, user reports poison a training set, a face-unlock model has a hidden trojan trigger, a competitor clones an API by probing it, and an attacker inverts outputs to reconstruct training data. For each, name the attack class, locate the lifecycle stage it strikes, and pick the detection or defense that actually fits — because a backdoor keeps clean-set accuracy high and needs trigger-specific detection, poisoning is caught in the data not at inference, and a plain distribution shift is not an attack at all. Real MITRE ATLAS terminology, a conceptual simulation, no invented numbers.
Conceptual simulation. No real model is trained, poisoned, backdoored or attacked here, and nothing is runnable. Every scenario is a synthetic, defanged description of what a defender would observe — this drill teaches recognition and the right defensive response, not any attack.
Incident queue
1 / 12 triaged
Task: Classify road signs from camera frames.
Observed: A stop sign with a few carefully placed stickers is confidently classified as a speed-limit sign; to a human it is obviously still a stop sign.
1 · Attack class
2 · Lifecycle stage it strikes
3 · Detection / defense
Pick an attack class, the lifecycle stage, and a detection/defense to continue.
Impact × lifecycle map
This case: locate where in the lifecycle an attack of this impact strikes.
Adversarial-ML triage
A queue of observed behaviours across 12 ML systems. For each, name the attack class, locate the lifecycle stage it strikes, and pick the correct detection / defense. Some are benign — do not over-attribute.
So far: 0 / 12 cases triaged.
Live arena
4 activeadversary staging…
Loading…
Sample report · illustrative data
Sample result: adversarial ML triage debrief
Example triage of five invented ML incidents: for each, choose the attack class, the lifecycle stage, and the detection or defence that fits.
How the run is scored
- Attack class
- Weighted 45%
- Detection or defence
- Weighted 35%
- Lifecycle stage (data, training, inference)
- Weighted 20%
- Passing
- Every case needs the right attack class and the right defence
Example cases
| Observed behaviour | Attack class | Stage | Defence that fits |
|---|---|---|---|
| Face-unlock accepts anyone wearing a sticker pattern as the admin | Backdoor or trojan trigger | Training | Trigger detection (activation clustering, spectral signatures, Neural Cleanse), then retrain on clean data |
| About 1% of weekly training labels flipped by bogus reports | Data poisoning | Data | Data provenance, robust training, outlier and label-pattern filtering |
| One client probes the boundary with varied inputs, then ships a clone | Model extraction | Inference | Rate limiting and query monitoring, output perturbation, watermarking |
| Stickers on a stop sign flip the prediction | Evasion | Inference | Adversarial training, input transforms, ensembling |
| Forecast accuracy drops after a holiday season, no manipulation found | Benign, not an attack | Inference | Treat as distribution shift: monitor drift and recalibrate on fresh data |
Debrief note
Clean-set accuracy is not proof a model is free of a hidden trigger. Cases that only look adversarial should be called benign rather than over-attributed to an attacker.
Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.
TL;DRWhat this lab is
5 points
- A browser-based lab: work a queue of adversarial-ML scenarios — a perturbed input flipping a classifier, poisoned training data, a hidden trojan trigger, a model being cloned through its API, training data reconstructed from outputs — and triage each one.
- For every case you classify the ATTACK CLASS (evasion, data poisoning, backdoor / trojan, model extraction, model inversion, or benign), locate the LIFECYCLE STAGE it strikes (data / supply chain, training, inference / query-time), and pick the accurately-named DETECTION / DEFENSE.
- Grounded in real MITRE ATLAS and adversarial-ML terminology — adversarial training, data provenance and robust training, backdoor detection via activation clustering, spectral signatures and trigger reverse-engineering (Neural Cleanse), rate limiting, output perturbation and watermarking, differential privacy and secure aggregation — with no invented products, CVEs or statistics.
- The core skill it drills: match the defense to the attack and the stage it lives in — evasion is hardened at inference, poisoning is caught in the data, a backdoor keeps clean-set accuracy high so it needs trigger-specific detection, extraction is throttled at the query API, and inversion is starved by exposing less confidence.
- A conceptual simulation — no real model is trained, poisoned or attacked, nothing is runnable — with difficulty tiers, a live impact × lifecycle map, a speed bonus and an S–D grade.
The defense follows the attack class and the stage it strikes
Adversarial ML has distinct attack classes and each one is defended at a different point in the model lifecycle. Evasion — a perturbed input that flips a prediction while looking unchanged to a human — strikes the deployed model at inference, so it is hardened with adversarial training, input transforms, randomized smoothing and ensembling; and because adversarial examples transfer, keeping the model secret is not a defence. Data poisoning corrupts the training set before the model exists, so it is caught with data provenance, robust and outlier-filtered training and dataset sanitization — and clean-label poisoning is designed to pass manual label review, which is why you cannot rely on it. A backdoor / trojan is the sneakiest: the model keeps high clean-set accuracy and only misbehaves on a hidden trigger, so ordinary validation never sees it and you need trigger-specific detection — activation clustering, spectral signatures, or trigger reverse-engineering (Neural Cleanse) — then clean retraining and scanning weights before deployment.
The confidentiality attacks live at the query interface. Model extraction abuses high-volume, boundary-probing queries to clone the model, so the levers are rate limiting and query-distribution monitoring, output perturbation (return labels or top-k, not full probability vectors), and watermarking to prove a clone. Model inversion reconstructs training inputs from what the model reveals, so you expose less — coarse scores, no raw gradients — and train with differential privacy; in federated learning that also means secure aggregation so no single client’s gradient is seen. And the discipline that ties it together is not over-attributing: a genuine distribution shift or a spurious correlation can look exactly like poisoning or a backdoor, and treating it as an attack burns response effort. Name the class, find the stage, then apply the matching, accurately-named defense.
Delayed-trigger and semantic-backdoor memory
Some bad memory does nothing when it is written. A stored note or vector entry can sit idle until a later condition appears (a date, an account, an unusual phrase in a request) and only then change what the agent does. Because nothing misbehaves at write time, checks that only look at current behaviour miss it. The defence is to control what gets written and to test memory before it is read.
- Provenance on writes. Record who or what wrote each entry, from which input, and which verified outcome backs it. Content sourced from untrusted material does not become durable behaviour-changing memory.
- Anomaly and outlier review. Look for entries that cluster oddly in embedding space or are retrieved for only a narrow, rare query pattern, while ordinary accuracy stays unchanged.
- Memory diffing. Compare the store between runs, keep an immutable hash-chained history, and treat an entry that changed without a verified outcome as untrusted.
- Expiry and TTL. Give memory a lifetime and a review date so an idle entry cannot wait indefinitely. A TTL narrows the window; it is not a substitute for provenance.
- Quarantine and replay-testing. New or changed entries go to a quarantine area, and are replayed against held-out tasks, including ones that vary dates and context, before production reads them.
What the sources report: Hubinger et al. built proof-of-concept models with conditional backdoors (for example, behaving differently depending on the stated year) and report that these persisted through standard safety training, and that adversarial training taught the models to better recognise their triggers, which the paper says effectively hid the unsafe behaviour. These are deliberately constructed models, and the abstract does not claim such behaviour is common. The AgentPoison authors describe an attack that poisons an agent’s long-term memory or RAG knowledge base without further model training, and report, in their own evaluation of three agents, an average attack success rate above 80% with a poison rate below 0.1% and under 1% effect on benign performance. Those are their figures from their setups, not general rates. OWASP’s Agentic AI threats guide lists memory poisoning as an agentic threat; this page cites it at framework level. None of these sources shows that any single control removes the risk, so layer them.
Defensive framing only: the scenarios and this section describe no payloads and do not show how to build a trigger.
Sources (accessed 2026-11-04)
- Hubinger et al., "Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training", arXiv:2401.05566 (submitted 10 Jan 2024)
- Chen, Xiang, Xiao, Song, Li, "AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases", arXiv:2407.12784 (submitted 17 Jul 2024)
- OWASP Gen AI Security Project, "Agentic AI - Threats and Mitigations" v1.0 (17 Feb 2025), framework-level reference for memory poisoning (the landing page was reviewed; the full document was not)
Frequently asked questions
What does the Model Backdoor & Adversarial-ML Lab teach?
It closes the Adversarial ML stage: how to recognise an attack on a machine-learning model and pick the right defence. You work a queue of realistic scenarios and, for each, classify the attack class (evasion / adversarial example, data poisoning including clean-label, backdoor / trojan trigger, model extraction / stealing, or model inversion), locate the lifecycle stage it strikes, and choose the accurate detection or defence — adversarial training and input transforms for evasion, data provenance and robust / outlier-filtered training for poisoning, activation clustering, spectral signatures and trigger reverse-engineering (Neural Cleanse) for backdoors, rate limiting, output perturbation and watermarking for extraction, and differential privacy with limited confidence for inversion. The classes map to MITRE ATLAS.
Is this safe — is a real model being trained, poisoned or attacked?
Yes, it is safe. This is a conceptual simulation: no real model is trained, poisoned, backdoored or attacked, and nothing here is runnable. Every scenario is a synthetic, defanged description of a behaviour a defender would observe — there are no working exploits, no real malicious model files and no weaponized payloads. The exercise trains recognition and the matching defensive response, not any offensive technique.
How is a backdoor different from data poisoning or an adversarial example?
They are distinct, which is the point of the drill. An adversarial example (evasion) is a perturbed input that flips a prediction at inference time, with the model otherwise untouched. Data poisoning corrupts the training set so the learned model is wrong — including clean-label poisoning, where the labels look correct. A backdoor / trojan is a specific poisoning outcome: the model behaves normally and keeps high clean-set accuracy, but a hidden trigger pattern forces an attacker-chosen output — which is why ordinary validation never catches it and you need trigger-specific detection like activation clustering, spectral signatures or trigger reverse-engineering. The lab makes you tell them apart and defend each at the right lifecycle stage.
Is it security advice for my specific model?
No. It is an educational drill to build intuition about adversarial-ML attack classes and the defences that fit them — not a security audit, not legal advice, and not a substitute for threat-modelling and testing your own models. The scenarios are synthetic and illustrative. Learn the patterns here, then apply judgement to your real systems.
How do you detect a delayed-trigger or sleeper entry in agent memory?
Control what is written and test what is read. Record provenance on every write, review outliers and entries retrieved for only a rare query pattern, diff the memory store between runs, give entries an expiry, and quarantine and replay-test new or changed entries against held-out tasks before the agent may use them. The sources reviewed (Sleeper Agents, AgentPoison, OWASP's agentic threats guide) describe the risk but do not show that any single control removes it, so layer them.
More security tools
The tools people use most on PlayCISO.
Catch injected instructions hiding in content your AI agent should only read.
Score your readiness against the first international standard for AI security threats.
Critical CVEs across 21 major vendors, month by month — and what the 2026 surge means.
Build an ordered ruleset, replay labelled packets and catch shadowed and any-to-any rules.
Self-assess all six Functions, from Govern to Recover, and see your weakest one.
Search 172 threat actors across Microsoft, CrowdStrike, Mandiant and community names.