Inference Attacks: When Separate Facts Reveal a Private Answer
A report doesn't have to list your salary to reveal it. If two exact totals cover the same group of people except for you, subtracting one from the other can expose your pay.
An inference attack draws out sensitive information from other available facts or system outputs. The attacker may use access they're already allowed to have, without opening a private record directly.
Two totals can expose one person
Suppose a reporting tool hides individual salaries but lets someone request these two totals for the same year. This is a fictional example, with no other changes between the groups:
| Report | Annual salary total |
|---|---|
| Five employees, including Sam | $390,000 |
| The same group, excluding Sam | $312,000 |
The difference is $78,000: Sam's salary. Each report summarizes several people, yet the two answers together disclose one person's information.
This is a differencing attack—comparing closely related results to isolate what's changed. Checking each report on its own would miss the disclosure created by their overlap.
What Counts as Personal Information?
The National Institute of Standards and Technology, or NIST, warns that aggregate statistics can expose individual records. An aggregate is a summary across records, such as a count, average, or total.
Removing names doesn't remove every connection
Another route is to match records across different data sets—collections of related records. A combination such as birth date and location may connect an unnamed record to information published elsewhere.
That connection can attach a person's identity to something sensitive in the first data set. The strength of the match depends on the details available; not every combination identifies someone uniquely.
NIST's privacy explanation describes why removing direct identifiers, such as names, and allowing only grouped results aren't complete protections by themselves.
A guess based on a broad pattern is different from the exact subtraction in the salary example. Good analysis should state how confident the conclusion is instead of presenting every inference as a proven fact.
- Work on a plane or train without the next seat reading along.
- Cut glare and fingerprints with the matte surface.
- Flip it up in a second when you want to share your screen.
AI models can disclose a different kind of fact
A machine-learning model is software trained on examples to recognize patterns or make predictions. A membership inference attack tries to determine whether a particular record was among those training examples.
Researchers demonstrated this kind of attack using differences in models' responses to records they had and hadn't trained on. It doesn't mean every model reveals its training records, or that an attacker necessarily recovers the full record.
Membership alone can be sensitive: learning that someone's record belongs to a particular medical data set could disclose something they wanted kept private.
Protect the combined view
For a reporting system, review what users can learn across multiple answers, including information they might already know. Restricting tiny groups can help with obvious disclosures, but two larger overlapping groups can still reveal a small difference.
Differential privacy offers a mathematical way to limit how much an analysis's results depend on one person's contribution. Methods often add carefully calibrated randomness, commonly called noise, to the results.
NIST's guidance explains that the protection depends on the design and its privacy settings. Repeated releases must be considered together, and stronger privacy can reduce the precision of the answers.
For the salary tool, the question isn't just whether Sam's name appears. It's whether the answers available to the same user let them work out Sam's pay anyway.
Data Aggregation: How Useful Summaries Can Mislead You

Data Mining: How Patterns Become Useful—and Misleading

Privacy: What Happens to Your Data After You Share It?

QUOTE:
"Amateurs hack systems, professionals hack people."
