← Latest papers
🤖 machine learning

One RNG to Rule Them All: How Randomness Becomes an Attack Vector in Machine Learning

This paper explores how vulnerabilities in pseudorandom number generators (PRNGs) across machine learning frameworks can be exploited as covert attack vectors and proposes **RNGGuard**, a tool that statically analyzes and dynamically replaces insecure random functions with secure implementations to protect machine learning systems.

Original authors: Kotekar Annapoorna Prabhu, Andrew Gan, Zahra Ghodsi

Published 2026-02-11
📖 3 min read☕ Coffee break read

Original authors: Kotekar Annapoorna Prabhu, Andrew Gan, Zahra Ghodsi

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Secret Ingredient: Why "Randomness" is the Achilles' Heel of AI

Imagine you are a master chef. To make your signature dish perfect, you don't just follow a recipe; you rely on "controlled chaos." You toss a handful of salt "just enough," you stir the pot in a random pattern to ensure even heat, and you pick a few secret spices at random to keep the flavor unique.

In the world of Artificial Intelligence (AI), randomness is that secret ingredient.

AI models use randomness for almost everything: picking which data to learn from, deciding how to "shuffle" information, and even adding "noise" to protect people's privacy. If the randomness is good, the AI is smart and fair. But if the randomness is "broken" or predictable, the whole kitchen falls apart.

The Problem: The "Rigged Dice" Scenario

The researchers at Purdue University discovered a scary reality: The "dice" that AI uses to make these random decisions are often rigged—sometimes by accident, and sometimes by design.

Think of it like this: Imagine a casino where the roulette wheel looks perfectly normal, but a clever thief has slightly weighted the ball so it always lands on red. To a casual observer, the game looks fair. But to the thief, the outcome is 100% predictable.

In AI, this happens because different software frameworks (the "toolkits" used to build AI) use different methods to generate random numbers. Some use "weak" randomness (like using the current time as a seed, which is easy to guess), and some use "insecure" randomness that isn't strong enough to protect private data.

If an attacker can predict the "random" numbers, they can:

  • Cheat the Privacy: They can "undo" the noise meant to hide your personal data, essentially seeing through a digital mask.
  • Sabotage the Brain: They can manipulate how the AI learns, making it biased, unfair, or causing it to fail at specific tasks.
  • Create Backdoors: They can hide "trapdoors" in the AI that only trigger when they want them to.

The Solution: RNGGUARD (The Digital Security Guard)

The researchers created a new system called RNGGUARD. Think of RNGGUARD as a high-tech, invisible security guard that stands over the AI chef's shoulder.

RNGGUARD works in two clever ways:

  1. The Blueprint Check (Static Analysis): Before the cooking even starts, RNGGUARD scans the entire recipe book (the code). It looks for any part of the process where a "cheap" or "unreliable" dice might be used. If it finds a weak spot, it marks it for replacement.
  2. The Live Auditor (Dynamic Analysis): While the AI is "cooking" (training), RNGGUARD performs live spot-checks. It’s like a food critic who occasionally grabs a spoonful of the sauce to check if the seasoning is actually random or if it’s being manipulated. If the "sauce" tastes suspicious (meaning the numbers aren't statistically random), RNGGUARD sounds an alarm and swaps in a high-quality, "cryptographically secure" version of the randomness.

Why This Matters

As we move toward a world where AI makes decisions about our medical diagnoses, our bank loans, and our privacy, we can't afford to have "rigged dice" in the system.

This paper proves that we need to stop treating randomness as a background detail and start treating it as a critical security feature. RNGGUARD is a step toward ensuring that when an AI says a decision is "random," it actually is.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →