Selective failure attacks and immunity in private information retrieval #
Standard multi-server private information retrieval (PIR.Scheme) guarantees passive query privacy
(Scheme.IsPrivate, Scheme.IsTPrivate): no server or unauthorized coalition learns the queried
index i from the queries it receives. When a malicious server s₀ : S actively deviates from
P.answer s₀ x by applying a modified answer strategy malAns : Q → A (Scheme.runWithServer), it
may induce a selective failure attack (Cslib.Crypto.Protocols.SelectiveFailure): the user's
reconstructed output differs from the true database entry x i with a probability that depends on
i, leaking i through whether the user experiences a reconstruction failure.
Instantiating SelectiveFailure.Model on PIR.Scheme (Scheme.selectiveFailureModel), this module
classifies single-server query-only selective failure immunity and vulnerability across the PIR
constructions of Chor, Goldreich, Kushilevitz and Sudan under
the explicit non-degeneracy hypotheses required for each family (a singleton index domain cannot
yield positive advantage, and a RadiusOneCover with no emulated neighbours reduces to PIR.cube):
Immunity of Unbalanced 1-Bit XOR-Sum PIR (
Scheme.HasXorReconstruct):- In any perfectly correct (
Scheme.IsCorrect), 1-private (Scheme.IsPrivate) one-bit-answer scheme satisfyingScheme.HasXorReconstruct(reconstruct i r a = ∑ s, a soverBool), when a single servers₀deviates viamalAns : Q → Bool, the failure indicatordecide (out ≠ x i)on query draw(r, q)equalsmalAns (q s₀) + P.answer s₀ x (q s₀), which depends only ons₀'s own queryq s₀. By 1-privacy andSelectiveFailure.Model.isSelectiveFailureFree_of_map_eq, the scheme is selective-failure free (Scheme.isSelectiveFailureFree_of_hasXorReconstruct). - Consequently, the basic 2-server scheme
PIR.twoServer, the even-set schemePIR.evenTwoServer, the2 ^ d-server subcube schemePIR.cube, and Proposition 5's answer-compressing schemeScheme.sumChunksare all selective-failure free (isSelectiveFailureFree_twoServer,isSelectiveFailureFree_evenTwoServer,isSelectiveFailureFree_cube,Scheme.IsSelectiveFailureFree.sumChunks).
- In any perfectly correct (
Vulnerability of Matrix-Balanced
Scheme.rowsPIR (CGKS Section 3.4, Corollary 3) and Block-Lifted PIR (Scheme.toBlock, Proposition 4):- For any perfectly correct (
P.IsCorrect) 1-bit XOR-sum scheme (P.HasXorReconstruct), applying the matrix-balancing transformationScheme.rows ρmultiplies each server's reply by|ρ|so the user projects onto rowji.1 : ρ. A single servers₀flipping entryj₀ : ρof its reply vector (Scheme.rowsFlipAttack) causes a deterministic selective failure for the predicatefun ji => decide (ji.1 = j₀)on every databasex(Scheme.isDeterministicAttack_rows), achievingselectiveFailureAdvantage = 1between any(j₀, i₀)and(j₁, i₁)withj₁ ≠ j₀(Scheme.selectiveFailureAdvantage_rows_eq_one). Assuming[Nonempty S],[Nonempty ι], and[Nontrivial ρ](so a deviating server, base index, and two distinct rows exist), this refutesIsSelectiveFailureFree(Scheme.not_isSelectiveFailureFree_rows, and for[Nonempty ι]and[Nontrivial ρ],not_isSelectiveFailureFree_twoServer_rows,not_isSelectiveFailureFree_cube_rows). - Dually, for any correct 1-bit XOR-sum scheme
P, whenP.toBlock κis used to retrieve a single bit onι × κviaScheme.toBitScheme, flipping block coordinateb₀ : κat servers₀causes a deterministic selective failure iff the target coordinate within the block isb₀(Scheme.isDeterministicAttack_toBlock_toBitScheme), refutingIsSelectiveFailureFreewhenever[Nonempty S],[Nonempty ι], and[Nontrivial κ](Scheme.not_isSelectiveFailureFree_toBlock_toBitScheme).
- For any perfectly correct (
Vulnerability of Covering-Code Subcube Emulation PIR (
RadiusOneCover.scheme, CGKS Section 3.3, Theorem 1 & Corollary 2):- In
K.scheme ι, each serversreturns its own subcube bit together with|M| · |ι|emulated neighbour bits. WheneverKhas an actually used emulated-neighbour slotK.cover w₀ = (s₀, some r₀), injectivity ofK.coverensures thatw₀is the unique vertex of thed-cube read from directionr₀of servers₀. Flipping entry(r₀, k₀)ofs₀'s emulated table (RadiusOneCover.coverFlipAttack) causes a deterministic selective failure forfun i => decide (i (K.dir s₀ r₀) = k₀)on every databasex(RadiusOneCover.isDeterministicAttack_scheme), achieving advantage1for queries differing at coordinateK.dir s₀ r₀and refutingIsSelectiveFailureFreewhenever[Nontrivial ι](RadiusOneCover.not_isSelectiveFailureFree_scheme). Both Corollary 2 covers have such an emulated slot, socubeThree.schemeandcubeFour.schemefailIsSelectiveFailureFreewhenever[Nontrivial ι](not_isSelectiveFailureFree_cubeThree,not_isSelectiveFailureFree_cubeFour).
- In
Vulnerability of Polynomial Shamir
t-Private PIR (PIR.shamirandPIR.shamirCube, fromPIR.Shamir, motivated by [CGKS98] Sections 1.1 and 2.2):- Even when a polynomial PIR scheme sends only a single field element
Fper server and ist-private against coalitions of up totservers, reconstruction tests= 1inF(decide (Shamir.Polynomial.reconstruct params.point ans = 1)). For any field offsetΔ : FwithΔ ≠ 0andΔ ≠ 1, a single servers₀addingΔ * (lagrangeWeightAtZero params.point s₀)⁻¹to its honest answer (Scheme.lagrangeShiftAttack) shifts the reconstructed constant term fromif x i then 1 else 0to(if x i then 1 else 0) + Δ ≠ 1. The user therefore always outputsfalse, suffering a reconstruction failure if and only ifx i = true(isDeterministicAttack_shamir, and underFintype.card D * params.threshold < Fintype.card S,isDeterministicAttack_shamirCube), yieldingselectiveFailureAdvantage = 1on any non-constant database pairx i₀ ≠ x i₁. Whenever0 < params.threshold(which yields|F| > |S| ≥ 2and henceΔ ≠ 0, 1) and[Nontrivial ι](plus[Nonempty D]andFintype.card D * params.threshold < Fintype.card SforPIR.shamirCube), this refutesIsSelectiveFailureFree(not_isSelectiveFailureFree_shamir,not_isSelectiveFailureFree_shamirCube).
- Even when a polynomial PIR scheme sends only a single field element
Main definitions #
Cslib.Crypto.Protocols.PIR.Scheme.runWithServer: execution of a PIR scheme when servers₀applies a modified answer functionmalAns : Q → A.Cslib.Crypto.Protocols.PIR.Scheme.selectiveFailureModel,Cslib.Crypto.Protocols.PIR.Scheme.failureGame,Cslib.Crypto.Protocols.PIR.Scheme.failureProb,Cslib.Crypto.Protocols.PIR.Scheme.selectiveFailureAdvantage,Cslib.Crypto.Protocols.PIR.Scheme.IsSelectiveFailureFree,Cslib.Crypto.Protocols.PIR.Scheme.IsDeterministicAttack: instantiation ofSelectiveFailure.ModelforPIR.Scheme.Cslib.Crypto.Protocols.PIR.Scheme.rowsFlipAttack,Cslib.Crypto.Protocols.PIR.Scheme.toBlockBitFlipAttack,Cslib.Crypto.Protocols.PIR.RadiusOneCover.coverFlipAttack,Cslib.Crypto.Protocols.PIR.Scheme.lagrangeShiftAttack: explicit single-server selective failure attacks onScheme.rows,Scheme.toBlock,RadiusOneCover.scheme, and Lagrange-interpolated polynomial PIR (PIR.shamir,PIR.shamirCube).
Main results #
Cslib.Crypto.Protocols.PIR.Scheme.isSelectiveFailureFree_of_hasXorReconstruct,Cslib.Crypto.Protocols.PIR.isSelectiveFailureFree_twoServer,Cslib.Crypto.Protocols.PIR.isSelectiveFailureFree_evenTwoServer,Cslib.Crypto.Protocols.PIR.isSelectiveFailureFree_cube,Cslib.Crypto.Protocols.PIR.Scheme.IsSelectiveFailureFree.sumChunks: selective failure immunity of 1-bit XOR-sum PIR schemes.Cslib.Crypto.Protocols.PIR.Scheme.isDeterministicAttack_rows,Cslib.Crypto.Protocols.PIR.Scheme.selectiveFailureAdvantage_rows_eq_one,Cslib.Crypto.Protocols.PIR.Scheme.not_isSelectiveFailureFree_rows,Cslib.Crypto.Protocols.PIR.not_isSelectiveFailureFree_twoServer_rows,Cslib.Crypto.Protocols.PIR.not_isSelectiveFailureFree_cube_rows: selective failure vulnerability of matrix-balancedScheme.rowsPIR.Cslib.Crypto.Protocols.PIR.RadiusOneCover.isDeterministicAttack_scheme,Cslib.Crypto.Protocols.PIR.RadiusOneCover.selectiveFailureAdvantage_scheme_eq_one,Cslib.Crypto.Protocols.PIR.RadiusOneCover.not_isSelectiveFailureFree_scheme,Cslib.Crypto.Protocols.PIR.not_isSelectiveFailureFree_cubeThree,Cslib.Crypto.Protocols.PIR.not_isSelectiveFailureFree_cubeFour: selective failure vulnerability of covering-code subcube emulation PIR.Cslib.Crypto.Protocols.PIR.isDeterministicAttack_shamir,Cslib.Crypto.Protocols.PIR.not_isSelectiveFailureFree_shamir,Cslib.Crypto.Protocols.PIR.isDeterministicAttack_shamirCube,Cslib.Crypto.Protocols.PIR.not_isSelectiveFailureFree_shamirCube: selective failure vulnerability oft-private polynomial Shamir PIR.
References #
1. Single-server active deviation model for PIR.Scheme #
Execution of the PIR scheme P on database x and index i when server s₀ deviates from
P.answer s₀ x by answering with malAns : Q → A while all other servers s ≠ s₀ answer honestly.
When server s₀ uses its honest answer function P.answer s₀ x, runWithServer has the same
output distribution as the honest execution P.run x i.
Protocol-agnostic SelectiveFailure.Model instantiated for single-server active deviations in
P on a fixed database x : ι → β:
- the secret is the queried index
i : ι; - an active deviation
(s₀, malAns) : S × (Q → A)specifies the deviating servers₀and its modified answer functionmalAns; - the ideal output on
iisx i.
The Boolean selective-failure experiment (Game) when server s₀ answers with malAns on
database x and user query i.
The probability (ℝ≥0) that the user reconstructs an output out ≠ x i when server s₀
answers with malAns.
The selective-failure distinguishing advantage (ℝ≥0) between indices i₀ and i₁ on database
x when server s₀ answers with malAns.
A PIR scheme P is selective-failure free if for every database x : ι → β, every server
s₀ : S, and every modified answer function malAns : Q → A, the selective-failure distinguishing
advantage between any two indices i₀, i₁ : ι is zero.
Server s₀'s answer strategy malAns is a deterministic selective failure attack on database
x for predicate pred : ι → Bool if the user suffers a reconstruction failure (out ≠ x i) on
query i with probability 1 when pred i = true and 0 when pred i = false.
2. Selective failure immunity of unbalanced 1-bit XOR-sum PIR #
Under XOR-sum reconstruction (HasXorReconstruct) and IsCorrect, the failure game when server
s₀ answers with malAns factors through s₀'s marginal query distribution P.serverQuery s₀ i
via the local answer-flip indicator fun q₀ => malAns q₀ + P.answer s₀ x q₀.
Immunity of 1-bit XOR-sum PIR to selective failure attacks. Every perfectly correct,
1-private one-bit-answer scheme with XOR-sum reconstruction (HasXorReconstruct) is
selective-failure free: a single deviating server can flip the user's output bit only with a
probability determined by its own query marginal, which is independent of i by IsPrivate.
Proposition 5's answer-compressing transformation Scheme.sumChunks produces a
selective-failure-free scheme from any correct, private XOR-sum scheme.
3. Selective failure attacks on Scheme.rows and Scheme.toBlock #
Single-row bit-flip attack on P.rows ρ
(CGKS, Section 3.4): server s₀ computes its honest reply
vector (P.rows ρ).answer s₀ x q and flips the single entry at row j₀ : ρ.
Deterministic selective failure on P.rows ρ. If P is a correct one-bit scheme with
XOR-sum reconstruction (HasXorReconstruct), then for every database x : ρ × ι → Bool,
server s₀ flipping row j₀ via rowsFlipAttack P x s₀ j₀ causes the user's reconstruction of
x ji to fail with probability 1 when ji.1 = j₀ and 0 when ji.1 ≠ j₀.
Flipping row j₀ in P.rows ρ distinguishes any query (j₀, i₀) in row j₀ from any query
(j₁, i₁) in row j₁ ≠ j₀ with selective-failure advantage 1.
Matrix-balanced Scheme.rows PIR is not selective-failure free whenever there is at least
one server, one column index, and two distinct rows ([Nontrivial ρ]).
Single-coordinate bit-flip attack on (P.toBlock κ).toBitScheme (Proposition 4,
CGKS, Section 4.1): server s₀ flips coordinate b₀ : κ of
its block reply.
Deterministic selective failure on (P.toBlock κ).toBitScheme. Flipping block coordinate
b₀ : κ at server s₀ causes the user's bit retrieval on ib : ι × κ to fail iff ib.2 = b₀.
Block-lifted bit retrieval (P.toBlock κ).toBitScheme is not selective-failure free whenever
S and ι are nonempty and the block coordinate type κ has at least two coordinates.
Concrete corollaries for PIR.twoServer, PIR.evenTwoServer, and PIR.cube #
The basic 2-server PIR scheme (PIR.twoServer) is selective-failure free.
The even-set 2-server PIR scheme (PIR.evenTwoServer) is selective-failure free.
The 2 ^ d-server subcube PIR scheme (PIR.cube) is selective-failure free.
Matrix-balanced 2-server PIR ((twoServer ι).rows ρ) is vulnerable to selective failure
attacks whenever ι is nonempty and ρ has at least two rows.
Matrix-balanced 2 ^ d-server subcube PIR ((cube D ι).rows ρ, CGKS Section 3.4,
Corollary 3) is vulnerable to selective failure attacks whenever ι is nonempty and ρ has at
least two rows.
4. Selective failure attacks on covering-code PIR (RadiusOneCover.scheme) #
Single-entry emulated-neighbour bit-flip attack on K.scheme ι
(CGKS, Section 3.3): server s₀ computes its honest answer
(b, f) = (K.scheme ι).answer s₀ x q and flips entry (r₀, k₀) of its emulated neighbour answer
table f : M → ι → Bool.
Deterministic selective failure on RadiusOneCover.scheme (CGKS Section 3.3, Theorem 1).
Whenever server s₀ emulates cube vertex w₀ along direction r₀ (K.cover w₀ = (s₀, some r₀)),
flipping entry (r₀, k₀) via K.coverFlipAttack x s₀ r₀ k₀ causes a reconstruction failure on
query i : D → ι with probability 1 if i (K.dir s₀ r₀) = k₀ and 0 if
i (K.dir s₀ r₀) ≠ k₀, on every database x.
Flipping entry (r₀, k₀) in K.scheme ι distinguishes any cube query i₀ with
i₀ (K.dir s₀ r₀) = k₀ from any i₁ with i₁ (K.dir s₀ r₀) ≠ k₀ with advantage 1.
Covering-code PIR is not selective-failure free whenever [Nontrivial ι] and at least one
cube vertex w₀ is covered via an emulated neighbour direction K.cover w₀ = (s₀, some r₀).
CGKS Corollary 2's 2-server O(n ^ (1 / 3)) covering-code scheme
(RadiusOneCover.cubeThree.scheme) is vulnerable to selective failure attacks.
CGKS Corollary 2's 4-server O(n ^ (1 / 4)) covering-code scheme
(RadiusOneCover.cubeFour.scheme) is vulnerable to selective failure attacks.
5. Selective failure attacks on polynomial Shamir t-private PIR #
A field-valued PIR scheme P : Scheme ι S R Q F has Lagrange indicator reconstruction with
respect to params : Shamir.Params F S when the user reconstructs by testing
Shamir.Polynomial.reconstruct params.point ans = 1 and honest server answers interpolate at 0 to
if x i then 1 else 0. Both PIR.shamir and PIR.shamirCube satisfy this interface.
- reconstruct_eq (i : ι) (r : R) (ans : S → F) : P.reconstruct Bool i r ans = decide (SecretSharing.Shamir.Polynomial.reconstruct params.point ans = 1)
The user outputs
trueiff Lagrange interpolation at0equals1 : F. - reconstruct_answer_eq (x : ι → Bool) (i : ι) (r : R) (q : S → Q) : (r, q) ∈ (P.query Bool i).eval.support → (SecretSharing.Shamir.Polynomial.reconstruct params.point fun (s : S) => P.answer Bool s x (q s)) = if x i = true then 1 else 0
On every supported query draw, Lagrange interpolation at
0of the honest answers equals1whenx i = trueand0whenx i = false.
Additive constant-shift attack on a Lagrange-reconstructed PIR scheme: server s₀ adds
Δ * (lagrangeWeightAtZero params.point s₀)⁻¹ to its honest answer, shifting the interpolated
constant term at 0 by Δ : F.
Under lagrangeShiftAttack P params x s₀ Δ, Lagrange interpolation at 0 evaluates to
(if x i then 1 else 0) + Δ on every supported query draw.
Deterministic selective failure on Lagrange-reconstructed PIR. For any field offset Δ : F
with Δ ≠ 0 and Δ ≠ 1, P.lagrangeShiftAttack params x s₀ Δ shifts 1 to 1 + Δ ≠ 1 and 0
to Δ ≠ 1, so the user always outputs false and suffers a reconstruction failure if and only if
x i = true.
Under lagrangeShiftAttack with Δ ≠ 0 and Δ ≠ 1, a single server s₀ distinguishes any two
indices i₀, i₁ with x i₀ ≠ x i₁ with selective-failure advantage 1.
Every t-private (t ≥ 1) Lagrange-reconstructed PIR scheme is vulnerable to single-server
selective failure attacks on any nontrivial index type [Nontrivial ι].
PIR.shamir satisfies Scheme.HasLagrangeReconstruct.
PIR.shamirCube satisfies Scheme.HasLagrangeReconstruct whenever
|D| * params.threshold < |S|.
Deterministic selective failure on linear Shamir t-private PIR (PIR.shamir). For any
Δ : F with Δ ≠ 0 and Δ ≠ 1, server s₀'s additive shift attack causes a reconstruction
failure on query i iff x i = true.
Single-server selective-failure advantage 1 on PIR.shamir between any i₀, i₁ with
x i₀ ≠ x i₁.
Linear Shamir t-private PIR (PIR.shamir) is not selective-failure free whenever
0 < params.threshold (t ≥ 1) and [Nontrivial ι], even though it is t-private against
passive server coalitions (isTPrivate_shamir).
Deterministic selective failure on degree-d polynomial t-private PIR (PIR.shamirCube).
When |D| * params.threshold < |S| and Δ ≠ 0, Δ ≠ 1, server s₀'s additive shift attack causes
a reconstruction failure on query i iff x i = true.
Single-server selective-failure advantage 1 on PIR.shamirCube between any i₀, i₁ with
x i₀ ≠ x i₁.
Degree-d polynomial t-private PIR (PIR.shamirCube) is not selective-failure free
whenever |D| * params.threshold < |S|, 0 < params.threshold (t ≥ 1), [Nonempty D], and
[Nontrivial ι], even though it is t-private against passive coalitions
(isTPrivate_shamirCube).