Home▸Cybersecurity▸Evasion & Poisoning Attacks on 3D Classifier

🧬 Evasion & Poisoning Attacks on 3D Classifier

A 3D nearest-centroid classifier over a feature-space cube: run a real FGSM-style evasion attack that perturbs a single input vector across the decision boundary, or a data-poisoning attack that injects mislabeled training points and drags the boundary itself.

Cybersecurity3DModerate60 FPS
Evasion & Poisoning Attacks on 3D Classifier ↗ Open standalone

A nearest-centroid classifier partitions a 3D feature cube into two regions with a real, computed decision boundary — the perpendicular bisector between the mean of each training class. A target input vector sits correctly classified as Class A, close enough to the boundary to be attackable. Switch to Evasion to run a genuine FGSM-style attack: the classifier's gradient is constant and known exactly, so a small step along its sign is enough to nudge the target across the boundary without meaningfully changing where it sits in feature space. Switch to Poisoning instead to leave the target completely untouched and instead inject mislabeled training points near it — enough of them pull Class B's centroid across the boundary until the target falls on the wrong side purely because the model itself moved.

⚙ Under the hood

Adjust coordinates of a target point to evade classification or inject mislabeled points to poison the model in a 3D feature space.

Three.jsAdversarial ExamplesData PoisoningMachine LearningCybersecurity

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)