{
  "id": "2022/1563",
  "url": "https://opencryptology.org/2022/1563",
  "original_url": "https://eprint.iacr.org/2022/1563",
  "title": "A Practical Full Key Recovery Attack on TFHE and FHEW by Inducing Decryption Errors",
  "authors": [
    "Bhuvnesh Chaturvedi",
    "Anirban Chakraborty",
    "Ayantika Chatterjee",
    "Debdeep Mukhopadhyay"
  ],
  "affiliations": null,
  "abstract": "Fully Homomorphic Encryption (FHE) promises\nto secure our data on the untrusted cloud, while allowing\narbitrary computations. Recent research has shown two side\nchannel attacks on the client side running a popular HE library.\nHowever, no side channel attacks have yet been reported on\nthe server side in existing literature. The current paper shows\nthat it is possible for adversaries to inject perturbations in the\nciphertexts stored in the cloud to result in decryption errors.\nMost importantly, we highlight that when the client reports of\nsuch aberrations to the cloud service provider the complete secret\nkey can be extracted in few attempts. Technically, this implies\na break of the IND-CVA (Indistinguishability against Ciphertext\nVerification Attacks) security of the FHE schemes. The core idea\nof the attack is to extract the underlying error values for each\nhomomorphically computed ciphertext and thereby construct an\nexact system of equations. As the security of the underlying\nLearning with Errors (LWE) collapse with the leakage of the\nerrors, the adversary is capable of ascertaining the secret keys.\nWe demonstrate this attack on two well-known FHE libraries,\nnamely FHEW and TFHE. The objective of the server is to\nperform the attack in a stealthy manner, without raising any\nsuspicion from the innocent client. Therefore in a practical\nscenario, the successful key retrieval from a client would require\nthe server to perform the attack with as few queries as possible.\nThus we craftily use timing information during homomorphic\ngate computations to optimise our attack and significantly reduce\nthe required number of queries per ciphertext. More precisely,\nwe need 8 and 23 queries to the client for each error recovery for\nFHEW and TFHE, respectively. We mount a full-key recovery\nattack 1 on TFHE (without and with bootstrapping) with key size\nof 630 bits and successfully faulted 739 and 930 ciphertexts to\nrecover correct errors. This required a total of 19838 and 29200\nclient queries respectively. In case of FHEW with key size 500,\nwe successfully faulted 766 ciphertexts to recover correct errors,\nwhich required 7565 client queries. The results serve as a stark\nreminder that FHE schemes need to be secured at the application\nlevel apart from being secure at the primitive level so that the\nsecurity of participants against realistic attacks can be ensured.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Practical Full Key Recovery Attack on TFHE and FHEW by Inducing Decryption Errors” by Bhuvnesh Chaturvedi, Anirban Chakraborty, Ayantika Chatterjee, Debdeep Mukhopadhyay, Cryptology ePrint Archive, Paper 2022/1563, https://eprint.iacr.org/2022/1563. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-11-10T06:10:25Z",
    "updated": "2023-01-23T13:33:18Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1563.pdf",
    "sha256": "04732555a536612e98d359e78c97e4150a060092aea5905542a7b80ca3274cfb",
    "size": 856760,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1563/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1563.pdf",
      "size": 856760,
      "sha256": "04732555a536612e98d359e78c97e4150a060092aea5905542a7b80ca3274cfb",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/1563/versions/20221110T133017Z.pdf",
      "captured_at": "2022-11-10T13:30:17Z",
      "label": "copy captured 2022-11-10",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221110133017id_/https://eprint.iacr.org/2022/1563.pdf",
      "size": 916710,
      "sha256": "2de0d9a1101bf9769527c7fd0c41b9fc82ae75517a62adefb2f9261416321afd",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260222145659id_/https://eprint.iacr.org/2022/1563.pdf",
      "captured_at": "2026-02-22T14:56:59Z",
      "size": 752903
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1563.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 856760
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1563,\n      author = {Bhuvnesh Chaturvedi and Anirban Chakraborty and Ayantika Chatterjee and Debdeep Mukhopadhyay},\n      title = {A Practical Full Key Recovery Attack on TFHE and FHEW by Inducing Decryption Errors},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1563},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1563}\n}"
}
