Manuscript Offprint
arXiv:2610.37061GKS Fully Homomorphic Encryption: Security Analysis
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
All traditional encryption schemes share a fundamental operational vulnerability: encrypted data must be decrypted before it can be used. Fully homomorphic encryption (FHE) eliminates this vulnerability by enabling computation directly on encrypted data, but existing lattice-based FHE schemes impose substantial practical constraints that limit deployment.
This paper presents a formal security analysis of the Gribov-Kahrobaei-Shpilrain (GKS) private-key FHE scheme [19]. GKS operates over the commutative idempotent ring , a direct sum of copies of , and requires no bootstrapping or de-linearization, produces bit-exact decryption, supports native encrypted search, and scales to unbounded depth.
GKS is private-key: no external Enc oracle and no plaintext is supplied to the evaluator; there is no public slot-to-coordinate map and no labelled plaintext-ciphertext pairs. The in-scope games are therefore single-ciphertext IND-EAV and multi-ciphertext COA; KPA/CPA are not claimed. Single-ciphertext IND-EAV holds after conditioning on the publicly observable rank (equivalently, Hamming weight). Unconditional advantage zero is not claimed. Equal-weight ensembles showed no distinguisher above the sampling noise floor (Appendix A.2). A proof that the statistical distance is negligible remains open, so we do not claim a completed ITS theorem. We analyze multi-ciphertext COA: the adversary holds many unlabeled ciphertexts and may add and multiply. The residual attacks in that setting are collision harvest (rank-order, kernel-span, then ideal closure). Both require at least one full-pack collision. ZCG (Zero Collision Guarantee) is SIMD packing, an epoch-unique nonce, and an Alice-side duplicate check, and is designed to enforce pack-uniqueness at the plaintext and intermediate layers. It is not yet fully implemented (§3.5.7). Until it is enforced, COA security rests on collision scarcity, ideal rotation, and data hygiene. We do not claim KPA or CPA.
Relevant attack vectors are discussed in Section 3.3. Post-ideal-recovery security in the commutative instantiation at default parameters is modest. Two patent-protected variants (composite modulus , US 10,396,976; non-commutative matrix ring, US 9,942,031) provide stronger post-ideal defense. The scheme's private-key architecture, exact arithmetic, and absence of bootstrapping constitute a qualitatively different design point from lattice-based FHE.
Two companion papers address key management [22] and performance [23]. Through six mechanisms, GKS provides a framework for managing a broad range of use cases. On commodity hardware with no GPU, double encryption, SIMD, and rings 6/7/8, the companion measurements report approximately 2.4 s/slot encryption, 2 ns/slot addition, 31 ns/slot multiplication, 2.3 s/slot decryption, and expansion 16×. Chained multiplication stays at 31 ns/slot through 1,000,000 iterations [23].
*jgraham@zerofhe.ai, Zero Inc., Connecticut, USA
marzougui.soundes@gmail.com, Qubit Guard, Berlin, Germany
milos@zerofhe.ai, Zero Inc., Belgrade, Serbia
vshpilrain@ccny.cuny.edu, CUNY, New York, USA
Keywords: fully homomorphic encryption, private-key FHE, retraction ambiguity, idempotent rings, zero-pattern leakage, security games, AI training, machine learning, secure multi-party computation, SMPC, CKKS, BFV, BGV, RLWE, quantum resistance, bijective encoding, bootstrapping, exact arithmetic, lossless encryption, private search, IND-CPA , healthcare data, financial services data.
Contents
1 Introduction ..... 3
1.1 Contributions ..... 4
1.2 Paper Organization ..... 5
1.3 Summary Table ..... 5
2 GKS Construction ..... 5
2.1 Algebraic Defense Structure ..... 5
2.2 The Ring ..... 6
2.3 Orthogonal Idempotent Basis ..... 6
2.4 Notation ..... 6
2.5 Key Generation ..... 6
2.6 Encryption and Decryption ..... 7
2.7 The Four Components of Retraction Ambiguity ..... 7
3 Security Analysis ..... 8
3.1 Hardness Assumptions ..... 8
3.1.1 Two-phase security model ..... 8
3.1.2 Zero-Knowledge of Ideal (ZKI) ..... 9
3.1.3 Retraction Indistinguishability under Decryption (RI-D) ..... 9
3.1.4 Triangular Basis Indistinguishability (TBI) ..... 10
3.1.5 Retraction Indistinguishability (RI) ..... 11
3.1.6 Independence of Key Components ..... 11
3.1.7 Limitations and Open Problems ..... 11
3.2 Threat Model: Adversary Classes ..... 12
3.3 Identified Attack Vectors ..... 13
3.3.1 Attack 1: Gröbner basis computation ..... 13
3.3.2 Attack 2: Triangular transform recovery ..... 14
3.3.3 Attack 3: Meet-in-the-middle ..... 14
3.3.4 Attack 4: Lattice embedding ..... 14
3.3.5 Attack 5: Statistical distinguishing ..... 14
3.3.6 Attack 6: Linear constraint accumulation from KPA pairs ..... 14
3.3.7 Attack 7: Post-ideal canonicalization / direct-readout attack ..... 14
3.3.8 Attack 8: Non-Zero KPA ..... 15
3.3.9 Attack 9: Rank Order Attacks ..... 16
3.4 Security Games ..... 17
3.4.1 IND-EAV Security Game ..... 17
3.4.2 IND-KPA Security Game ..... 17
3.4.3 Theorem 2 ..... 18
3.4.4 KPA Non-ring Plaintexts ..... 18
3.4.5 IND-CPA Security: Limitation and Context ..... 19
3.4.6 Formal KPA-Zero Security Game ..... 19
3.4.7 Definition ..... 20
3.4.8 Concrete Bound on Carl's I-Recovery Path ..... 20
3.4.9 Ideal Recovery via Equivalent-Ciphertext Differencing ..... 21
3.5 Mitigations ..... 21
3.5.1 Mitigation 1: Ideal Rotation ..... 21
3.5.2 Mitigation 2: Bijective Encoding ..... 22
3.5.3 Mitigation 3: SIMD Security Amplification ..... 22
3.5.4 Mitigation 4: Channel Compartmentalization — Independent Ideals for Search & Compute ..... 23
3.5.5 Mitigation 5: Double Encryption ..... 23
3.5.6 Mitigation 6: Instantiation and Non-Commutative Rings ..... 24
3.5.7 Mitigation 7: ZCG: Collision Elimination ..... 24
4 Deployment Options ..... 24
4.1 Compiled API Mode ..... 25
4.2 Client Custody Architecture ..... 25
4.3 Client Sovereign Architecture ..... 25
4.4 Epoch Key Architecture ..... 26
5 Post Ideal Recovery Hardness ..... 26
6 Comparative Analysis ..... 26
6.1 CKKS IND-CPA Vulnerability ..... 27
6.2 Comparison with RLWE: Different Tradeoffs ..... 27
6.3 Position Relative to Prior Symmetric Non-Lattice FHE ..... 27
6.3.1 Prior schemes and their cryptanalysis ..... 27
6.3.2 Where GKS differs structurally ..... 27
6.3.3 What this section does not establish ..... 27
6.4 GKS Performance Metrics Summary ..... 28
7 Quantum Resistance ..... 28
8 Empirical Validation: Machine Learning on Encrypted Data ..... 28
9 Future Work ..... 29
9.1 GKS Performance Metrics ..... 29
9.2 GKS Key Management & Use Cases ..... 29
9.3 Future Research ..... 29
10 Conclusion ..... 29
A Proofs ..... 32
A.1 Single-ciphertext ensembles and the balance condition ..... 32
A.2 Theorem 1 — IND-EAV Security in the Ciphertext-Only Model ..... 32
A.3 Theorem 2 — Retraction Ambiguity Bound ..... 32
A.4 Theorem 6 (Composition — Total Retraction Ambiguity) ..... 33
A.5 Theorem 3 — Retraction Ambiguity for Non-Ring Plaintexts ..... 33
A.6 Theorem 4 — Soundness of Bijective Encoding ..... 33
A.7 Theorem 5 — IND-CCA2 Impossibility ..... 33
B Statistical Tests ..... 33
The GKS scheme [19] departs fundamentally. It is a private-key scheme over the commutative idempotent ring , achieving: (1) unlimited multiplicative depth without bootstrapping, (2) native encrypted search, (3) a single algorithm for all operations, (4) bit-exact decryption, and (5) a conditional single-ciphertext IND-EAV result (indistinguishability holds after conditioning on the publicly observable rank; Appendix A.2).
The cryptographic construction analyzed in this work is the GKS fully homomorphic encryption (FHE) scheme introduced by Gribov, Kahrobaei, and Shpilrain. We retain the name GKS to maintain continuity with the existing cryptographic literature. ZeroFHE is the company developing and implementing the construction and the additional security and operational mechanisms described in this work. These mechanisms, including collision prevention and the associated ZCG procedure, are intended to address practical attack paths identified in the course of analyzing and implementing GKS. Accordingly, references to GKS in this paper denote the underlying cryptographic construction, while ZeroFHE refers to its implementation and associated system-level enhancements.
Because the symmetric non-lattice line to which GKS belongs has a poor cryptanalytic track record, §6.3 gives a complete accounting of the prior schemes in this family, the published attacks that broke them, and the structural reasons GKS does not fall to those attacks.
This paper provides the first detailed security analysis of the GKS scheme in the ePrint literature, with formal security games, a complete retraction counting proof, preliminary cryptanalysis, and comparative analysis.
1.1 Contributions
-
Conditional single-ciphertext IND-EAV: The advantage is negligible after conditioning on the publicly observable rank (equivalently, Hamming weight); unconditional advantage zero is not claimed. Empirical checks on equal-weight plaintexts found no distinguisher above the sampling noise floor (Appendix A.2).
-
A reframing of IND-CPA in deployment terms: The scheme is not intended for an exposed encryption-oracle model, and the private-key deployment denies such an oracle to every external party. Under an oracle the scheme would not be IND-CPA secure; the zero-pattern leakage channel is closed by bijective encoding and ideal rotation.
-
A KeyGen description-space count (Appendix A.3): The conservative figure is 10,305 bits (533,569 bits nominally, if the unrestricted triangular family is admissible); either is a description-space count under the counting assumptions stated there, not a cryptographic security level, and not residual uncertainty after I is known.
-
A retraction-ambiguity result for non-ring plaintexts: Existence of multiple re-tractions is not KPA indistinguishability. Labelled affine recovery (Appendix B) is out of scope of the intended architecture.
-
Preliminary cryptanalysis of nine distinct attack strategies.
-
Mitigation for zero-pattern leakage with an algebraic soundness proof for the bijective encoding option.
-
Mitigations for collision harvest attacks (same-value kernel harvest: rank order and constructed zeros; §3.5.7).
-
Formal hardness assumptions (RI, ZKI, RI-D, TBI) with a two-phase security model: defense-in-depth analysis for the hypothetical post-ideal-recovery case ( ).
-
Performance metric summary in §6.4.
-
COA analysis of the in-scope residual: Rank-order and same-value kernel harvest. Recovery of same-value differences under one ideal (Appendix B); ZCG (Zero Collision
Guarantee, designed, not yet fully implemented; §3.5.7) will remove original-plaintext and, in double encryption, intermediate layer duplicates. Retraction-ambiguity figures are description counts, not a COA proof.
1.2 Paper Organization
§1: Introduction. §2: Construction. §3: Security Analysis. §4: Deployment Options. §5: Post Ideal Recovery Hardness. §6: Comparative Analysis. §7: Quantum Resistance. §8: Empirical Validation. §9: Future Work. §10: Conclusion. Appendix A: Proofs. Appendix B: Statistical Tests.
1.3 Summary Table
Table 1: Security by attack class
| Attack class | Applicability | Security status |
|---|---|---|
| IND-EAV (single-ciphertext) | In scope | IND-EAV holds after conditioning on the publicly observable rank (equivalently, Hamming weight). Unconditional advantage zero is not yet claimed (Theorem 3.1, Appendix A.2). Coordinate-distance tests supply supporting evidence for the equal-weight case only. Uniformity tests are ongoing. |
| COA (Multi-ciphertext) | In scope | Residual issue: requires a same-value pair under one ideal. Mitigated if ZCG is enforced (3.5.7); ZCG is designed, not yet fully implemented. |
| KPA | Out of scope by architecture (no plaintext access; KPA resistance is not claimed) | Out of scope: no labelled pairs and no Enc oracle. If those are supplied, affine recovery applies (Appendix B). Not claimed. |
| IND-CPA | Out of scope by architecture (no encryption oracle) | CPA resistance is not claimed. |
| Out of scope by architecture (no decryption oracle) | Exact arithmetic; LM21-style noise channel does not apply. |
2 GKS Construction
2.1 Algebraic Defense Structure
The scheme's algebraic design [19]:
- The secret random permutation is applied to the orthogonal idempotent basis before the triangular conversion. Before is recovered, even if an attacker somehow decomposes into its abstract semisimple structure (product of fields), they still do not know which component corresponds to which plaintext “slot” or generator. Wedderburn decomposition yields only the abstract ring isomorphism type; the concrete labeling of the basis elements
is hidden by . After I is recovered, quotient canonicalization supplies a coordinate system in which the secret permutation no longer gates plaintext access; matching the resulting canonical components to plaintext slots is absorbed into the subsequent embedding search (see §3.1.5 and §6.3.2).
-
The secret embedding (and the associated isomorphism ) further obscures how the plaintext ring sits inside the larger ciphertext ring . Knowing alone does not reveal this coordinate mapping.
-
Apply a secret permutation on the orthogonal idempotents, then an invertible triangular transformation whose supports are nested: , and for , , where the index sets satisfy whenever and each coefficient . This nested-support condition guarantees the public multiplication rule for all .
After I is recovered in the commutative instantiation, neither of these holds: quotient canonicalization becomes the primary attack path, and §3.1.5 and §6.3.2 show that the decryption map can then be read off directly rather than remaining ambiguous. Patent-protected instantiations ( composite modulus, US 10,396,976; non-commutative matrix ring, US 9,942,031) provide some additional defense-in-depth in that post-I setting (not yet quantified; see §9).
2.2 The Ring
Dimension over ; for , dimension 128, .
2.3 Orthogonal Idempotent Basis
For , define . These elements are pairwise orthogonal idempotents forming a basis. Any sum of distinct is an idempotent, giving total. Multiplication in this basis is componentwise over .
2.4 Notation
: security parameter. PPT: probabilistic polynomial time. negl( ): negligible function. A \leftarrow_{\} : uniform sampling. : advantage of in game for scheme .
2.5 Key Generation
• Step 1 (Plaintext ring): Select a value of (in this example 7). Plaintext ring: .
• Step 2 (Ideal generation): Add generators ( ), giving with . Select ideal generated by for , where each is a random idempotent of . (at ).
• Step 3 (Basis transformation): Convert to the orthogonal idempotent basis of (size ). Apply a secret permutation to this full set of idempotents, then an invertible nested-support triangular transformation: , and for , , where the index sets satisfy whenever and each . The resulting transformed basis of (size ) is the public ring presentation; ciphertexts are expressed as coefficients in this basis.
• Step 4 (Embedding): Select fully homomorphic embedding determined by , an idempotent of .
Private key: . In the ciphertext-only model, single-ciphertext hiding holds after conditioning on the publicly observable rank (Appendix A.2). A hidden ideal alone does not make two fixed cosets statistically indistinguishable. Key entropy tests are detailed in Appendix B.
2.6 Encryption and Decryption
Enc(sk, m): , where (uniform random in ideal).
Dec(sk, c): Convert to standard basis, substitute for . Apply . Decryption is exact.
Homomorphic property: ; .
2.7 The Four Components of Retraction Ambiguity
The private key sk consists of four independent components: the ideal generators that determine I, the secret permutation , the triangular change-of-basis T, and the embedding . We state the bound here; the full counting proof is in Appendix A.3.
Component 1: Permutation . is a uniform random permutation of the full orthogonal idempotent basis of (size ) applied before the triangular transform.
• Number of choices: .
• Bit contribution: .
• For the reference parameters : bits.
Component 2: Nested-support triangular transformations on the full basis ( ). The number of such transformations is at least (and far larger when all admissible nested families are counted). We use the conservative lower bound arising from free choices on the longest chain; this already contributes more than 500 bits at . The full unitriangular figure bits counts the unrestricted family and is not established for the nested-support family (Lemma ??); we report it only as a nominal figure.
Component 3: Ideal generators. Each generator selects from the idempotents of . At , the three generators contribute bits.
Component 4: Embedding . Determined by . Total: choices, i.e., bits (128 bits at ). When bijective encoding is used, the two trivial idempotents are excluded; the bit-security loss is negligible.
Key-generation sampling space. Under the parametrization , the total number of distinct private keys that KeyGen can produce is at least (using the conservative nested-support bound of Lemma ?? for the triangular component)
Taking base-2 logarithms yields
This figure measures the size of the space from which keys are drawn. It is a correct lower bound on the description complexity of a private key and on the cost of naïve exhaustive search over the entire key space before any ideal recovery. It is not a claim about residual uncertainty after an attacker has recovered I and observed the public ring presentation. Substituting the nominal unrestricted triangular count (523,776 bits) gives the 533,569-bit figure shown in Table 5; that figure is not established for the nested-support family.
Residual ambiguity after ideal recovery. Once I is known and the concrete public presentation (the published triangular basis and its multiplication table) has been observed, only those keys that are consistent with both pieces of data remain candidates. In particular:
• The ideal-generator component is fixed by the recovered I and contributes 0 residual bits.
- Keys that would have produced a different public presentation (different effective basis, or different structure constants) are eliminated.
The residual components that survive are therefore the permutation , the embedding , and whatever freedom remains in the triangular transform T once the observed multiplication table is required to be reproduced. A conservative, publicly verifiable lower bound uses only the two components that are unambiguously free after the public data are fixed:
If the implementation’s public multiplication rule admits multiple triangular realizations, the residual is larger by the corresponding transform entropy; if the rule forces a unique once is chosen, the residual is exactly the figure above. In either case the residual search space remains far beyond exhaustive search. The precise contribution of is an implementation-level fact that should be confirmed by inspection of the published basis and structure constants.
Important caveat. Even the residual count above is a combinatorial description-count, not a proven computational lower bound on the cost of recovering a correct retraction. After I is known, quotient canonicalization supplies a coordinate system on the quotient ring; in the commutative instantiation this may allow the correct embedding and labelling to be read off with far less work than brute-force search over the residual space (see §3.1.5 and §6.3.2). Patent-protected non-commutative and composite-modulus instantiations are intended to obstruct that route; their concrete post-I security remains to be quantified. The present theorem therefore supplies only a combinatorial necessary condition, not a sufficient security guarantee in the post-ideal-recovery regime.
3 Security Analysis
3.1 Hardness Assumptions
The security of the GKS scheme rests on four computational assumptions specific to the algebraic structure of . We state each formally. None reduces to a standard lattice or number-theoretic problem; §6.2 discusses this explicitly.
3.1.1 Two-phase security model
We explicitly distinguish two adversarial phases, because the effective hardness differs between them:
• Phase 1 (Pre-ideal-recovery): The adversary does not know I. Security rests on ZKI (Definition 3.1) and TBI (Definition 3.3). In the strict IND-EAV model, we do not claim a completed ITS theorem. The full combinatorial keyspace is relevant as a measure of total secret state.
• Phase 2 (Post-ideal-recovery): Of the four key components in §2.7, the ideal generators are fixed once I is known, and quotient canonicalization collapses most of the permutation and triangular ambiguity (§3.1.6, §5). In the commutative instantiation the residual post-I barrier is the embedding search of §5 (about 30 bits at ). The GKS patents have mitigations for this attack, but their effectiveness has yet to be fully quantified.
3.1.2 Zero-Knowledge of Ideal (ZKI)
Intuition. An adversary observing ciphertexts cannot recover the ideal I from the public presentation of in the transformed basis. Given the quotient canonicalization analysis above, ZKI is the primary security assumption of the GKS scheme.
Definition 3.1 (ZKI Assumption). Instance: The public ring presentation of in the transformed basis, together with a polynomial number of ciphertexts encrypting non-zero plaintexts. Challenge: Output a basis for the secret ideal I. Assumption: For every PPT adversary A,
In the strict single-ciphertext model (no homomorphic evaluation, no differences), Lemma 3.1 shows that I cannot be identified from one ciphertext in the SIMD case; this holds without computational assumptions. Empirical checks on equal-weight plaintexts found no distinguisher above the sampling noise floor (Appendix A.2).
Boundary condition. When the adversary can form differences (or otherwise obtain elements of I), the information-theoretic guarantee no longer applies. ZKI then becomes a computational assumption: the adversary holds samples from I but must still invert the secret basis transformation in order to recover a usable basis. Ideal rotation ( ) and bijective encoding ( ) limit the number of such samples that can be collected under a fixed ideal.
3.1.3 Retraction Indistinguishability under Decryption (RI-D)
Intuition. Even if the adversary observes exact decryption outputs (the IND-CPA setting of Li–Micciancio [26]), the specific attack vector that breaks CKKS—noise-key correlation leakage—does not exist in GKS.
Definition 3.2 (RI-D Assumption). Instance: The public ring presentation of , the ideal , and oracle access to returning exact plaintexts. Challenge: Distinguish encryptions of from encryptions of given the decryption oracle. Assumption: For all PPT adversaries with access to ,
Structural argument against LM21-class attacks. The Li–Micciancio attack exploits: (1) approximate decryption leaking a noise term, (2) noise correlated with the secret key, and (3) bootstrapping preserving the correlation. GKS has none of these: decryption is exact, the ideal element is algebraically killed (not approximately removed), and there is no bootstrapping. The LM21 attack vector is structurally absent.
Scope and limitations. The structural argument eliminates the specific LM21 attack class. It does not rule out all CPA attacks. A decryption oracle provides exact evaluation of the projection map on adversary-chosen inputs. Residual attack surfaces include algebraic probing to reconstruct incrementally and kernel/image queries to identify ideal elements. These are substantially mitigated by the private-key model (the adversary cannot craft valid ciphertexts without knowing I, which presupposes ZKI compromise). We state RI-D as an assumption because a complete CPA analysis remains open. In the GKS private-key model, the practical relevance of RI-D is limited: an adversary requires knowledge of I to craft valid ciphertexts for submission to the decryption oracle, which presupposes ZKI is already compromised. RI-D is therefore primarily relevant as a comparative benchmark against CKKS rather than as an independent operational threat.
3.1.4 Triangular Basis Indistinguishability (TBI)
Intuition. The secret permutation and triangular transformation T cannot be determined from the published transformed basis before I is known. TBI protects the basis transformation and is the algebraic mechanism underlying ZKI.
Definition 3.3 (TBI Assumption). Instance: The published basis of , which is the image of a secret permutation of the full set of orthogonal idempotents followed by a nested-support triangular transform. Challenge: Recover (a permutation of elements) or any of the triangular coefficients, or any information that reduces the effective keyspace. Assumption: For all PPT adversaries ,
Evidence. The multiplication table satisfies for . Attack 2 ( ) shows this is consistent with every nested-support triangular transform (at least at ; Lemma ). The permutation adds bits of further unconstrained degrees of freedom.
Standard semisimple algebra decomposition algorithms [2, 11, 12, 17] canonicalize any explicit presentation of a finite-dimensional semisimple algebra over a finite field by computing its primitive idempotent basis. For a 128-dimensional algebra over ( ), these algorithms are tractable. The critical question is whether these algorithms can be applied before is known—i.e., whether TBI can be broken directly on the full ring without first recovering .
We argue this is substantially harder than post-I-recovery canonicalization. itself is a 1024-dimensional semisimple algebra whose primitive idempotent decomposition is already known in principle (it is ). The problem is not decomposing but determining which 128 of the 1024 primitive components constitute the plaintext ring vs. the ideal I. This is a subset-identification problem, not a decomposition problem. The basis transformation hides which components correspond to which.
Running Eberly-style decomposition on the full in the transformed basis would yield primitive idempotents in the published coordinates—but the adversary cannot determine which subset corresponds to I without additional information. This distinguishes the pre-I setting (subset identification: hard) from the post-I setting (quotient canonicalization: tractable) discussed in §5.
Objective assessment. We cannot prove that no algorithm bypasses TBI without first recovering I. We identify two specific targets for the Stage 2 cryptanalytic challenge and Stage 3 audit: (i) direct canonical decomposition of in the transformed basis to identify the ideal's components (which would simultaneously bypass TBI and ZKI), and (ii) optimized canonicalization of the 128-dimensional quotient at production parameters to confirm the concrete cost of post-I-recovery canonicalization.
Role in the security argument. TBI supports ZKI as the algebraic mechanism that hides the ideal's location within . Its security value is pre-I-recovery only. Once I is known, TBI's protection is rendered inert at the quotient level via canonicalization, and security falls through to the embedding .
3.1.5 Retraction Indistinguishability (RI)
Intuition. Given the public presentation of and the ideal , an adversary cannot efficiently determine which retraction was used for encryption.
Definition 3.4 (RI Assumption). Instance generation: Run KeyGen( ) to obtain and the public ring presentation. The distribution over retractions is induced by KeyGen. Challenge: The challenger runs KeyGen twice with the same but independent , producing and . It selects and provides and oracle access to encryption under . (In the private-key model, this oracle is unavailable to the adversary; we state it in the stronger form for compositional arguments.) Assumption: For all PPT adversaries ,
Quotient canonicalization and effective post-I-recovery hardness are discussed in §5.
3.1.6 Independence of Key Components
Theorem 3.2 multiplies four component counts. The algebraic independence holds (Appendix A.3, Lemma ??): and operate on basis representation, ideal generators on the extension structure, and on the plaintext ring . These operate on structurally disjoint aspects of the key. Ring constraints and multiplication table consistency do not create hidden correlations (Attack 2, §3.3.2).
Important caveat. Independence of key descriptions does not imply independence of key effects after quotient canonicalization. Many distinct pairs yield the same quotient-level behavior once the canonical idempotent basis is computed. The independence argument of Lemma ?? is valid for counting key descriptions; it does not contradict the observation that most of this count becomes presentation redundancy—gauge freedom that disappears after quotient normalization.
The dependency structure follows the two-phase model ( ): ZKI and TBI operate pre-I-recovery; post-I-recovery defense in the commutative instantiation is limited to the embedding search of .
3.1.7 Limitations and Open Problems
A commentator observed that, under the default fixed triangular basis, the map from the published f-basis to canonical coordinates is a public prefix-sum. Consequently the plaintext-bearing coordinates are unmasked. For non-uniform plaintext distributions an eavesdropper can therefore recover the multiset of slot values (up to the secret permutation) from a single ciphertext. Uniform ensembles show no distinguisher above the sampling noise floor, and the intermediate layer under double encryption is high-entropy. We are currently (i) quantifying the uniformity of production and intermediate-layer data and (ii) completing the random-triangular-basis implementation on the outer layer, which removes the public prefix-sum shortcut. Until those measurements are finished we treat the fixed-T single-layer configuration as unsuitable for low-entropy plaintexts and recommend double encryption together with ideal rotation and (where possible) random-T. The algebraic channel is closed by any of: random triangular basis on the observed layer, a non-commutative instantiation, or a genuine restriction to uniform plaintexts.
-
No standard-problem reduction. None of RI, ZKI, RI-D, or TBI reduces to a standard lattice or number-theoretic assumption. Non-reducibility reflects algebraic orthogonality, not weakness ( ), [27].
-
No worst-case/average-case reduction. No analogue of Regev's reduction exists for GKS. Establishing one for the Retraction Recovery Problem or the ideal-recovery problem is explicitly open.
-
Post-I-recovery security in the commutative setting is modest. Once is known, the ideal generators are fixed, quotient canonicalization collapses most of the permutation and triangular ambiguity, and the residual barrier is the embedding search of (about 30 bits at ); for ring-structured plaintexts there is no residual barrier. Canonicalization has not yet been run at GKS production parameters. Consistent with , non-commutativity alone does not make these algorithms inapplicable: [17, 12] decompose non-commutative finite-dimensional algebras over fields in polynomial time. The load-bearing post-I barrier is the instantiation, which ties quotient decomposition to integer factorization, so the residual post-I security in that instantiation is that of the factoring instance ( ).
-
ZKI is the critical boundary. Given item (3), the scheme's practical security depends primarily on preventing I-recovery. A single ciphertext does not identify I (Lemma 3.1, SIMD case), and empirical checks on equal-weight plaintexts found no distinguisher above the sampling noise floor (Appendix A.2). Across multiple ciphertexts, pairwise rank gives a key-free equality test (§3.3.9), so I-recovery is bounded by the supply of same-value differences under one ideal, not by ZKI alone. Under operational conditions where elements may accumulate, the mitigations of §3.5 (ideal rotation, bijective encoding) are essential.
-
Quantification of security against attack vectors. A quantification of security against the major attack vectors is currently being field tested. No tool analogous to the Lattice Estimator yet exists for the post-ideal embedding-search problem; this remains open alongside the audit.
-
Evidence hierarchy. In order of strength: (a) a proved single-ciphertext ideal-ambiguity result (Lemma 3.1, SIMD case) and a conditional single-ciphertext IND-EAV result where indistinguishability holds after conditioning on the publicly observable rank (Appendix A.2), with empirical support for balance (Appendix B); (b) combinatorial counting of key descriptions with explicit distributional analysis (Theorem 3.2, Appendix A.3)—valid as a count, not as a post-canonicalization security estimate; (c) structural inapplicability of LM21-class attacks to GKS (RI-D); (d) preliminary cryptanalysis of nine attack strategies (§3.3); (e) absence of known algorithms that bypass TBI without first recovering I. We do not equate absence of known attacks with evidence of hardness.
3.2 Threat Model: Adversary Classes
As a private-key architecture, there are three primary security pillars:
• Plaintext and Enc stay with the data owner; the evaluator is not given m or an Enc oracle.
• Encryption does not expose a public coordinate correspondence between plaintext slots and ciphertext coordinates.
- Matched pairs are not provided to the evaluator.
The GKS deployment model involves three parties with distinct capabilities:
-
External adversary (eavesdropper): Observes ciphertexts only. Security: single-ciphertext IND-EAV, conditional on the balance lemma (Theorem 3.1) and rank conditioning (Appendix A.2). Across multiple observed ciphertexts, the pairwise-rank equality test of §3.3.9 is available to an eavesdropper as well.
-
Cloud operator (Carl): Holds the encrypted database and performs allowed homomorphic operations. Has no encryption oracle and is not given plaintexts. Self-subtraction of a single ciphertext yields the zero ring element, not a fresh ideal sample. The residual in-scope risk is multi-ciphertext COA: if about (or ) linearly independent same-value differences are available under one compute ideal, they span the ideal (or composed kernel). Pairwise rank already gives a key-free equality test (Appendix B), so the binding constraint is the number of repeated plaintext values under one ideal. Mitigations are collision scarcity / ZCG (designed; §3.5.7) at the inner layer, hygiene and multiplicity bounds at the original layer, ideal rotation, SIMD, and the encodings of §3.5. IND-EAV is the single-ciphertext model; it does not by itself bound that harvest.
Table 2: Participant capabilities
| Adversary | Sees CTs | Sees Interm. | Enc Oracle | Rep. Queries | Controls Enforced |
|---|---|---|---|---|---|
| EAV (passive) | Yes | No | No | No | N/A |
| Carl (database passive) | Yes | No | No | No | Yes |
| Carl (active search) | Yes | Match only | No | Yes | Yes |
| Carl (compiled API) | Yes | Possible | No | Yes | Advisory only |
| Carl (client sovereign) | Yes | No* | No | Yes | Yes, Al-ice's key |
*KPA pairs obtained through side channel or leakage, not through encryption oracle access. No external party holds an encryption oracle in the GKS private-key architecture.
3.3 Identified Attack Vectors
We consider nine attack strategies and argue intractability at recommended parameters.
3.3.1 Attack 1: Gröbner basis computation
The retraction constraints yield a system with variables and equations over . While the GKS system has significant algebraic structure (triangular form, idempotency constraints, Boolean lattice of subsets), at , dimension 1024, no existing Gröbner basis solver can process systems at this scale. At research parameters (, dimension 64), Gröbner basis computation is feasible and is recommended as a validation exercise (), [14, 15]. Our current Gröbner-basis formulation is not practical at ; we have not identified a practical Gröbner attack at the recommended parameters.
3.3.2 Attack 2: Triangular transform recovery
The public multiplication table ( ) is consistent with every nested-support triangular transform. It does not uniquely determine the secret support sets or the coefficients, so the triangular transform remains information-theoretically hidden among an exponentially large set of possibilities.
3.3.3 Attack 3: Meet-in-the-middle
Requires enumerating partial keys in each half—far beyond feasibility.
3.3.4 Attack 4: Lattice embedding
The “noise” has arbitrary -coefficients (not bounded norm). The retraction is algebraic, not geometric. No known embedding reduces the GKS problem to a lattice problem.
3.3.5 Attack 5: Statistical distinguishing
For a fixed key, encryptions of a given plaintext are uniform over a coset of I, and distinct cosets are disjoint, so this is not by itself an indistinguishability argument (Appendix A.1). Single-ciphertext indistinguishability rests on the balance lemma (Theorem 3.1) and conditioning on rank (Appendix A.2). For multiple ciphertexts, the pairwise-rank test of §3.3.9 is a successful distinguisher of equal versus unequal plaintexts. However, all plaintext collisions will be removed with ZCG (§3.5.7), which is designed but not yet fully implemented.
3.3.6 Attack 6: Linear constraint accumulation from KPA pairs
An adversary might hope that each known pair provides a linear equation on the retraction , and that collecting enough pairs yields a solvable linear system determining .
Analysis. This attack has a fatal prerequisite for non-ring data: to form the equation , the adversary must compute , which requires the secret embedding . A single pair, taken alone, gives no linear equation in or . Collectively, however, labelled pairs do: decryption is an affine map on ciphertext coordinates, so once the pairs span the ciphertext space, the decryption map can be fitted directly without recovering individually. Appendix B confirms this at 513 and 2,049 pairs for the tested parameters. The case gives an ideal element immediately ( ). KPA is therefore not claimed. Under the GKS architecture the evaluator holds no labelled pairs, so this attack is out of scope operationally (Table 1).
3.3.7 Attack 7: Post-ideal canonicalization / direct-readout attack
-
Reduce the ciphertext modulo . The result is an element of the quotient ring .
-
Because is a homomorphism, the plaintext sits inside that quotient as the scalar multiple of the fixed idempotent .
-
In the orthogonal (canonical) basis of the quotient, the element is simply the constant m on the support of u and 0 elsewhere.
-
The attacker therefore reads m directly from those coordinates. No search over embeddings or retractions is required.
When plaintexts do have ring structure (the embedding is a full ring homomorphism, as required for delegated computation), a different and stronger attack becomes available. This attack is contingent on I-recovery, which cannot be done from a single ciphertext (Lemma 3.1) and which, across many ciphertexts, the operational mitigations ( ) are designed to prevent.
For (the default for non-ring data), this attack is feasible—but it applies only when plaintexts have ring structure. For ring-structured plaintexts, [19, §5.1] recommends that has bit length on the order of the required security parameter (e.g., a 128-bit prime when ). For ring data, double encryption is recommended.
The unique exception: . Every ring homomorphism maps zero to zero: regardless of which was chosen. Therefore , and the adversary obtains a raw element of for free. This is the only plaintext whose encoding is independent of the secret embedding. Zero-pattern leakage ( ) is a consequence of this algebraic fact. With ZCG and double encryption, zero never enters the plaintext or intermediate space, eliminating this input exception; homomorphically derived zeros are addressed separately ( , Remark).
3.3.8 Attack 8: Non-Zero KPA
A recurring structural risk in this scheme is the exposure of elements of I, since a confirmed member of I is the unit of currency for the recovery attack of §3.4.9. Elements of I arise operationally as zeros—values whose plaintext component vanishes, leaving a pure ideal element. We classify the sources:
-
Actual zeros (plaintext-level): A plaintext value of zero, encrypted directly, yields . This channel is closed by bijective encoding ( ): the encoding map is applied before encryption so that no plaintext is represented as a bare zero in the encrypted domain.
-
Self-subtractions: The operation on any single ciphertext yields the zero element of the ring. The zero vector itself has rank 0 and therefore supplies no linearly independent sample that can help span I. Bijective encoding is irrelevant to this cancellation. Nevertheless, the capability to evaluate subtraction is dangerous: it allows differences of distinct computed values and is the most direct route by which an evaluator can manufacture ideal elements. The proper mitigation is therefore architectural—exclusion or strict cryptographic control of subtraction (and equivalent ideal-generating operations) in the allowed function class (compiled API or client-sovereign enforcement channel)—together with rate limiting and ideal rotation. Non-exposure of intermediates remains necessary but is not sufficient.
-
Manufactured zeros (computation-forced): An adversary may drive two computation paths to a value known a priori to be zero—for example, via identity-forced constants such as products with a zero factor—and difference them. Such a difference is a genuine member of I, recognized by arithmetic alone without any oracle. Two properties address this:
-
Under the match-only interface and the absence of an exposed comparison predicate in the compute channel ( ), the result of such an operation is never observable: the adversary may force a zero but cannot read the ideal element it produces.
-
Under double encryption ( ), any such difference an adversary could observe is the outer-encrypted image of the inner ideal element rather than the element itself. The protection is non-observability and outer masking.
In all three cases the security objective is identical: prevent the adversary from obtaining an observable, confirmed element of . The defenses converge on ZCG () and double encryption.
3.3.9 Attack 9: Rank Order Attacks
The rank-order attack is multi-ciphertext COA and thus in scope. For outliers , set . If they encrypt the same original value, lies in (one layer) or in the composed kernel (double encryption), independently of whether the inner masks match. Public rank() is a possible membership signal. It does not satisfy for every ideal element; empirically, on the tested keys, same- and different- differences separated (Appendices B and B). A single pair's rank already separates the two cases, so pairwise rank can be a key-free equality test from the outset; no prior harvest is needed to recognize equal pairs.
Once enough same- differences are in hand, they span or (Appendix B). After that, membership classifies further pairs. Double encryption does not move the only relevant collision to the intermediate. ZCG removes plaintext and intermediate collisions.
Differences from different repeated values all lie in the same (or ), so they combine. A corpus of ciphertexts under one ideal containing distinct plaintext values supplies linearly independent same-value differences, and Carl can locate them by pairwise rank. ZCG, which is designed but not yet fully implemented, will remove all collisions ().
Table 3: Passive and Active Rank Order Attacks
| Aspect | Passive | Active |
|---|---|---|
| Source of collisions | Already present in the static corpus | Still must occur; Carl can only hope that derived ciphertexts create new ones or that he can test more pairs. With double encryption the intermediate layer is high entropy with multiple vectors making creation of a duplicate highly unlikely. |
| Number of differences he can form | Limited by the given corpus | Limited only by how many operations the policy/rate limits allow under one ideal. |
| Ability to adapt | None | Can choose which pairs to difference next based on previous rank results. |
| Ability to inject new plaintexts | None | No. |
ZCG () would remove all collisions. Carl has no Enc oracle, so he cannot manufacture that set. Rank order is out of scope as CPA/KPA when the set would have to be created or labelled.
Mitigations. Mitigations fall into two categories:
-
Architectural elimination of duplicates: ZCG eliminates duplicate packed plaintexts, and in double encryption also checks the intermediate layer (). Deployment controls provide operational assurance, but are not load-bearing for collision elimination.
-
Operational monitoring of Carl: The Client Custody Architecture () and Client Sovereign Architecture () monitor and limit evaluator access.
3.4 Security Games
3.4.1 IND-EAV Security Game
Definition 3.5 (IND-EAV Game). The IND-EAV game for GKS proceeds as follows:
-
Challenger runs KeyGen to obtain sk.
-
Challenger selects and .
-
Challenger computes and sends to adversary .
-
outputs .
Advantage: .
Theorem 3.1 (Single-ciphertext IND-EAV — conditional). If the balance lemma (Appendix A.2) holds, the IND-EAV advantage of any adversary, including a computationally unbounded one, is negligible, and it is negligible if balance holds with negligible statistical distance. The balance lemma is open; empirical checks to date show no deviation (Appendix A.2).
Lemma 3.1 (Single-ciphertext ideal ambiguity). Suppose SIMD packing uses all slots, so that the encoding is a bijection from slot vectors onto . Then for every ciphertext and every candidate key in the support of KeyGen, lies in the coset of exactly one , and so decrypts to exactly one slot vector. A single ciphertext therefore never rules out a candidate ideal, and no procedure can identify from by consistency testing. If the slot vector is uniformly distributed, is uniform on and statistically independent of the key. The non-SIMD encoding is not covered and depends on the balance lemma.
Remark 3.1. Lemma 3.1 does not establish that the ciphertext ensembles for two messages are statistically close. Distinct cosets of a fixed ideal are disjoint, so indistinguishability can only hold for the mixture over KeyGen. That is the balance lemma and indistinguishability holds after conditioning on the publicly observable rank (Appendix A.2).
Application to GKS. At , and . Lemma 3.1 covers the single challenge ciphertext of Definition 3.5. Ring structure supplies one public invariant: the rank of the multiplication-by- map, which equals plus the plaintext's Hamming weight (Appendix A.1, Appendix B). The weight is therefore public. Bjective encoding shifts the base by one but does not remove the dependence. For two or more ciphertexts, the same invariant applied to a difference becomes an equality test (§3.3.9, Appendix B), so none of this extends to multi-ciphertext access.
3.4.2 IND-KPA Security Game
Definition 3.6 (IND-KPA Game for Non-Zero Plaintexts). 1. Challenger runs KeyGen.
-
receives polynomially many pairs with all .
-
Challenger selects and ; sends .
-
outputs . Advantage: .
3.4.3 Theorem 2
Theorem 3.2 (Combinatorial Key Ambiguity). For , the number of private-key descriptions that KeyGen can produce is at least
using the conservative nested-support bound of Lemma ?? for the triangular component. If the full unitriangular family is admissible, the nominal count is .
Proof. See Appendix A.3 for the complete derivation, including the independence argument (Lemma ??), the triangular transform count (Lemma ??), the ideal generator count (Lemma ??), the embedding count (Lemma ??), and composition (Theorem ??).
This bound counts KeyGen descriptions before ideal recovery. It is not residual ambiguity after I is known: the ideal-generator component then contributes 0 bits, and quotient canonicalization collapses most of the permutation and triangular components ( , ). The translation of this combinatorial bound into effective post-I-recovery security depends on the hardness of the Retraction Recovery Problem (Definition 3.7, ).
Remark 3.2 (Combinatorial ambiguity vs. computational security). Theorem 3.2 establishes a combinatorial lower bound on the number of valid keys. This is a necessary but not sufficient condition for security: it shows that a brute-force enumeration strategy requires searching a space of at least key descriptions. It does not by itself rule out the existence of structured algebraic shortcuts that might narrow this space without full enumeration. The preliminary cryptanalysis in §3.3 considers several such shortcut strategies and argues their intractability, but a formal reduction to a recognized hard problem remains open.
3.4.4 KPA Non-ring Plaintexts
Operationally this game is not instantiated. The theorem below is a retraction-ambiguity statement for non-ring plaintexts; it is not a KPA indistinguishability result (with labelled pairs, affine recovery applies; Appendix B).
Theorem 3.3 (Retraction Ambiguity — Non-Ring Plaintexts). When plaintexts do not have ring structure (the embedding is one-to-one but not homomorphic—the common enterprise case), for any non-zero ciphertext with and any candidate plaintext , there exist valid retractions such that maps to .
Definition 3.7 (Retraction Recovery Problem). Given the public ring presentation of (in the transformed basis), the ideal (or a basis thereof), and a ciphertext , recover the retraction with that was used for encryption—or equivalently, recover any of the secret key components sufficient to compute .
In the commutative instantiation, the Retraction Recovery Problem reduces after I-recovery to the search of §5; it is stated here for the patent-protected instantiations, where its hardness is open.
Remark 3.3 (Bifurcated security profile). The effective security of GKS depends on whether plaintexts have ring structure:
• Non-ring plaintexts (enterprise case): The description count of Theorem 3.2 applies (as a count, not a security level); the rarity of accidental ideal elements bounds accidental membership only—not recognizability, since §3.3.9 provides a polynomial-time public membership test.
• Ring-structured plaintexts (delegated computation): Effective security is , requiring for 128-bit security. [19, §5.1] explicitly identifies this bifurcation and recommends parameters accordingly.
3.4.5 IND-CPA Security: Limitation and Context
The IND-CPA game presumes a capability the GKS deployment model does not grant. In the IND-CPA game, the adversary is granted oracle access to the encryption function. In the GKS private-key architecture, no external party holds that capability: encryption requires the private key, which never leaves the key holder. We state the position plainly rather than claiming structural immunity—were an encryption oracle exposed, repeated queries would enable accumulation of ideal elements and the scheme would not be IND-CPA secure. Consistent with Kerckhoffs's principle, the algorithm is public and only the key is secret; the absence of the oracle is a property of the deployment, not of the algebra.
With bijective encoding (or, under double encryption, at the intermediate layer), zero never enters the plaintext space, closing the input side of the zero-pattern leakage channel; homomorphically derived zeros are bounded by ideal rotation ( , Remark). Canonicalization is discussed in .
On the I-recovery path. The identified path to I-recovery requires accumulation of elements of I, obtainable via encryption oracle queries (as modeled in the IND-CPA game) or homomorphic derivation (Remark 3.4).
Remark 3.4 (Differences and zeros). The identity on a single ciphertext yields the zero of the ring. It is not a randomized encryption of zero and it contributes nothing to a basis of I. The useful identity is the difference of two independent encryptions of the same plaintext:
(or, under double encryption, in the composed kernel). Carl does not need an Enc oracle to form that difference if those two outliers already exist. He also does not need to know m. That is the same-value harvest of §3.3.9 / Appendix B (multi-ciphertext COA), not a CPA query of . What he cannot do, without an oracle or a structural same-m set, is manufacture many independent encryptions of one chosen value. Self-subtraction of a lone ciphertext does not replace that.
Theorem 3.4 (IND-CCA2 Impossibility, folklore). No FHE scheme achieves IND-CCA2.
Proof. Adversary computes , submits to decryption oracle, and recovers . Applies to every FHE scheme [18].
3.4.6 Formal KPA-Zero Security Game
Definition 3.8 (IND-KPA-Zero Game). 1. Challenger runs KeyGen.
-
A receives polynomially many pairs where some may equal 0.
-
Challenger selects and a fresh ciphertext where and .
-
outputs . Advantage: .
Observation. If has accumulated encryptions of zero at , can reconstruct via linear algebra and test , winning with advantage . This is the zero-pattern leakage channel. The mitigations below bound 's effective advantage.
3.4.7 Definition
Definition 3.9 (Zero-Pattern Leakage). An adversary who has recovered can test , revealing whether encrypts zero.
Zero-pattern leakage is one of the residual channels; the principal in-scope channel is the same-value harvest of §3.3.9. Zero-pattern leakage alone does not reveal non-zero plaintext values. Recovery of I does, however, enable decryption in the commutative instantiation via quotient canonicalization (§3.3.7, §5), so the relevant bound is on I-recovery itself.
3.4.8 Concrete Bound on Carl's I-Recovery Path
The cloud operator Carl holds ciphertexts encrypted under ideal for a given session. Carl has no encryption oracle and no plaintext knowledge. His sole path to accumulating elements of is collision subtraction: computing for pairs of ciphertexts that happen to encrypt the same plaintext . When , the result is , a nontrivial ideal element. When , the result is , an element of that is almost surely not in .
Three barriers to I-recovery were originally identified; only the first two hold:
• Barrier 1 (Limited harvest rate): Carl can perform at most pairwise subtractions per session. The expected number yielding ideal elements depends on the plaintext collision rate . For ciphertexts drawn from distinct plaintext values, . SIMD reduces the pure-collision term by the full-vector factor , which makes whole-vector repeats rare ( ).
• Barrier 2 (Ideal rotation): Session-fresh ideals ( ) reset Carl’s accumulated samples to zero at each rotation. Samples from session k are elements of and provide zero information about . Carl must harvest dim I linearly independent ideal elements within a single session (896 at ). Under double encryption the target is the composed kernel (dim at 6,7,8; Appendix B).
• Barrier 3 (Noisy subspace identification — ZKI): Even if Carl’s subtraction results include ideal elements, he cannot distinguish them from non-ideal results without knowing I. The probability that a uniformly random element of lies in I is , so noise elements are almost surely outside I; distinguishing them, however, does not require a separate membership oracle. As shown in §3.3.9 and Appendix B, a passive evaluator can build an I-membership test from public ring multiplication alone by computing the dimension of the principal ideal generated by a candidate element. Barrier 3 as originally stated therefore does not hold; the bound of Proposition 3.1 instead rests on Barriers 1–2 and on the larger harvest target dim K under double encryption (§3.5.5).
Proposition 3.1 (Carl's I-Recovery Harvest Bound). Let Carl hold N ciphertexts per session under ideal I, with ideal rotation period L. Let denote the probability that a uniformly random pair of ciphertexts encrypts the same plaintext.
(a) Expected ideal elements per session: .
(b) Concentration (heuristic): Let X be the number of pure ideal elements obtainable by collision subtraction in one session. If , then by a standard Chernoff (or Markov) bound,
The pairwise collision indicators are not independent, so a Chernoff bound is a heuristic, and only the Markov form is rigorous. Rotation parameters should therefore be set from the realized repetition in the data .
(c) Necessary condition for I-recovery (information-theoretic): If the realized number of linearly independent same-value differences under one ideal, , is below (896 at ), Carl cannot span by collision subtraction, even with a membership oracle.
(d) Sufficient condition for security (computational): Under ZKI, and with ideal rotation keeping N - D below dim I in every session with high probability, Carl's probability of accumulating a basis for I by collision subtraction remains negligible.
Additionally, Carl cannot match known plaintexts to ciphertexts in the encrypted database: randomized encryption produces different ciphertexts for the same plaintext, and there is no public slot-to-coordinate map.
3.4.9 Ideal Recovery via Equivalent-Ciphertext Differencing
Attack. Let and be two encryptions of a common plaintext with independent randomness. Both lie in the same coset of , so their difference is a member of , and it is non-trivial whenever the two randomizations differ. An adversary who can (i) cause the search procedure to evaluate such differences and (ii) learn which differences correspond to true equalities thereby obtains confirmed, labeled elements of . Since at , , collecting on the order of independent confirmed elements and taking their span recovers by linear algebra over . The reconstruction is polynomial-time and uses only the solution of a linear system; it does not invoke the structure-computation algorithms of [11, 12, 17]. Recovery of places the scheme in the post-I-recovery regime of §5.
Relation to historical failure modes. This is the same linear-algebraic recovery that broke the prior symmetric non-lattice schemes surveyed in §6.3. The distinction for GKS is that the linear attack does not run directly on the secret components ; it runs on , and only given confirmed equalities.
Defenses. The scheme denies the adversary labeled equalities through three layers:
-
Match-only interface: The implementation evaluates the aggregate product of per-term differences and returns only match/no-match; a true match yields a product of zero, and no individual difference is exposed.
-
Integrity-protected execution: Runtime integrity verification (self-checksumming, refusal to execute when attached/patched) raises the cost of extracting intermediates.
-
Double encryption ( 3.5.5): Any difference an adversary could observe is an outer-encrypted image of the inner ideal element, recoverable only with the outer key.
Residual. Defenses (1) and (2) withhold equalities from the search interface, but they do not remove the pairwise-rank equality test of §3.3.9. Against that test the binding control is limiting repeated values under one ideal (§3.3.9, Proposition 3.1). Defense (3) raises the harvest target from dim I to dim K but does not remove original-value equalities (§3.5.5).
3.5 Mitigations
3.5.1 Mitigation 1: Ideal Rotation
For each query session (or at a chosen rotation interval), sample a fresh ideal independently of all previous ideals [19, §8.1, Remark 4]. The new ideal is statistically independent of its predecessors; samples collected under an old ideal give no information about .
3.5.2 Mitigation 2: Bijective Encoding
Map plaintext 0 to a nonzero ring element, eliminating as a distinct class.
Theorem 3.5 (Soundness of Bijective Encoding). Let be any fixed nonzero idempotent of where and , and define the encoding by , where is the homomorphic embedding. Then:
(i) is injective;
(ii) ;
(iii) for remains a valid encryption;
(iv) the additive homomorphism is preserved up to a known shift:
Proof. See Appendix ??.
Remark 3.5 (Scope of bijective encoding). Bijective encoding and ideal rotation address different attack channels. Bijective encoding prevents zero from entering the plaintext space (input channel): no KPA-zero pairs can arise. Ideal rotation bounds accumulation of homomorphically derived elements (computation channel). Both mitigations are needed to eliminate the zero-pattern leakage channel entirely. Bijective encoding removes input zeros . It does not stop collision-subtraction of two independent encryptions of the same encoded value:
Self-subtraction of one ciphertext is 0 and is useless. Ideal rotation and multiplicity bounds limit how many useful differences can accumulate under one ideal.
3.5.3 Mitigation 3: SIMD Security Amplification
SIMD packing has two distinct effects on the rank channel:
-
Obtaining a pure ideal element (rank exactly dim I) requires simultaneous equality across all slots of the packed vector. The probability of a usable pure sample scales as . At the reference point , bits, this yields a full-vector collision probability of , so that a ten-million-record corpus is expected to contain roughly pure ideal samples. This exponential reduction in the pure-membership harvest rate is the main contribution of SIMD against computed-zero aggregation and the rank-order harvest ( ).
-
One might expect intermediate rank values to reveal the Hamming distance between two slot vectors via . Empirically this does not occur in simple tests (Appendix B). The observable is therefore an equality test on the full packed vector, not a distance oracle.
-
Pairwise rank of a difference is an equality test on the full packed vector only in the special case that the two vectors differ in at least one slot and the ideal coordinates are fully masked. In general (and in every corrected probe that used orthogonal-support plaintexts) the rank rises with the Hamming weight of the difference, supplying a weight/distance oracle on the packed vector. Under double encryption the measurement is taken on a high-entropy intermediate; the resulting sample does not map back to a useful constraint on the original low-entropy slots. Ideal rotation further limits the number of pairs observed under one ideal. See Appendix B, B, and B.
3.5.4 Mitigation 4: Channel Compartmentalization — Independent Ideals for Search & Compute
The scheme separates encrypted search and homomorphic computation into distinct cryptographic channels, each with its own independently generated ideal and ciphertext domain. and are sampled independently: recovery of one yields no information about the other.
Rationale. The search channel is the more exposed: its match predicate supplies the labeled equalities on which ideal recovery depends, whereas the compute channel supplies none through its interface ( ). Independent ideals prevent search-side leakage from compromising compute ciphertexts [7, 8].
Consequences for implementation.
• Parameters are tuned per channel: search runs at the heavier parameter set, compute runs at the lighter set.
• Ciphertexts must not cross channels: enforced via type-level domain separation.
3.5.5 Mitigation 5: Double Encryption
The scheme supports a double-encryption mode where the ciphertext produced by the first (inner) encryption is itself encrypted under a second (outer) instance with an independent ideal:
Double encryption is the recommended default option for GKS.
Effect on security. Under double encryption, any difference an adversary observes is the outer-encrypted image of the inner ideal element, not the inner element itself. Same-original-value differences lie in the composed kernel ( ) and are recognizable by rank ( , Appendix B). Double encryption raises the harvest target from to and removes a clean outer-ideal harvest (Appendix B).
Effect on correctness. After inner encryption, data presented to the outer layer carries no semantic structure and is close to uniform. The probability of accidental collisions between distinct plaintexts is minute, lowering search false positives.
Effect on passive KPA. Two encryptions of the same known plaintext carry independent inner randomness, so their outer difference is in , not a clean element of (Observation 1).
Masking under Double Encryption: Observations.
• Observation 1 (generic inner operands do not leak ): Let . The rank satisfies:
The outer rank test has three levels: for identical inner ciphertexts, for distinct inner encryptions of the same original plaintext, and full rank otherwise.
• Observation 2 (attacker-controlled equal inner operands relocate attack to ): When exactly, the outer difference reduces to . Double encryption relocates the attack from to , with harvest threshold . Outer-ideal rotation closes this relocated channel.
Table 4: Benefits of Double Encryption
| Capability | Single Encryption | Double Encryption | Practical Effect of DE |
|---|---|---|---|
| Effective full basis for protecting ideal | Yes (span_dim = dim I) | No (span_dim > dim I) | Main attack path blocked |
| Ability to protect/canonicalize outer quotient | Yes | No (wrong ideal) | Decryption path potentially blocked |
| Key-free equality test | Yes | Still sometimes yes | Intermediate equality harvest closed with ZCG; original harvest requires data hygiene |
| Ability to peel the two layers | N/A | No (big_kernel) | Cannot reduce DE to two independent breaks |
| Sample complexity to reach weak state | Low ( 1.05–) | High (holds at counts tested) | Attack becomes more expensive and less conclusive |
Query Privacy under Double Encryption (Multi-Party Search). The searcher encrypts the query under an outer key held by the searcher alone; the data owner performs the search over a query it cannot decrypt, and returns a result the searcher decrypts. The double-encryption guarantee holds against non-colluding parties.
3.5.6 Mitigation 6: Instantiation and Non-Commutative Rings
These two mitigations address post-ideal recovery canonicalizations (3.3.7) and are covered by GKS patents (US 10,396,976 and US 9,942,031; 5).
3.5.7 Mitigation 7: ZCG: Collision Elimination
ZCG (Zero Collision Guarantee) combines:
-
Data Hygiene: Separate short-term ideals for headers/labels.
-
SIMD: Packing records by rows rather than columns to minimize duplicates.
-
Nonce: Reserving one or more SIMD slots for an epoch-unique random nonce (drawn from ).
-
Micro-adjustment: Adjusting duplicate values at the least significant digits.
-
Duplicity Test: Client-side hash checks before encryption; re-encoding with a new nonce if a collision occurs.
With double encryption, ZCG is applied at both the original-plaintext and intermediate layers, removing the collision prerequisite for rank-order and differencing attacks.
4 Deployment Options
The GKS scheme supports four deployment configurations:
4.1 Compiled API Mode
Distributed as an integrity-protected compiled library. Rank evaluation ( ) is absent from the API surface. Operational controls (subtraction rate limits, key expiry) are advisory in this tier.
4.2 Client Custody Architecture
Data owner encrypts and retains ciphertext. Carl submits evaluation requests; computation executes inside the data-owner-controlled environment. Monitoring includes clock controls, counter controls, timer controls, and type controls.

Figure 1: Client Custody Architecture
4.3 Client Sovereign Architecture
All decryption authority remains with the data owner. Three independent ideals serve separate channels: compute ideal, search ideal, and enforcement ideal.

Figure 2: Client-Sovereign FHE Architecture
4.4 Epoch Key Architecture
Utilizes ephemeral per-epoch keys whose validity expires at epoch boundaries, gating evaluation capabilities.

Figure 3: Epoch Key Architecture
5 Post Ideal Recovery Hardness
Even in the hypothetical event that were recovered, an additional exhaustive search of cost (approximately 30 bits at ) would remain. The table below counts the retraction ambiguity in bits for fixed ideals.
Table 5: Retraction ambiguity (in bits) by parameter set
| dim | Triangular (bits) | Perm (bits) | Total (bits) | ||
|---|---|---|---|---|---|
| 3 | 6 | 64 | 32 | 296 | 392 |
| 5 | 8 | 256 | 128 | 1,684 | 2,068 |
| 7 | 10 | 1,024 | 512 | 8,769 | 10,305 |
| 9 | 12 | 4,096 | 2,048 | 43,250 | 49,394 |
If were recovered, an adversary would attempt quotient canonicalization [12]. In the commutative instantiation, canonicalization runs in polynomial time, leaving an brute-force search over for non-ring data. For ring-structured plaintexts, the plaintext is readable directly from canonical decomposition.
Two patent-protected instantiations provide stronger post-ideal defense:
-
Composite Modulus (US 10,396,976): Ties quotient canonicalization to integer factorization, giving approximately 112 bits of classical hardness at 2048-bit .
-
Non-commutative Matrix Ring (US 9,942,031): Introduces a non-trivial radical and eliminates direct commutative semisimple decomposition.
6 Comparative Analysis
See [5] for standardization criteria and concrete parameter bounds for lattice-based schemes.
Table 6: Security comparison between FHE schemes
| Property | GKS | BGV/BFV | CKKS |
|---|---|---|---|
| Hardness | Retraction ambiguity (algebraic) | RLWE (lattice) | RLWE (lattice) |
| IND-EAV | Conditional (balance) | Computational | Computational |
| IND-CPA | N/A (private-key, no oracle) | Computational | Computational |
| Out of scope; LM21 in-applicable | Open | Broken [26] | |
| IND-CCA1/2 | Impossible | Impossible | Impossible |
| KPA (non-ring) | Not claimed | Computational | Computational |
| KPA (ring) | Not claimed | Computational | Computational |
| Bootstrapping | None | Required for unbounded depth | Required |
| Decryption | Exact | Exact (int) | Approximate |
| Depth | Unlimited | Bounded | Bounded |
| Key model | Private | Public | Public |
6.1 CKKS IND-CPA Vulnerability
Li-Micciancio [26] showed CKKS broken under IND-CPA . Exact arithmetic in GKS closes the decryption-error channel structurally.
6.2 Comparison with RLWE: Different Tradeoffs
GKS and RLWE schemes occupy different points in the design space: RLWE benefits from 15+ years of lattice cryptanalysis; GKS offers unlimited depth, exact decryption, and native search based on algebraic assumptions independent of RLWE.
6.3 Position Relative to Prior Symmetric Non-Lattice FHE
6.3.1 Prior schemes and their cryptanalysis
6.3.2 Where GKS differs structurally
-
Coset randomization vs. conjugation orbits: GKS ciphertexts sample independent ideal elements , avoiding shared conjugation orbits.
-
Hidden quotient structure vs. direct linear key equations: Ciphertext operations hold modulo ; operations are visible only after projecting to .
- Quotient canonicalization as post- boundary: In the variant, canonicalization requires factoring .
6.3.3 What this section does not establish
This section rules out specific historical linear-algebraic and orbit attacks by structural exclusion; it is not a standalone security proof.
Table 7: Past private key FHE attempts
| Scheme | Year | Structure | Attack model | Reference |
|---|---|---|---|---|
| Domingo-Ferrer | 2002, 2006 | Polynomial over | KPA, poly-time | [10] |
| Kipnis–Hibshoosh MORE | 2012 | Matrix conjugation over | Ciphertext-only | [30] |
| Kipnis–Hibshoosh PORE | 2012 | Polynomial variant | KPA key recovery | [31] |
| Xiao-Bastani–Yen | 2012 | Matrix-based | KPA | [31] |
| Gupta–Sharma | 2013 | Linear algebraic | KPA | [31] |
| Brenner et al. | 2014 | SHE + refresh | Refresh fails | [13] |
| Li-Scheme | 2016 | KPA | [33] | |
| Li-Scheme (improved) | 2016 | COA, lattice reduction | [28] | |
| Hariss-Noura-Samhat | 2018 | Matrix variant | COA decryption | [32] |
6.4 GKS Performance Metrics Summary
On commodity hardware with no GPU, double encryption, SIMD, and rings 6/7/8, companion measurements report approximately 2.4 s/slot encryption, 2 ns/slot addition, 31 ns/slot multiplication, 2.3 s/slot decryption, and expansion 16× [23].
7 Quantum Resistance
In the single-ciphertext model, quantum resistance follows from Theorem 3.1. Beyond IND-EAV:
-
Shor [29]: Inapplicable; GKS does not reduce to abelian hidden subgroup problems.
-
Grover [25]: Provides quadratic speedup for post-I exhaustive search ().
-
Lattice algorithms [6]: Inapplicable (non-lattice).
8 Empirical Validation: Machine Learning on Encrypted Data
Table 8: Empirical validation of GKS-FHE on medical data
| Study | Data | Task | Correctness Finding | |
|---|---|---|---|---|
| Gribov et al. [21] | Diabetic (101,767), Parkinson’s (5,876) | ML function eval | Zero error discrepancy vs. unencrypted; no false positives in multiplications. | |
| Wood et al. [37] | Breast Cancer (683 patients) | Naive Bayes classification | Identical (96.0%), (93.4%), (97.4%). | accuracy sensitivity specificity |
| Wood et al. [38] | Breast Cancer | Classification with argmax | Under 1 model/data preserved. | second; privacy |
9 Future Work
9.1 GKS Performance Metrics
GPU benchmarks are planned as future work.
9.2 GKS Key Management & Use Cases
Companion papers treat operating/search keys, ML-KEM transport, and key delegation.
9.3 Future Research
Open problems include: algebraic verification of Theorem 3.2 for small parameters, public cryptanalytic challenges, third-party audits, and formal reductions for the Retraction Recovery Problem.
10 Conclusion
GKS is a noise-free FHE scheme whose security centers on preventing I-recovery (ZKI), mitigated by ZCG ( 3.5.7), providing exact decryption and native search without bootstrapping.
Acknowledgements
We thank an anonymous external researcher for independently identifying and sharing the rank order vulnerability with us.
References
[1] Z. Brakerski, C. Gentry, and V. Vaikuntanathan, "(Leveled) fully homomorphic encryption without bootstrapping," in Proceedings of the 3rd Innovations in Theoretical Computer Science Conference (ITCS 2012), ACM, pp. 309–325, 2012.
[2] M. Barcau and V. Paşol, “Computing primitive idempotents in finite commutative rings and applications,” Journal of Symbolic Computation, vol. 123, p. 102294, 2024.
[3] Z. Brakerski, “Fully homomorphic encryption without modulus switching from classical GapSVP,” in Advances in Cryptology – CRYPTO 2012, Lecture Notes in Computer Science, vol. 7417, Springer, pp. 868–886, 2012.
[4] M. Bellare and P. Rogaway, “Random oracles are practical: A paradigm for designing efficient protocols,” in Proceedings of the 1st ACM Conference on Computer and Communications Security (CCS 1993), ACM, pp. 62–73, 1993.
[5] R. Cammarota, F. Boemer, et al., “Standardization of fully homomorphic encryption,” IACR Cryptology ePrint Archive, Report 2024/1545, 2024.
[6] R. Cramer, L. Ducas, C. Peikert, and O. Regev, “Recovering short generators of principal ideals in cyclotomic rings,” in Advances in Cryptology – EUROCRYPT 2016, Lecture Notes in Computer Science, vol. 9666, Springer, pp. 559–585, 2016.
[7] R. Curtmola, J. Garay, S. Kamara, and R. Ostrovsky, “Searchable symmetric encryption: Improved definitions and efficient constructions,” in Proceedings of the 13th ACM Conference on Computer and Communications Security (CCS 2006), ACM, pp. 79–88, 2006.
[8] M. Chase and S. Kamara, “Structured encryption and controlled disclosure,” in Advances in Cryptology – ASIACRYPT 2010, Lecture Notes in Computer Science, vol. 6477, Springer, pp. 577–594, 2010.
[9] J. H. Cheon, A. Kim, M. Kim, and Y. Song, “Homomorphic encryption for arithmetic of approximate numbers,” in Advances in Cryptology – ASIACRYPT 2017, Lecture Notes in Computer Science, vol. 10624, Springer, pp. 409–437, 2017.
[10] J. H. Cheon, W.-H. Kim, and H. S. Nam, “Cryptanalysis of a homomorphic public-key cryptosystem over a finite ring,” Information Processing Letters, vol. 98, no. 6, pp. 259–263, 2006.
[11] W. Eberly, “Decompositions of algebras over and ,” Computational Complexity, vol. 1, no. 3, pp. 207–230, 1991.
[12] W. Eberly and M. Giesbrecht, “Efficient decomposition of associative algebras over finite fields,” Journal of Symbolic Computation, vol. 29, no. 3, pp. 441–462, 2000.
[13] A. El-Yahyaoui and M. D. Elkettani, “An efficient fully homomorphic encryption scheme,” International Journal of Network Security, vol. 21, no. 5, pp. 775–782, 2019.
[14] J.-C. Faugère, “A new efficient algorithm for computing Gröbner bases ( ),” Journal of Pure and Applied Algebra, vol. 139, no. 1–3, pp. 61–88, 1999.
[15] J.-C. Faugère, “A new efficient algorithm for computing Gröbner bases without reduction to zero ( ),” in Proceedings of the 2002 International Symposium on Symbolic and Algebraic Computation (ISSAC 2002), ACM, pp. 75–83, 2002.
[16] J. Fan and F. Vercauteren, “Somewhat practical fully homomorphic encryption,” IACR Cryptology ePrint Archive, Report 2012/144, 2012.
[17] K. Friedl and L. Rónyai, “Polynomial time solutions for some problems in computational algebra,” in Proceedings of the 17th Annual ACM Symposium on Theory of Computing (STOC 1985), ACM, pp. 153–162, 1985.
[18] C. Gentry, “Fully homomorphic encryption using ideal lattices,” in Proceedings of the 41st Annual ACM Symposium on Theory of Computing (STOC 2009), ACM, pp. 169–178, 2009.
[19] A. Gribov, D. Kahrobaei, and V. Shpilrain, “Practical private-key fully homomorphic encryption in rings,” Groups Complexity Cryptology, vol. 10, no. 1, pp. 17–27, 2018.
[20] D. Grigoriev, D. Kahrobaei, and V. Shpilrain, “Practical private-key fully homomorphic encryption in rings,” in Combinatorial and Additive Number Theory III, Contemporary Mathematics, vol. 726, AMS, pp. 141–152, 2021.
[21] A. Gribov, K. Horan, J. Gryak, D. Kahrobaei, R. Soroushmehr, V. Shpilrain, and K. Najarian, “Medical diagnostics based on encrypted medical data,” in Bio-inspired Information and Communications Technologies (BICT 2019), Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering (LNICST), vol. 289, Springer, pp. 98–111, 2019.
[22] J. Graham, S. Marzougui, and M. Pavlović, “GKS FHE: Key management & use cases,” White Paper / Technical Report, Zero Inc., 2026.
[23] J. Graham, S. Marzougui, and M. Pavlović, “GKS private key FHE: Performance metrics,” Technical Report, Zero Inc., 2026.
[24] D. Grigoriev and I. Ponomarenko, “Homomorphic public-key cryptosystems over groups and rings,” Journal of Mathematical Sciences, vol. 130, no. 2, pp. 4626–4635, 2005.
[25] L. K. Grover, “A fast quantum mechanical algorithm for database search,” in Proceedings of the 28th Annual ACM Symposium on Theory of Computing (STOC 1996), ACM, pp. 212–219, 1996.
[26] B. Li and D. Micciancio, “On the security of homomorphic encryption on approximate numbers,” in Advances in Cryptology – EUROCRYPT 2021, Lecture Notes in Computer Science, vol. 12692, Springer, pp. 648–677, 2021.
[27] M. Naor, “On cryptographic assumptions and challenges,” in Advances in Cryptology – CRYPTO 2003, Lecture Notes in Computer Science, vol. 2729, Springer, pp. 96–109, 2003.
[28] Q. Qu, X. Dong, H. Wang, and Z. Cao, “Ciphertext-only cryptanalysis of a symmetric fully homomorphic encryption scheme via lattice reduction,” Security and Communication Networks, vol. 2019, Art. ID 4861849, 2019.
[29] P. W. Shor, “Algorithms for quantum computation: Discrete logarithms and factoring,” in Proceedings of the 35th Annual Symposium on Foundations of Computer Science (FOCS 1994), IEEE, pp. 124–134, 1994.
[30] B. Tsaban and N. Lifshitz, “Cryptanalysis of the MORE symmetric-key fully homomorphic encryption scheme,” Journal of Mathematical Cryptology, vol. 9, no. 4, pp. 211–216, 2015.
[31] D. Vizár and S. Vaudenay, “Cryptanalysis of chosen symmetric homomorphic schemes,” in Information Security and Cryptology – ICISC 2014, Lecture Notes in Computer Science, vol. 8949, Springer, pp. 313–333, 2015.
[32] D. Vizár and S. Vaudenay, “Cryptanalysis of enhanced MORE,” Journal of Mathematical Cryptology, vol. 13, no. 4, pp. 243–249, 2019.
[33] B. Wang, Y. Zhan, and Z. Zhang, “Cryptanalysis of a symmetric fully homomorphic encryption scheme,” IEEE Transactions on Information Forensics and Security, vol. 13, no. 6, pp. 1469–1480, 2018.
[34] A. Wood, K. Najarian, and D. Kahrobaei, “Homomorphic encryption for machine learning in medicine and bioinformatics,” ACM Computing Surveys, vol. 53, no. 4, Art. 83, pp. 1–35, 2020.
[35] A. Wood, “Private-key fully homomorphic encryption for private classification of medical data,” Ph.D. dissertation, The Graduate Center, City University of New York (CUNY), 2018.
[36] A. Wood, “Private-key fully homomorphic encryption for private classification,” in Mathematical Software – ICMS 2018, Lecture Notes in Computer Science, vol. 10931, Springer, pp. 465–472, 2018.
[37] A. Wood, V. Shpilrain, K. Najarian, and D. Kahrobaei, “Private Naive Bayes classification of personal biomedical data,” Computers in Biology and Medicine, vol. 115, p. 103494, 2019.
[38] A. Wood, V. Shpilrain, K. Najarian, and D. Kahrobaei, “Private classification with argmax protocol,” Extended Abstract, CUNY Academic Works, 2019.
A Proofs
A.1 Single-ciphertext ensembles and the balance condition
Let be the ideal sampled by KeyGen and write with sampled on . For a fixed , the support of is the coset . Distinct cosets of a fixed are disjoint, so the fact that the adversary does not know does not make two such cosets statistically indistinguishable. Security must be stated for the mixture over KeyGen. The scheme satisfies the balance condition if the statistical distance between the KeyGen ciphertext ensembles for every admissible pair is negligible.
The rank of the public multiplication-by-c map is a similarity invariant of the ring and is therefore computable without knowledge of the key. This rank equals dim I plus the weight of the component of c outside I. Consequently, two cosets whose representatives have different outside-weights are distinguishable by rank alone (Appendix B.6).
Proof of Lemma 1. For any KeyGen ideal , : the retraction substitutes only for and fixes , giving , with dimensions adding . With all slots in use, SIMD encoding is a bijection from slot vectors onto . Hence for any and any candidate key, there is exactly one with , decrypting to exactly one slot vector. Thus is consistent with every candidate ideal. If the slot vector is uniform, is uniform on .
A.2 Theorem 1 — IND-EAV Security in the Ciphertext-Only Model
Lemma A.1 (Balance). The ensembles of ciphertexts encrypting two plaintexts and are identical if and only if and have equal Hamming weight.
For plaintexts of unequal weight, the ensembles are distinguishable by public rank ( ). For plaintexts of equal Hamming weight, sampling over 300 independent KeyGen draws produced no distinguisher above the sampling noise floor ( ). Hence Theorem 1 holds conditionally after conditioning on publicly observable rank. For equal-weight plaintexts the measured distance lay at the sampling noise floor ( ); no finite sample can establish that the statistical distance is negligible. This remains an algebraic open question.
A.3 Theorem 2 — Retraction Ambiguity Bound
The private key consists of: (C1) permutation on the full basis of ; (C2) invertible triangular transformation ; (C3) ideal generators ; and (C4) embedding .
Lemma A.2 (Independence of Components). Components are independently selectable.
Proof. (C1)-(C2) act on basis representations, preserving ring structure. permutes and mixes triangularly. Ideal generators fix , and embeddings select idempotents in . All selections are algebraically orthogonal.
Lemma A.3 (Permutation Count). The number of permutations on the full basis is . For , bits.
Lemma A.4 (Triangular Transformation Count). Nested-support triangular transformations contribute at least choices (512 bits at ). Unrestricted unitriangular binary matrices contribute nominal bits.
Lemma A.5 (Ideal Generator Count). The number of valid ideal generators for is .
Lemma A.6 (Embedding Count). The number of fully homomorphic embeddings is for .
A.4 Theorem 6 (Composition — Total Retraction Ambiguity)
For , the number of compatible private-key descriptions is at least (conservative) or (nominal unrestricted).
Proof.
A.5 Theorem 3 — Retraction Ambiguity for Non-Ring Plaintexts
Proof. When is not a ring homomorphism, retractions map independently across candidate plaintexts, ensuring combinatorial ambiguity. With labelled pairs, affine recovery applies (Appendix B.9).
A.6 Theorem 4 — Soundness of Bjective Encoding
Addition: . Injectivity holds because is injective. because coordinates on the support of equal 1. Addition yields .
Multiplication: Since and ,
Multiplication requires no correction term.
A.7 Theorem 5 — IND-CCA2 Impossibility
Follows by submitting to the decryption oracle.
B Statistical Tests
In this section we run a series of statistical tests to gain an understanding of the properties of GKS encrypted data. The labelled/grouped harness used in these tests removes three of the GKS architecture's standing protections - no Enc oracle and no plaintext to the evaluator; no public slot-to-coordinate map; no labelled pairs. Those results describe the embedding when the architectural assumptions are dropped, or when a same-value column is already present. They are not a demonstration that a blind evaluator breaks the scheme. We report it in full for transparency for researchers. It should not be read as a blind-evaluator break. All these tests are with synthetic data that has a lower entropy than production data has, and with double encryption already had the entropy significantly increased and collisions greatly reduced or removed altogether. All probes were run with bijective encoding off and random triangular basis off and SIMD on unless otherwise stated. Under double encryption, bijective encoding is not needed at the intermediate layer because inner ciphertexts are not bare zeros; zeros in the original plaintext still produce same-value repeats, see Section 3.3.9. These tests have not yet been run with the and non-commutative instantiations of GKS described in the patent and it is expected that these instantiations will show significantly greater resistance even after the security architecture pillars are removed.
Results therefore describe the embedding when these security architecture principles are removed (or when a same value column is provided). Affine is out of scope as it requires a full pile of matched plaintexts (only available from Alice) but rank order is in scope as it just requires ciphertexts. Recovery of the ideal (or K) needs about linearly independent same-value differences under one ideal, which can come from any mix of repeated values. Pairwise rank identifies equal pairs individually (Appendix B5), so the attacker does not need a pre-grouped set. Intermediate-layer duplicates would be eliminated by the Zero Collision Guarantee (designed, not yet fully implemented, see Section 3.5.7). Duplicates at the original plaintext level can be mitigated with data hygiene, ideal rotation, shards, duplicate counting and, alternatively, with deployment architectures that monitor or control Carl. Labelled harness instantiates a game we do not claim. Lattice schemes claim that game and put the hardness in the noise. Under the labelled / grouped harness with three major security pillars (no access to plaintext or oracle, no public slot-to-coordinate map) removed, affine and same-m rank-order recover as predicted. Other probes do not add a distance oracle, a single-ciphertext support leak (except 0), or a peel of . Operational security is therefore EAV plus COA bounded by repetition under one ideal.
B1: Key Entropy Tests
Component entropies by parameter set, for reference alongside the evidence table below.
Two tests actually establish that ideal 0 carries exactly 32 bits at order 5, 128 bits at order 7, not the total. The rest of the report is confirmatory — it shows no additional weaknesses beyond this known structural point, but doesn't change the headline number. A product of component entropies is an upper bound on attacker effort. If a component is separable, the operative figure is that weakest independently-testable piece. Ideal 0 is independently recoverable at its measured entropy (32 bits at order 5, 128 bits at order 7). Recovery of Ideal 0 does not automatically yield the higher ideal generators, which remain independent, but the low-entropy component itself constitutes the operative security floor for that part of the key. For single encryption we recommend at least order 7 for the plaintext ring and order 10 for the cipher ring.
The table below marks which is which.
Table 9: Component entropies by parameter
| Order | Ideal 0 | Ideal 1 | Ideal 2 | Total | Weakest Ideal |
|---|---|---|---|---|---|
| 5 | 32 | 64 | 128 | 224 bits | 32 bits |
| 7 | 128 | 256 | 512 | 896 bits | 128 bits |
| Double enc. (order 8) | 256 | 512 | 1024 | 1792 bits | 256 bits |
Table 10: Tests on Ideal Entropy
| Test | Keys used | Finding |
|---|---|---|
| Reconstruction | 50 | Ideal 0 basis reconstructs byte-identically from 32 sampled bits alone. |
| Birthday / collision | 200,000 | 6 exact collisions observed vs. 4.66 predicted at 32 bits. |
| Monobit / correlation | 3,000 | Bit uniformity across all coordinates of all three ideals. |
| Permutation uniformity | — | 's fixed-point count matches Poisson(1) expectation. |
| Double-encryption audit | 2,000 (+100) | Outer layer (256-bit weakest ideal) corroborated by dead-coordinate sweeps. |
B2: Coordinate Distance Tests
Pairs of ciphertexts were generated from identical plaintexts and from distinct plaintexts, under both single encryption (n=7, r=10) and double encryption (parameters 5-8-11), modulus 1 000 000 007, without bijective encoding or random triangular basis.
Coordinate-distance Measures mean pairwise Hamming and circular-L2 distance between ciphertexts of the same plaintext versus different plaintexts. In all single- and double-encryption configurations the distances are statistically indistinguishable. The test is a necessary but not sufficient condition for rank-based leakage; its failure to separate is consistent with the absence of a simple metric clustering attack.
Table 11: Hamming distance tests
| Test Ciphertexts | Hamming (Differing Coord.) | Circular | Conclusion |
|---|---|---|---|
| Single Same Plaintext | 251.0 / 256 | 4,572,506 | Indistinguishable |
| Single Different Plaintext | 251.0 / 256 | 4,571,320 | |
| Double Same Plaintext | 2048 / 2048 | 13,062,532 | Indistinguishable |
| Double Different Plaintext | 2048 / 2048 | 13,063,685 |
B3: Kernel Span Test
This Appendix B3 does not claim a blind break. It measures harvest size and classification power once a same-original- grouping is provided.
Harness result. Under double encryption, differences of ciphertexts that encrypt the same original plaintext span a single composed kernel of both layers. One full-support same-value difference yields an element of the ideal; public multiplication generates the principal ideal, which equals the ideal with overwhelming probability. Pairwise rank identifies such pairs from ciphertext alone (Appendix B5). The only collision bound that closes the attack is zero collisions under the ideal (ZCG). A non-zero cap is not sufficient.
Incremental linear algebra on those same-differences recovers a subspace of the predicted dimension. Membership in the recovered subspace then classifies held-out pairs with no false positives or negatives: same-original differences lie in the subspace; different differences do not. The test does not recover inner plaintext. It shows that same-original outer differences span both ideals at once, so the composed kernel is an equality oracle on the original plaintext after the harvest.
Table 12: Rank Order Subspace
| Rank Order / Ring Dimension | 7+1+1 | 5+3+3 |
|---|---|---|
| Subspace dimension | 384 | 2016 |
| Pairs to harvest it | 584 | 2216 |
Why this is not the default ciphertext-only game. A launch from ciphertext alone is in scope whenever repeated plaintext values exist under one ideal. The harness supplied a pre-grouped same-value set, but a ciphertext-only evaluator does not need one: the rank of a single difference already separates same-value from different-value pairs (Appendix B5), so equal pairs can be found one at a time, and differences from different repeated values combine (§3.3.9). The harvest condition is on the total number of linearly independent same-value differences under one ideal ( for ciphertexts with distinct values), not on any single value's multiplicity.
Operational controls The following prevent a harvestable same-m block:
• Ideal rotation on a short horizon, especially for labels and other low-cardinality fields, so any local same-m cluster is bound to a retired ideal.
• Data hygiene: no headers, no column labels, no structural “this field is the same key” markers, no distinguished zeros, no exported grouping keys.
• Keep low-cardinality fields off the long-lived encrypted surface, or isolate them under separate keys.
• Shards / key separation so a same-value run cannot be assembled across domains into one linear-algebra instance of size .
• Duplicate counting tied to parameters: total repetition bounds (the duplicate-count rule of §3.5.7) set so that, at the chosen plaintext and outer ciphertext dimension, the number of independent same-value differences across all values stays below inside one shard and one ideal epoch.
• Monitoring Carl: alert on attempts to assemble large same-shape difference collections, on unusual rank/span probes, and on queries that look like membership tests against a candidate subspace.
Scope: In scope whenever repeated values exist under one ideal. Contained, not eliminated, when rotation, hygiene, no-label/no-zero layout, shards, repetition bounds and monitoring keep below in every ideal epoch. The table measures harvest size given the equal pairs; per Appendix B5, Carl can identify equal pairs from ciphertext alone.
B4: Kernel Peel Test
Kernel-peel Tests whether the harvested span is closed under the public multiplication and whether it coincides with the outer ideal. Single encryption yields a clean ideal harvest.
Determines whether the big-kernel (dim and is an ideal) composed kernel is inseparable, double encryption not peelable to two breaks and shows in test results as “BigKernel”. Double encryption prevents peeling and raises harvest size. It does not turn rank-order into two independent breaks. Security gain is the larger and the loss of a clean , not a second hardness assumption.
The results are shown below and include parameters for both single (marked S in Outer Margin column) and double encryption (Order in the table is what in the paper is described as the ring dimension n).
The results show that:
For single encryption for each parameter and configuration (Bijective encoding, SIMD, Triangular Basis) the full ideal was harvested.
For every parameter and configuration with double encryption:
• The harvested span is larger than the outer ideal.
• The span is itself an ideal (ideal_membership = 1).
• Therefore, the probe classifies it as a single, inseparable “big kernel”.
• Carl does not recover the outer ideal I. There is no clean-ideal-harvest.
- The two encryption layers have fused into one larger ideal K. The double-encryption structure cannot be peeled into two separate, sequential breaks. This is exactly what the probe means by “not peelable to two breaks”.
More tests will be run with larger sample counts. No dedicated active-rank probe is reported here; the active case is limited by the same intermediate-collision bound and is further constrained by the architectures of §4.2–4.3. Also, rank order attacks with double encryption and its implications are discussed in §B3.
is itself an ideal of the outer ring (ideal_membership = 1). Whether the composed decryption map is a ring homomorphism with kernel has not yet been analyzed. If it is, quotient canonicalization of the outer ring modulo would apply after is recovered, exactly as for under single encryption. Until this is settled, recovery of should be treated as equivalent to ideal recovery, and double encryption as raising the harvest threshold rather than adding a post-recovery barrier.
Table 13: Kernel Peel Test for Single and Double Encryption
| Order | Inner | Outer | SIMD | Bij. | Triang. | Verdict | dim I | dim K | Ideal Memb. | N | Samples |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5 | 3 | S | No | No | No | clean-ideal-harvest | 224 | 224 | 1 | 256 | 264 |
| 5 | 3 | S | No | Yes | No | clean-ideal-harvest | 224 | 224 | 1 | 256 | 264 |
| 5 | 3 | S | Yes | No | No | clean-ideal-harvest | 224 | 224 | 1 | 256 | 264 |
| 7 | 3 | S | No | No | No | clean-ideal-harvest | 896 | 896 | 1 | 1024 | 936 |
| 7 | 3 | S | No | Yes | No | clean-ideal-harvest | 896 | 896 | 1 | 1024 | 936 |
| 7 | 3 | S | Yes | No | No | clean-ideal-harvest | 896 | 896 | 1 | 1024 | 936 |
| 6 | 3 | 1 | No | No | No | big-kernel | 512 | 960 | 1 | 1024 | 1000 |
| 6 | 3 | 1 | No | No | Yes | big-kernel | 512 | 960 | 1 | 1024 | 1000 |
| 6 | 3 | 1 | No | Yes | No | big-kernel | 512 | 960 | 1 | 1024 | 1000 |
| 6 | 3 | 1 | No | Yes | Yes | big-kernel | 512 | 960 | 1 | 1024 | 1000 |
| 6 | 3 | 1 | Yes | No | No | big-kernel | 512 | 960 | 1 | 1024 | 1000 |
| 6 | 3 | 1 | Yes | No | Yes | big-kernel | 512 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 3 | No | No | No | big-kernel | 896 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 3 | No | No | Yes | big-kernel | 896 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 3 | No | Yes | No | big-kernel | 896 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 3 | No | Yes | Yes | big-kernel | 896 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 3 | Yes | No | No | big-kernel | 896 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 3 | Yes | No | Yes | big-kernel | 896 | 960 | 1 | 1024 | 1000 |
| 6 | 1 | 1 | No | No | No | big-kernel | 128 | 192 | 1 | 256 | 232 |
| 6 | 1 | 1 | No | No | Yes | big-kernel | 128 | 192 | 1 | 256 | 232 |
| 6 | 1 | 1 | No | Yes | No | big-kernel | 128 | 192 | 1 | 256 | 232 |
| 6 | 1 | 1 | No | Yes | Yes | big-kernel | 128 | 192 | 1 | 256 | 232 |
| 6 | 1 | 1 | Yes | No | No | big-kernel | 128 | 192 | 1 | 256 | 232 |
| 6 | 1 | 1 | Yes | No | Yes | big-kernel | 128 | 192 | 1 | 256 | 232 |
| 7 | 2 | 2 | No | No | No | big-kernel | 1536 | 1920 | 1 | 2048 | 1960 |
| 7 | 2 | 2 | No | No | Yes | big-kernel | 1536 | 1920 | 1 | 2048 | 1960 |
| 7 | 2 | 2 | No | Yes | No | big-kernel | 1536 | 1920 | 1 | 2048 | 1960 |
| 7 | 2 | 2 | No | Yes | Yes | big-kernel | 1536 | 1920 | 1 | 2048 | 1960 |
| 7 | 2 | 2 | Yes | No | No | big-kernel | 1536 | 1920 | 1 | 2048 | 1960 |
| 7 | 2 | 2 | Yes | No | Yes | big-kernel | 1536 | 1920 | 1 | 2048 | 1960 |
| 6 | 1 | 2 | No | No | No | big-kernel | 384 | 448 | 1 | 512 | 488 |
| 6 | 1 | 2 | No | No | Yes | big-kernel | 384 | 448 | 1 | 512 | 488 |
| 6 | 1 | 2 | No | Yes | No | big-kernel | 384 | 448 | 1 | 512 | 488 |
| 6 | 1 | 2 | No | Yes | Yes | big-kernel | 384 | 448 | 1 | 512 | 488 |
| 6 | 1 | 2 | Yes | No | No | big-kernel | 384 | 448 | 1 | 512 | 488 |
| 6 | 1 | 2 | Yes | No | Yes | big-kernel | 384 | 448 | 1 | 512 | 488 |
B5: Rank Difference
Rank-difference Computes the rank of the difference of two ciphertexts and tests whether the rank is systematically lower when the plaintexts (or intermediates) are identical. Single and double encryption both separate cleanly, pair by pair: the rank of one difference equals dim I (single) or dim K (double) for equal plaintexts and is full otherwise. This is a key-free equality test available from the first pair; what requires about pairs is spanning the ideal (Appendix B3). Collisions at the intermediate level would be eliminated by ZCG (§3.5.7), but data hygiene is required at the original plaintext level together with the other mitigations discussed in §3.3.9. Another route is with access to an encryption oracle: can be encrypted times.
Table 14: Rank Difference Test on Synthetic Data
| Probe | Order | Inner | Outer | Verdict | dim | Slots | Rank_diff | Rank_same |
|---|---|---|---|---|---|---|---|---|
| rank-diff | separates | |||||||
| rank-diff | separates | |||||||
| rank-diff | separates | |||||||
| rank-diff | separates | |||||||
| rank-diff | separates |
B6: Rank Single Ciphertext
Rank-single-ciphertext examines whether the rank of a single ciphertext varies with the support weight of its plaintext. Across all tested configurations, including double encryption, the rank rises with weight: the all-zero plaintext yields rank ≈ dim , partial-support plaintexts yield intermediate ranks, and full-support plaintexts yield full ambient rank. The probe therefore leaks plaintext support weight, not merely the presence of the zero plaintext. Under double encryption the outer rank correlates with the weight of a high-entropy intermediate ciphertext; a weight sample on that intermediate does not map back to a useful constraint on the original low-entropy field, so larger datasets do not become more dangerous. Per-session ideal rotation further caps the number of samples collected under any single ideal.
Table 15: Rank Single Ciphertext
| Probe | Order | Inner | Outer | Verdict | dim | Slots | Rank W0 | Rank WFull |
|---|---|---|---|---|---|---|---|---|
| rank-single | weight-dep. | |||||||
| rank-single | weight-dep. | |||||||
| rank-single | weight-dep. | |||||||
| rank-single | weight-dep. | |||||||
| rank-single | weight-dep. |
B7: Sampler Distance
Sampler-distance Compares the distribution of same-plaintext differences with the uniform distribution on the ambient space (total variation and ). Single encryption yields near-uniform verdicts; double encryption is occasionally biased (at the lowest total margin value of 2). The probe is only a proxy for the quality of the mask over the ideal and does not by itself indicate a recoverable basis.
Table 16: Sampler Distance
| Probe | Order | In | Out | Verdict | Buckets | Slots | ||
|---|---|---|---|---|---|---|---|---|
| sampling-dist | near-uniform | |||||||
| sampling-dist | near-uniform | |||||||
| sampling-dist | biased | |||||||
| sampling-dist | near-uniform | |||||||
| sampling-dist | biased |
B8: Distance-Staircase
Distance-staircase plots rank() against the number of differing SIMD slots. In all tested configurations, including double encryption, the rank rises monotonically with the number of differing slots (series of nine values from near dim to full ambient dimension). The probe therefore leaks approximate Hamming distance between the compared values, not merely equality. Under double encryption the measurement is taken on outer ciphertexts of high-entropy intermediates; the resulting distance sample does not map to a useful constraint on the original low-entropy plaintext slots. Per-session ideal rotation limits the number of such pairs observed under any single ideal.
Table 17: Distance Staircase
| Probe | Order | In | Out | Verdict | dim | Slots | Min Rank | Max Rank |
|---|---|---|---|---|---|---|---|---|
| distance | 5 | 3 | S | equality-step | 224 | 256 | 224 | 256 |
| distance | 7 | 3 | S | equality-step | 896 | 1024 | 896 | 1024 |
| distance | 6 | 1 | 1 | equality-step | 128 | 256 | 192 | 256 |
| distance | 6 | 2 | 1 | equality-step | 256 | 512 | 448 | 512 |
| distance | 7 | 1 | 1 | equality-step | 256 | 512 | 384 | 512 |
B9: Affine Harness Test
This attack is not an operational path under the private-key architecture (no plaintext and no encryption oracle) and is not a game we claim. Matched pairs were supplied by the harness.
Under that labelled harness the decryption map is determined once the pairs span the ciphertext subspace. Let be the ambient outer dimension in bits: at and at . A textbook affine fit then has threshold , i.e. 513 and 2049 respectively. Empirical recovery on order-5 keys succeeded at 60 and 180 labelled pairs, consistent with an information-theoretic floor near clearSize + 1 rather than . Rotation windows must be set from clearSize + 1. Empirically, recovery succeeded in 100 of 100 trials at 513 and 2,049 pairs and in none of 100 trials at up to nine pairs fewer.
Partial information can exist at lower rank. Practical defense: deny Carl matched pairs; short key lifetime below measured rank; Client Sovereign / Custody. Algebraic options still open: , non-commutative rings, epoch rotation. If Carl has no matched pairs and no encryption oracle the labelled game is not instantiated. If pairs are ever supplied under a stable ideal, the cliff is the whole attack.
Table 18: Affine Test
| Affine Test / Ring Dimensions | ||
|---|---|---|
| Pairs needed | 513 | 2049 |
| Up to nine pairs short | 0 / 100 | 0 / 100 |
| At threshold count | 100 / 100 | 100 / 100 |
| Mask annihilation | 25 / 25 | 25 / 25 |
| Forgery accepted | 25 / 25 | 25 / 25 |
B10: KeyGen-Ensemble Measurements
This appendix records the KeyGen-ensemble measurements underlying the Balance statement in A.2.
Balance condition: what was measured:
Parameters: Order 5, extra-order 3, q = 1,000,003 (clearSize 32, cipherSize, n = 256), fixed triangular basis. Experiments 1–3 single layer; Experiment 4 repeats the decisive case under double encryption (5+3+3, n = 2048).
Tools: Collaboration/key_security_analysis/{balance_test, balance_multi, balance_control, balance_de}.cpp
Experimental design: Appendix A.2 asks whether, for two fixed plaintexts and , the ensembles
are statistically close. The randomness sampled is KeyGen plus encryption randomness—not repeated encryptions under one key. Each iteration accordingly constructs a fresh Context, a fresh KeyGenerator, and a fresh Key, then encrypts both and under that key. One ciphertext per message per key enters the ensemble. Statistical distance is computed as
over the empirical histograms.
Plaintexts are built by SIMD slot (orthogonal basis), so “weight” means the number of nonzero orthogonal slots.
Table 19: Statistical Distance of KeyGen Ensembles
| rank() | rank() | |||
|---|---|---|---|---|
| weight 1 | weight 2 | 1.00 | ||
| all-zero | full support | 1.00 | ||
| weight 5 | weight 5 | 0.00 | ||
| weight 16 | weight 16 | 0.00 |
Table 20: Same Weight, Four Statistics ()
| Statistic | Result |
|---|---|
| Rank() | |
| Zero-coefficient count | |
| Coefficient[0] (mod 97) | |
| Mean coefficient over 256 positions | 495,743 vs 494,727 () |
Table 21: Control — Noise Levels
| Comparison | |
|---|---|
| Same message, two disjoint key sets | 0.303 (noise floor) |
| vs , equal weight | 0.320 |
Table 22: Double Encryption
| weight 1 | weight 2 | 1.00 | ||
| all-zero | full support | 1.00 | ||
| weight 5 | weight 5 | 0.00 |