Privacy Through Obfuscation
As noted in a previous essay: "privacy is a subset and a necessary condition of security". However, encryption is not enough to ensure privacy.
Consider the boxes and locks example of Introduction to cryptography. While Eve may not know the contents of the box, she still knows that Bob is sending something to Alice. This reveals the problem. Most traditional secure protocols encrypt only the contents of the message, but not the metadata. Metadata in this case can constitute anything that is associated with the communication, but not the contents of it directly. For example, who the participants are, how often do they exchange information, what is the volume of data exchanged, protocols used, etc.
Metadata is revealing enough. [1] shows that there based on phone call metadata alone one can make very clear inferences about a person's personal information. For example, from the same study:
"Participant B received a long phone call from the cardiology group at a regional medical center, talked briefly with a medical laboratory, answered several short calls from a local drugstore, and made brief calls to a self-reporting hotline for a cardiac arrhythmia monitoring device."
"Participant E made a lengthy phone call to her sister early one morning. Then, 2 days later, she called a nearby Planned Parenthood clinic several times. Two weeks later, she placed brief additional calls to Planned Parenthood, and she placed another short call 1 month after."
In fact, the metadata of encrypted traffic (such as the one used over HTTPS or VPN protocol), which can include amount and frequency of packets, can be revealing about the application and protocol used [2] and [3].
HTTPS and End-To-End Encrypted messages both suffer from the same issue. Source and destination and time of packets/messages are accessible to everyone in the chain. Considering that ISPs in Australia are MANDATED to keep your metadata for at least 2 years [4], this should tell you how viable this information is. WhatsApp, likewise, also maintains a good log of your metadata. It is why they do not need to provide backdoors for your communication. They already know who you talk to, how frequent, and how much you talk with them, thus they can accurately form a social graph of their users.
Consider the example of boxes and locks. Eve may not know what Bob and Alice talk about, but their frequency of messages in late hours of the day (especially if the letters are quite long requiring bigger boxes) is revealing enough of their relationship. Likewise, law enforcements can identify other people of interest based on this metadata.
Thus, encryption is not enough. The metadata needs to also be obfuscated in such a manner that profiling becomes near impossible. Obfuscation here terms the act of adding deliberate noise to one's activity such that profiling and analysing of their behaviour becomes increasingly more complex.
In the old days of radio communication, all messages were being actively broadcasted. Thus the recipient becomes unknown, though the content frequency, volume, as well as the source can be somewhat known. On top of that, flooding the internet with packets when trying to communicate with another end-point will result in too much traffic, essentially throttling the infrastructure. A simpler and more efficient solution is multicasting - sending only to certain addresses. Thus every time you speak with person 1, you also send the same encrypted message to person 11, 111, etc. Since they do not possess the decryption key they cannot discern what the contents are. The destination becomes obfuscated.
Onion Routing (implemented in TOR) employ a message encapsulation technique for the traffic on the network. When a message has a specific destination, it is first rerouted through to 2 other nodes, before reaching the destination [5]. Let us see how this works in the boxes and locks example. Bob puts a secret message for Alice and puts in a lock, which can only be opened by Alice. He then puts this box in another box, which he locks with a lock, which can only be opened by Charlie. He proceeds to do for his next few friends - Dave and Greg. When done, he sends the box to Greg. Greg opens it and sees inside another box addressed to Dave. He sends the box to Dave (so he appears to now be the source). This process continues until finally Charlie sends the final box to Alice. The security of this relies on the fact that each of the people in the chain may be sending or forwarding many other boxes to many other people. Thus it becomes quite difficult to tell what the source and true final destination of a message is. Eve is left confused. Still, such systems have vulnerabilities. A very obvious one would be if some people on the chain were Eve's friends and informed her of the sender of each box they forward. This will allow Eve to discern the entire route of a message. Other attacks exist as well, which can hinder the privacy of the communication [6].
Legislation on Metadata
As established, metadata can be enough to reveal private information about people. Yet, governments to not consider metadata personally identifiable and often they do not need a court order to acquire such information. In the US in 2013, the chairman of the Senate Select Committee on Intelligence, said "Our courts have consistently recognized that there is no reasonable expectation of privacy in this type of metadata information and thus no search warrant is required to obtain it". As noted, ISPs and telephone companies are required to store metadata for at least 2 years and provide it upon request by the authorities.
The European Union has made progress in that regard, stating in a Court of Justice ruling in 2020 that Member States cannot on individual basis mandate indiscriminate traffic retention. Still for the purposes of "national security", member nations are permitted to engage in "targeted retention, limited in time to what is strictly necessary, of traffic and location data, which is limited, on the basis of objective and non-discriminatory factors, according to the categories of persons concerned or using a geographical criterion".
Regardless, ensuring privacy remains each individual's responsibility and continuous fight by being technically adapt and remaining aware about changes in legislation, which can affect his ability of privacy.
Further Reading
Obfuscation: A User's Guide for Privacy and Protest by Finn Brunton and Helen Nissenbaum