WEBVTT

0:00:15.589 --> 0:02:14.540
<v A>programming thrown out episode 49 tamper protection take it away jason hey everyone this is a double episode uh december double episode pretty excited about that um we're going to we have an amazing interview coming up and we want to give a lot of time for that so uh you know we won't uh we'll skip a lot of uh we'll usually cover in the beginning of the show and save you know our tool the show book of the show that we had lined up for um for next month um but something i did want to talk about is what did things cost and why did things cost what they do so someone sent me a youtube video a co-worker sent me a youtube video called uh most expensivest uh stuff it's not stuff it's actually the s word but but you can you can figure it out but it's it's it's a show um um where they just try like they drive the most expensive car and they try on a two million dollar pair of shoes and things like that what yeah it's crazy um it's really funny actually um and so it made me think you know i mean okay these are extreme things but but in general like why do things cost what they cost like kind of who figures that out and you know we all took economics in high school um and you talk about you know the supply curve and the demand curve and all of that but but it didn't really it doesn't really explain sort of like why those curves are what they are for different things right so um i did a bunch of research on this um poking around on wikipedia and reading some papers and things like that and basically what i learned is there's a lot of different theories and they're all true you know to different degrees for different products so i'll just kind of go

0:02:14.540 --> 0:04:11.980
<v A>through them the first one is called the labor theory of value and it's very simple it just says things are worth whatever it costs to produce them so you know it's right so if something's really hard to produce such as you know way back in the day salt was used as currency because it was so valuable and it was valuable because it's very difficult to mine salt back then now it's very easy to mine so it wouldn't make a good currency obviously um but so that's the idea and so if but then that kind of breaks down i mean if if you you know if it's just because something is difficult to get doesn't necessarily make it useful i mean like panda bears are rare but you know they might be difficult to find but you know panda bear feces isn't worth a ton of money you know so it's so it's it can't it can't just be that was a stretch i know but it can't just be how hard something is to get it doesn't make that by itself doesn't work um and so um so then they came up with this idea called the subjective theory of value and this handles so you know there's um take like diamonds for example diamonds are more expensive than emeralds but they're about the same in terms of how hard it is to find them and things like that but diamonds are more expensive just because it's part of our culture to give diamonds so it's sort of like we've just propagated this value for diamonds for no reason there's nothing inherently about diamonds that make them more expensive than emeralds and so that's the subjective theory of values kind of weak right because it's just like saying well things cost more because they cost more it doesn't really help but the reality is that there's a psychological there's sort of a group mentality

0:04:11.980 --> 0:04:50.365
<v A>like mob thinking. Part of this and that just reflects that. Well, this is the like—diamonds are supposed to be colorless, but then so if your diamond has a tint of color to it, then colored diamonds, and then now they become more valuable. Exactly! Or even—even more ridiculous is you can get a synthetic diamond that chemically is exactly the same from a chemistry perspective as a diamond, but it's where it's almost worthless, relatively worthless, right? Well, no, they're still—they charge a lot, and I don't know if they need to or they just do. Or if it's a conspiracy, but I think—

0:04:51.920 --> 0:06:49.760
<v A>they only charge like 10 difference or something. Oh really? I thought it was like 10, a tenth of the price. No, I mean like cubic zirconia or something is like a tenth, but those aren't—those are chemically different, right? Right. Okay. Well, yeah, but you're right. But the point is they're a—a chemically the same diamond, but the fact that is different at all. Yeah, exactly! Exactly! And so there's that to think about. So you have this labor theory, you have the subjective theory. There's also one called marginalism or the Theory of Marginal Utility. And the idea there is the value of something goes down the easier it is to add another one to the ecosystem. So in other words, if you look at say a loaf of bread, you know, if you compare—you might only have one or maybe no loaves of bread at your house, and so you have to go to the store, and for you it's very important to get some bread right now. But if you look at the whole ecosystem, for, you know, Safeway or Kroger or Publix or whatever supermarket you have near you, for them to add a loaf of bread to their network is very simple. I mean, the bread manufacturers are probably stepping on bread all the time by accident because there's just so much bread that they're producing, and so the marginal utility of bread is tiny. The same isn't true of diamonds. I mean, you don't go to a diamond factory and just see a bunch of discarded diamonds everywhere because there's just—each one is too—too hard to come by. And so marginalism is kind of connected to the labor theory, but it's not entirely that way because for example, if you're out in the desert and you don't have access to any stores or anything, water becomes extremely valuable, and it didn't make water more difficult to produce.

0:06:49.760 --> 0:08:04.309
<v A>it's just that you're in an environment where you don't have access to a lot of water, and so the marginal utility goes up. So marginalism—think of it as sort of replacing the Labor Theory of Value kind of. So basically there's all of these different theories; they're all true in different circumstances, and there's no way to tease apart you know what kind is assigned to what. So you can't say, 'Oh, diamond 90% of the value is subjective, 10% is this.' You know, it doesn't—it's very hard to do that. So how do you break down something like an iPhone? An iPhone costs what six hundred dollars? I don't know, unlocked, a new iPhone, I don't know, let's say six hundred dollars. But yeah, sure, sure, seven hundred, six hundred, whatever. And then you always see whenever the new iPhone comes out, they say here's how much the actual components cost, and someone tries to do a really good job of estimating it, and it comes to like 120. And so you have 120 of like materials cost, then there's some labor to assemble iPhones and some labor to develop iPhones and the software that goes on them.

0:08:05.845 --> 0:10:01.780
<v A>but then there's all this extra at the end, like the profit margin. Is it a theory to say predict how much Apple should make that profit margin? Yeah, I mean, it's super hard. So—I'll talk about—so iPhones are a restricted commodity in the sense that you know Apple just sets the price, right? But if you look at open commodities like say oil, for example. So with something like oil, they can't really—it turns out they can't really do a good job of this of teasing this apart, and there's no science to it. So what they do is because only Apple makes iPhones, but everyone who makes oil makes the same oil, right? Right. And so so they can't control those dynamics because it's just too complicated. And so they—that's why they have futures. So if you want to buy any commodities, I mean, if you buy a loaf of bread at Safeway, it's different, but I mean, if you're buying, you know, 10,000 tons of bread or something. Yeah? Or—or you know a ton of oil or anything like that, anything, you know, that level barrel barrels of oil. Oh right, barrels of oil. If you do any of that, there actually's a commodities market, and you have to say in advance, like, you know, three months from now I want these barrels of oil. And then there's—in the case of oil, there's OPEC who they handle this socially. So in other words, if something weird happens and everyone starts asking for oil, they through, you know, phone calls and things like that, they just sort it out manually. Like they just—they decide they need to do an auction or they call people and tell them, 'Hey, your order got canceled because crazy stuff happened in the market.' And basically the free market isn't really that free, is what I learned. Well, OPEC specifically is not that like they control the market; they manipulate.

0:10:01.780 --> 0:11:59.720
<v A>it. Yeah, well, that's even worse, right? But even you know if you look at grain—you know almost any kind of utility, it's all just very highly regulated. So I'll give you another example. So in the Bay Area or in all of California, we have a drought, right? And so when there's a drought, they don't just raise the price of water until the demand goes down—that's what a free market would do, right? But no, they impose restrictions. They say, 'You know, people can only water their lawns on Mondays,' or something like that. And basically it's because they know that if they try to do some kind of free market economics, it's going to end badly. Basically because their models are wrong. It's hard to—to decompose the price, and it's just going to end badly. So so it's kind of amazing. I mean, I'm not—I'm not trying to be glib or rude to economists or anything. I think that's amazing. I wish I if I could go back to school, I would study economics. And I have a lot of—yeah, I give them a lot of credit, but the reality is these systems are just not modeled well. Whether they can be debatable, but right now they're not modeled well. And so there's a lot of social, you know, a lot of elbow grease goes into making this work. The thing I remember about economics is a lot of it comes down to like predicting what a rational person should do, but then there are many edge cases that break down because people aren't rational often. Oh, that's even worse. Yeah, that's—that's a whole other thing. You're right. I mean, it turns out even if people are rational, the system is completely unstable. There's something called the Bullwhip Effect which you should look into, and basically it's similar to the Butterfly Effect. It just says that if you make small changes, like you just barely change the

0:11:59.720 --> 0:12:50.897
<v A>price of say—you know an iPhone or a barrel of oil, it causes massive change. Like you change the price of a barrel of oil by a cent, and that causes an oil field to get shut down because there's this weird chaos theory going in there. And these are all assuming everyone's rational. They're just using mathematical models. As soon as you get into real human beings, it's even more broken. Yeah, it's unbelievable. So anyways, that's my pseudo rant, but that's what I learned from—from Most Expensive Stuff or from I guess the queries that derived from that. Anyways, if you wanted to check that out, it is actually really funny. They don't obviously talk about why things cost what they do, but they have fun, you know, putting on two million pair of shoes. Um all

0:12:52.585 --> 0:13:38.820
<v A>right? So without any further ado, we're going to talk to some folks at Intel. These guys are—are superstars at, you know, tamper software tampering and tamper protection. They've done definitely their fair share of I guess you'd call it gray hat, gray hat, and white hat hacking, and it's going to be a lot of fun to talk to them about this. Well, welcome! We're here with the team from Intel, the Tamper Protection Division, I guess our team. We'll let them introduce themselves in a minute. We've got Thaddeus, Mark, Steve, and Norman. So we're just going to go around the room—the proverbial virtual room—and have everyone introduce themselves. So I guess Thaddeus, you're up first.

0:13:39.649 --> 0:14:28.360
<v B>Hey, I'm Thaddeus. Call me Thad. Letness. I work over at Intel. I've been there about 10 years. Used to work in the Digital Home Group doing things like the Google TV and stuff like that. A year or two ago, I moved over to Steve and Mark's team and been working on Tamper Protection ever since. Mark? Yeah, so I'm Mark Valley. I've been at Intel for almost 17 years now. I started out at the University of Florida as a mechanical engineer in my undergrad and did a master's in Computer Engineering and never thought I'd come west of the Mississippi, but they decided to fly me out here on their dime, and I really like what they had to offer, and you know, free flights in a nice warm weather just like Florida. Will do that for me. Go Gators! So now, Nice. Yeah, absolutely.

0:14:29.869 --> 0:14:32.670
<v B>You know, I don't know how we got the record we got so far this year. So—

0:14:34.240 --> 0:14:44.652
<v A>That's all right. Hey, at least I think you won a game. What? I went to University of Central Florida. We went 0 and 12. University of Florida won many games this year. I think no, I know. I'm saying—yeah.

0:14:45.209 --> 0:14:46.710
<v B>But UCF. Yeah, UCF went oh and.

0:14:46.710 --> 0:14:47.436
<v A>UCF is up.

0:14:47.436 --> 0:15:35.817
<v B>And coming, I mean they got a lot of the Florida talent, so I think they're going to do all right in a few years. Yep. I don't remember. Yeah, hi, I'm Steve Price. Uh, I'm a Product Manager at Intel, and I started my career as a software developer. And any of you have some age, you'll remember WordPerfect. I was a developer of WordPerfect for Windows or one of the many developers. And then I had the opportunity about 18 years ago to work for Intel. And Intel, you can do amazing things. It's not just on the commercial; it's a real great place to work. And so, I product managed a brand new tool called Intel Tamper Protection Toolkit, and we are excited to tell you a little bit more about that in this podcast. Very nice.

0:15:38.044 --> 0:16:18.679
<v A>Cool. I actually didn't know for the longest time what Product Manager was. And then I read one of the books of The Show. I don't remember which episode, but it was The Hard Thing About Hard Things by Ben Horowitz, and they actually he explains he developed this training class for his Product Managers, and he called it Good Product Manager, Bad Product Manager, and he used sort of that dichotomy to explain what a Product Manager does. And it totally made sense after that. So if you guys wanted to know what Product Managers do, definitely check out that book. It was I felt like it really kind of explained the summary is your CEO of the product. That's—that's not.

0:16:18.679 --> 0:16:28.011
<v B>A bad one. I would say my description is very close to that. It is the guy that does the stuff that the coders hate doing. That's.

0:16:29.648 --> 0:16:33.560
<v B>My job. All right, Norman.

0:16:37.883 --> 0:16:43.317
<v B>Thanks guys. My name is Norm Chow. Oh, can you hear me? Yep, we can hear you.

0:16:45.426 --> 0:17:10.688
<v B>Yep. Yeah, my name is Norm Chow. I am the marketing person for Intel Tamper Protection. I've been with Intel for five years. I love every minute of it. Before that, I was actually a WordPerfect coder for five years, so I bring a lot of technical experience, and you know, I really appreciate the engineering team coming on this conference call and kind of describing the product to everyone. So,

0:17:11.852 --> 0:17:24.998
<v A>I think we'll have Steve give us maybe a little bit of, or whoever you think it's best, give us a high-level overview of what's going on, and then we'll go over to Jason in order to get some questions going for the team.

0:17:26.129 --> 0:19:04.324
<v B>Perfect. So when you think of Intel, a lot of times you'll think of the jingle that you hear on the commercials and of course the chips that we make for CPUs, but Intel produces a lot of software to make that hardware fly. And my team comes from the software side, and being a part of Intel, we're in the position to see a lot of the general needs in the software development community. And what we've come to understand is that coders, whether or not they want to or not, most of them don't want to—is they have to put secrets in their software. And coders will do a lot of interesting things to hide or mask those secrets, but at the end of the day, you'll have to put in either an account name and password or a crypto key or your secret sauce that makes your code better than anyone else's. And so while they're not comfortable doing that, they still have to write and ship their code. Another thing that we found is that developers want to do wonderful things with their code, and they want to achieve personal goals and help other people, but while doing that, they want some say in how their code is used. And so we at Intel, understanding these needs in the marketplace with a lot of the really smart people we have, I have developed technology that helps you hide your secrets in your code and that lets you be able to respond when people try to modify your code without your permission. And that collection of capabilities and technology we call Intel Tamper Protection Toolkit. Cool.

0:19:08.391 --> 0:19:16.744
<v A>Thank you. That was an awesome intro. So just to kind of recap, so I think a lot

0:19:18.330 --> 0:19:45.700
<v A>of people hear these terms like reverse engineering or code tampering, and especially, you know, you see it in the press like someone, you know, reverse engineered some project. They were able to get into—or hackers reverse engineered some client and now they could get into Target or what have you? But what does that actually mean? Like if someone tampers with a binary, or if someone reverse engineers some code, what are they actually doing?

0:19:45.700 --> 0:20:32.699
<v B>So, reverse engineering is kind of the process of pulling apart source or binary code—machine code usually—although in this day and age we have all sorts of scripts and stuff as well. And trying to piece back together what the original logic was. It's going to be things like disassembling the code, going back from machine code to assembly, trying to reconstruct the flow, the structure of the code, and understand the idioms that the compilers and stuff were putting in with the ultimate goal of being able to say, you know, here's a function that does exactly what the original programmer wrote. Gotcha, is that?

0:20:36.394 --> 0:20:39.499
<v A>Is that the same as tampering? Or is tampering...

0:20:39.499 --> 0:21:12.659
<v B>Something. Tampering usually starts with reverse engineering. You usually have to have some idea what you want to do, but tampering then takes it another step forward and says, I'm going to go and take your DLL or your code loaded into RAM and make some change, maybe tweak a variable so that it's always a particular value, or change an if statement so it just unconditionally passes. So you can buy, you know, maybe to bypass a license check, or, you know.

0:21:14.464 --> 0:21:24.707
<v B>I mean, a great example is the old Game Genie, right? Any code you put in the Game Genie was basically code tampering. It said, here's an address, here's a value. Whenever somebody wants that address, give them that value.

0:21:27.475 --> 0:22:25.272
<v A>Oh, I actually never knew that. So for people who maybe are younger in the audience, Game Genie was this amazing magical thing that you plugged into your Nintendo. It plugged into the Nintendo, but then it offered a plug out so you could plug a cartridge into the Game Genie, which is plugged into the Nintendo. So think of it as sort of a connector that sat in between. And then when you started the Nintendo, it just presented you with this crazy screen like you would see in some sort of cheesy CSI episode, and you would punch in these alphanumeric code—letter, the alphanumeric entries that were completely cryptic. But when you were done, you would get them from, you know, some kind of reference manual. But then when you were done, you just had infinite lives or, you know, Mario could fly or something like that. And so I guess that's that's under the hood that's actually code tampering—that's making that happen.

0:22:26.352 --> 0:22:34.940
<v B>In order to find out exactly what values to punch in and how to build that thing that reverses near both the Nintendo and the software first.

0:22:37.928 --> 0:22:49.285
<v A>Oh, I see. So in this case were they—do you think they were working with the software company or were they actually reverse engineering it blind?

0:22:49.285 --> 0:22:58.420
<v B>Nintendo World? I thought they had to have like permissions and stuff, but I mean certainly you can think of other platforms where, I mean back in the Commodore 64 days and stuff like that, there were things like this as well, right?

0:23:00.254 --> 0:23:01.401
<v A>Oh, I see. That's...

0:23:01.401 --> 0:23:08.438
<v B>Right. Game Genie probably not because that was there were licensing issues with that back in the day. So that's great. Probably jump on you. Yeah, cool. Yeah.

0:23:11.425 --> 0:23:20.780
<v B>So obviously they didn't have the source code for any of Mario or anything like that, so they had to completely figure out by sort of poking around what they could modify to get behaviors that they want instead of just crashing it.

0:23:20.780 --> 0:23:54.600
<v A>Gotcha. There's actually a lot of these sort of bootleg cartridges. Like there's this Noah's Ark game. It's actually a set of three—it's called Bible games, I think, or Bible Study, but it's an NES cartridge that was not licensed in any way by Nintendo, but they were able to sort of handshake with the Nintendo and convince Nintendo they were a licensed cartridge. And it's probably by doing exactly what you said by reverse engineering the input output of the...

0:23:56.245 --> 0:24:21.169
<v B>Nintendo. Yeah, in fact there was a whole—I forget where I read this, but there was a whole series of games by one manufacturer that actually did reverse engineer the handshake chip and started making these third-party unlicensed games. And the big deal with that was that Nintendo's revenue model was that they got a cut from every everybody's game, so there was some incentive for these guys to, you know, bypass that so they didn't get a cut themselves.

0:24:23.127 --> 0:24:25.379
<v A>I see. So they didn't have to pay that shit?

0:24:25.379 --> 0:24:29.679
<v B>Exactly. They could just sell the consumer any additional money over the top they got or they could lower the price of their cartridge.

0:24:32.644 --> 0:24:33.319
<v A>Oh, interesting. That.

0:24:33.319 --> 0:24:51.055
<v B>It starts to show kind of the battle between, you know, developers and commercial entities. You know, you're always wanting to get paid for your products, and so you put in code, and then somebody reverse engineers it and, you know, finds a way around it. And so then you do something more to lock it down even more.

0:24:52.607 --> 0:25:16.317
<v B>And there's a lot of benefits sometimes, you know, the new Nintendo stuff, the and the emulators and stuff. We're able to unlock a lot of games having reverse engineered a lot of the old Nintendo equipment. Now you can play games that, you know, aren't manufacturing more. The hardware is slowly going out of date, but we can still play them thanks to people diving into the software and reverse engineering how they worked.

0:25:17.819 --> 0:25:50.380
<v B>Right. Yeah, one thing to understand about that whole ecosystem is that, you know, we can reverse engineer them now, but it took time. I mean, ultimately given enough time and resources, you can pretty much eventually reverse engineer everything. It just may be really expensive or may take a really long time. So your goal as a developer may not be that they never can break it—because that's almost impossible—but, you know, to make it hard enough so that only someone who really is super motivated would do it, and hopefully there's not going to be that many motivated people. I mean, if you're storing, you know, the keys to Fort Knox in there, there'd be more incentive than if you're just storing, you know, some game secrets or.

0:25:50.380 --> 0:26:48.977
<v A>Something gotcha. And I think that, you know, Moore's Law plays a huge role in this. I know, um, this is more on the cryptography side, but if you had, you know, Amazon Web Services—you know, S not S3, but Elastic Cloud Plastic Compute Cloud of today—and you went back to the 1990s, you could actually break HTTPS and you could just liquidate people's bank accounts, and you would just be a god on the internet. And so that just furthering your point that that you're given enough resources, nothing is completely secure, but as you said it's this constant arms race between, you know, in this case just going back to Nintendo, between, you know, Nintendo who's trying to preserve their intellectual property and various people who are trying to do the reverse engineering to save to increase their bottom line. That.

0:26:48.977 --> 0:26:55.740
<v B>Goes the other direction too. When you get to the 2030s or so, don't expect your PGP encrypted stuff to work with quantum computers around.

0:26:56.706 --> 0:26:58.512
<v A>Anything, you? Right. Exactly. Yeah.

0:27:00.739 --> 0:27:50.720
<v B>You know, and what we found too is that there's tight Fort Knox security—I think Mark brought Fort Knox—but then there's good enough security. You know, you just need to be a little bit better than the other guy so that when they come to you and their easy tricks don't work, then you might go looking for better targets of opportunity. And so you don't have to be super secure, but just more than you were before. And that buys you a lot of value. Yeah, and that goes with understanding your threat model. In other words, what attacks are you expecting? I mean, as security engineers, that's something that we often think about when we're architecting solutions. I mean, obviously we can't protect against the nation-state attack necessarily, but you can at what level of resource are you considering?

0:27:50.720 --> 0:28:30.042
<v A>Gotcha. It's very similar to guarding anything—guarding your home or guarding your locker in school or any of that. You know, sure someone can come by with wire cutters and cut the lock of your locker, but that's a very high—I mean, someone's going to be seen walking around campus with lock cutters, and that's already introducing a lot of risk for them. And unless they just really hate you for some reason, it's just not worth it. So by putting the lock, you haven't sort of eliminated completely the idea of someone breaking into your locker, but you've made it prohibitively difficult.

0:28:32.624 --> 0:28:52.232
<v A>What are some reasons why, you know, I mean we talked about Nintendo and about Bible games, but obviously that was much—that was, you know, I guess 20 years ago. So today, what are the big reasons why people tamper with binaries? And so who are the people nowadays who are tampering with binaries? Well, there's

0:28:53.920 --> 0:29:27.062
<v B>There's a bunch of reasons. I mean, one of the big ones is curiosity. You know, a lot of the people who poke around in binaries are, you know, students or, you know, hackers in the good sense of hackers—people just to enjoy, you know, peeking into how stuff works. Um people who want to fix bugs. If there's a driver for an old printer and it doesn't work, you know, with Windows 10, you know somebody can go in and figure out how that driver works and fix it. And usually that's to everybody's benefit, including the printer manufacturer. Um could

0:29:28.800 --> 0:29:39.870
<v B>be to add functionality in a similar way with printers—maybe to add a new format for sending messages, um new cheat mode, yep, or cheat mode.

0:29:42.182 --> 0:29:45.692
<v B>into some of the more nefarious

0:29:47.346 --> 0:30:35.740
<v B>reasons. Um bypassing authorization checks is a big one. This might be for things like DRM or license keys for software. You know, if you're downloading wares, you find the cracked version of the program, right? Um spreading malware—a lot of the way that malware spreads is by infecting other binaries. And so there you're diving into the binary and finding somewhere to stuff your malware. Uh and then generally just to maliciously change behavior. You know, if you want to sneak a man-in-the-middle attack in to sniff somebody's financial information as they're doing transactions online, and that sort of stuff. If you can hop into the browser, that's a good place.

0:30:35.740 --> 0:30:56.247
<v A>To do it, right? Oh, I see. So you look for some code that handles, you know, when you type in your password and it turns it into little asterisks in the browser, like you would inject something right there, and know that you're getting—hopefully, hopefully for the attacker, you're getting passwords and things like

0:30:59.504 --> 0:31:17.240
<v A>that? Okay, that makes sense. Are there as far as the so you mentioned hobbyists, are there also—I mean, is this mostly individuals? Or are there, you know, like organized crime? Like other are there massive entities that are doing this, or is it mainly people in their basement, or what?

0:31:17.543 --> 0:32:24.060
<v B>I mean, if you look at it, it's getting more and more organized all the time. I mean, if you look, there are like international gangs now that it's not drugs anymore but it's all about, you know, hacking stuff. I mean, very well-organized, pretty scary groups that, you know, do all sorts of things that are very financial nature. They're very much organized as businesses and not, you know, they're not the lone hacker in the basement that you'd think of. Yeah. So I was at Black Hat this last summer, and, you know, they were showing the nature of what you call malware or the, you know, the black market industry. And, you know, you can go and you find the right places and you can find a hacked kiosk, let's say, for, you know, on the market that's—that whoever hacked it is selling it now for someone else to exploit or to get gain from. So there's a lot of activity, a lot of it very organized with very, very skilled people out there just wanting to, you know, benefit from others and so it's a very vibrant market, if you could say.

0:32:24.060 --> 0:33:45.739
<v A>Gotcha. I—I had something. It's not totally along the line of reverse engineering, but I was trying to get my Windows product key before I upgraded to Windows 10 just in case something went wrong, and I was extremely careless and ran this program that gave me my product key and also installed something terrible. And before I could remove it, it had gone into my browser kind of local settings and pulled out my credit card. And sure enough, the next day someone went with my credit card to Home Depot and bought a bunch of restricted chemicals, which is actually quite terrifying. I mean, they bought things that you can only buy in certain amounts, but because they were masquerading as me, they were able to buy more than probably they would have by themselves. And I mean, yeah, that whole thing is just frightening. It screams of like a huge organization, right? Cool. So I think we've kind of, you know, sort of touched on this, but what are the consequences for not protecting against tampering if someone just runs regular old, you know, GCC produces maybe GCC with debugging symbols and no optimization and starts distributing the binary? You know, what's—what are the consequences of

0:33:46.195 --> 0:34:18.274
<v B>That? Well, the big one is usually the money motive, right? Lost revenue if people are able to install your software without a license. Possibly legal liability if you're supposed to be protecting, say, somebody's financial information or content that you're licensing, and you let people bypass your DRM, you could actually be liable for that. Um a big one that we think about is reputation, just, you know, somebody being able to get in and monkey with your code and then you

0:34:20.282 --> 0:34:22.847
<v B>know make—make you look bad? Bad press. Yeah, yeah.

0:34:25.395 --> 0:34:47.164
<v B>Within Intel, you know, we look at things like loss of intellectual property, like trade secrets, stuff that isn't actually patented but shows how stuff works usually, like algorithms. Yeah. Generally, if you've got an algorithm that is really that much better in your product, then you know you might want to protect that so that somebody else can't get at

0:34:49.763 --> 0:35:28.500
<v B>It, um, you know, possibly um loss of customers if you got like mobile payment. If your mobile payments get hacked, then people are going to stop using you. Take a look at, you know, Chipotle if you want to see how fickle people are nowadays, right? And it can even be life and death, you know. More and more we've got things like traffic lights and power controlled by computers, even airplanes and cars, right? With the computer-controlled cars nowadays. Yeah, so if somebody can hack in and gain control and get their software running where yours should be, you know, somebody could lose their life over.

0:35:28.500 --> 0:36:07.624
<v A>Yeah, I guess that's a good point. I mean, I think a lot of times hacking is the vague term that people use. And, you know, initially it's like oh, you're gonna talk to some web service and try to understand its behavior, and then you're gonna try to send it some code, some exploit, whatever. And I mean, I guess right? Some kind of like black yeah, that's one way of doing it. But the other way is like you're saying if you're running a server—that's a program—and someone can get that program and look at it and figure out by looking at the source code like oh hey, look there's a, you know, not balance check string print here. Oh well, now I know exactly what to send it to hack it. Then that's much worse, which is

0:36:08.540 --> 0:36:30.557
<v B>exactly what stuff like Heartbleed was, right? I mean, somebody sets up an overflow and all of a sudden they can start whatever code they want running on your server. There's not much we can do about that from the tamper protection side, but if their code starts to interfere and interact with protected code, we can at least identify that and, you know, stop it at that point. Um, so does

0:36:31.975 --> 0:36:37.120
<v A>the tamper protection work at all with like the Trusted Security Modules that are in some computers or is it that kind of

0:36:40.227 --> 0:36:43.990
<v B>unrelated? So actually, so tamper protection is a software sort of trusted

0:36:45.610 --> 0:37:15.300
<v B>execution environment. So there's no special hardware required other than IA. So in a perfect world, everyone would have the very latest SGX technology that's in the latest Skylake processors and they'd use that sort of hardware-protected environment. The problem is that very few people have those right now. And let's say you're Netflix and you want to deploy something. I mean, you'd love everyone to have Skylights, but realistically, you want to sell to a lot of people and not very many people have them yet. So until those are widely deployed everywhere, you're going to need some stopgap until you have hardware support.

0:37:15.300 --> 0:37:28.219
<v A>Right? And I think if you're in the business of tampering the binary, you could, uh, you would just get some older hardware to do the tampering, I think. Right? Well, I mean, presumably well, if

0:37:28.489 --> 0:37:36.910
<v B>you if you waited in time once everyone has, you know, a protected hardware execution environment, then it's going to be much harder to tamper in the same ways. That's actually might be a good

0:37:37.973 --> 0:37:46.900
<v A>topic. You want to explain what you know? I brought it up, but you want to go ahead and explain maybe what hardware modules, what tamper like what a Trusted Execution Environment, like what does that mean?

0:37:46.900 --> 0:38:54.280
<v B>So what that typically means is that general code running on the computer doesn't can't see into what's going on. And imagine it like a sort of a little box somewhere. So a great example of this is um you can imagine that this the if you look on an older PC, there's this thing called the ME, the Manageability Engine, if you have a like an Intel processor, and the Manageability Engine is actually a separate processor that is not a, you know, it's a sort of an embedded device, and the main CPU cannot access its memory, cannot talk to it in any, you know, significant way. So it can't really inspect what's going on. So you can think of the thing that that processor is running as an environment that's protected from the CPU so that even the OS if you somehow compromise the OS, you can't see what's running on those things. And similarly, we, you know, with the latest Intel processor, the Skylake models, you in fact can do that on the main CPU in such a way that the main CPU can't actually see what's going on either in the process itself or even in memory because the memory is encrypted from from the other parts of CPU so even the OS doesn't have the power to go in there and see what's going on.

0:38:54.280 --> 0:39:09.720
<v A>Oh, I see. So that protects you against um sort of uh, you know, attacking the OS or attacking other binaries getting into, you know, uh, I guess like Explorer.exe and things like that?

0:39:09.720 --> 0:39:22.514
<v B>Right? But if you attack it, right, you have to have a program. So let's say you have some hacking tool that can write to memory. Well, the problem is that the memory that you're writing to is essentially not accessible to even that tool. So there's no other program that can run into that memory other than the program that

0:39:24.387 --> 0:39:28.740
<v A>Owns it. Oh, now I get it. It makes the discovery of the hack very difficult.

0:39:29.095 --> 0:40:45.900
<v B>Yeah, it's literally impossible. Yeah, and also you know let's say that that you're a programmer and you're writing code, you know either in your basement or you're part of a small company to get a piece of software on the manageability engine is a difficult proposition, right? Because it's a secure environment, and very few people write to that level of security, or or to um you know that have access to get their software on the engine. And as Mark said, it's a separate computer, almost within a computer intended to run securely. But what a lot of developers want to do is they just want to write their code and they want to be able to write their code in such a way that people don't mess with them. And so and so what we provide is a software trusted execution environment. As we said, it's not impervious, but it's it's better than nothing, and it's a way that gives you a little bit more comfort security to know that when you write your code and you put you have to put your secrets in or you want to be able to detect when someone has changed something to get a different behavior, then you have some uh some avenue and recourse as a developer uh to to uh minute either minimize the impact or at least slow them down to the point where they might they'll think it's not worth the trouble and go on and mess with someone else's code.

0:40:45.900 --> 0:41:05.600
<v A>Gotcha. So that is a good segue to the next question, which is which is how how does this actually work? In other words, are we talking about something that scrambles your code before it compiles? Is it a compiler? Is it a virtual machine? What is actually the tamper protection product?

0:41:05.600 --> 0:42:58.880
<v B>Well, I'll just take a I'll I'll take a product manager's crack, and then the real answer will come from the geniuses. But really if you look at tamper protection product, it's basically two main components. One of them is a command line executable we call it iProt—Intel Protector—for long, but it's an iProt commute uh uh it's iProt, and it's a command line. You type in some input parameters, and you include one of those parameters is the input file, and this input file is your binary. It could either be a Windows binary or an Android binary DLL form, and then it spits out another executable that will run on any Intel processor, but this one will be self-encrypting and self-modifying. And so the difference between the the input binary you give it in the output binary it spits out is the same identical functionality, but as it runs, it will be encrypting itself, unencrypting itself, modifying the code to make it very difficult for someone to figure out what's going on. So that's one component, and that's a command line executable. Another one is a library called CodeVerify, and how that's used is is you weave the CodeVerify into your code. And what it allows you to do is reach out from this trusted executable environment. So just going back to iProt, the binary it spits out we call a software trusted executable environment, and from within within that base then you can reach out to other unprotected pieces of code and check it, you know, are you are you still the same piece of code that I expect you to be? And if it isn't, then we can flag it. And because it's in a TEE, it becomes difficult for an attacker, let's say, to change the signal from zero to one, you know, from a yes to a no, for example. So so that's pretty much that. It's very simple. We have some other ancillary pieces.

0:42:58.880 --> 0:44:09.237
<v B>That help developers do their work, that help what we call CodeBind that lets the verification piece check a predefined a version of the file, so you know when it's been changed. But pretty much just a security compiler you can call it and a library that helps you go out and check and verify the integrity of your code. Yeah, and speak a little bit just more like the workflow of how you work. I mean if you're using something like GCC or something like that, essentially, you know, you take your program and separate out what you think the critical sensitive functionality is. I mean, you don't want to necessarily put the whole program in this because it has performance consequences. And then you that turns to a shared library, either an SO or a DLL depending on what you know platform you're going into. And then that that is your your sort of root of trust, your thing to start with. And so you you compile it through GCC, you get an SO out for a DLL. Then you run that DLL through our tool, and then you have a new DLL with the same entry points, same functionality, but um it's not going to be very easy to sample with or

0:44:10.755 --> 0:45:05.346
<v B>reverse engineer. And that that's for iProt. Yeah. And then for for the CodeVerify technology, you know you take a binary, you know EXE—I believe we can even take EXEs for that—I know DLLs, SOs, and you generate basically it's it's like a cryptographic hash signature of that file using a tool called CodeBind that I think Steve mentioned. And then from that you can check all or even just parts of your execution file against that. And that that's kind of the lightweight relatively fast iProt output because it's self-modifying, and in fact it keeps very little of the executable code in plain text at any given time. So as you're running it's constantly trying to pull stuff down and and transcript it to to the next phase of execution. So it's it's there's a lot of heavy duty processing going on there. Um so that's the

0:45:07.040 --> 0:45:20.145
<v B>heavyweight thing you want to be in as little as possible, only for your most secure code. And then you know jump out to this much faster engine, you know for more of the general is my code still untampered? Could you maybe

0:45:21.006 --> 0:45:39.737
<v A>walk us through the flow like a function level? Like what kind of function? So you said you wouldn't want it all to be there. So your main is running, you're doing something, you want to log a user in or whatever. Like what would be the kind of thing you'd want to do where you would jump to the environment and then come back? And how does a person not just bypass the trusted environment? Like how do you prevent them from not going there?

0:45:40.800 --> 0:46:44.622
<v B>Okay. Great great question. So the first way you do that is you've got to put something of important of value in the trusted environment. That in other words, it's something that if they were to just rip out and skip it, then whatever functionality that your code performs would no longer work. So one example we could have here is let's just say we're doing a video decoder for instance, and then the video decoder is decrypting some video stream, and then it it has a different functionality, and then it passes that video stream on to you know some other buffer and decrypted it form. And let's say you don't really care so much, you know, once the bytes are decrypted they're you know uncompressed. So there's lots of you know they're huge, the size of the video is huge. So you're not going to no one wants the raw bits that you want to protect the encrypted bits from easily being transferred around. So, you know, one attack, you know, would be hey, I'm just going to call your well, the first attack would be I just going to look at the the key, the decryption keys inside your your sensitive application. So that's an example of something that you might want to protect with with iProt. So you typically put, you know, the actual decryption stage in there, and the

0:46:48.520 --> 0:47:45.420
<v B>issue you have though is so let's say anybody can call this. So I'm just going to I'm going to keep your thing as is. I'm not going to modify it. I'm not going to have I'm going to call your API and then I'm just going to grab the decrypted bits, and bam, I'm good. And then I can write them to disk and do whatever. So that's one place where you can use CodeVerify from there. So what you can do is when you're ready to pass the bits off to some other module in your system that does the next thing with those bits, you can make sure that the one you're handing it off to is not some rogue application or rogue program or modified program that's going to write it off to disk or something to a file, but it's going to be the expected module—that is the display driver or something like that. And that's where you would use CodeVerify to sort of inspect it before you hand the bits off every cycle of the decrypt. So, you know, an attacker to bypass that would you know have to extract the key, which is more difficult, or they would have to find some way to to modify something in the chain to be able to write it to disk. So those are the things you want to avoid.

0:47:50.029 --> 0:48:48.200
<v B>Yeah, yeah my accent. Oh, I was just going to say um you know Mark in the past has described that that scenario as a decrypting fool. And so you know someone hands you, you know they've isolate the module that does the decryption and they say, oh okay, I just hand it some encrypted bits, and it's going to spit me out the good ones. And if the thing that does the decryption can't identify who's calling him and enforce that it's the one he expects, then that's the uh the the decrypting fool scenario, and no one wants. So you can use no so you can again you can use CodeVerify in addition to checking your downstream who you deliver to, you can check your callers to make sure that they're authorized to actually use you. So if you do something sensitive like you say, you know, if you do something like return passwords given a username, you can make sure that only someone who's authorized to ask for pat for a you know a password back from a username or whatever. Or you know, you're a safe and you're opening the safe to authorize, you know, components.

0:48:49.885 --> 0:48:50.830
<v A>So then people can't just

0:48:50.830 --> 0:48:51.505
<v B>pick up your code.

0:48:51.505 --> 0:48:53.715
<v A>and use it wherever they want, and who cares what it is.

0:48:53.800 --> 0:49:27.634
<v B>without modifying. And that's where the iPod comes in. Is that in order for them to be able to modify it in such a way to bypass these checks? That's what makes it hard. So you need the iPod as sort of somewhere safe to stand before you go out and do all this checking, because otherwise if they just change the checks, then you know it's all for naught. I mean, like if you were to write this without iProp as a reverse engineer, what I would do is I'd find out where the 'if' check is, you know, if this module is trusted, and I just always change it to unconditional go ahead and assume it's trusted. So you need to make sure that attack is hard to do so that the check isn't a waste of time.

0:49:29.507 --> 0:50:50.541
<v A>So can you kind of walk me through um? So there's this machine code and I have this, and there's these—I think there's like IDs. Is one of them, but there's a bunch of these decompilers that you can download off the internet, and you end up with—and correct me if I'm wrong, but I believe you end up with, you know, C code with some assembly woven in where it couldn't do anything better. And the C code, it tries to—you end up with 'if's and a little bit of logic, of course all the variable names are, you know, A, B, C, D because those aren't preserved, right? But from there that's how you would do things as what you're saying. Like you'd find this 'if,' maybe you'd step through this C code that you've generated through decompiler. You would recompile it and walk through it and see, oh, this line right here is where it's checking for the CD key, and I'm just going to make that—I'm just going to take delete that code or make it always true or something exactly. So if you—if you so if you tried to do the same thing, you get one of these decompilers off the internet and you run it on a binary and just assume that the entire binary is under tamper protection. So what does that look like? Is it just like a complete?

0:50:50.541 --> 0:51:49.131
<v B>I ran—I had a Pro for Curiosity earlier this week actually on one of our binaries, and that has a very expensive tool. Yes, it's that is a very expensive tool. It's more for disassembly, but it, you know, it takes the disassembly apart and creates a program flow structure like like you're talking about. And you know when I did against the unobfuscated code, it, you know, showed me a really great flow mapped really well to the original structure. When I looked at the encrypted code, I saw a couple of assembly instructions and a couple of blocks of stuff going off writing to random memory, and then it just ended in a call to an undefined function, which is actually, you know, knowing how it works that was what I expected to see. But really it can't go beyond that because most of the time the functions that are being called are either ones that we write ourselves as we go or—

0:51:50.768 --> 0:51:58.294
<v B>ones that we have decrypted along the way as we've been mutating the assembly code. And in fact,

0:51:58.480 --> 0:52:23.120
<v A>Oh, I see now. I think it's kind of clicked. So what your program does is it creates something like—it creates a binary that just cannot be represented as a source file because of its self-modifying nature. Like there—there's no sort of C; it just there's no C syntax that could exist that could explain what's happening. You would actually have to

0:52:23.120 --> 0:54:03.680
<v B>step through every possible phase of execution, track down every path that it traces in order to figure out what instructions would be executed because at any given static point in time most of them are going to be not just encrypted but have been encrypted multiple times and have to be decrypted multiple times in order to be visible. Yeah, what these tools typically do—the IDA Pro's and things that's what we call static analysis. In other words, they take a look at the binary state on disk and they try to reverse engineer it as best it can from that state. The issue is when you're having things that are constantly being encrypted and decrypted at every stage. Ideally, you would want to run it while it's running, not just simply at rest because there's no—there's nothing you can tell you about, you know, the encrypted code until the code becomes unencrypted. And the way our tool works is that only a very small portion of the code at any point in time is ever in the clear. So it's much more work to be able to do that sort of analysis. And the other advantage of that is we actually use that code as part of the key to encrypt the code at one state is part of the key to encrypt to the next state. So if you make a change, it starts to become this cascading reaction that ultimately generally results in protection exception of some sort that will cause the processor to throw back to the OS and kill the process. Exactly. That's the primary way we protect against tampering. In this environment is that by modifying the code, you're modifying the decryption key which results in decrypting perfectly legal instructions but that are total garbage or bound to lead to a crash.

0:54:03.680 --> 0:54:48.917
<v A>Cool. Yeah, that's awesome. Yeah, that thank you so much for explaining that. Really—it took me from a complete luddite of reverse engineering tamper protection to now I think I could explain to somebody how it works. So that's that's totally awesome. So for other people like—like Patrick, I don't know about Patrick, but for other people like me who know absolutely nothing about reverse engineering tamper protection but want to get into this line of work and just, you know, they really think it's that it's very exciting and they want to be doing sort of what you're doing. What kind of, you know, maybe they're still in school or they're thinking about going back to school? What kind of background is useful for

0:54:48.917 --> 0:55:56.687
<v B>this work? So not Java. So please, you know, I mean, you know one of the things we're actually hiring right now—we're trying to hire people and it's very challenging to find people nowadays who understand how the machine works. I mean, not just, you know, what happens in the stack, what happens, you know, how stacks are laid out, you know how things what happens when a function call happens, you know how pointers work, just, you know, that layer of understanding of how the machine works. So an interest in not just at the top level like quote unquote coding and application but understanding when you say something and see what are you really telling the machine to do, you know? So things that you might do in school, I mean, like, you know anything that talks with assembly or sort of microcontrollers. You know back in the day we had like the model of 68ks and stuff like that, but understanding what your C code does even writing inline assembly on your own—this is one thing you can do is go ahead and write yourself a very small, you know, C program and then try and look at its disassembly and see if you can, you know, crack open the manual and sort of figure out what's going

0:55:58.695 --> 0:57:48.000
<v B>on. Yeah. So understand—yeah, like Mark says understanding assembly languages instruction sets. You know I remember one of the early things I did was I wrote a hash function. I started out in Pascal and then rewrote it multiple times in assembly just understanding how every instruction worked and how to maximize performance on that. Honestly, one of the things I do for fun is I read the C and C++ standards for understanding how compilers work. And I mean, I couldn't write a compiler—honestly, it's something I would like to do at some point—and I've written parsers for C, and obviously I know a bit about the assembly side of things, but it doesn't mean that you can write a compiler. But understanding, you know, what's happening at a lower level in the language, you know what happens in memory when you have an object and it's, you know, inherits from another object, and you know what is a virtual function table, and and you know what is happening on on the stack when you call a virtual function—that sort of stuff. Um is, you know kind of where we think that that's, you know kind of the problems we look at all day in and day out. Yeah. I'd echo what Chad said and even more that brings up the point one thing you can get from school that's very useful is compiler classes. That is a really good place to sort of the interface for the language and the machine meet, and I think people who understand how the machine works are going to be much better programmers than people who are, you know, really far away. You can still be a, you know, a decent programmer at a high level for big picture things, but it gives you a little extra edge when you're wondering what some what's going on with some bug or some crash if you have some inkling about how the machine actually works. And I would highly recommend that to anyone who wants to be a programmer.

0:57:49.440 --> 0:58:50.247
<v A>And that could be the most fun too. I mean, you might spend, you know, 90% of your time integrating two systems and it's just a lot of reading documentation and writing APIs that work together and things like that. But then you encounter some kind of performance issue where maybe you have to rewrite something and see or you have to understand, as Mark said, what's really happening under the hood—why is this code so slow? And that that is often the most fun, the most fun part of the job. It's somewhat of an advantage because I have some of that experience to be one of the few people on a team that knows how to do that. Oh yeah, look at the assembly going to GDB and say, 'Give me the assembly instructions.' What? Why is this taking too long? Um Because it's a rare skill, so people value it. And you can really—you don't need it often, I would say if you're a normal software engineer not doing something specifically related to that, you may not need it that much. But when it comes time and you can pull out the big guns and do that, people get really happy very fast. Yeah.

0:58:51.681 --> 0:59:06.080
<v B>I mean, you can really—yeah, you know, that's a skill set that is shrinking more and more. We see out there, and the people who, you know, know stuff like that are gold, gold to us, but they're also gold to whatever sort of software team they're on. Just to echo what Patrick said.

0:59:08.792 --> 0:59:09.754
<v A>Yeah, so I have a—

0:59:09.754 --> 0:59:10.311
<v B>question about self-modifying

0:59:10.311 --> 0:59:12.480
<v A>code. How does that not get flagged by the antivirus?

0:59:14.935 --> 0:59:16.116
<v B>There's a couple great questions.

0:59:16.352 --> 0:59:20.960
<v A>Is the antivirus just that crappy? Because if I was gonna write an antivirus, that'd be the first thing I would just flag as a virus.

0:59:21.759 --> 1:00:32.080
<v B>So not all self-modifying code will get flagged to start with, but you do run into a lot more risk of it. And Mark has looked into that more than I have, so I'll let him talk about it. Right? And so that's sort of the double-edged sword about all these Trust Execution Environments. On one hand, you would like to have, you know, your code somewhere protected so that no one else knows what's going on in conjunction with it, but that also malware authors, virus writers also would love that same thing, so that, you know, essentially legitimate processes on the machine can inspect and see what the code is going to do before it's executed. And, you know, that's a tug of war. And all these sorts of TE environments—I mean, the way it's often solved is that there's some sort of signature that's done to that. You at least say where we were, you know, where this came from, so that if maybe it fails but outdoes something malicious, but after that, you know, you can trace back to, you know, it came from Microsoft or it came from a non-trusted party, so maybe next time I won't trust him. So you can decide sort of what level of trust you give to each one. If it's one that has no trust, then you better run it, you know, on a clean machine, isolated. But if it's something that came from someone who you trust, then you say, 'Oh, okay, I'll let it run,' and I'll trust it. It's going to do what I expect.

1:00:37.120 --> 1:01:20.080
<v A>Yeah, that makes sense. Yeah, I had this when I was cleaning off this virus off my machine. I noticed that I was kind of expecting it to be more malicious than it was. I went through all my services, and sure enough, there was a service that was—I don't remember the name of it, but it was definitely a name that stood out. And, as we said in the beginning, you don't have to be for most cases. You don't have to be Fort Knox. You shouldn't expect someone from CSI or or who's the guy from Mission Impossible? I'm totally drawing a blank—the scientist Tom Cruise. You don't—you don't expect Tom Cruise like, you know, get into your PC. I mean, it's paying rhymes who does that, right?

1:01:22.594 --> 1:01:41.520
<v A>Yeah, right. But yeah, but but you could actually stop, you know, 99% of the problems, and for average people out there who don't have that much at stake, who aren't holding Fort Knox in their basement, they get a phenomenal amount of protection. So very cool.

1:01:41.520 --> 1:01:45.360
<v B>Looking for Fort Knox hardware is the way to go.

1:01:47.040 --> 1:02:09.507
<v A>I don't know. Is there even—is Fort Knox still significant? Because I heard the whole gold thing. Well, obviously gold doesn't match to dollars anymore; that went away a long time ago. But I think even—I wonder if I don't know if Fort Knox even holds that much. They claim they do, but if you trust the conspiracy theories, they haven't done it in a while, so it may all be gone and spent. Oh yeah, it's just holding UFOs? No, they just spent it and didn't tell anyone. Oh.

1:02:11.886 --> 1:02:17.033
<v B>Okay, I want the keys to that—that center of the internet that they visited The Avengers. That's that's—

1:02:17.978 --> 1:02:22.880
<v A>Where I want? Oh yeah, and like somewhere in Norway or something. Yeah.

1:02:25.280 --> 1:03:07.793
<v A>Yeah, it's always in some frigid environment, even the Watchmen, right? The main base that—I don't want to spoil the movie—but there's one part where they go to an evil layer, and it's always in some, you know, glacier somewhere. So do you guys find yourself—so if we want to say the cat in the mouth, the good guys and the bad guys, we'll just all pretend that we trust you, as we talked about, and that you're the good guys? Do you have to put on your bad guy hat and do stuff like keep up on the latest and greatest of disassembly techniques and that kind of stuff? Do you find yourself—like how do you—somebody mentioned going to Black Hat, you know, that kind of stuff? How much would you say is that? Yeah, go ahead. So.

1:03:08.299 --> 1:03:41.745
<v B>To be a good security guy, you've got to be able to think like the bad guys. If you are—I mean, they're the only difference between us and the bad guys should be, you know, sort of what side we're on. I mean, if you're not thinking about the possible attacks and the possible ways to exploit systems, then you're going to be blind to everything. So I mean in everything, even, you know, for most of us, it's not just in what we do now, but in other systems. Like, you know, someone is setting up a system to, you know, lines to, you know, for a fair or something like that. We can—we, you know, can see the potential exploits there. I mean, you've got to be able to look at everything as a potential attack.

1:03:43.349 --> 1:03:46.977
<v B>Every time I got on an airplane, that's the way I think. Yeah, that doesn't go well.

1:03:46.977 --> 1:03:47.635
<v A>For me because.

1:03:47.635 --> 1:03:48.360
<v B>I typically start.

1:03:48.360 --> 1:03:50.470
<v A>Talking about it, and I shouldn't talk about it. Yeah.

1:03:52.495 --> 1:04:13.352
<v A>Listening. So how much would you consider yourself? Yeah, so you guys mentioned that like a secure—you think in a security mind, you even said like as security, I don't know what you said, engineer or security researchers or security—like how much of it would you say is that versus people who just say like, 'Oh, I'm a programmer,' and don't assign that kind of label? Like is there a real difference between programmers who program with a security mindset and the rest?

1:04:14.365 --> 1:04:48.452
<v B>Is. Yeah, I mean if I would say one, the big difference is, you know, there's lots of skills that you pick up over time as far as idioms and things like that that are, you know, takes lots of training. But the most important skill is being able to sort of understand the threats, the potential threats, the potential attackers, and the potential risks, and what you're willing to risk. I mean, you know there's a consequence to security, right? I mean, you could have max security, and then your users can't do anything, and you don't want that, right? So you've got to sort of at least understand sort of what you want, what your users want, and what the right balance is.

1:04:50.680 --> 1:05:24.560
<v A>Gotcha. It'd be like having, you know, twelve locks on your door. I mean, it's sure, but it just takes you a long time to get in exactly. Yeah. All right, this might get a little meta, but when you're writing the code to do the tamper protection—these processes you said that encrypt executable or encrypt the library and that kind of stuff—when you're writing that code, do you guys have like a pretty set strict set of guidelines you follow to make sure that code itself isn't filled with flaws? Or is it something that you kind of like have an intuitive sense as an individual when you guys do code reviews? Do you have extra things you check to make sure you're not introducing problems?

1:05:28.160 --> 1:06:47.438
<v B>Well, there's a couple layers of validation, right? I mean, there's one thing where, when you're doing the initial design for—is this thing going to work? How are you going to exploit it just from a design point of view? And then there's the actual implementation stuff where that's where the code reviews come in. Does it conform to, you know, the design and what? In every design, no design is perfect. There's always, you know, what the—you make trade-offs. You make decisions on, you know, what you protect more, what less, what potential threats are you willing to give up for additional benefits? And even with our tool, the toolkit that we're providing, we're giving the developers ability to make that trade-off. There's a couple like really simple options you can give on the command line that provides sort of a trade-off between the level of security and the level performance you get. You just can give a command line like how frequently do you mutate? How often, you know, do you go through the code and do you do—we change enough? If you do it very frequently, it'll be much more secure, but at the same time, it'll be a lot slower. If you do it less frequently, less secure, but it'll code run faster. And, you know, this is from the application level sort of stuff, and there's similar trade-offs that we make all the time. So, you know, we come together in meetings and talk about the trade-offs, talk about the threats, and then based on those, we make some—our best calls based on, you know, what we've received to be, you know, the best interest of the users. Or we can provide not that the user can tune and say, 'Hey, you know, be up to these.' We'll give them these tools, and they can—we'll warn them how to use them and, you know, put it in their.

1:06:48.197 --> 1:07:07.553
<v A>Hands. So but in the toolkit code that you guys write itself, is that such that it's—oh, if the, you know, I guess kind of like public key encryption, you can know the methodology? It doesn't really help you? Or is it, you know, that you have to take special steps in writing those tools so that if someone got a hold of them, they wouldn't be able to now exploit everyone who's ever used your toolkit before? I think.

1:07:08.211 --> 1:08:14.513
<v B>There's a little bit of both. Um, there are definitely—there you know part of the way the thing works is that you know there are obviously some secrets that are stored in this thing that's encrypting and decrypting. So knowing how that behaves can give some insights to attackers, but in addition, that's not going to help them with you know breaking an existing thing or at least tampering with something because they're still going to have to you know extract all the code and reverse engineer it. So there's a little bit of that. Yeah, we take some effort—um, like in our release process, we'll make sure we scrub out a lot of debug messages, any symbols that really say exactly how we're doing something, uh, and you know let us trace a specific say in a given instruction all the way through from input until you know we know where it's encrypted in the final output. We'll make sure we scrub that sort of stuff out. But you know, it's kind of that defense in depth, right? How how deep do we want to defend it? And you know, we don't encrypt the entire program with its own methodology because that would have a huge performance impact. I was gonna ask that.

1:08:14.513 --> 1:08:16.555
<v A>It's a toolkit protected by the

1:08:18.394 --> 1:08:25.887
<v B>toolkit. The code verify library is by its very nature has to be able to be encrypted by iProt, but um

1:08:28.654 --> 1:08:32.639
<v B>we don't generally encrypt much else of the toolkit with itself.

1:08:36.080 --> 1:08:50.575
<v B>Because of the nature of what you know, what it is, what the toolset is, the risk analysis just hasn't taken us there at this point. Although I'm sure—I'm sure Steve hears this. He's like, 'Hmm, that's something I can put on'

1:08:51.115 --> 1:09:10.673
<v A>the backlog. Yeah, right. To do inception system you just keep encrypting yourself and just watch the binary get bigger and bigger. So it does get bigger, and you don't have to answer, but you mentioned earlier if you're running on an Intel processor, you get this stuff. What happens if you run the code signed by this on a non-Intel processor like an AMD processor? Okay?

1:09:11.027 --> 1:09:18.773
<v B>Okay, sorry, AMD will work. We don't support ARM today. It's—it's something we've definitely looked at, but oh.

1:09:20.410 --> 1:09:22.114
<v A>Well, how does Android work then?

1:09:22.772 --> 1:09:24.494
<v B>Well, there's Intel, right? Right. Oh, oh.

1:09:25.742 --> 1:09:27.040
<v A>I didn't know that. Okay.

1:09:29.200 --> 1:09:35.279
<v B>Intel does support Android. In fact, Intel is the biggest contributor to the kernel.

1:09:37.200 --> 1:09:47.039
<v A>I did not know that. I mean, I—uh, I know iPhones are all ARM, and so I just assumed that Androids run ARM too. I did not know at all. So learn something, learn a lot of.

1:09:47.039 --> 1:10:29.834
<v B>Things obviously, we're hoping to change. We're hoping to change that. We're hoping you know we can convince, you know, Apple—we've got a good enough product that, you know, they can put it in their phones and stuff like that. You know, that's what Intel is trying to do. But in order to do that, we got to make sure that it runs really well, you know, runs really well in IA. So that's one of the things we're doing. We're not for the iPhone case, but yeah, and there are actually Apple—right? Yeah, but there are actually Intel phones. Actually, of course, I think the first one just started shipping in the US a short while ago, but I think most of them are like in markets like China and India stuff like that. I actually saw it. Oh, cool. I actually saw an ad for one. Where was I? I think it was in Russia when I was in what, you know, when I was traveling there this past summer. I saw an ad for a—for a Zen phone in Russia, an Intel. Oh, very.

1:10:30.070 --> 1:10:32.652
<v A>Cool. And so Zen is owned by Intel? No, no, no. I mean,

1:10:32.652 --> 1:10:38.895
<v B>There's a division. So Intel does not sell phones, right? We—we sell products. Oh, I see. So we sell it to. Got it.

1:10:40.880 --> 1:10:57.660
<v A>Got it. So when you—when you do tamper protection for an Android thing, is there different heuristics that you use because obviously battery life is more of a concern, right? So not just performance speed, but, you know, speed has even more of an impact and not just time, but also battery life, that kind of stuff running. So is there a difference that? Oh, go.

1:10:59.297 --> 1:11:29.679
<v B>Ahead. So battery life does have a big thing to do, but again, we put that in the developers' hands. It's the same fundamental trade-offs even on an Intel device in a laptop, right, which a lot of the form factors are. So again, if you crank it up a lot, you'll get more security, but more processing means more, you know, more battery drain. So you've again we put that in developers' hands, but we don't specifically right now have like automated tuning—is what we call it—when we when you adjust, you know, the sort of security versus performance trade-offs, but that's something that we're planning to add in future versions.

1:11:31.360 --> 1:11:54.327
<v A>Cool. Very cool. And so just just to explain sort of the deployment from your side. So you—so you give uh you sell a piece of software. Someone buys, installs it on their machine, and then they have those tools that they can integrate into, you know, Visual Studio or or into their Makefiles or what? Have you Gradle? What have you? Yes.

1:11:55.778 --> 1:12:04.435
<v B>Actually, you can actually get it for free right now. The beta you can download from our website, and the—and you can download it with and try it out without paying for it. For this.

1:12:05.228 --> 1:12:21.120
<v A>Version? Oh, that is awesome. Wow. Yeah. I'm so glad you said yeah. Definitely. You know, if you're into if you're interested in this stuff, you should definitely do that. Everyone at home should check that out. You should build a Hello World and then run this on it and and see what.

1:12:21.462 --> 1:12:36.396
<v B>Happened? We are very interested. Anything users want to tell us about it. The beta is there because we really want to know what people want to do with it. So if you try it, you know, give us feedback. We—we want feedback. That we are most hungry for feedback. Yeah. I

1:12:37.695 --> 1:12:53.204
<v A>mean, if you build something that does some kind of like Monte Carlo estimation or whatever, I mean Tic-Tac-Toe whatever, and you and you run binary tampering on it and your Tic-Tac-Toe game doesn't work anymore. Let them know. I'm sure they would love to talk to.

1:12:53.204 --> 1:13:23.612
<v B>you. Yeah. So so a few more things. I mean, the URL for that is software.intel.com/tamper-protection. And okay. Um Norm, do we have the Hello World video up there? I recently just did a quick sort of, you know, in Visual Studio, just a quick, you know, like a six-minute video that basically shows you how to do a really dumb, you know, Hello World style program and run it through iProps. And I'm not sure if it's been published yet, Norm. Do you know or?

1:13:26.869 --> 1:13:29.440
<v A>Maybe it will have had been published by the time this gets published.

1:13:31.120 --> 1:13:37.973
<v A>Oh, nice use of the what is it, the past participle or something? Will have had been published. Nice.

1:13:40.116 --> 1:13:45.600
<v A>I think it's the future past part of the past perfect. I think something like that. Yeah.

1:13:45.600 --> 1:13:47.280
<v B>Yeah, that went to a good school, so.

1:13:50.880 --> 1:14:38.000
<v A>Oh, I was—I was on a um, I was—I was on a vacation with my family, and there was a juggler. And um, there weren't a lot of people in the audience, and so he said, 'Who wants to go on the stage?' And my wife yelled, 'Uh, this guy does!' And so I ended up on the stage, and he said, 'Do you know?' And he mentioned—I honestly don't remember the lady's name, but it's some lady who could shoot a bow and arrow over her shoulder. And I guess she's some famous, famous uh lady of that time, 1300, 1400. I don't—I don't remember the name.' That's what it is. He goes, 'Do you do you know any?' Do you know any Oakley?' And I said... and I knew he was going to shoot a bow and arrow, and he hit a coke can off my head. I said, 'Did she shoot a bow blindfolded?' And he goes, 'You went to public school, didn't you? It's like a little sad trombone played in the background.'

1:14:41.520 --> 1:14:47.582
<v A>I don't know if we got an answer about whether the video was posted. I'm waiting on pins and needles. We could also go to the website and see.

1:14:48.342 --> 1:14:57.657
<v B>I think we may have lost Norm. I recommend going to the website and seeing if it's there. And if it's not, go back again. Yeah, the Mark—yeah, the marketing videos we're actively getting.

1:14:59.682 --> 1:15:20.354
<v B>Collateral up there um based on um I think Mark was at DevCon this last week, and so he's uh learned some more about what we want to put up on that site. So actually, I just remastered it like two nights ago, so I don't know if Norma's they managed to get through all the appropriate legal channels.

1:15:20.354 --> 1:15:21.519
<v A>Like a media mogul?

1:15:21.520 --> 1:15:28.757
<v B>Actually no. It was it was my second time using Camtasia. The first time was with the first try, but I've learned so much, so.

1:15:29.196 --> 1:15:32.160
<v A>If you like the sound of the voice of the podcast, tune into the video.

1:15:34.259 --> 1:15:51.859
<v A>That's right. So do you find like at an environment like Black Hat where I'm not—I typically know it's both researchers and people trying to explain, you know, it's kind of a mix of people, but the people are they generally receptive to this kind of thing, or are they kind of like, 'Oh, that's not going to be fun when that comes?'

1:15:53.294 --> 1:16:34.000
<v B>Out. No, you know. Yeah. So there's all kinds of people that go there, you know? There's a lot of um uh, you know, enterprise types, there's coder types, there's you know government types that want to protect. And so this kind of technology is of high interest, and it's not the same thing as like, you know, network firewalls and things. So you'll see 'security defense in depth' is a phrase you'll hear a lot in the security space, and so there's a lot of people at certain layers, and the people that are focused and interested in binary security—definitely this is, you know, right down their alley.

1:16:37.920 --> 1:17:03.240
<v A>I always thought it'd be cool to go to DEF CON. I'd always be terrified to bring any electronics, but I've never been able to come up with a legitimate work reason to go. Oh, you just don't connect to the network? Yeah, yeah. No, no, I know. I heard what Snowden said. I think I'm not taking the phone with me. Yeah, it's... yeah, I'll be that guy who goes to DEF CON and leaves with no personal information. I know it's already happened to me once.

1:17:03.240 --> 1:17:19.200
<v B>defcon there's a there's a big video of uh flashing out ip addresses and mac addresses of of devices that have been uh scanned at defcon and so it's it's kind of a wall of shame so definitely keep your your devices off

1:17:20.790 --> 1:17:24.385
<v B>Yeah, bring them there to test them? No. And then...

1:17:25.110 --> 1:17:32.320
<v A>Melt them as soon as you walk out? Yes, right. Somebody else? Oh, that's nice of you.

1:17:35.978 --> 1:17:38.121
<v B>We can start a whole enterprise around that, a business model. I...

1:17:39.640 --> 1:17:40.619
<v B>Think the Russian Mafia already.

1:17:40.770 --> 1:17:49.613
<v A>Is beat though? Oh yeah. All right. Well, did you guys have any last things you wanted to leave us with? Anything we didn't bring up? Any questions we should have asked? You but...

1:17:52.110 --> 1:17:57.600
<v B>Didn't? Please encourage your audience to study, you know, more low-level stuff so we have more people to hire with the right skills.

1:18:00.080 --> 1:18:42.854
<v A>Yeah. I mean, there's so much to do, and low level is—I think going to become more and more important. I mean, we had... you know, basically ten, fifteen years of cloud, and now there's Internet of Things, there's drones, there's autonomous vehicles, there's tamper protection. There's so many different things now that are requiring, you know, low-level, you know, firmware or low-level software engineers that it definitely would be a great field if you're interested in that. You should definitely, you know, look at the future. Don't look at right now or look at five years ago where cloud was so big. Look at sort of what you want to do, and if you're passionate about that, you should definitely go for it. There'll be tons of opportunity. Exactly. I...

1:18:42.854 --> 1:18:57.974
<v B>Mean, if you look at where things are going with IoT, the Internet of Things, I mean pretty much everything is going to have some kind of microcontroller in it, and it's both a wonderful opportunity and a very scary thing that your light bulbs could potentially be compromised by someone or worse.

1:19:00.032 --> 1:20:09.456
<v B>Lights? Your car? I mean, this is scary, scary stuff. So we need smart people to help solve these problems. Yeah, yeah, you know in the security developer space, there's a very big demand and not a whole lot of supply. So if someone is looking to diversify or just to create a niche for themselves and they like coding, security spaces is really a great place to be. There's so many—it's like doing puzzles. If you like to think, if you like to think through hard problems, it's very rewarding, and you'll find a lot of opportunity. And so, you know, get good on tools like Intel Tamper Protection Toolkit and get good with disassemblers, and you'll find yourself as you spend time doing that, you're the go-to guy for anything security. And you know, just by getting familiar with some of those tools and some of the thinking patterns that Mark mentioned, you'll find your career growing in a wonderful way. Yeah, start by trying to break stuff and then worry about securing it later. That's my recommendation there. But keep...

1:20:10.232 --> 1:20:24.914
<v A>Your... It'll keep you up at night. I read—I remember back in school I would read Kevin Mitnick's book about social engineering or whatever and be like, 'Oh man, that's not good.' Yeah, everything in the world is just vulnerable. Yeah, yeah.

1:20:25.977 --> 1:20:27.280
<v B>or go play Eve.

1:20:32.406 --> 1:20:37.992
<v B>Online? That'll help. Wait, what? Go play Eve Online? What is—what's the connection that'll keep you up at night? Oh, I see.

1:20:37.992 --> 1:20:39.494
<v A>Yeah, that will—that will you'll stay.

1:20:39.494 --> 1:20:43.071
<v B>up all night playing evil no managing the security and things like and trust and things like

1:20:44.455 --> 1:20:57.679
<v A>That oh, okay. Oh, oh, I see the social network there. Okay, that makes sense. I've actually—I've never played Eve. I've heard crazy stories of you know 20,000 hours of work getting just destroyed in some battle? Yeah, it's unbelievable.

1:20:57.679 --> 1:21:04.300
<v B>Actually even worse than that. 20,000 hours of work gets destroyed by someone who you trusted, who ended up, you know, turning on you and stealing your stuff.

1:21:06.409 --> 1:21:07.760
<v A>And that's supposed to be fun?

1:21:07.760 --> 1:21:11.120
<v B>It sounds like real life. I have that part of it.

1:21:12.880 --> 1:21:20.010
<v B>Again for people who think that way, it can be interesting how do you protect it? Sounds awesome. How do you protect?

1:21:20.010 --> 1:21:36.666
<v A>You know, I know somebody who doesn't—I know somebody who doesn't even play that much, but through his, I guess social graces is able to just have incredible wealth on you online just because he's on the top of kind of, uh, I guess I don't want to say a pyramid scheme, but he's built like a multi-level marketing.

1:21:37.324 --> 1:21:40.024
<v B>Exactly. It's a great model of the real world, right? Cool.

1:21:43.129 --> 1:22:13.184
<v A>Thank you guys so much for coming on the show. I'll post a link to your email addresses if people want to reach out to you, you know, if they want to come and work with you guys or if they just have questions about tamper protection or if their trial expired and they want to beg you guys for another 30 days or something? So we'll have a way to contact you guys. And this has been absolutely fascinating. So thanks again for coming on the show. It's totally awesome.

1:22:13.184 --> 1:22:15.985
<v B>Thank you for having us. Thanks everyone. Thank you. Thanks.

1:22:17.942 --> 1:22:20.640
<v A>Guys, the intro music is Axo by Binar Pilot.

1:22:22.880 --> 1:22:49.519
<v A>programming throwdown is distributed under a creative commons attribution share alike 2.0 license you're free to share copy distribute transmit the work to remix adapt the work but you must provide uh attribution uh to uh patrick and i and uh share alike and kind

