Definition
Declassification is the deliberate release of information derived from a secret to a less protected destination, as an exception, explicitly permitted by the security policy, to an information-flow rule that otherwise forbids the flow. In an information-flow control §1.41 system it is a marked operation in the program that lowers the label of one value, for example from secret to public. A declassification policy states what may be released, who authorizes the release, where in the program it happens and when.
The idea
A password checker exists to reveal one fact about a secret: whether a guess matches the stored password. Noninterference §1.42, which forbids any influence of secrets on public outputs, rejects such a checker. Without a controlled exception, a developer would mark the stored password public to make the program pass the information-flow check, and every protection on the password would be gone. Declassification releases exactly the match bit and keeps the password itself secret.
Government documents are a fair picture. A classified report stays secret until an official with authority releases it, often in a redacted version, at a stated time and for a stated reason. Declassification in a program has the same parts: an authority, a defined released content and a defined moment. The picture stops at inference: a program’s releases add up, and many small permitted answers can together reveal what no single answer does.
How it works
Sabelfeld and Sands organized declassification policies along four dimensions [522], and a policy should answer each one.
What is released: a precise function of the secret, called an escape hatch, such as
guess == password, a sum or an average, computed from the original secret values.Who may release it: the principal, meaning the person or component whose authority the release uses, normally the owner of the secret. In the decentralized label model of Myers and Liskov, each part of a label belongs to an owner, and only code running with that owner’s authority may weaken that part.
Where in the program the release happens: only at marked points, so that a reviewer can find every release.
When it may happen: after a condition such as a payment, after a date, or at most a stated number of times.
The authority must not be steerable by an attacker. Robust declassification, defined by Zdancewic and Myers [425], requires that an attacker who controls untrusted inputs cannot change what is released or whether a release happens. A service that declassifies the record whose number arrives in an unauthenticated request releases whichever record the attacker names, although every release passes through the marked operation.
The enforcement must make the released value equal to the stated function and nothing more. The computation that produces the released value can itself leak, through its timing or through extra fields attached to the result, and those leaks are not part of the permitted release.
Worked example
Two permitted sums. A database holds the monthly salaries of three employees: 5, 6 and 7 thousand. The policy permits the sum over any group of employees. Query 1 asks for the sum over all three: . Query 2 asks for the sum over employees 2 and 3: . Each answer is a permitted aggregate. Together they give employee 1’s salary: . The policy was meant to hide individual salaries, but it judged each query alone, and the attacker combined two.
A laundered average. A program may release the average of three secret values . Before the release, two lines of code set and . The released average is then , so with the release reveals 9 exactly. The permitted release was the average of the original values. The starting states (9, 6, 3) and (6, 6, 6) have the same original average, , so a correct program would give both the same output. This program outputs 9 and 6.
A password check with a guess limit. A 4-digit PIN (personal identification number) has possible values. Each guess releases the match bit. A failed guess rules out one value, so an attacker needs up to 10,000 guesses, and on average for a PIN chosen uniformly at random. Allowing 3 guesses before lock-out caps the attacker’s chance of success at . The “when” dimension, a limit on how often the release may happen, bounds the total leak.
Stated precisely
Delimited release, defined by Sabelfeld and Myers [426], makes the “what” dimension exact. Let a program contain the declassification expressions , and let mean that the starting states and have equal public parts. Write for the value of evaluated on the starting state . The program satisfies delimited release when, for all and with and for every from 1 to , the public observations of the two runs are equal. In words: an observer may learn the starting values of the permitted expressions and whatever follows from them, and nothing else. In the averaging example, the states (9, 6, 3) and (6, 6, 6) agree on , which is 6 for both, yet the program outputs 9 and 6, so the laundering program fails the condition.
The condition rests on three assumptions: the observation compared is the one the attacker actually has, timing included if the attacker can measure it; the policy names every release expression; and the attacker cannot influence which expressions are released, which is the robustness requirement above. Delimited release bounds what one run reveals. It says nothing about how answers from many runs combine, which the salary example shows.
Limits and common mistakes
Declassification permits a leak; it does not make the leak harmless. Whether the released function reveals too much is a policy decision, and no enforcement mechanism checks it. Computing an overly revealing function securely does not repair the choice of function.
Permitted answers combine. Repeated queries, as in the salary example, and the attacker’s outside knowledge can reveal what each answer hides. One approach for aggregates, differential privacy, adds random noise to each answer so that adding or removing any one person changes the probability of every possible answer by at most a factor , where is a chosen small number, and counts each answer against a total allowance.
Erasing a label, or marking the whole secret public, declassifies everything, not a verdict.
The computation of a verdict can leak more than the verdict. A byte-by-byte comparison that stops at the first difference reveals through its timing how many leading bytes match, and logging the stored secret next to the verdict is a release that no policy authorized.
Releasing a ciphertext of a secret is a declassification justified by cryptography. It is safe only while the cipher is strong and the key stays secret.
Endorsement is the integrity §1.9 counterpart: it marks an untrusted value as trusted, and the Integrity endorsement §1.49 entry treats it. Releasing a secret and trusting an input are different decisions, often made by different authorities.
Questions answered
Which aggregate or verdict may reveal a secret, and under whose authority?
An aggregate or verdict may reveal a secret only when the policy names that exact function, its recipients and its occasions, and the release is authorized by the owner of the secret or by a principal to whom the owner gave that authority. Declassification is this deliberate, policy-permitted release of information derived from a secret. For a given system, state four things.
What: the exact function released, such as the match bit of a password comparison or the sum over a stated group, computed from the original secret values.
Who: the authority, normally the owner of the secret, and the recipients. An attacker who controls untrusted inputs must not be able to change what is released; this requirement is called robust declassification.
Where: the marked points in the code at which the release happens.
When and how often: the conditions and the rate limit, because repeated answers combine.
Then make two checks. Combine the permitted answers: two permitted sums can reveal one person’s value by subtraction. And confirm that the release carries only the named value, without timing differences or extra fields. A broader release needs its own authorization §1.7; it cannot be inferred from a narrower one.
Related entries: Noninterference (§1.42), Secure multiparty computation (§5.48), Authorization (§1.7), Information-flow control (§1.41), Integrity endorsement: when untrusted input may influence trusted state (§1.49), Rate limiting (§9.38). Further reading: [425, 426, 522].