The talk for 1230 will be starting as of now. So please give a round of applause to Lee Brotherston. I read that for the first time today. Hey, thank you. So this is, well, it's my glorious celebration of IOT security, as you can see. These are the objectives I kind of want to cover today. An introduction, which in part is this. Then we'll go into some challenges of IOT, why problems occur, and about how we're doing as security. So the background on this is very much that, as I'll show in a minute, there are certain IOT talks and IOT types of talk that come up frequently. But I think that very often the root cause is not always addressed. So this is aiming more to talk about the root causes and how those problems get established in the first place rather than popping shells and actually demonstrating exploits. So who am I and why am I talking about this? Well, I'm a security person, not an IOT person by trade. I typically work on the defense side of things. You know, day job is being a defense person. But more specifically, I'm a security person in an IOT company, specifically Ecobee. But this equally applies to things I've learned from sort of industry-type events and that sort of thing. And really, this is the reason I want to talk, because I think that a lot of IOT companies do not have security teams, and a lot of people that give talks at conferences are not from IOT companies. So I feel like it's hopefully a unique perspective. Apologies if it's not. So at the minute, existing talks to me fall into a few, sort of three broad categories a lot of the time. And that's great, but I wanted to do something different. The categories being, hey, like, there's an old thing because IOT devices run like Linux from five years ago, so here's a redoing the five years ago Linux exploit talk. There's normal web app stuff that just happens to be on an IOT device. Or the common one, which is the, so with physical access to the hardware, I can do a thing. And these are legitimate in a lot of cases, but if we're talking about threat modeling, you know, with physical access to some big industrial thing, like, that's great. But if you've already broken into my house, I don't really care if you can reflash my DVD player. That's, like, not really the threat model that I'm going into. So, got DVD players showing my age now. But the point is that that's often not a threat model for most people. IOT, maybe not exclusively, but for the most part, we're talking about consumer devices in a consumer home. We're not talking so much about industrial control. We're not talking about production line. We're not talking about, like, airlines and public transit and all that kind of stuff. So, because of that perspective that a lot of people take, it often focuses on the impact of the hack rather than the root cause. I know I'm generalizing. I'm not meaning to shoot anyone down there. It's often largely presented by people outside of IOT just because there are not that many people in security in IOT. And there's also guesswork because people are, by definition, they're having to reverse engineer things. They don't work in the companies. They don't have access to the source code. They don't have access to schematics, so they're taking devices apart, dumping firmware, that sort of thing, which is awesome, but it does involve a certain level of guesswork and inference. So, we've seen the headlines. This mostly covers the sort of stuff we're seeing. I'm sure everyone in this room has an interest in IOT and so has seen these, although these are slightly dated. So, to revamp my slides, these are now the headlines that we see, focusing very much on the Alexa's and Google Home's recording things and, oh, my God, privacy, et cetera. A pretty good base for the main problems, and not a lot of people seem to realize this, is that OWASP have done an IOT-specific top ten, and it's actually pretty good. And based on what I've seen, both within my own organization and other organizations, I would say it's a fairly representative and characteristic overview of the core issues. I'm just going to switch the slide, because this was a screen capper there, pretty graphic. This is the same top ten, just in text you can read. You probably know them, but we're just going to super quickly skim over them. So, weak, hard-coded or guessable passwords. I'm pretty sure you'll have seen the talk here already today where some hard-coded token can be reused. Insecure network services, so that's like old versions of daemons, old HTTPDs and stuff. Insecure ecosystems as a whole, because most of these devices, I'm guessing when you buy them, you're not using in isolation. They often talk to a mobile app, to some, like, web service or something. Lack of secure update mechanism. This is a big thing, because IoT devices often don't get updates, or they've got a terrible update mechanism when they do. Insecure and outdated components. I believe this is software components. We're not really talking about outdated capacitors and such like. Privacy protection is fairly non-existent in many, many areas. And the same with sufficient data transfer and storage protection. Device management is mostly referring to the fact that you can't adequately do things like network config, being able to set passwords, being able to set cryptography appropriately on Wi-Fi connections and that sort of thing. Insecure defaults and lack of physical hardening. Like I said before, physical hardening is very much threat model dependent, so I'm not going to delve into that one too much. But really the crux of this is, like, why? So there are a few areas, and I'm just going to delve into each of them. I've broken it down into sort of four broad topics. So first of all, there's the company. I'm going to get a little bit more into detail on that, but there are effectively three types of companies that make IoT devices right now when we're looking at, like, consumer IoT devices. So you've got dedicated IoT companies. The companies where, like, their core product or their flagship product lines are IoT devices. That's what they do. You've got tech companies who often make larger sort of commercial grade equipment. So think, you know, big network provider who's like, I'm going to do a consumer offering, make it a smaller, simpler IoT device. And then you've got a third type, which is a traditional player in some other market. So I'm talking when a lock manufacturer decides to do IoT door locks or a kettle manufacturer does an IoT kettle or whatever. It's like tech is not actually their product. They're sort of diversifying into that. I'll come back to that. There's a product development lifecycle. That causes a bunch of issues just by the very design of how it has to work, and we'll go into that. There's actually some logistics issues. And finally, second to that is economics, which I know this is not really an economics conference, but there are some economic reasons. I'll touch on that. Hopefully it'll enlighten a little bit. And then there's just straight up technical stuff. So to look at the third company type, the people that work in a non-tech company that are diversifying. So this is a real photo from Dave's toaster manufacturer company. They make toasters. And they realize that, you know, they've got to diversify their market a bit. Toasters are kind of for old guys. And they want to broaden out. So they start thinking about the millennial market so they can get their avocado toast on. And they think, like, okay, so how can we do this? Well, we know how to make toasters, and we need to appeal to, like, the kids. And, like, I hear that guy in IT can do an internet, so we can probably, like, stick these things together and make an IT device. We should do an IT. Oh, we should do an IT. There you go. So we'll get a toaster. That's cool. We know how to do that. We'll kind of, like, duct tape a raspberry pie to it or something similar, some Arduino or whatever. It may be prototyping, but I've seen things that end up literally like this for real. Yeah, and then we'll just apply some duct tape, and, like, it'll all be fine, and we can, like, enter into new markets and become ridiculously rich. So what does that work out like? Something like this, probably. But it's not so far from the truth, worryingly. And at least these have taken it a little further. They've put an Alexa on there, so voice activated. Awesome. And, of course, that's never caused a problem before, ever, for anyone. There is the incident of, yeah, of a door-locking manufacturer who didn't really know about uptime and didn't really know about whether to fail open or fail closed, so the locks just stopped working during an outage, which was amazing. And, obviously, they haven't thought through issues, partly safety and legal issues as well, like, do you want to fail to unlocking everyone's door or locking everyone in the house during a fire? Neither of those are sort of great situations. But, yes, that's how they work sometimes. This is from Tesla, where you can't drive your car because you need an update. Again, you know, probably not exactly the user experience that people are looking for. And, yes, this was the backlash from Yale, specifically, from people who were not super-duper happy about the situation when they couldn't use their door anymore. And so how does this stuff happen? So this is actually the hardware life cycle for people that work in hardware design and manufacturing. So the little loopy bit at the beginning is the closest you will ever come to agile in hardware. This is where people are sat in a lab and they're taking components on and off of a breadboard and, like, moving wires around and that sort of thing and iterating on their design to make a hardware design that works. And then it naturally goes through a few stages. People make real PCBs, you know, they 3D print a chassis, they make little prototypes that are good enough for you to test functionality in-house, but they're still not quite the real thing. And they go through this loop until you land on a fairly solid design. At that point, you go into EVT. That's engineering validation and testing. So this is the hardware equivalent of functional requirements testing. You're going through and saying, does it do the thing that we designed it to do? And you're also doing things like getting certifications because hardware manufacturers don't just have to make it do what it says it does. Unlike software, there are things like electrical safety standards testing and thermal testing and RF emissions testing and all that kind of thing. So that all happens during this phase. And what that means is that there are certain changes that will have to happen to hardware and certain things that cannot change in hardware because you have to, you know, meet these requirements or fix a shortcoming. What that means is that you effectively, from a hardware perspective, have what is like a software change freeze. The reason I mention this is that until this point, people don't like developing the firmware. So the firmware development life cycle is not as long as you may think because during this lead up point, hardware is changing. If you're trying to write device drivers in software and you're constantly changing it because someone is YOLO switching some component out that no longer, you know, different chipsets and stuff, it causes all sorts of havoc with that. But then once you've frozen it, then the reverse is true. You can develop all you like, but if you find a problem in your software that requires a hardware change, good luck to you because it's not happening. Certifications have happened. Things are not being retested. Then there's design validation and testing. This is a little bit more like QA. And then PVT, which is product validation testing. Sorry, not product, production validation testing. So that's stuff coming off the line that gets tested to say, okay, the sample's worked. Are they coming off mass production looking what we expected? But what that means is that firmware needs to be developed after the hardware is constantly changing, but be on there and working before you're testing stuff coming off the production line. So you've actually got a relatively narrow gap during which you're shopping out firmware, because firmware has to be on the device when you're shipping it to consumers, and then you're into mass production. And so like I just said, building hardware's a few areas. So there's PCB fabrication, that's physically making the boards. Sourcing and shipping components, which if you've read any headlines on supply chain stuff, that's its own bit of fun. There's assembly, which is often a completely different plant. Build and quality testing is literally just like, well, exactly what it sounds like. Making cases and accessories, so that's the pretty touch screens and the boxes they're in and everything, and then packaging and shipping. So getting a little bit more technical, but not super duper technical, hardware actually changes what languages you can use. So I'm sure you're all aware, you don't run massive like 32 core x86 processors in IoT devices. There normally are more MIPS for the most part. There might be some other stuff, but you know, that's predominantly the architecture. That leads to various constraints, not just in hardware, but you've got processing power, you've got things like the amount of addressable memory, you've got the cost of getting the memory into the devices and all these things. So you're very often resource constrained. Additionally, you're probably running some embedded Linux, like a busy box or whatever, because no one actually writes their own OS. Everyone takes a base OS and tweakifies it a bit. Same as in big vendor land where they inevitably take Linux or BSD or something and just tweak it. So then you've got the resource constraint, which means you've only got so much memory and so much processing you can do, which means that things like encryption and not writing things to volatile storage and that sort of thing gets a lot more difficult, which in terms of things like managing keys and that sort of thing is also challenging. And I'll come back to that in just a sec too. You've also got kernel drivers and black box drivers, which is super fun, because some chipset manufacturers, even when you are putting their chips into your hardware yourself, pull the thing that any of you that run Linux with a graphics card are used to, where it's like source? No. Binary driver. Off you go. Good luck. So you end up running bits of code that you may not even understand yourself on your hardware. And as I mentioned, key management is hard. It's like super duper duper hard. And if key management is hard and you're used to key management being hard, IoT key management is harder. And why is that? Well, it's what I just mentioned about the hardware life cycle, right? So how are you going to ship the keys? Am I going to say I'm not putting any keying material on devices? Or am I going to say I'm going to put a shared key on device, because I have to give that shared key to some fabrication facility that I don't own in God knows where. Are they going to have that key and put it on the devices? Or do the devices get individual keys, which we know is like way better, all the devices having individual keys, but does that mean that I have to give them some kind of root cert to sign all the individual keys? Because that also sounds like a fun idea. Or you can go the tofu route, which is the trust on first use, where devices do not have any keying material at all. And they're just set on first boot up to go grab some keys, which is great, because you've not exposed your key material to an external third party. But it is a little bit of an issue in that when your device is plugged in, it has no keying material. And then you're at risk of things like if things are man-in-the-middle on first use, you know, and that sort of thing. Next up is software supply chain. So as you're aware, these are typically like your Linux boxes, and they run some processes that are rewrote. They'll run processes that are part of the OS. They'll probably run some random open SSL version or whatever, too. And what you start to realize is that you have inadvertently become an OS vendor, because you took that base Linux and went, like, that's great, but the open SSL is out of date. I'm just going to update mine. Suddenly you're no longer using the base version. You can't just be updating the base version. You're updating whole firmware images. Also, unlike things like Mac OS or Windows or something, where you're used to vendors pushing updates, if you compile, build, and install an embedded Linux system, most of them are not doing OS updates at all. Package management, nothing. Which means that the IoT vendors have to do those updates and package it in, which is sometimes I think a thing that people don't anticipate, that they are now becoming like a whole OS vendor, effectively. A small OS, but a whole OS vendor. And then you get stuck in the urgh dependencies route. Another fun thing, if any of you are developers, is water agile full development. Because, like, most IoT companies are like these young startup, microservices, AWS, everywhere. And, you know, that's great. That is a great way of doing things right now. However, you can't modify hardware on the fly anywhere near as easily. The closest you can come is reflashing firmware. There is no, hey, would you mind yanking your thermostat off the wall, switching these chips out? No, you're great and ready for the next version. That's not going to happen. So you somehow have to manage agile development at the back end. So, like, APIs, mobile apps, all that sort of thing. With what's effectively waterfall methodology for the actual hardware itself that this is running on. Which leads us into the pain of logistics. And this is actually where I think a lot of IoT companies get their issues. So you have things, and they are in places. Those things being the IoT devices that, as a company, are shipping to consumers. And then places are places. So there's the factory they're built in. There's things like the warehouse. Because we don't all ship direct to people. They sit in, like, Costco or an AWS warehouse or something. An Amazon warehouse or something like that. Because consumers, you know, want to buy from a variety of places, not direct from vendors. This poses a small issue. Because the time to thing being online is unknown. That means if I write firmware that has an inherent vulnerability in it that needs to be fixed by disabling something on it or killing an API end point for me, I can't do that. Because there may be some device in a warehouse that's not going to be plugged in for six months. If I kill the vulnerable API end point and then someone plugs it in in six months and it's a brick, I am going to be shot by someone. So, you know, you have to keep that online. You have to find alternative methods of securing it. Similarly, devices themselves, you know, we send firmware updates to them and everything. But on first connection, they're still going to be running that six month old version of firmware or whatever it was that was put on at the factory. The other thing is you don't know the geography of the thing at the time. And by that, I mean, if you have various methods of updates, they don't all work everywhere. So, for example, if you're putting things into a corporate environment, there's often things like proxies and firewalls and stuff in the way. And unlike when you're getting big commercial gear put in, there isn't a whole these are your requirements for opening up your firewall that people read. Consumers plug it in and hope it goes. If they're blocked, they're blocked and we probably aren't going to get updates to them. And speaking of which, like, if anyone remembers what this is, so that's about as frequently as users will update if you don't make that automatically happen for them. So, if things are not updating on their own, then all those previous problems I mentioned, they're just going to stay. Like, they're not going to change. And then people like Bloomberg pull this stuff, which was fucking annoying. Anyway, so, as a heads up, if you start working in an IOT company and this headline comes out, surely afterwards you're in for like the least fun week of your life. But effectively this got debunked. Not debunked that it could happen, but debunked that it did happen. There are a couple of talks out there that are really worth watching if this is an area you're interested in and the TLDR is this is like supply chain attacks like fabrication plant switch chips, oh my god, the NSA's or Chinese government or whatever, panic. And people proved that they could happen, but Falken Dastar did a talk, Shmucon, which is really good. It shows there's probably a bunch of other areas in the supply chain that would be way easier to achieve this with. And actually some of the QA checks catch way more of this than you would think they would. So, on to the economics part. And the Bordens, this is because we're a Canadian company and we don't have Benjamins, so this is our equivalent. So, you've got the retail price of a piece of hardware. So, whatever, just imagine the number. You're going to take some taxes out of that because we have to pay some taxes. The retailer takes a chunk because they don't do it for free. Shipping and packaging, take that out of the price. Take out the physical parts and the labor to build it. Recouping some R&D costs because, of course, you're not making any money whilst you're designing a device. You only make money when you sell it. So, you've got to recoup those costs. There's marketing because it's all pretty blinky. Ads all over the place. There's Facebook banners to pay for and whatever else. And, oh yeah, hopefully some profit at the back. So, that's like your fixed costs. If you're a subscription service, you're lucky. You can probably roll the rest of your costs into the subscription. But if you're buying a device where you buy the device and that's it, the following also has to come out of the cost of that device. Oh, sorry. Wait. No subscription revenue? So, one, tech support. You probably want to be able to call someone and get support. Those people need to be paid, as do the phone lines. Customer service for complaints because people love IoT. And then you've got replacements and returns. Those cost money. Hosting and bandwidth and APIs and all that stuff in AWS. Building the free mobile app you're planning to use. And the free online portal. And then having deducted this entire list and the profit that the company probably wants to keep, with what's left, you can patch and update and do future development. You can operate your security team. You can pay for your pen tests and your bug bounties. People sometimes wonder why security work doesn't get done. This is actually a large part of it for people. You have to pay for that stuff. And there's only so much. And if you want to do more, you're going to jack up prices or cut from somewhere else. So, let's quickly talk updates because I've just seen the time. This is BMW's update process as published on the website. How many of you do this with your car regularly? I'm guessing probably close to zero. Maybe when it's in the shop or something. So, let's talk updates. Ideally, you want to do over-the-air signed updates that can't be rolled back to previous versions. So, people can only move forwards. They know it's safe from the vendor. And it's over-the-air and works. And great. P.S. That's what we do. Yes! A lot of the time that's not the case. Often it's over-the-air manually initiated and signed. If you're lucky. Over-the-air manually initiated. You're probably used to this with, like, Wi-Fi access points or something. It does the other updates. Yeah, other updates. Fine. Clicky clicky. There's the case with that BMW. A USB stick. None. A lot of them fall into none. Sometimes devices are end of life and they just don't care. Sometimes they haven't thought through update processes. But, like, not thinking this through makes it very hard to fix. Because how do you put a new update service on something that doesn't have an update service? It's a common pitfall, anyway. And speaking of updates, like, updates can go wrong. You've probably seen these in your life somewhere. Why is that bad? Well, in IoT, bad updates are bad. Number one, it's non-tech users that get them, right? It's often people who have no awareness of what's actually happening under the hood. So they're not going to fix it if it goes wrong. And if it goes wrong, the devices are often a brick. It's not like Windows or something where it goes, hey, would you like to go into safe mode and fix it mode or whatever else? Like, a brick is a brick. And when that's something like a door lock, a thermostat, light switches, people don't like brick devices for some reason. It also makes Agile hard. So when people say it takes a long time to fix vulnerabilities, often this is why. There's like a ton of testing because you have to test the upgrade from every version of firmware to every version of firmware on every version of hardware. If you don't, things just stop. And that's bad. And there's also, we have to be conscious of the environment. So we recycle, refurbish, and RMA. RMAs are returns. This also makes it hard because we have to handle the process of being able to get new devices out to customers. And not finally, almost finally, getting finally, so there's low friction deployment. You will know the magic, if any of you have bought Apple, especially the AirPods, for example, it's magical. You open the box and your phone goes, ah, you bought a thing, use a thing. That's the end of it. That's what everyone's shooting for in this department. They don't want people to be like, oh, and then I have to cable a thing and plug in this other cable and push this code, blah, blah, blah. People want to go, oh, I got this cool device, plug it in, works, done, great. So it brings in this box. And you see these triads all over the place in security. You can do all these. That's great. Absolutely no chance of getting all three nailed. It doesn't happen. And so you have to pick which one is removed. And for many people, that is security. I would like to think no one else, but it is often the case. But it's not all bad. Some companies are waking up. Some companies are getting abysmal press and being forced to wake up. And public awareness is moving up, which is forcing the hand of people. So in summary, everything's fine. Don't worry. It's all good. I am, like, two minutes away from being done. So, like, thanks for your time. And if there's any questions, I would love to take them. Otherwise, just thank you. I'll take it as a no.