Skip to content
Lock and key, S1E3 episode artwork

Nov 29, 2016 23 min

Lock and key, S1E3

from Engineering Out Loud Hosted by Engineering Out Loud

The age of Big Data and cloud computing has created greater demand for advanced cryptography. To store data on the cloud safely it must be encrypted; in order to use the data it needs to be decrypted, at which point it becomes vulnerable to attacks. Professors Mike Rosulek and Attila Yavuz are finding new ways to perform operations on encrypted data without leaking critical information. Professor Glencora Borradaille teaches workshops and a new class on personal computer security to empower people to protect their own data. With community organizer Michele Charrete, she explains why people should be concerned about security and how to use tools encrypting email and anonymous web browsing. BONUS MATERIAL Set up public key encryption for browsing email Tor Browser https://engineering.oregonstate.edu/season-1-data-science-and-engineering/lock-and-key-s1e3

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Lock and key, S1E3

0:00 23:54
of matches

Transcript Auto-generated, may contain errors

From the College of Engineering at Oregon State University, this is Engineering Out Loud. What did you do during the war? I worked in a radio factory. What did you really do during the war? Are you paying attention? Well, I don't know about you, but I'm paying attention. Who knew computer science could be so interesting that they'd make an entire movie about it? That clip is from The Imitation Game. It's about how cryptography played a pivotal role in World War II.

More than 70 years later, as our dependence on the internet and cloud computing escalates, cryptography is no less important. I'm Rachel Robertson from the College of Engineering at Oregon State University, and today on Engineering Out Loud, we'll be talking to some researchers at Oregon State who are passionate about helping us protect our data. The hero in the imitation game was Alan Turing, a British mathematician who is known as the founder of computer science. He was pretty passionate about his work, too. It's beautiful. It's the greatest encryption device in history. The Germans use it for all major communications. Everyone thinks Enigma is unbreakable. Let me try, and we'll know for sure.

Did you see that movie? I did, yes. And so in the movie, as you know, they make cryptography seem really exciting and mysterious. Which it is. Well, that was my question. So is cryptography really as mysterious and exciting as it's depicted in the imitation game? I don't know if it's mysterious. I say that as someone who I think I understand cryptography, so maybe it's not so mysterious to me. The stuff that I do is not me fighting Nazis or anything quite that exciting. But it is exciting and it's interesting. And we can do things that are really surprising, things that people don't think are possible.

That's the part of cryptography that is exciting for me. Not that we're out there fighting a bad guy, but that we can do amazing things. That was Mike Rosilek, who sat down to talk to me about his research. I'm an assistant professor in computer science at Oregon State, and my research is in cryptography and security. If you have ever solved a cryptogram puzzle, you already know one method of encryption called a substitution cipher, in which each letter is replaced with another letter or number.

Another type of encryption is a permutation cipher in which the position of the letters are rearranged. Pretty much all of cryptography is built on those small low-level operations of scrambling the data. And I guess scrambling is not so hard, but the hard part is scrambling so that it can be unscrambled in the end. And that's what people spend their research doing. Mike will be back later in the podcast, but first we'll talk to another cryptographic researcher. My name is Attila Altayabuz. So you can probably see why I had him introduce himself. Attila is from Turkey.

In fact, he grew up very close to Troy, which is fitting since the Trojan horse is an iconic symbol for computer security. I work on applied cryptography and network security. And so how does what you do, how is it an example of data science or engineering? Sure. For instance, one of the important paradigms that is coming today is Internet of Things and Systems. For instance, consider about your pacemaker as smartphone devices, millions of sensors embedded everywhere, smart airports. All these systems continuously, 24 hours, 7 days, collect data to improve their processes, to improve our life.

But once these data are collected for analysis purposes, they have to be stored somewhere. And this is the place where that gives opportunity to the adversaries, let's call them bad guys. They want to reach this data for marketing purpose, or that could be even much more evil purposes. And therefore, it is our responsibility to protect this data in such a way that, first, it will not fall into bad hands. And second, while we protect, we do not want to disrupt the properties of data science.

So the last part you said, while you protect, you don't want to disrupt? And so what do you mean by that? So, for instance, we could use traditional cryptographic techniques such as encryption to encrypt our data and store it to servers in this way. We collect data, use traditional encryption, and store it. This would provide us a reasonable amount of security. But once you do that, now, if you want to access this data to analyze, machine learning, data mining techniques on it, which are very important for data sciences.

We could not do this with traditional encryption techniques. Now, my job, one of the important aspects of my job is to fill this research gap in which we both achieve privacy and security and data analytics at the same time. How this purpose can be achieved. How do you do that? So can you explain a little bit about your research? Sure. For instance, one concrete way that we have published just previous year is to use searchable encryption. So as its name suggests, and sometimes people see it as a dilemma, is that once the data is encrypted, in theory, it should ignore information.

And if no information is leaked, how could you search on it? So the objective of my research, which is actually jointly performed by Robert Bosch company, is that while we encrypt data, we create such a system that we leak very little amount of information to enable only search functionality, but no other information is being leaked. During this case, performance of our search, accuracy of our search, and the information that is being leaked poses an important trade-off. So art of searchable encryption and science of searchable encryption is to identify correct trade-off for correct application and satisfy the need of government, industry, and academia at the same time. So how do you do that? I mean, what...

I mean, it's kind of hard to understand, right? Sure. Let me give you a simpler example. Consider a simple array, which has five elements in it. Let's say it will say Rachel, file one, Attila, file two. We have five of those. What I will do is I will mask Rachel with a random number. I will replace Rachel with just a random number and encrypt corresponding email with traditional encryption. Now both random numbers and encrypted file doesn't leak any information to adversary, right? And we have five of those. I will put them to the cloud. They will stay there. Adversary can see, cloud can see. They will not make sense out of it.

Let's say tomorrow I want to look up for Rachel. I know which random number corresponds to Rachel, right? I will send this to the Cloud, and Cloud will search these five items that we put there. And one of them has a corresponding encrypted file for that random number. That is the information that is associated with you. Now Cloud doesn't know we look for Rachel, because it is just a random number, and the file corresponding to that was encrypted, so he doesn't know the content of email. And he will send this encrypted file to us. We will decrypt and know what email you get. No information is leaked during this process.

Okay, so basically you're encrypting the search as well as the files. Search functionality and files are encrypted simultaneously. So are they encrypted in different ways? Yes. Okay. You do the same operation again and again with different keys. At the end of the day, the result will not make sense to somebody who does not possess this key. Okay, so it's actually like you're scrambling it several different times. Yes, and several different ways. And actually, how would you know what you encrypt is secure? So there's a simple example for that. I will give you two files. One of them is totally random.

total random data I produced. On the other hand, I will have another file, and I will use my encryption technique, and I will give both of them to you. And I will ask, which one is random data, which one is encrypted data? Now, if my encryption algorithm is good enough, probability that you distinguish between real encryption versus random data should be negligible. Basically, encryption renders data to a random data, so that entropy of the data becomes maximum. That is how we analyze security of encryption systems.

Oh, okay. So if it's indistinguishable from being random, then you've done your job. Yes. And to achieve search purposes, we have to leak a little bit more information than that. Otherwise, we could never find who Rachel is, who Attila is, but not much. And that is where search, art of searchable encryption starts, how to formally quantify this leakage, what are performance requirements, what are the needs of the people and application, all that drives this applied cryptography research. So now we will return to Mike. And although Attila and Mike both work in the area of cryptography, their research areas are different. So I asked Mike to explain how they differ.

Okay, well, searchable encryption is about performing a specific task and performing it as fast as you can. And that task is a search on encrypted data, just a keyword search or a lookup. And my work is about more general computation. So imagine taking any computation that you care about, for example, a machine learning classifying algorithm, and you want to run that on encrypted data. And my research is about how to do that in full generality while still being secure and as efficient as possible. To explain the kinds of computations his research aims to improve, Mike tells of a game his family plays called the Long Lost Relative Game.

So when my mom meets someone for the first time, she finds out where they live and she says, oh, I know someone from there. Do you know this person? No. Do you know this person? And eventually, without fail, no matter who the new person is, she always finds someone that has a common acquaintance to both her and the new person. And so how is this related to cryptography?

So I like to think of this game as a computation that takes place between two people. And each person has a list of the acquaintances that they know. And the goal of the game is to find someone who's on both lists. So a person that both people know in common. And you can do this just by systematically going through your list and saying, oh, do you know this person? Do you know this person? Do you know this person? But I guess that's not something you do with someone you've just met for the first time. So as a cryptographer, I think of whether there are ways to do this without revealing your entire list of acquaintances to the other person. And in fact, using the tools that come out of my research, this is something that you can do.

You can identify commonalities to two different lists without revealing those lists. And this has applications in business at least. But you can imagine these companies want to get together and figure out what are their common customers or maybe just how many customers they have in common. And using tools from cryptography, they can do this without revealing the content of their customer lists. One method that Mike has been working on to achieve secure computation is a cryptographic method called garbled circuits. I admit, I did not get what it was at first. When I heard garbled circuit, I'm thinking, okay, it's like a physical thing, but it's not.

Yeah, circuits doesn't refer to electrical engineer circuits. It refers to a mathematician circuit, which is just a... a series of operations on bits. So that's where it gets the name. But the word garbled is pretty cool, I think you have to admit. What's even cooler is what Mike and his colleagues have been able to do with garbled circuits. In two recent publications, they have demonstrated that in comparison to other methods, their new algorithms were 33% faster and had 33% less overhead in the amount of communication required for the computations. So not only is our new garbled circuit construction the fastest and the smallest, but we proved that ours is actually optimal, which means that you won't be able to come up with anything faster or smaller than ours unless you...

come up with some really novel approach that no one has thought of before. Why are the advances that you are making important? Justify yourself, Blake. No pressure. Well, if you look at the big picture...

This idea that you could compute on encrypted data has been around since the 80s, at least as a theoretical idea. And no one thought to do anything with it because it seemed like the cost would just be astronomical. But then in the early 2000s, people decided, well, let's implement this and see whether it's actually fast or not. And then people started getting interested in making these tools fast and getting them to apply to the real world. And we've made these tools thousands and thousands of times faster over the past 20 years, which is really exciting, to the point where it's now practical. You can use it for many different things.

I can't say that there are thousands of applications of it in the real world, but there are applications in the real world, and people are using these tools to do sensitive computations. And I think the more we speed things up, the easier it will be for people to just choose the secure way of doing things rather than choosing an insecure way just because it's a little bit faster. I think if we close that gap, it'll make the cost of security less of a barrier, which is good for everyone whose data is out there and being used for these things. So although the work of Attila and Mike may not be as dramatic as the story of Alan Turing, their research in cryptography is helping to protect our data. So I think they can be considered the heroes of this story. In part two of the podcast, we'll be talking about what we as individuals can do to protect our data and why we should be doing it. Get ready for another movie clip because that seems to be a thing I do. How is this all possible? Think of it as a Google search, except instead of searching all the people in public, we're also looking at everything they don't. Emails, chats, SMS, whatever. Yeah, but which people? The whole kingdom's not right. The NSA is really tracking every cell phone in the world.

Any guesses on what that movie is? It's based on a true story, and the reference to Snow White was a clue. The movie is Snowden. It's about the events that led Edward Snowden to leak documents that revealed global surveillance programs that the United States government was involved with. In part two of this episode on computer security, we'll be switching focus to how we can protect our data. I'll be talking to Glenn Cora Borodale, an associate professor of computer science in the College of Engineering at Oregon State.

Cora was motivated by the Snowden revelations to teach people about the importance of computer security. All of a sudden, there's news story after news story based on Snowden's leaked documents of all these different capabilities that the NSA has built up over the last decade, which basically seemed to mean that anything you send online, if you're not explicitly protecting it using cryptography, is available to the NSA. And that this was a worldwide thing, and there were partnerships between the US, the UK, Canada, New Zealand, and Australia. So that kind of woke me up. and got me thinking about, well, what can you do about this? What she decided to do is use her knowledge of computer science to help educate people about how the internet works and how they can keep their personal data private. It has nothing to do with her computer science research on graph theory, but she was motivated for other reasons. Cora is also involved in social movements, such as the environmental movement to halt the use of fossil fuels. And she realized that global surveillance could have an impact on social change. There's a lot of people that I talked to who weren't willing to talk about certain things over the phone or by email because they felt nervous about.

talking about their beliefs. It had very tangible, chilling effects on what they were willing to talk about. And so that worried me. I wanted to do something about it and not just get stressed out about it. Cora's partner in life is also her partner in this mission to educate people about securing their personal data. I'm Michelle Charette. Michelle is a molecular biologist turned community organizer.

do most of my organizing through a group called Rising Tide, which works on what's called climate justice. Together, they've been teaching workshops on personal security in which they show people how to encrypt their email. And Cora has also developed a course at Oregon State called Communication Security and Social Movements. They make the point that it's not just people involved in social movements who should be concerned about personal security. You know, the nature of the internet is you have all of this data and all of this data can be captured and recorded and stored basically indefinitely. And that's one thing that people don't really always remember is that everything that you send across the internet that is unencrypted, it is actually being actively recorded and stored.

Data storage gets cheaper every year, and so there's basically no penalty to keeping all of this email forever. But there's also, you know, I would hope to encourage people to think of the sense of solidarity that they could have with social movements that they do care about, right? Like journalists exposing wrongs worldwide or dissidents in, you know, not necessarily in the United States, but worldwide, right, who rely on these tools to do their work. They rely on email encryption. They rely on anonymous web browsing.

But these tools become even more robust if more people are using them. But if lots of people are using email encryption, then it's harder to figure out who the people are that are using email encryption for political means. So if you have thousands of people using email encryption and only 10 of them are using it for political means, then... Mass surveillance becomes impossible. Because you can't break all the encryption all the time. Okay, so now to the nitty-gritty. How do we do it? FirstCore explains how unencrypted email can be captured. If I want to send an email from my Gmail account to your Yahoo account, what would happen is the message would get sent from my computer through the internet to Google's Gmail servers, and then from the Gmail servers through the internet to the Yahoo servers, and from the Yahoo servers through the internet to you. And...

if you're reading your email in kind of a standard way, then that email message will be encrypted between myself and Gmail and between Yahoo and you. But between Gmail and Yahoo, it will be completely in the open and sent like a postcard. So now if you encrypt your email, you would use publicly cryptography, which means that you basically publish online a way for me to send you an encrypted email. And I could look that up. I would encrypt my email to you using this technique.

And no one can read that email. After I've encrypted that email, after I've locked that email, only you will be able to unlock that email and read it. So now when it gets sent through the network, anybody who's watching the cables between Gmail and Yahoo would just see an encrypted email passing through. But now for the email to get from me to you, there has to be some information in the email that says that it's coming from me and it's going to you. So that information is still public. And someone watching the internet connections between Gmail and Yahoo would still know that I'm sending an email to you, but they wouldn't know the contents of the email.

To learn how to set up public key encryption, you can go to ssd.eff.org or search surveillance self-defense. This will be in the show notes, too, if you don't want to write it down right now. In addition to public key encryption, Cora and Michelle suggest anonymous web browsing. What I learned from them is that the private browsing function on browsers like Chrome and Explorer are not strictly private. It keeps the sites you are visiting from being recorded onto your computer, but the information is still available on the internet. For example, your internet provider, such as Comcast, has all the information about what sites you have visited. Anonymous web browsing can be achieved basically by downloading the Tor browser and using that.

And it takes care of everything. It's very, very simple. Tor is spelled T-O-R. As simple as it is, most people do not use it, thinking that it's only for people who need to hide something. Michelle admits he didn't see the importance of it at first. And what really convinced me actually was a friend of mine who worked with the Clinton Foundation in Uganda. And he basically said, you know what, when I read the New York Times, when I read news or whatever, I just use the Tor browser because I know journalists back in Uganda that relied on this to stay safe from the government. And after he gave me that reason, I'm like, yeah, okay, I'll just go ahead and use it because...

Even if I don't need to protect myself, I know for sure there are, you know, correct governments around the world, journalists risking their lives. If I can protect those people, I know for sure that that is a good thing. Are you paying attention?

Frequently asked questions

How long is this episode of Engineering Out Loud?

This episode is 23 minutes long.

When was this Engineering Out Loud episode published?

This episode was published on November 29, 2016.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Engineering Out Loud episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.