One RNG to Rule Them All: How Randomness Becomes an Attack Vector in Machine Learning
Not on the map. Why?
Abstract (arXiv)
Machine learning relies on randomness as a fundamental component in various steps such as data sampling, data augmentation, weight initialization, and optimization. Most machine learning frameworks use pseudorandom number generators as the source of randomness. However, variations in design choices and implementations across different frameworks, software dependencies, and hardware backends along with the lack of statistical validation can lead to previously unexplored attack vectors on machine learning systems. Such attacks on randomness sources can be extremely covert, and have a history of exploitation in real-world systems. In this work, we examine the role of randomness in the machine learning development pipeline from an adversarial point of view, and analyze the implementations of PRNGs in major machine learning frameworks. We present RNGGuard to help machine learning engineers secure their systems with low effort. RNGGuard statically analyzes a target library's source code and identifies instances of random functions and modules that use them. At runtime, RNGGuard enforces secure execution of random functions by replacing insecure function calls with RNGGuard's implementations that meet security specifications. Our evaluations show that RNGGuard presents a practical approach to close existing gaps in securing randomness sources in machine learning systems.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 87 references that are in the map. First posted on arXiv 9 Feb 2026.
Builds on
34 of 87 references.
References · 34
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2019Certified Adversarial Robustness via Randomized Smoothingcited by 1,324
- 2019Deep Leakage from Gradientscited by 1,004
- 2021Membership Inference Attacks From First Principlescited by 839
- 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 500
- 2021Opacus: User-Friendly Differential Privacy Library in PyTorchcited by 375
- 2020FedML: A Research Library and Benchmark for Federated Machine Learningcited by 298
- 2017Certified Defenses for Data Poisoning Attackscited by 288
22 more
- 2021Manipulating SGD with Data Ordering Attackscited by 73
- 2020ML Privacy Meter: Aiding Regulatory Compliance by Quantifying the Privacy Risks of Machine Learningcited by 66
- 2022Taxonomy of Attacks on Open-Source Software Supply Chainscited by 57
- 2019Diffprivlib: The IBM Differential Privacy Librarycited by 51
- 2014Fractional Max-Poolingcited by 35
- 2023Label Poisoning is All You Needcited by 27
- 2023On The Impact of Machine Learning Randomness on Group Fairnesscited by 26
- 2024Nearly Tight Black-Box Auditing of Differentially Private Machine Learningcited by 19
- 2023An Empirical Study of Malicious Code In PyPI Ecosystemcited by 18
- 2024Models Are Codes: Towards Measuring Malicious Code Poisoning Attacks on Pre-trained Model Hubscited by 16
- 2023DP-Auditorium: a Large Scale Library for Auditing Differential Privacycited by 11
- 2023Machine Learning needs Better Randomness Standards: Randomised Smoothing and PRNG-based attackscited by 6
- 2021Secure Random Sampling in Differential Privacycited by 5
- 2022Augmentation Backdoorscited by 5
- 2019On the security relevance of weights in deep learningcited by 4
- 2025PickleBall: Secure Deserialization of Pickle-based Machine Learning Models (Extended Report)cited by 3
- 2020Randomness Concerns When Deploying Differential Privacycited by 2
- 2023Dropout Attackscited by 2
- 2025Sentry: Authenticating Machine Learning Artifacts on the Flycited by 2
- 2023AnoFel: Supporting Anonymity for Privacy-Preserving Federated Learningcited by 1
- 2023Random Number Generators and Seeding for Differential Privacycited by 1
- 2025Scalable GPU-Based Integrity Verification for Large Machine Learning Modelscited by 1
Built on by
Not cited yet.