Quebec Law 25: Privacy by Default, Consent and the Anonymization Standard

Two of Law 25’s requirements cannot be met by a policy document, because they are enforced in the product itself: the settings your software ships with, and the state your data is actually in when you claim it is anonymised.

Most guidance on Quebec’s Law 25 is written for the legal function, and it reads like a checklist of policies to draft. That framing quietly misses the two obligations that land squarely on the technology function. Privacy by default is a property of the configuration you release, not the privacy notice you publish. And anonymisation, under Law 25, is a technical standard your pipeline either meets or does not — with the uncomfortable consequence that data falling short of it remains personal information, fully in scope, no matter what you call it. Both are code problems wearing a compliance badge.

Privacy by default is a shipped setting

Section 9.1 of Quebec’s private-sector privacy Act, in force since 22 September 2023, requires that where an enterprise collects personal information while offering a technological product or service with privacy settings, those settings must provide the highest level of confidentiality by default, without any intervention by the person concerned. The regulator’s phrase to note is “by default”. This is not a consent banner or a preferences page the user is invited to tighten. It is the state the account is in the moment it is created, before anyone touches anything.

Free · 4 minutes

When two of your systems disagree, do you know which one to believe?

Fourteen questions on ownership, lineage, and quality — the difference between a number on a dashboard and a number you could defend. Banded finding on screen, full sheet by email.

In practice that inverts how most products are built. The common pattern is that visibility, sharing, discoverability and secondary-use toggles all default to “on”, because engagement metrics reward it and because it is easier to let users opt out than to design an opt-in flow. Section 9.1 makes the opposite the legal baseline. A new profile should default to the most private option: not publicly discoverable, not indexed, location off, data sharing with third parties off, secondary analytics off. The user can loosen those if they choose. They must not have to.

The requirement carries one explicit carve-out worth knowing: it does not apply to browser cookies. That exclusion is narrow. It does not license permissive defaults elsewhere, and profiling technologies that identify or locate a person carry their own transparency duties. If your firm sits outside Quebec and is wondering whether any of this reaches you, the answer usually turns on whether you collect personal information from people in Quebec — a point worth settling early rather than assuming distance protects you.

Anonymisation is a standard, not a verb

The second obligation is stricter than most teams assume. Under Law 25, once the purposes for which personal information was collected are fulfilled, the enterprise must destroy the information or, if it wants to keep using it for serious and legitimate purposes, anonymise it. The Regulation respecting the anonymization of personal information, in force since 30 May 2024, defines what that word means, and it sets a high bar.

Information is anonymised only when it is, at all times, reasonably foreseeable in the circumstances that it irreversibly no longer allows the person to be identified, directly or indirectly. The regulation accepts that residual re-identification risk need not be exactly zero, but it must be very low. The critical word is “irreversibly”. Stripping names and hashing an identifier does not clear this bar; that is de-identification, which prevents direct identification but leaves indirect identification possible. De-identified data remains personal information under the Act. Anonymised data leaves the Act’s scope entirely. The gap between the two is where firms get caught claiming an exemption they have not earned.

The tests your pipeline has to pass

The regulation frames re-identification risk around a small set of questions your data has to survive. Can a single individual be singled out within the dataset (individualisation)? Can records about the same person be linked across datasets (correlation)? Can attributes about a person be deduced from what remains (inference)? And all of this has to be judged against information reasonably available to whoever might attempt re-identification, including data already in the public domain. A pipeline that only removes obvious identifiers answers none of these; it merely makes them harder to notice.

That is why anonymisation belongs in the pipeline as a gate, not as a one-off script someone runs before a data share. Below is the shape of an individualisation gate: strip direct identifiers, generalise the quasi-identifiers, then refuse to release the output unless every combination of quasi-identifiers describes a group large enough that no one is singled out. The threshold is a policy decision the qualified person sets from the risk analysis, not a number the law hands you.

# Individualisation gate for a Law 25 anonymisation pipeline.
# It enforces one criterion (singling-out); correlation and inference
# against externally available data must be assessed separately.
import pandas as pd

DIRECT_IDENTIFIERS = ["full_name", "email", "phone", "sin", "customer_id"]
QUASI_IDENTIFIERS = ["postal_code", "birth_year", "gender"]

def _generalise(df):
    out = df.copy()
    # Postal code down to its forward sortation area (first three chars).
    out["postal_code"] = out["postal_code"].str.slice(0, 3)
    # Birth year into five-year bands.
    out["birth_year"] = (out["birth_year"] // 5) * 5
    return out

def _smallest_group(df, quasi):
    # Size of the smallest equivalence class across the quasi-identifiers.
    return int(df.groupby(quasi, dropna=False).size().min())

def anonymise(df, k):
    # k is set by the qualified person from the re-identification analysis,
    # not by the regulation. Higher k means lower singling-out risk.
    staged = _generalise(df.drop(columns=DIRECT_IDENTIFIERS, errors="ignore"))
    smallest = _smallest_group(staged, QUASI_IDENTIFIERS)
    if smallest < k:
        raise ValueError(
            f"Re-identification test failed: smallest group is {smallest}, "
            f"below the k={k} threshold. Output is de-identified, not anonymised."
        )
    return staged

The point of the raised exception is that a failing dataset does not silently escape. It stays personal information, and the code says so. Correlation and inference need their own checks — the regulation expects generally accepted best practices, which for structured data usually means going beyond singling-out to test linkage against the auxiliary datasets an adversary could plausibly hold.

The register the regulator will ask for

Anonymisation under Law 25 is not just an output; it is a supervised process with a paper trail. The regulation requires that a person qualified in the field oversees it, that the serious and legitimate purposes for the retained data are recorded, and that the enterprise keeps a register of its anonymisation activities — the techniques used, the purposes, and the dates of the analyses. It also requires periodic reassessment, because a re-identification risk that was very low last year can rise as new datasets and techniques become available. Anonymisation is a claim with a shelf life.

For the technology function this means the pipeline has to emit evidence, not just clean data: which threshold was applied, which columns were treated as quasi-identifiers, what the smallest group size came out at, and when the check ran. That log is what turns a defensible engineering decision into something the Commission d’accès à l’information can inspect. Whether a firm faces the Commission’s monetary penalties often comes down to whether it can produce exactly this kind of record on demand.

The through-line is that Law 25 has quietly moved two obligations out of the policy binder and into the build. A privacy notice can promise the highest level of confidentiality; only the default configuration delivers it. A retention schedule can say data was anonymised; only a pipeline that passes the re-identification tests makes that true. Write the claim into the code, or the code will contradict the claim.

Free interactive tool

Website compliance checklist

What your site has to do, based on what it actually does

Answer as much or as little as you like — the list builds as you go. Nothing is stored against your name and no email is required.

Free interactive tool

Interactive deadline calculator

Check which regulations apply to you and when

Regulation across the EU, UK, US and Asia-Pacific has moved considerably in the past eighteen months, and several headline dates have shifted more than once. Twelve questions, about three minutes.

Results are shown on screen — no email required. A dated summary is available to download, and can be sent on if that's more useful. What we do with your answers.

Most technology problems are not technology problems. They are control problems.

The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.

Full Governance by Sixteen Pillars

Govern your business. Prove your compliance.

A board assurance cockpit for EU-regulated financial firms — tamper-evident, hash-chained proof of governance across DORA, GDPR, NIS2, ISO 27001, the EU AI Act and MiCA. In development.

See what's coming