Code on GitHub2025Research · AI safety
Exposing security vulnerabilities in open-source AI
For my BSc dissertation I tried backdoor attacks on eight open-source models from Hugging Face, across audio, image and text.
None of the attacks worked reliably. One looked like it had, but it was a bug in my test harness.
- 8: models attempted, 4 with saved outputs
- 3: modalities
- 0: reliable compromises
- 1: false positive caught
How it's built
Single-shot poisoning didn't reliably work on any of the eight, and only four left saved outputs I could check. I later rebuilt the code as a Python package with tests and a CLI.
Built with Python, PyTorch, Transformers, pytest