On Monday a bunch of COSIC researchers attended the WAHC workshop, which stands for Workshop on Encrypted Computing & Applied Homomorphic Cryptography. Two COSIC correspondents, Ilaria and Ilia, share their feelings about some of the talks presented at this venue.
Ilia: Ilaria, what was the first talk about?
Ilaria: Thanks, Ilia. Let me give you some context. Fully homomorphic encryption (FHE) allows to compute any function on encrypted data without decryption, but very slowly. The main portion of this overhead is due to bootstrapping. Bootstrapping is a special function that occasionally refreshes ciphertexts, such that they can be used in further operations. Without bootstrapping, FHE ciphertexts do not support arbitrary computations. To reduce the overhead of bootstrapping many existing FHE schemes such as CKKS use non-standard encryption parameters of the underlying LWE/RLWE problem. Namely, they use sparse secrets, which can be identified with vectors of fixed Hamming weight.
Ilia: What is the problem with these sparse secrets?
Ilaria: The problem is that they have been shown to be more vulnerable to lattice attacks, in particular to hybrid attacks, based on the work of Howgrave-Graham from 2007 and recently improved by Cheon et al. in 2019. Have you heard about these attacks?
Ilia: A little bit. I think I heard about the hybrid decoding attack, which splits the matrix A of an LWE instance into two parts \([A_1|A_2]\). When encrypting, these two parts are multiplied by two different parts of the secret key that splits in the same way \(s=[s_1|s_2]\). The attack on the first part makes guesses on \(s_1\) and reduces the lattice basis using BKZ to solve a related BDD instance: since the secret is sparse, this will be more efficient than for the uniform secrets. Once the first part is reduced, solving the second part is easier.
Ilaria: Right. In the first talk, Ben Curtis and Rachel Player from Royal Holloway demonstrated the effects of this hybrid decoding attach and also of its dual variant on LWE sparse keys and proposed safe encryption parameters updating the ones proposed by the HE standardisation consortium. They fix the ring size \(n\), the standard deviation of the error \(\sigma\), the Hamming weight \(h\), and they find the modulo \(q\) which will achieve the desired level of security. They also suggest a possible alternative for the choice of parameters, advising to seek for an equation computing safe parameters. This equation might become a more practical standard rather than tables with fixed parameter sets.
Ilia: Are those attacks already taken into account in the LWE estimator?
Ilaria: Not yet. The hybrid attacks are not yet implemented in the estimator: it might take a few hours to run estimates for this kind of attacks. But the authors are looking for a way to integrate them into the estimator. What about the second talk? I heard it was also about sparse secret LWE.
Ilia: Yep. In this talk, Yongha Son and Jung Hee Cheon from Seoul National University shared their experience applying the hybrid attack of Howgrave-Graham to the primal lattice attack on LWE. The gist of this attack is that given an LWE instance \((A, b)\), one can observe that many columns of \(A\) are irrelevant to \(b\) because of the secret key sparseness. As a result, some columns of \(A\) can be removed, such that the resulting LWE instance becomes smaller and thus easier to solve.
Ilaria: What are the results?
Ilia: They showed that sparse-secret LWE is indeed less secure. Comparing to the related work of Albrecht, this attack decreases the security level by 18-31 bits, which is quite a lot.
Ilaria: Wow, what does this imply for FHE?
Ilia: This is indeed a clear indication that sparse-secret LWE and RLWE remain a dangerous optimisation of FHE and it should be more closely scrutinised to be used in practice.
This blog post was written by Ilaria Chillotti and Ilia Iliashenko.


