PETS 2024: I still know it’s you! On Challenges in Anonymizing Source Code.

This blog post is based on the paper: “I still know it’s you! On Challenges in Anonymizing Source Code.” Presented by Micha Horlborge.

Source code does not only define its function, but also contains various clues as to the author of that code. This is because each programmer will have their own style of coding. Machine learning can use these differences in style to identify with high likelihood who the author of the code is. This presents a significant threat to authors of for example anti-censorship or privacy enhancing technologies, as they may be prosecuted because of their identification.

An ideal solution to this problem could be anonymization of the source code. Here one tries to hide the identity of the author, making it impossible to correctly identify the correct author, as the predicted likelihood of each person being the author is equal. The paper establishes a framework to talk about this code anonymization.

First, the talk goes over the different definitions of k-anonymity, where one person is indistinguishable from k other persons given a certain attribution method, and universal k-anonymity, where a method is k-anonymous for every possible attribution method.

In practice however, this universal k-anonymity is not computable. Therefore, they introduced a new concept called k-uncertainty, which measures how close a method can get to k-anonymity. Here, a score of one indicates k-anonymity and a zero indicates perfect distinguishing. A k-uncertainty score of 0.99 is required for good protection from distinguishing.

Four candidate methods for anonymization were investigated, namely normalization of the code, imitation of another coding style and two versions of obfuscation. Two scenarios were also considered. One where the attacker does not know which candidate method is used (static), and one where the attacker is aware of the method being used (adaptive).

In the static scenario, all techniques reduce the accuracy of the attribution methods, varying between the technique being used.  However, only one obfuscation method reaches practical k-anonymity. In the adaptive scenario none of the methods can reach practical k-anonymity. This indicates that novel ideas are required to produce new anonymization techniques.

The talk clearly indicates the need for new anonymization techniques, especially knowing that the attribution methods will increase in accuracy with the increase in power of machine learning models. It was clearly understandable, with the paper providing more in-depth information if wanted.

Tim Vlummens
Bristol, July 2024

References:

I still know it’s you! On Challenges in Anonymizing Source Code.
Micha Horlboge, Erwin Quiring, Roland Meyer, Konrad Rieck

 arXiv:2208.12553v2 [cs.CR]

https://doi.org/10.48550/arXiv.2208.12553