 Submitted Successfully!
Thank you for your contribution! You can also upload a video entry or images related to this topic.
Ver. Summary Created by Modification Content Size Created at Operation
1 handwiki -- 1868 2022-11-11 01:32:58

Do you have a full video?

# Confirm

Are you sure to Delete?
Cite
Li, H. Non-Malleable Codes. Encyclopedia. Available online: https://encyclopedia.pub/entry/34157 (accessed on 28 November 2023).
Li H. Non-Malleable Codes. Encyclopedia. Available at: https://encyclopedia.pub/entry/34157. Accessed November 28, 2023.
Li, Handwiki. "Non-Malleable Codes" Encyclopedia, https://encyclopedia.pub/entry/34157 (accessed November 28, 2023).
Li, H.(2022, November 11). Non-Malleable Codes. In Encyclopedia. https://encyclopedia.pub/entry/34157
Li, Handwiki. "Non-Malleable Codes." Encyclopedia. Web. 11 November, 2022.
Non-Malleable Codes

The notion of non-malleable codes was introduced in 2010 by Dziembowski, Pietrzak, and Wichs, for relaxing the notion of error-correction and error-detection. Informally, a code is non-malleable if the message contained in a modified code-word is either the original message, or a completely unrelated value. Non-malleable codes provide a useful and meaningful security guarantee in situations where traditional error-correction and error-detection is impossible; for example, when the attacker can completely overwrite the encoded message. Although such codes do not exist if the family of "tampering functions" F is completely unrestricted, they are known to exist for many broad tampering families F.

non-malleable error-detection error-correction

## 1. Background Knowledge

### 1.1. Tampering Experiment

To know the operation schema of non-malleable code, we have to have a knowledge of the basic experiment it based on. The following is the three step method of tampering experiment.

1. A source message $\displaystyle{ s }$ is encoded via a (possibly randomized) procedure $\displaystyle{ Enc }$, yielding a code-word $\displaystyle{ c }$ = $\displaystyle{ Enc(s) }$.
2. The code-word is modified under some tampering-function $\displaystyle{ f\in F }$ to an erroneous-code-word $\displaystyle{ c^* }$=$\displaystyle{ f(c) }$.
3. The erroneous-code-word $\displaystyle{ c^* }$ is decoded using a procedure $\displaystyle{ Dec }$, resulting in a decoded-message $\displaystyle{ s^* }$= $\displaystyle{ Dec(c^*) }$.

The tampering experiment can be used to model several interesting real-world settings, such as data transmitted over a noisy channel, or adversarial tampering of data stored in the memory of a physical device. Having this experimental base, we would like to build special encoding/decoding procedures $\displaystyle{ (Enc,Dec) }$, which give us some meaningful guarantees about the results of the above tampering experiment, for large and interesting families $\displaystyle{ F }$ of tampering functions. The following are several possibilities for the type of guarantees that we may hope for.

### 1.2. Error Correction

One very natural guarantee, called error-correction, would be to require that for any tampering function and any source-message s, the tampering experiment always produces the correct decoded message $\displaystyle{ s^* = s }$.

### 1.3. Error Detection

A weaker guarantee, called error-detection, requires that the tampering-experiment always results in either the correct value $\displaystyle{ s^* = s }$ or a special symbol $\displaystyle{ s^* = \perp }$ indicating that tampering has been detected. This notion of error-detection is a weaker guarantee than error-correction, and achievable for larger F of tampering functions.

## 2. Algorithm Description

A non-malleable code ensures that either the tampering experiment results in a correct decoded-message $\displaystyle{ s^* = s }$, or the decoded-message $\displaystyle{ s^* }$ is completely independent of and unrelated to the source-message $\displaystyle{ s }$. In other word, the notion of non-malleability for codes is similar, in spirit, to notions of non-malleability for cryptographic primitives (such as encryption2, commitments and zero-knowledge proofs), introduced by the seminal work of Dolev, Dwork and Naor.

Compared to error correction or error detection, the "right" formalization of non-malleable codes is somewhat harder to define. Let $\displaystyle{ Tamper^f_s }$ be a random variable for the value of the decoded-message, which results when we run the tampering experiment with source-message $\displaystyle{ s }$ and tampering-function $\displaystyle{ f }$, over the randomness of the encoding procedure. Intuitively, we wish to say that the distribution of $\displaystyle{ Tamper^f_s }$ is independent of the encoded message $\displaystyle{ s }$. Of course, we also want to allow for the case where the tampering experiment results in $\displaystyle{ s^* = s }$ (for example, if the tampering function is identity), which clearly depends on $\displaystyle{ s }$.

Thus, we require that for every tampering-function $\displaystyle{ f\in F }$, there exists a distribution $\displaystyle{ D_f }$ which outputs either concrete values $\displaystyle{ s^* }$ or a special same $\displaystyle{ * }$ symbol, and faithfully models the distribution of $\displaystyle{ Tamper^f_s }$ for all $\displaystyle{ s }$ in the following sense: for every source message $\displaystyle{ s }$, the distributions of $\displaystyle{ Tamper^f_s }$ and $\displaystyle{ D_f }$ are statistically close when the $\displaystyle{ * }$ symbol is interpreted as $\displaystyle{ s }$. That is, $\displaystyle{ D_f }$ correctly simulates the "outcome" of the tampering-experiment with a function $\displaystyle{ f\in F }$ without knowing the source-messages $\displaystyle{ s }$, but it is allowed some ambiguity by outputting a same $\displaystyle{ * }$ symbol to indicate that the decoded-message should be the same as the source-message, without specifying what the exact value is. The fact that $\displaystyle{ D_f }$ depends on only $\displaystyle{ f }$ and not on $\displaystyle{ s }$, shows that the outcome of $\displaystyle{ Tamper^f_s }$ is independent of $\displaystyle{ s }$, exempting equality.

## 3. Relation to Error Correction/detection

Notice that non-malleability is a weaker guarantee than error correction/detection; the latter ensure that any change in the code-word can be corrected or at least detected by the decoding procedure, whereas the former does allow the message to be modified, but only to an unrelated value. However, when studying error correction/detection we usually restrict ourselves to limited forms of tampering which preserve some notion of distance (e.g., usually hamming distance) between the original and tampered code-word. For example, it is already impossible to achieve error correction/detection for the simple family of functions $\displaystyle{ F_{const} }$ which, for every constant $\displaystyle{ c^* }$, includes a "constant" function $\displaystyle{ f_{c^*} }$ that maps all inputs to $\displaystyle{ c^* }$. There is always some function in $\displaystyle{ F_{const} }$ that maps everything to a valid code-word $\displaystyle{ c^* }$. In contrast, it is trivial to construct codes that are non-malleable w.r.t $\displaystyle{ F_{const} }$, as the output of a constant function is clearly independent of its input. The prior works on non-malleable codes show that one can construct non-malleable codes for highly complex tampering function families $\displaystyle{ F }$ for which error correction/detection can not be achievable.

## 4. Application over Tampering Functions

### 4.1. Bit-Wise Independent Tampering

As one very concrete example, we study non-malleability with respect to the family of functions $\displaystyle{ f }$ which specify, for each bit of the code-word $\displaystyle{ c }$, whether to keep it as is, flip it, set it to 0, set it to 1. That is, each bit of the code-word is modified arbitrarily but independently of the value of the other bits of the code-word. We call this the “bit-wise independent tampering” family $\displaystyle{ F_{BIT} }$. Note that this family contains constant functions $\displaystyle{ F_{const} }$ and constant-error functions $\displaystyle{ F_{err} }$ as subsets. Therefore, as we have mentioned, error-correction and error-detection cannot be achieved w.r.t. this family. Nevertheless, the following can show an efficient non-malleable code for this powerful family.

With $\displaystyle{ F_{BIT} }$ we denote the family which contains all tampering functions that tamper every bit independently. Formally, this family contains all functions $\displaystyle{ f_i: \left\{{0},{1}\right\}^n \to \left\{{0},{1}\right\}^n }$ that are defined by n functions$\displaystyle{ f_i: \left\{{0},{1}\right\} \to \left\{{0},{1}\right\} }$ (for i=1...n) as $\displaystyle{ f(c_1..c_n)=f_1(c_1)..f_n(c_n) }$. Note that there are only 4 possible choices for each $\displaystyle{ f_i }$ (i.e. how to modify a particular bit) and we name these “set to 0”, “set to 1”, “flip”, “keep” where the meanings should be intuitive. We call the above family the bit-wise independent tampering family.

### 4.2. All Families of Bounded Size

• Probabilistic Method Approach

For any "small enough" function family $\displaystyle{ F }$, there exists a (possibly inefficient) coding scheme which is non-malleable w.r.t. F. Moreover, for a fixed "small enough" function family $\displaystyle{ F }$, a random coding scheme is likely to be non-malleable w.r.t. F with overwhelming probability. Unfortunately, random coding schemes cannot be efficiently represented, nor is the encoding/decoding function likely to be efficient. Therefore, this result should merely be thought of as showing "possibility" and providing a target that we should then strive to match constructively. Moreover, this result also highlights the difference between "error-correction/detection" and "non-malleability" since a result of this form could not be true for the former notions.

• Random Oracle Model Approach

It is not clear what the bound from the theorem of this type actually implies. For example, it does tell us that non-malleable codes exist with respect to all efficient functions, but this is misleading as we know that efficient non-malleable codes (and ultimately we are only interested in such) cannot be non-malleable w.r.t. this class. Nevertheless, the result by the probabilistic method does give us codes which are non-malleable w.r.t. very general classes of functions in the random oracle model.

### 4.3. Model of Tamper-Resilient Security

In this model, we consider two ways of interacting with the system:

Execute($\displaystyle{ x }$): A user can provide the system with Execute(x) queries, for $\displaystyle{ x\in \left\{{0},{1}\right\}^u }$, in which case the system computes $\displaystyle{ (y,s^') \gets G(x,s) }$, updates the state of the system to $\displaystyle{ s :=s^' }$ and outputs $\displaystyle{ y }$.

Tamper($\displaystyle{ f }$): We also consider tampering attacks against the system, modeled by Tamper($\displaystyle{ f }$) commands, for functions $\displaystyle{ f: \left\{{0},{1}\right\}^n \to \left\{{0},{1}\right\}^n }$. Upon receiving such command, the system state is set to $\displaystyle{ s := f(s) }$.

An attacker that can also interact with the system via Tamper queries can potentially learn significantly more about the secret state, even recover it entirely. Therefore, we would like to have a general method for securing systems against tampering attacks, so that the ability to issue Tamper queries (at least for functions f in some large family $\displaystyle{ F }$) cannot provide the attacker with additional information. By using non-malleable code for this purpose we have the conclusion: Let $\displaystyle{ (Enc,Dec) }$ be any coding scheme which is non-malleable w.r.t $\displaystyle{ F }$, then $\displaystyle{ (Enc,Dec) }$ can also be tamper-simulate w.r.t. $\displaystyle{ F }$.

## 5. Capacity of Non-malleable Codes

1. For every family $\displaystyle{ F }$ with $\displaystyle{ |F|\leq 2^{2^{\alpha n}} }$, there exist non-malleable codes against $\displaystyle{ F }$ with rate arbitrarily close to 1 − $\displaystyle{ \alpha }$ (this is achieved w.h.p. by a randomized construction).
2. For families of size $\displaystyle{ exp( n^{O(1)}2^{\alpha n}) }$ against which there is no non-malleable code of rate 1 − $\displaystyle{ \alpha }$ (in fact this is the case w.h.p for a random family of this size).
3. 1 − $\displaystyle{ \alpha }$ is the best achievable rate for the family of functions which are only allowed to tamper the first $\displaystyle{ \alpha n }$ bits of the code-word, which is of special interest.

### References

1. Faust, Sebastian; Mukherjee, Pratyay; Venturi, Daniele; Wichs, Daniel. "Efficient Non-Malleable Codes and Key-Derivation for Poly-Size Tampering Circuits". Advances in Cryptology – EUROCRYPT 2014 8441: 111–128. http://infoscience.epfl.ch/record/198993/files/Efficient_Non-Malleable_Codes.pdf.
2. E. Shannon, Claude (1949). "Communication theory of secrecy systems". Bell System Technical Journal.
3. Dolev, Danny; Dwork, Cynthia; Moni, Naor (Mar 24, 2000). "Non-Malleable Cryptography". SIAM Journal on Computing: http://citeseerx.ist.psu.edu/viewdoc/download;jsessionid=9A853A59C3A45DD1B67690F10232D635?doi=10.1.1.26.8267&rep=rep1&type=pdf.+doi:10.1137/s0097539795291562.  https://dx.doi.org/10.1137%2Fs0097539795291562
4. Dziembowski, Stefan; Pietrzak, Krzysztof; Wichs, Daniel. "Non-Malleable Codes". ICS, 2010. http://eprint.iacr.org/2009/608.pdf..
5. Cheraghchi, Mahdi; Guruswami, Venkatesan (2013-09-02). "Capacity of Non-Malleable Codes". arXiv:1309.0458. //arxiv.org/abs/1309.0458
More
Information
Subjects:
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 280
Entry Collection:
Revision: 1 time (View History)
Update Date: 16 Nov 2022
1000/1000