A short talk about cryptography at the Berkman Klein Center07 Jul 2016
What follows is a short summary of that presentation. The slides are available here
Let's define what security is. Security is the possibility to being set free from structural costraints, and as that we can distinguish various levels of security depending on who we are.
Also, if we want to investigate security we should also define our threats: security, as being set free, from intelligence surveillance can be our target. Our concerns as different if we consider instead security from censorship or corporation data mining.
What is shown above is the Uber God View, a tool Uber used to track a Buzzfeed's journalist locations, and the Facebook standard form that is given to law enforcement when requested.
Security is a state of mind
Security is hard. It is really rare to reach a state of complete security and even in that case, it depends on our target.
What is important is to train ourselves to security. Security is a state of mind and there are no tools that automatically protect us without our active partecipation.
Let's explore that in details.
The layers of security
We can distinguish four layers of security:
- Device Security
- Network Security
- Message Security
- Human Security
Device Security, where everything happens
Device security is related to the "physical host".
If the computer we use is tampered, at the hardware level, or the phone is bugged, there is no way to escape using higher level tools.
In other words, it doesn't matter if we use a super secure password if our computer is registering all our keystrokes and send them to a third party.
Also, device security is useful if we consider that our device can fall into the hands of attackers that may be able to traceback all the activities.
Some precautions for this purpose:
- full disk encryption
- minimal set of application installed
- open source operating systems
The network is the infrastructures that our device is attached to. In most of the case, when we consider our computer is the internet (and the GSM network in case of mobile phones).
Network security is essential to evade censorship, behavioural tracking and identity theft.
Some tools that may help in this case:
- p2p networks
- mesh networks
And for the web:
- opensource web browsers (such as firefox)
- no google apps on android phones
Message security is the level of protection regarding the content that you want to send or receive.
Message security is essential if you want to avoid any third party snooping and the confidentiality of your messages.
The tools we can use in this context:
- opensource messaging protocols (XMPP, matrix)
Also, always remember that encrypting the content of the message doesn't guarantee that your identity and the metadata are hidden.
Human Security, the weakest link
Everything comes down to the human level at a certain point.
This is way it is important to train ourselves in security.
But security matters even if we are not target of interest.
For example let's consider our password. If we use the same password on every site and one cracker manages to gain access to just one of them, our whole activities online can be exposed and our identity stolen. This is relevant. Myspace had its database breached and the password of Zuckerberg (even a simple one) was exposed. Given that he used the same password on twitter and other sites, his multiple accounts were compromised.
What is TOR and how it works
When you visit a website with your mobile phone or a browser on your computer lots of things go on under the hoods.
Your computer, as a client, makes what is called an handshake with the server.
After telling the server that the client is interested in its content, a series of packets containing data is exchanged.
That is the content of a connection. Inside this packets there are a multitude of information of two kinds:
- the web page or the content we are trying to visualize
- information on the status of both the server and the client
The informations contained in every packet can be analized to understand the "identity" of the client that is requesting the content on the server, first of all the IP that is a sort of web address that every computer on the net has.
Not only, during the transmission of this packets, various entity on the communication channel can analize the content and mine our data.
TOR still uses this kind of routine to gather the content of a web page, but instead of connecting directly to the destination server it goes through a series of other servers called relay: instead of going directly from A to B, it goes from A to C to D to E to F to B.
If the web was a kindergarden Alice instead of telling directly her phrase to Bob, she would tell the word to a friend that in turn would tell the word to a friend and so on, until Bob heards the word, without knowing that Alice said that at the beginning.
At this point you should ask yourself: are the data more protected if it goes through a network of relays? It actually is given that every time you send a packet through the TOR network, it gets encrypted so that no one knows it's content.
To tell the truth, actually the relay (called exit node) that will send the packet to the destination server, knows the content of the packet but does not know the origin.
Ultimately a website can be entirely hosted on the TOR network, called the onion network, so that the packets never exit from the relays and the relay don't know the phisycal location of the server, so every entity on the network reach a perfect level of anonimacy.
Who owns the relays?
Actually every one can host and own a relay if they are willing to do so. I personally host one right now and there are many others that share a little fraction of their network connection.
Running a relay node is very easy and everybody should do so. Running an exit node instead is more troublesome and I don't suggest it if you are not a big entity that can handle some sorts of occasional trouble.
Don't play the fool on the TOR network
Of course TOR doesn't guarantee you perfect anonimacy. At the end it all comes to the human layer.
It's no use to surf the web through TOR if we then log in to our personal blog or our personal facebook page.
But there are other subtle factors that can be exploited by web companies to gather info and track their users.A
Such factors are:
- the size of the screen and the colors supported by it
- the timezone
- canvas and images that the server asks your computer to generate
- information about your OS that are sent through packets
- the fonts available on your system
- touch support
- ads and cross site requests
Public Private Key Encryption
While TOR is recent technology, public key encryption is a concept way older.
What happens when we use public / private key encryption tools is conceptually similar to what happens with our physical correspondence.
A public key is similar to our mailbox.
Everyone that knows the location of a person's mailbox can write a message and put it inside but only the owner of that mailbox, using is own key can open the mailbox and read the various messages.
When we use PGP or GPG (an implementation of the public key encription concept) we generate a pair of key.
A public one that we should broadcast or at least share with our social circle, and a private key that must remain secret at any cost.
Everyone can encrypt every kind of digital content using our public key (that is just a really long string) and only the owner of the private key can proceed to decryption of the content.
This also means that we know who is gonna read the message if encrypted using this kind of technologies.
One easy tool for GPG encryption is GPA
What would you do if you were asked to put under surveillance one person?
For sure placing a bug with microphone and recording capabilities would be the best option.
But what if, instead of recording every thing the subject does, we just take a note of all his actions, without taking care of the content. For example, if the subject speaks to someone, we record the time, the place, the duration of the conversation and all the info of the person he is talking with. What if, when the person walks into a mall, we record the time, the location, the shops he entered, the money he spent, the number of things bought, but not the things he bought, in detail.
You can see that you can have a fairly precise idea of the habits of the person under your surveillance.
Actually from metadata is easy to grab all kinds of personal information. Also, if a tiny portions of the information we have on the subject are more detailed (for example social network photos) we have a picture as clear as never.
This is not just one of the biggest concern that should pop into your mind when you are talking about nation wide mass surveillance, it is also the core of the business of corporations like Facebook and Google.
Whatsapp does not read the content of your messages but it stores every single bit of metadata that comes with it.
Metadatas are enought to build a complete profile of the users and they are even more dangerous in the hands of an evil state agency.
Nothing to hide
Even if we have nothing to hide, we have much to fear.
The "nothing to hide" argument is something that everyone of us in this room has heard, at least one time.
We should fear this sentence because it is the ultimate ammision of a big misunderstanding on the whole debate.
Privacy, first of all, is control over our data, not only the right to secrecy.
Transparency should be for everyone
There is a big incoherence when asking to your citizens to handle over their data.
Transparency should be a two way thing, while at the current state big three letter agencies, but high level people as well, cover their tracks and are not transparent on their reports.
This enhance a situation of big inequality between the people and the State.
Even worse, it is not the citizen by himself that can choose if he has something to hide, but the autority.
This may seem a little naive to say, but with Bruce words:
If you give me six lines written by the hand of the most honest of men, I will find something in them which will hang him.
This is true even without considering social discrimination and mass media manipolation.
The fundamental of society
Every action can be seen as either legal or illegal. When we take a decision this is one of the first, implicit concern.
This is not true in a surveillance system: when you are doing something your concern is all about the possibility of raising suspicion.
An idea not an action is what is needed in such a dystopic condition to prove a citizen guilty.
Sometimes two wrongs make a right
In America we are now discussing weed legalization.
Do you think that such debate would have been possible if no one could had the possibility, even if against the law, to try that substance and show other citizen the real implications of their actions?
The same goes for gay marriages, that we are discussing in Italy. Challenging the law, breaking it if needed, is a way to improve the current system.
Inside the panopticon every potential criminal would be persecuted and this kind of advancement would not be possible.
To hide is to care
A simple truth is that we don't close the windows to cover up our crimes.
Our innermost experiences become in our intimacy, which is the most sacred place.