Inference (database security)

Deducing sensitive information from data a user is permitted to see, by reasoning over query results, patterns or system responses, without accessing the protected data directly.

Inference is the deduction of information a user is not authorised to see from information they are authorised to see. The user retrieves nothing forbidden; the disclosure happens through reasoning. An analyst may combine permitted query results, notice how a salary total changes when one employee is excluded, or read a clue in system behaviour, such as a refusal that differs from an ordinary empty result. It is a classic concern in multilevel secure databases but is not confined to them; statistical databases face it too.

It is commonly confused with aggregation. Aggregation assembles many individually low-sensitivity items into a collection more sensitive than any single item, and needs no deduction; inference needs a reasoning step. The defences differ too. Against inference, designers make responses indistinguishable through polyinstantiation, restrict what can be combined through database views and content-dependent access control, withhold small counts through cell suppression, or add calibrated noise through noise and perturbation and differential privacy. Aggregation is usually addressed by classifying the compilation above the level of its parts.

Exam relevance: a scenario in which a user reaches a sensitive conclusion from permitted data is likely to point to inference, while one in which a user accumulates many permitted records is likely to point to aggregation. Candidates are expected to match each to its countermeasure.