1 00:00:00,280 --> 00:00:05,180 My name is Paul Suley. I'm a principal security consultant at Symantec. I joined Symantec 2 00:00:05,180 --> 00:00:11,280 after the AtStake acquisition. So prior to Symantec, I worked for AtStake. I still do 3 00:00:11,280 --> 00:00:16,660 the same job that I did for AtStake, just in a different organization. So I primarily 4 00:00:16,660 --> 00:00:21,940 focus on doing penetration testing of different environments. I don't have a handle because 5 00:00:21,940 --> 00:00:26,160 usually I find my name is confusing enough to stop most people. 6 00:00:28,260 --> 00:00:34,320 Okay, so what I'm going to go over, first I'm going to go over why kiosk security. Seems 7 00:00:34,320 --> 00:00:38,140 like sort of an out there talk. People haven't talked about it in a while. There's not a 8 00:00:38,140 --> 00:00:43,080 whole lot of information out there on it. Then I'm going to slowly walk up the OSI model 9 00:00:43,080 --> 00:00:47,500 in terms of the different level of protections. What I'm going to do is I'm going to go kind 10 00:00:47,500 --> 00:00:51,880 of fast through the first couple of levels because the first couple of levels are probably 11 00:00:51,880 --> 00:00:55,940 fairly intuitive to most of you. Put the computer in a lock. 12 00:00:56,160 --> 00:01:04,340 And then we're going to get into some of the application security aspects. And here where 13 00:01:04,800 --> 00:01:12,100 I'm going to focus is how kiosks interact with web apps and how developers need to think 14 00:01:12,100 --> 00:01:17,840 about their applications in the context of a web application, which not all of them are 15 00:01:17,840 --> 00:01:25,100 currently doing. So if you go to Merriam-Webster, it defines 16 00:01:26,160 --> 00:01:31,480 small standalone device providing information and services on the computer screen. Not the 17 00:01:31,480 --> 00:01:38,020 best definition I've seen out there. According to this, your PDA could be a kiosk. What I'm 18 00:01:38,020 --> 00:01:41,760 going to do is I'm going to expand it a little bit farther and say that a kiosk is a public 19 00:01:41,760 --> 00:01:46,640 accessible terminal that provides a single application for use by end users. 20 00:01:48,180 --> 00:01:55,580 This talk is primarily going to focus on Windows kiosks that run the Internet Explorer 21 00:01:56,160 --> 00:02:01,000 or a similar browser. There are many different kiosk platforms out there. Some run Linux, 22 00:02:01,180 --> 00:02:05,880 some run Windows, some run proprietary operating systems. For the sake of this discussion, 23 00:02:06,020 --> 00:02:10,420 I'm going to focus on the Windows-based operating systems because that's the ones you see out 24 00:02:10,420 --> 00:02:14,780 there most often. You probably have seen them in multiple places. You've probably 25 00:02:14,780 --> 00:02:19,920 used them. If you look around any of the casinos, you see them everywhere. You probably 26 00:02:19,920 --> 00:02:26,140 used one to get your plane ticket. It's come in here. Also, I have chosen to do kiosk 27 00:02:26,160 --> 00:02:29,980 security because the methodologies I'm going to be talking about apply to other arenas 28 00:02:29,980 --> 00:02:35,360 besides just kiosks. For instance, Citrix applications. Citrix applications operate 29 00:02:35,360 --> 00:02:39,840 similar to a kiosk. The only difference is you use your web browser and a plug-in 30 00:02:39,840 --> 00:02:44,980 web browser to access a single application instead of actually standing directly at the 31 00:02:44,980 --> 00:02:45,240 device. 32 00:02:48,700 --> 00:02:55,660 When we talk about kiosks, we have to understand where they sit within the environment. I found 33 00:02:55,660 --> 00:02:56,140 this one on my own. I'm not sure if you've seen this. I'm not sure if you've seen this. 34 00:02:56,140 --> 00:03:00,320 It's online. I sanitized it a little bit so I didn't pick on the particular vendor. 35 00:03:01,780 --> 00:03:08,260 You can see they tend to live in fairly complex environments. This particular one had a 80-gig 36 00:03:08,260 --> 00:03:12,980 hard drive on it for storing information that is processing. It also had internal connections 37 00:03:13,660 --> 00:03:18,460 to public servers where it was able to pull off media. It also had connections out to 38 00:03:18,460 --> 00:03:25,080 third-party websites. In terms of a public computer, kiosks are interesting to hackers 39 00:03:25,080 --> 00:03:25,500 because 40 00:03:26,140 --> 00:03:31,180 it's almost like sitting in a terminal within the environment. If you go sit at the admin's 41 00:03:31,180 --> 00:03:35,340 desk, you have a nice computer in front of you. You have access to internal resources. 42 00:03:35,600 --> 00:03:39,940 You have access to the internet. With a kiosk, you end up with a similar environment. 43 00:03:43,560 --> 00:03:49,140 Getting into why kiosks. Kiosks have been growing a lot recently. You can't go into 44 00:03:49,480 --> 00:03:55,180 any retail store without seeing them now. CEOs, CTOs, they all love them because they 45 00:03:56,140 --> 00:03:58,400 have access to the internet. It makes all the customers who believe that if you want 46 00:03:58,400 --> 00:04:01,960 something done right, do it yourself. It makes all of them happy because now you have 47 00:04:01,960 --> 00:04:06,060 the ability to go and do things yourself without having to actually interface with the store 48 00:04:06,060 --> 00:04:11,800 staff. The store staff are happy because they don't have to interface with you. It 49 00:04:11,800 --> 00:04:16,940 drives revenue. Most of the places, they find that people who are using the kiosks 50 00:04:16,940 --> 00:04:21,880 tend to stay in the store longer. They get their answers to their questions faster, etc. 51 00:04:22,240 --> 00:04:26,040 From a CTO perspective, in terms of risk, one of the things that you have to consider 52 00:04:26,140 --> 00:04:32,660 is PCI compliance, which is the Payment Card Industry Data Security Standard, which defines 53 00:04:33,320 --> 00:04:37,520 how environments are supposed to behave and how they're supposed to be protected if they 54 00:04:37,520 --> 00:04:43,280 store, transmit, or process credit card data. Some of the kiosks that I'm going to show 55 00:04:43,280 --> 00:04:48,240 in a few seconds actually do that, so they fall under PCI compliance. The PCI standards 56 00:04:48,240 --> 00:04:53,280 are fairly strict and fairly well-defined. Deploying a public terminal that correctly 57 00:04:53,840 --> 00:04:55,440 protects credit card data can be a challenge. 58 00:04:57,320 --> 00:05:03,640 For the IT administrator, it's basically the ultimate lockdown challenge. The Windows 59 00:05:03,640 --> 00:05:08,860 operating system was designed to be all things to all people. It's supposed to give you accessibility 60 00:05:08,860 --> 00:05:12,120 to everything. You're supposed to be able to get everywhere in the operating system 61 00:05:12,120 --> 00:05:16,500 within only a few clicks. When you're deploying a kiosk, what you're doing is you're trying 62 00:05:16,500 --> 00:05:22,340 to take that operating system and limit it down to do just one thing. That can be somewhat 63 00:05:22,340 --> 00:05:24,360 daunting to go through and turn all of those things off. 64 00:05:25,140 --> 00:05:29,280 There's network segmentation issues for the network admins in terms of keeping the kiosks 65 00:05:29,280 --> 00:05:34,020 away from protected devices. They can be difficult to manage. These are all out at 66 00:05:34,020 --> 00:05:39,880 retail stores, so there's usually not an IT person on site or near the environment. 67 00:05:40,400 --> 00:05:45,860 This may be in Oklahoma. It might be in South Dakota. You probably don't have IT admins 68 00:05:45,860 --> 00:05:49,320 at every single one of those places. The best thing you have is calling the store manager 69 00:05:49,320 --> 00:05:51,140 and hoping that he's a computer guy. 70 00:05:52,760 --> 00:05:58,080 Also, what I'm going to get into later is that these redefine the risk of web applications. 71 00:05:59,700 --> 00:06:03,580 I'm going to be taking a look at how vulnerabilities in web applications can actually be a threat 72 00:06:03,580 --> 00:06:08,640 to the kiosk environment and therefore a threat to your internal network. If you saw 73 00:06:08,640 --> 00:06:11,560 some of the Black Hat talks, a lot of the Black Hat talks focused around cross-site 74 00:06:11,560 --> 00:06:15,660 scripting. There was cross-site scripting in AJAX. There was cross-site scripting in 75 00:06:17,780 --> 00:06:21,120 MySpace. Spy Dynamics did a talk about cross-site scripting in Armageddon. There was cross-site 76 00:06:21,140 --> 00:06:26,820 scripting in Armageddon. For those of you who have attended Black Hat, some of this 77 00:06:26,820 --> 00:06:29,740 is going to cover cross-site scripting again to a certain extent. 78 00:06:32,140 --> 00:06:37,720 From the hacker's perspective, why is the hacker interested in a kiosk? This doesn't 79 00:06:37,720 --> 00:06:42,220 really require an advanced skill set, at least not until you actually get onto the device 80 00:06:42,220 --> 00:06:47,020 and into the terminal. Then how far you get into the network is dependent upon your skills 81 00:06:47,020 --> 00:06:48,440 from attacking from an internal resource. 82 00:06:51,140 --> 00:06:56,200 In many large corporations, I'll have the Skittle security model, crunchy on the outside, 83 00:06:56,340 --> 00:07:01,600 soft and chewy on the inside. Once you're on an internal network, it's not too hard 84 00:07:01,600 --> 00:07:08,800 to progress in. A lot of the attacks, they just actually use existing Windows functionality 85 00:07:08,800 --> 00:07:15,840 that somebody forgot to turn off. Similar to a server, you have potential access to 86 00:07:15,840 --> 00:07:21,120 multiple users. It's a single server that's used by multiple people. It's a single server. 87 00:07:21,140 --> 00:07:27,360 It's multiple users. Therefore, the pay-off is a little bit better. Many scenarios, it's 88 00:07:27,360 --> 00:07:32,060 an anonymous attack. You don't have to authenticate to these devices when you do an attack. You 89 00:07:32,060 --> 00:07:35,520 just have to walk up there and start using the terminal. Nobody asks who you are or why 90 00:07:35,520 --> 00:07:38,600 you're there or, in most cases, what you're doing. 91 00:07:43,180 --> 00:07:47,380 Jumping into the first-level attack that most people look at, the first-level attack is 92 00:07:47,380 --> 00:07:51,120 your physical security risks. Can you reboot the machine and get away? I haven't actually 93 00:07:51,140 --> 00:07:55,300 gets it started up in a different mode, can you control see out of the login, can you 94 00:07:55,300 --> 00:08:00,560 put sniffers in place, can you, maybe you just want to steal the hardware because it's 95 00:08:00,560 --> 00:08:01,920 got an 80 gig hard drive and you need one. 96 00:08:04,920 --> 00:08:09,640 So physical security risks are fairly straight forward, some of the more advanced devices 97 00:08:10,260 --> 00:08:13,840 also need to protect against things such as shoulder surfing because people are processing 98 00:08:13,840 --> 00:08:14,520 their credit cards. 99 00:08:15,660 --> 00:08:20,820 And there are multiple ways of protecting these, I'm actually going to show a couple 100 00:08:20,820 --> 00:08:22,580 of kiosks here in a second. 101 00:08:24,400 --> 00:08:28,120 In addition to the cases you put them in, you can also do things such as using thin 102 00:08:28,120 --> 00:08:32,320 terminal clients, you don't necessarily use a PC that has a bunch of USB jacks to it. 103 00:08:33,400 --> 00:08:37,460 You instead go with something that's a little closer to the Mac cube where there's not a 104 00:08:37,460 --> 00:08:38,640 whole lot of interface into it. 105 00:08:41,380 --> 00:08:44,880 Also depending on how secure you need it to be, there's also alarms, cameras and privacy 106 00:08:44,880 --> 00:08:46,100 screens that can be put into place. 107 00:08:46,780 --> 00:08:50,480 And actually one of the cool things on the more advanced kiosks is they have a floor 108 00:08:50,480 --> 00:08:50,700 mat. 109 00:08:51,320 --> 00:08:55,580 One of the things that people are concerned about when dealing with web applications or 110 00:08:55,580 --> 00:08:59,840 kiosk applications is what if the person walks away in the middle of doing something, right? 111 00:08:59,920 --> 00:09:04,840 You're in Target, you're using their kiosk, you look over and your kid's running away 112 00:09:04,840 --> 00:09:09,040 so you run away from the terminal to go chase the kid, all of your information is still 113 00:09:09,040 --> 00:09:09,620 there on the screen. 114 00:09:10,520 --> 00:09:13,540 One of the ways that they protect against that is they put floor mats in front of the 115 00:09:14,260 --> 00:09:17,040 kiosks which determine when people step onto them and step off of them. 116 00:09:17,200 --> 00:09:20,680 That way when you step off the mat, it triggers an application reboot. 117 00:09:20,680 --> 00:09:23,980 And therefore it clears all the information out of there and you don't have to worry 118 00:09:23,980 --> 00:09:26,900 about the application storing the data when you walk away. 119 00:09:28,840 --> 00:09:31,340 Just take a look at some of the different ones out there. 120 00:09:32,660 --> 00:09:36,300 These are two that I saw just at Office Max and Best Buy. 121 00:09:36,680 --> 00:09:39,080 These are your fairly simple deployments. 122 00:09:39,200 --> 00:09:44,240 All they're doing is locking up the CPU in the cabinet but you still have direct access 123 00:09:44,240 --> 00:09:49,120 to a normal keyboard, a normal monitor and in these cases a printer environment. 124 00:09:51,700 --> 00:09:54,920 To go one step farther, this is one from Vons. 125 00:09:55,220 --> 00:09:59,880 They also have custom cabinets so here you don't have to worry about people plugging 126 00:09:59,880 --> 00:10:07,000 stuff directly into the environment as much because it's in a protected case and the keyboard 127 00:10:07,000 --> 00:10:09,020 is actually integrated into the structure. 128 00:10:11,100 --> 00:10:14,760 And then you're going to have to forgive my photography here. 129 00:10:14,820 --> 00:10:19,300 My digital camera doesn't take really good pictures of black environments. 130 00:10:21,020 --> 00:10:24,580 In addition to using a customized keyboard, you can also control what keys are available 131 00:10:24,580 --> 00:10:26,080 to the user by not providing them. 132 00:10:26,600 --> 00:10:30,200 So here if you look at the keyboard, it's only got one big red mouse button as opposed 133 00:10:30,200 --> 00:10:31,160 to two mouse buttons. 134 00:10:31,420 --> 00:10:35,820 That limits the person's ability to be able to do right click attacks and get to the added 135 00:10:35,820 --> 00:10:37,000 functionality through right clicking. 136 00:10:37,960 --> 00:10:43,240 Also if you count the keys or you squint really hard, you'll notice that keys such as Alt 137 00:10:43,240 --> 00:10:46,660 and Control have been removed from the environment as well as the F keys. 138 00:10:47,260 --> 00:10:50,500 That is a really easy way for people to prevent attacks. 139 00:10:50,680 --> 00:10:56,540 From using specialized keys and key stroke combinations, Control C, Alt F4, et cetera. 140 00:10:57,760 --> 00:11:03,860 And I also took a picture of the Target one because you can't really read it on the projector 141 00:11:03,860 --> 00:11:10,280 screen but one of the things that the Target kiosk allows you to do is that first button 142 00:11:10,280 --> 00:11:17,040 says Target Visa Account Management and the other is Target Card Account Management. 143 00:11:17,520 --> 00:11:20,360 So if you want to actually manage your Target credit card. 144 00:11:20,360 --> 00:11:22,380 You can do that from a publicly accessible kiosk. 145 00:11:24,020 --> 00:11:28,240 I didn't take a look at the exact details because I didn't have a Target Visa card and 146 00:11:28,720 --> 00:11:33,800 I didn't particularly feel safe in putting it through the system. 147 00:11:34,340 --> 00:11:37,900 But some of these kiosks that are available, they do process credit card information. 148 00:11:38,260 --> 00:11:42,700 That's why PCI compliance issues come into place. 149 00:11:43,220 --> 00:11:46,480 On the far right hand side you can see the card swipe for you to swipe your card. 150 00:11:46,900 --> 00:11:49,140 If you're swiping your card that means there's tracked data. 151 00:11:49,140 --> 00:11:51,140 Which is being processed by the machine. 152 00:11:52,020 --> 00:11:55,180 Which is also a very sensitive topic for those who are under PCI compliance. 153 00:11:56,960 --> 00:11:59,300 Target isn't the only one that does this. 154 00:11:59,760 --> 00:12:05,220 I've seen card readers on things such as Home Depot kiosks, et cetera. 155 00:12:06,120 --> 00:12:09,360 But I'm going to be referring back to this deployment because this is one of the more 156 00:12:10,080 --> 00:12:15,540 sensitive deployments with the kiosks. 157 00:12:17,280 --> 00:12:18,420 I also noticed these. 158 00:12:18,420 --> 00:12:19,540 While searching out on the internet. 159 00:12:20,340 --> 00:12:22,680 I don't know if there's any physical vulnerabilities to these. 160 00:12:22,760 --> 00:12:24,360 I haven't actually physically seen these in person. 161 00:12:24,860 --> 00:12:30,020 I just couldn't imagine that a computer geek who is a hacker would walk past these and 162 00:12:30,020 --> 00:12:30,880 not try and screw with them. 163 00:12:36,660 --> 00:12:38,180 Moving on to the network layer. 164 00:12:38,340 --> 00:12:41,100 There's two attack scenarios and everyone thinks of the first attack scenario. 165 00:12:41,500 --> 00:12:45,640 Someone comes in, tries to break into the kiosk and goes from the kiosk outward. 166 00:12:46,060 --> 00:12:47,780 But there's also another attack scenario. 167 00:12:47,780 --> 00:12:50,340 The kiosk people don't always take into account. 168 00:12:50,780 --> 00:12:55,240 And that's a hacker in the internal network who wants to go in and actually take control 169 00:12:55,240 --> 00:12:55,980 of the kiosks. 170 00:12:57,080 --> 00:13:01,120 The kiosk in the VONS scenario, that takes your employment record. 171 00:13:01,300 --> 00:13:04,680 So if you want to apply for a job and you want to put your name, your address, all of 172 00:13:04,680 --> 00:13:08,180 the schools you went to, all that sort of personally identifiable information into it, 173 00:13:08,240 --> 00:13:09,140 you can. 174 00:13:09,240 --> 00:13:10,100 That might be of interest. 175 00:13:10,720 --> 00:13:15,560 Also, for somebody who wants to go after credit card data, they might not want to take 176 00:13:15,560 --> 00:13:17,240 the risk of going after the internal database. 177 00:13:17,240 --> 00:13:22,980 The internal database has firewalls, it has IDS systems, it has IMNs who are actively 178 00:13:22,980 --> 00:13:26,800 monitoring the devices, or at least that's what everyone hopes. 179 00:13:28,280 --> 00:13:32,760 But the kiosks tend to be just another PC that's out in the environment and aren't always 180 00:13:32,760 --> 00:13:33,660 monitored as heavily. 181 00:13:33,880 --> 00:13:40,280 So rather than going to where the data gets stored in the database, the attacker may choose 182 00:13:40,280 --> 00:13:43,540 to go to where the data is being input, which is the kiosk. 183 00:13:43,720 --> 00:13:47,220 And this also gets back to the fact that a lot of the data that's being stored in the 184 00:13:47,240 --> 00:13:49,260 kiosk, a lot of retailers have very flat, very open networks. 185 00:13:49,560 --> 00:13:54,360 So chances are the attacker could probably be able to ping the kiosk if they wanted to. 186 00:13:55,120 --> 00:13:59,640 And then once they have access to the network, there's a whole series of attacks you would 187 00:13:59,640 --> 00:14:00,200 be able to do. 188 00:14:00,420 --> 00:14:03,540 You can download your tools from the internet to do your malicious attacks. 189 00:14:04,640 --> 00:14:13,340 If the kiosk is using a wireless connection, because the kiosk is in a retail store that 190 00:14:13,340 --> 00:14:17,220 wasn't originally wired for networks, one of the ways you could generate wireless data 191 00:14:17,240 --> 00:14:20,120 as traffic to do your web cracking would be to use the kiosk. 192 00:14:20,180 --> 00:14:23,200 You would have an idea of what was being sent and when, because you're controlling the device. 193 00:14:26,440 --> 00:14:33,220 As far as DMZ setup for kiosks, network-wise it can be very complicated, especially if 194 00:14:33,220 --> 00:14:37,020 it's under PCI compliance, because you have to segment the network so specifically. 195 00:14:39,320 --> 00:14:41,640 You can see someone from Visa smiling in the corner there. 196 00:14:44,080 --> 00:14:46,140 But basically you have to have filters on everything. 197 00:14:46,340 --> 00:14:47,220 You have to have filters on everything. 198 00:14:47,220 --> 00:14:48,380 Filters on where it can go out on the internet. 199 00:14:49,140 --> 00:14:52,020 Traditionally with these web applications, you only want them to go to your store. 200 00:14:52,280 --> 00:14:55,800 You don't want them to go to evilhacker.com and start downloading to the tool. 201 00:14:55,920 --> 00:14:58,800 So you have to have network filters about where they can go out on port 80. 202 00:14:59,700 --> 00:15:02,500 You also have to have filters in terms of where they can get to internally. 203 00:15:03,660 --> 00:15:06,920 Chances are there's only a handful of places you want the kiosk to be able to touch internally. 204 00:15:10,120 --> 00:15:13,780 And if you don't have filters in place, the person's going to be able to roam the network 205 00:15:13,780 --> 00:15:14,300 pretty freely. 206 00:15:14,440 --> 00:15:16,800 And I actually have an example of that a little bit later. 207 00:15:18,100 --> 00:15:22,120 And then also to protect from the internal attacker, you want to make sure that access 208 00:15:22,120 --> 00:15:26,260 to the kiosk is limited to only the administrator's zone. 209 00:15:28,000 --> 00:15:29,760 Logging can be done a couple of ways. 210 00:15:30,140 --> 00:15:32,220 You can do the traditional syslog type setups. 211 00:15:32,520 --> 00:15:34,960 Some applications also log over the internet. 212 00:15:35,200 --> 00:15:40,700 So if you go out and you get a commercial off the shelf system, what some of these will 213 00:15:40,700 --> 00:15:43,500 do is they will post to a website all of their log data. 214 00:15:43,820 --> 00:15:47,200 The problem is that a lot of these kiosks are designed by people who don't know how to 215 00:15:47,220 --> 00:15:47,300 log. 216 00:15:47,300 --> 00:15:50,120 They're people who are concerned about ease of use and functionality. 217 00:15:50,560 --> 00:15:53,900 So they may not be logging everything that you need to be able to log. 218 00:15:54,060 --> 00:15:57,380 It's just going to log up time and CPU usage and things like that. 219 00:15:59,040 --> 00:16:04,120 And the other two are fairly straightforward in terms of protecting the environment. 220 00:16:06,140 --> 00:16:12,320 As far as host and application OS security risks, this is something that I've also used 221 00:16:12,320 --> 00:16:14,040 when attacking Citrix devices. 222 00:16:14,880 --> 00:16:15,440 And 223 00:16:17,220 --> 00:16:20,960 basically what it is is escaping the system in a way the administrator wasn't thinking 224 00:16:20,960 --> 00:16:23,420 about and using that for malicious intent. 225 00:16:23,860 --> 00:16:29,400 For instance, with SysTrade functionality, your anti-virus software may allow a user 226 00:16:29,400 --> 00:16:31,420 to create a log of the quarantine report. 227 00:16:32,420 --> 00:16:35,720 I used that once to create a file with a weird extension. 228 00:16:36,000 --> 00:16:40,840 I then double clicked on the file and that brought up the open with dialogue and that 229 00:16:40,840 --> 00:16:44,320 gave me a list of the applications that were already installed that I could use for the 230 00:16:44,320 --> 00:16:44,640 environment. 231 00:16:48,080 --> 00:16:48,540 So I'm going to go ahead and do that. 232 00:16:48,540 --> 00:16:51,840 Also attackers are going to be going after local file access. 233 00:16:52,200 --> 00:16:57,100 So you want to make sure you have your NTFS in place, abusing search functionality. 234 00:16:57,600 --> 00:17:00,480 I remember Internet Explorer is an integrated part of your operating system. 235 00:17:01,400 --> 00:17:05,120 So in addition to being able to search the net, you can also search your local hard drive 236 00:17:05,120 --> 00:17:06,020 and mounted drives. 237 00:17:08,600 --> 00:17:11,940 Other things people can do, you can use a customized shell. 238 00:17:12,440 --> 00:17:15,000 So what some kiosks do is it will have a... 239 00:17:15,000 --> 00:17:17,960 It will launch Internet Explorer by changing that reg key. 240 00:17:18,800 --> 00:17:23,140 So rather than launching explorer.exe, it will launch iExplorer.exe. 241 00:17:24,360 --> 00:17:29,580 The rest are some fairly good tools in terms of being able to lock down the environment. 242 00:17:30,280 --> 00:17:32,640 Microsoft published the Microsoft shared computer toolkit. 243 00:17:32,860 --> 00:17:35,200 This will have most of the OS stuff that you need to be able to do. 244 00:17:35,400 --> 00:17:41,680 It's a toolkit that was designed to allow people to secure public access terminals. 245 00:17:41,960 --> 00:17:44,900 So it walks through many of the controls that you would need to have in place. 246 00:17:45,000 --> 00:17:48,320 In order to lock down a public access terminal. 247 00:17:49,120 --> 00:17:50,400 So that's pretty good. 248 00:17:50,840 --> 00:17:53,460 This URL has some nifty XP registry tricks. 249 00:17:53,620 --> 00:17:57,800 So some of the things that I'm talking about, such as disabling print to file, et cetera. 250 00:17:58,400 --> 00:17:59,780 Those aren't as well documented. 251 00:18:00,200 --> 00:18:03,240 This URL actually has tons of little XP registry tricks. 252 00:18:03,860 --> 00:18:07,880 I won't profess that all of them are exactly accurate, but usually you can find out the 253 00:18:07,880 --> 00:18:10,520 reg key name and go to MSDN from there. 254 00:18:11,900 --> 00:18:14,060 And the last way you can secure the environment. 255 00:18:14,120 --> 00:18:14,880 If you want to go with Windows. 256 00:18:14,880 --> 00:18:17,300 Is use a Windows CE in kiosk mode. 257 00:18:20,300 --> 00:18:22,920 Microsoft publishes a Windows CE that's available for kiosks. 258 00:18:23,200 --> 00:18:28,800 Although when I was doing my research for the device, one of the things I found was 259 00:18:28,800 --> 00:18:35,560 a blog by an MSDN developer who said that even after two service packs, the Windows 260 00:18:35,560 --> 00:18:38,680 CE kiosk does not work for all installations. 261 00:18:39,020 --> 00:18:42,500 There are just too many different variations of how kiosks work and how kiosks are deployed 262 00:18:43,220 --> 00:18:44,860 for it to work for every installation. 263 00:18:44,860 --> 00:18:49,420 They took their best shot based on the most common practices. 264 00:18:53,440 --> 00:18:54,820 Some of these are fairly obvious. 265 00:18:54,920 --> 00:18:59,680 You probably know them if you've ever launched a public access terminal before, so I'm not 266 00:18:59,680 --> 00:19:00,860 going to go through each of them in depth. 267 00:19:01,220 --> 00:19:05,940 I'm going to talk a little bit about software restriction policy and IE in a few seconds. 268 00:19:08,320 --> 00:19:10,560 These are also fairly common attacks. 269 00:19:10,800 --> 00:19:14,500 These also help protect against some of the physical security attacks that you may see. 270 00:19:15,440 --> 00:19:25,200 Just to give an example of hidden functionality that people tend not to think about, if you 271 00:19:25,200 --> 00:19:31,500 go into IE and you do file and you go to print, one of the checkboxes is print to file. 272 00:19:32,140 --> 00:19:36,740 Sometimes overlooked, small checkbox, people don't think about it, but if you select print 273 00:19:36,740 --> 00:19:44,600 to file, it'll allow you to go here and if you have NTFS permissions in place, the worst 274 00:19:44,600 --> 00:19:49,940 they can do is write to temporary directories, unless of course they click on network, which 275 00:19:49,940 --> 00:19:56,300 then allows you to get to map network drive and if you don't see the drive you like, you 276 00:19:56,300 --> 00:19:58,580 can go out on the internet, start looking for one that you do like. 277 00:20:01,260 --> 00:20:04,840 So just from going from something as simple as print to file, you then are able to get 278 00:20:04,840 --> 00:20:11,080 to things such as map network drive, connect using a different user name, another functionality 279 00:20:11,080 --> 00:20:13,140 you probably didn't think was associated with that. 280 00:20:18,900 --> 00:20:23,960 With software restriction policy, I've seen a lot of people just deploy software restriction 281 00:20:23,960 --> 00:20:28,300 policy without really understanding that none of the solutions are perfect. 282 00:20:28,940 --> 00:20:35,440 For instance, one of the ways that software restriction policy works is it allows you 283 00:20:35,440 --> 00:20:39,320 to take a digital signature of the application and then you can create an allow or deny role 284 00:20:39,320 --> 00:20:40,780 based on that application. 285 00:20:41,480 --> 00:20:44,320 So for instance, let's say you don't want to allow command.exe to run. 286 00:20:45,220 --> 00:20:49,100 You import it into the software restriction policy, it creates a digital signature of 287 00:20:49,100 --> 00:20:54,440 command.exe and then no matter where I copy command.exe on the operating system, it won't 288 00:20:54,440 --> 00:20:55,620 run because the signature matches. 289 00:20:56,740 --> 00:21:00,340 Downside to that is you're basing your rules based off of the signature. 290 00:21:00,740 --> 00:21:05,280 So if you use a different application, then you can bypass the software restriction policy. 291 00:21:05,740 --> 00:21:12,720 For one engagement, all I did is I went off to FreshMeet and I found some person's customized 292 00:21:13,800 --> 00:21:19,460 command shell which had different font colors and allowed you to do tilde CDs and stuff 293 00:21:19,460 --> 00:21:19,860 like that. 294 00:21:20,000 --> 00:21:20,700 I downloaded that. 295 00:21:20,960 --> 00:21:24,660 I got command line access using a different command shell than the one Microsoft provides. 296 00:21:28,080 --> 00:21:33,440 Restrict run, if you're deploying Windows 2000, one of the ways you can restrict applications 297 00:21:33,440 --> 00:21:36,240 from running is using the restrict run process. 298 00:21:36,700 --> 00:21:42,700 However, this is name-based and it's only applications launched through Android. 299 00:21:42,700 --> 00:21:43,700 It's the Explorer process. 300 00:21:44,020 --> 00:21:47,900 If the application is launched through the system process, the application will still 301 00:21:47,900 --> 00:21:48,500 be allowed to run. 302 00:21:48,920 --> 00:21:53,220 So you need to be aware of the limitations of some of the tools that you're using. 303 00:21:54,480 --> 00:21:56,980 Whitelist is always the best solution but it is difficult to implement. 304 00:21:57,880 --> 00:22:02,240 Although in a kiosk situation, it's actually sometimes a little easier to implement because 305 00:22:02,240 --> 00:22:03,840 they are such specialized devices. 306 00:22:05,660 --> 00:22:07,380 And then there are the shortcuts, right? 307 00:22:07,440 --> 00:22:09,480 Control shift S to try to get to task manager. 308 00:22:10,500 --> 00:22:12,060 A lot of the people I've talked to. 309 00:22:12,060 --> 00:22:16,300 Who were willing to admit that they had broken into a kiosk at one time. 310 00:22:16,800 --> 00:22:20,020 Most of their attacks went through just doing simple key combinations. 311 00:22:22,540 --> 00:22:25,340 One thing I also noticed is the flying Windows key. 312 00:22:25,480 --> 00:22:31,560 For those Best Buy and Office Max solutions, you notice that they gave a Windows natural 313 00:22:31,560 --> 00:22:31,940 keyboard. 314 00:22:32,380 --> 00:22:35,820 Sometimes what happens is the developers are using their laptop. 315 00:22:36,120 --> 00:22:37,840 Their laptop is created by IBM. 316 00:22:38,060 --> 00:22:39,400 It doesn't have the flying Windows key. 317 00:22:39,580 --> 00:22:41,140 They don't actually think about it. 318 00:22:41,140 --> 00:22:44,020 Then it gets deployed to a kiosk that does have the flying Windows key. 319 00:22:46,480 --> 00:22:51,740 The flying Windows key actually does a few cool things even though it's mostly marketing. 320 00:22:52,560 --> 00:22:56,900 If you need the list of everything that can be shortcutted, I include the URL from Microsoft 321 00:22:56,900 --> 00:22:59,760 in terms of all the command line shortcuts. 322 00:23:02,020 --> 00:23:02,660 All right. 323 00:23:04,360 --> 00:23:08,720 That gets us to what I really wanted to get into which was the web application security 324 00:23:08,720 --> 00:23:09,320 risks. 325 00:23:10,440 --> 00:23:12,300 We've worked our way up, we're now at layer seven. 326 00:23:13,940 --> 00:23:17,020 A lot of times when you're doing a pen test of a web application, most people consider 327 00:23:17,020 --> 00:23:18,720 cross-site script to be less important. 328 00:23:19,060 --> 00:23:24,380 If you're not a target of phishing, if you're not WAMU or eBay, cross-site scripting may 329 00:23:24,380 --> 00:23:30,200 not have that large of an impact in your environment unless you're deploying a kiosk. 330 00:23:30,640 --> 00:23:31,760 I'll get to that in a second. 331 00:23:33,040 --> 00:23:36,860 Also administrators don't always think about authentication timeouts, what's left in cache, 332 00:23:37,080 --> 00:23:37,340 etc. 333 00:23:39,320 --> 00:23:43,320 They take the point of view, well, if you're using a public access terminal, you should 334 00:23:43,320 --> 00:23:43,860 have known better. 335 00:23:44,900 --> 00:23:48,720 We're working on our target alliances of people using home computers or trusted systems. 336 00:23:49,700 --> 00:23:54,340 However, if your company is actually deploying the kiosk, then there's an additional risk 337 00:23:54,340 --> 00:23:57,980 and you have an obligation to make sure that it works within your kiosk environment. 338 00:23:59,540 --> 00:24:04,380 So if some of you attended Black Hat, White Hat Security did a presentation on how to 339 00:24:04,380 --> 00:24:08,640 use cross-site scripting to be able to do and map attacks, to be able to establish URLs 340 00:24:08,640 --> 00:24:09,080 of site. 341 00:24:09,320 --> 00:24:11,900 It's visited, how to capture keystrokes, etc. 342 00:24:12,820 --> 00:24:15,420 None of these use traditional browser exploits. 343 00:24:15,460 --> 00:24:19,180 This was all using an existing functionality within the browser. 344 00:24:19,700 --> 00:24:24,040 JavaScript is a programming language which has security imposed upon it by the browser. 345 00:24:26,720 --> 00:24:32,320 So there's a lot you can do with just existing JavaScript functionality. 346 00:24:34,140 --> 00:24:37,900 Some of the people I talked to, they thought, well, yeah. 347 00:24:38,040 --> 00:24:39,300 But if somebody clicks on it, it's not going to work. 348 00:24:39,300 --> 00:24:46,540 It's going to close the browser or it shuts down the machine and it all goes away and 349 00:24:46,540 --> 00:24:49,300 you'd have to sit there for a while in order for some of this stuff to work, to go through 350 00:24:49,300 --> 00:24:50,160 all the unmapped ports. 351 00:24:51,160 --> 00:24:53,420 And so it seems fairly esoteric. 352 00:24:54,480 --> 00:24:57,540 However, in a kiosk environment, it's not as esoteric. 353 00:24:57,940 --> 00:25:01,380 The person who is controlling the browser is you. 354 00:25:01,500 --> 00:25:04,400 Therefore you will sit there as long as you need to in order to collect the information 355 00:25:04,400 --> 00:25:05,000 that you want. 356 00:25:05,620 --> 00:25:06,980 And you won't close the browser. 357 00:25:07,320 --> 00:25:08,020 And you'll... 358 00:25:08,020 --> 00:25:14,120 Allow their tools to be able to go through and connect to all the different ports and 359 00:25:14,120 --> 00:25:15,300 start to do an attack. 360 00:25:15,680 --> 00:25:21,720 And the best thing for you is if the machine actually does wipe the cache after you walk 361 00:25:21,720 --> 00:25:23,820 away, they've just wiped away all the evidence. 362 00:25:24,400 --> 00:25:28,080 Most of the attack was happening in process memory, so there's a very small footprint 363 00:25:28,080 --> 00:25:28,480 involved. 364 00:25:29,680 --> 00:25:31,460 You don't need to install a machine on the code. 365 00:25:31,740 --> 00:25:37,080 All you need to be able to do is use a cross-site scripting attack to redirect to a website which 366 00:25:37,080 --> 00:25:38,100 has their tool in place. 367 00:25:39,460 --> 00:25:45,040 So document location works just as well as having the location bar physically present 368 00:25:46,400 --> 00:25:47,760 within the environment. 369 00:25:50,160 --> 00:25:53,440 Another scenario that people don't look into is unplanned functionality. 370 00:25:53,920 --> 00:25:59,000 They don't necessarily integrate the kiosk into their QA of their website, because the 371 00:25:59,000 --> 00:26:01,080 developers aren't necessarily aware of it or they're not... 372 00:26:01,620 --> 00:26:04,080 They just haven't thought to actually include it within the environment. 373 00:26:04,500 --> 00:26:06,960 So this is a story I got off of security. 374 00:26:07,080 --> 00:26:11,220 It's a security focus where somebody broke into the application by accident. 375 00:26:11,860 --> 00:26:17,140 This web application, what it allowed you to do is configure a URL to go to after you 376 00:26:17,140 --> 00:26:17,780 click log out. 377 00:26:18,040 --> 00:26:21,220 So you click log out and if you wanted to go to news.google.com, it would send you 378 00:26:21,220 --> 00:26:22,200 to news.google.com. 379 00:26:23,020 --> 00:26:27,400 The problem here was they didn't think about how that would affect a kiosk environment. 380 00:26:27,920 --> 00:26:35,200 So here what the person did was they had that configured, they went in, they used the kiosk. 381 00:26:37,320 --> 00:26:42,480 The application tried to redirect them, they got a prompt, it came up and said, you're 382 00:26:42,480 --> 00:26:43,140 not allowed to do that. 383 00:26:43,300 --> 00:26:45,780 He went, okay, but it still sent them there anyway. 384 00:26:46,780 --> 00:26:50,040 Most of the Windows environments I've tested all tell me I can't do something and then 385 00:26:50,040 --> 00:26:50,860 allow me to do it anyway. 386 00:26:53,080 --> 00:26:55,240 So he was able to go out to the external location. 387 00:26:55,500 --> 00:26:59,360 Then he got a little more curious about where he could go and he also discovered that he 388 00:26:59,360 --> 00:27:02,440 could find the internal website fairly easily just by going through 1010 addresses. 389 00:27:03,920 --> 00:27:05,180 So, I'm going to show you a couple of examples. 390 00:27:05,200 --> 00:27:10,100 This is an example of developers not thinking about how their application works in a kiosk 391 00:27:10,100 --> 00:27:10,380 environment. 392 00:27:12,200 --> 00:27:19,360 One other example of not thinking about how your environment works with kiosks. 393 00:27:19,580 --> 00:27:23,180 This is the Amazon sign-off policy for how you log out. 394 00:27:24,880 --> 00:27:29,640 I recently went to Amazon, bought something off of Amazon and I was looking for the log 395 00:27:29,640 --> 00:27:29,940 out button. 396 00:27:30,040 --> 00:27:31,240 I couldn't find the log out button. 397 00:27:31,380 --> 00:27:35,140 So I went clicking through their fax and I found this. 398 00:27:35,140 --> 00:27:35,180 This is an example of developers not thinking about how their application works in a kiosk 399 00:27:35,200 --> 00:27:36,020 environment. 400 00:27:36,020 --> 00:27:37,300 So here's how they log out. 401 00:27:37,820 --> 00:27:40,920 As I told you there's three steps to this. 402 00:27:40,920 --> 00:27:41,880 One of them is to enter in blank information. 403 00:27:43,240 --> 00:27:47,660 The third step is to close the browser and if you're in a kiosk environment you're not 404 00:27:47,660 --> 00:27:48,540 allowed to close the browser. 405 00:27:49,860 --> 00:27:53,020 So that creates a scenario, right? 406 00:27:54,280 --> 00:28:02,120 Amazon went through all of their engineering with the one click purchase and is still working 407 00:28:02,120 --> 00:28:03,120 on the one click logout. 408 00:28:07,180 --> 00:28:13,660 so so there's all sorts of Internet Explorer risks right it's tied into 409 00:28:13,660 --> 00:28:18,500 everything sometimes you can abuse multimedia plugins to get to places 410 00:28:18,500 --> 00:28:23,620 within the environment sometimes you can use control keys if they're non 411 00:28:23,620 --> 00:28:26,800 terminated sessions then somebody could walk up and take over somebody's session 412 00:28:26,800 --> 00:28:31,300 once they walk away from the application they could potentially get file system 413 00:28:31,300 --> 00:28:40,120 access etc one of the things that Internet Explorer allows you to do is you 414 00:28:40,120 --> 00:28:43,560 can actually run Internet Explorer in kiosk mode this is standard install for 415 00:28:43,560 --> 00:28:51,440 Windows XP so wrong Internet Explorer if you're running kiosk mode it just looks 416 00:28:51,440 --> 00:28:55,140 like this it's essentially full screen mode without any of the buttons there 417 00:28:55,140 --> 00:29:00,380 are some downsides to this one of which is you can still open up locations and 418 00:29:00,380 --> 00:29:01,280 none of the control keys are going to be in the same location as the other 419 00:29:01,300 --> 00:29:09,500 control keys are limited off of there and all you need to do to launch it is type 420 00:29:09,500 --> 00:29:14,880 iExplorer.exe-k now launch in the kiosk mode so for the early when I when I 421 00:29:14,880 --> 00:29:19,080 mentioned you can change the command shell you log into what a lot of people 422 00:29:19,080 --> 00:29:24,240 who use that registry key do is they substitute this command line in for the 423 00:29:24,240 --> 00:29:28,800 shell and then when the application logs in it immediately launches Internet 424 00:29:28,800 --> 00:29:29,920 Explorer in full screen mode 425 00:29:38,540 --> 00:29:42,600 so while it does prevent people from being able to get to certain spots there 426 00:29:42,600 --> 00:29:46,700 are limits control keys still work frames with JavaScript navigation would 427 00:29:46,700 --> 00:29:50,260 still work etc so you still have to go through the process of locking down in 428 00:29:50,260 --> 00:29:53,860 ie and if you're going to do that one of the ways you can do that is the Internet 429 00:29:53,860 --> 00:29:57,580 Explorer administration kit this is fairly flexible gives you most of the 430 00:29:57,580 --> 00:30:01,240 controls you need it's published by Microsoft you can download it they have 431 00:30:01,240 --> 00:30:05,200 documentation that explains all the different group policy settings the 432 00:30:05,200 --> 00:30:09,060 third set way of going about it this is what a lot of commercial off-the-shelf 433 00:30:09,060 --> 00:30:13,560 applications do is they put a wrapper around Internet Explorer so they'll use 434 00:30:13,560 --> 00:30:18,840 a container object model and what they'll do is embed Internet Explorer 435 00:30:18,840 --> 00:30:23,220 into the application that prevents you from having direct access to the to 436 00:30:23,740 --> 00:30:27,560 Internet Explorer their application captures all the keystrokes first and 437 00:30:27,560 --> 00:30:30,780 then feeds it into Internet Explorer as needed 438 00:30:31,240 --> 00:30:34,420 this is a fairly successful way for most people to lock down their applications 439 00:30:36,760 --> 00:30:40,400 but you still need to go through and go through a penetration test to make sure 440 00:30:40,400 --> 00:30:45,240 that the controls within Internet Explorer are still secure because a 441 00:30:45,240 --> 00:30:48,480 cross-site scripting attack would still work potentially in this scenario as 442 00:30:48,480 --> 00:30:57,180 well if you're going to lock down on ie the manual way this is just a small list 443 00:30:57,180 --> 00:31:01,000 of some of the things that you wouldn't want to lock down I'm not going to go 444 00:31:01,000 --> 00:31:03,680 through each of them some of the more important ones are things such as file 445 00:31:03,680 --> 00:31:08,540 which disabling a file protocol so you can't get local drive access if you're 446 00:31:08,540 --> 00:31:13,040 using Mozilla instead there are things that you want to be able to lock down 447 00:31:13,040 --> 00:31:18,820 there as well such as about config in terms of being able to protect the 448 00:31:18,820 --> 00:31:22,900 environment you need to make sure that you have all of your security settings 449 00:31:22,900 --> 00:31:27,660 in place etc you have to keep in mind that there are multiple multiple ways to 450 00:31:27,660 --> 00:31:30,980 get to the Internet Explorer security settings for instance if you have a 451 00:31:31,000 --> 00:31:34,960 mobile device you can get there from going to the privacy report so if you go 452 00:31:34,960 --> 00:31:39,360 into ie and you select privacy report from the pull down menu from there you 453 00:31:39,360 --> 00:31:43,160 can get into the settings you can get to those settings through using Windows 454 00:31:43,160 --> 00:31:46,580 media player so if the site has Windows media player and you're right-clicking 455 00:31:46,580 --> 00:31:50,880 around in there you can get to those settings so you need to make assume that 456 00:31:50,880 --> 00:31:55,640 somebody's going to be able to get there in most in most cases if you're a host 457 00:31:55,640 --> 00:31:59,740 operating system admin you need to assume that the person is going to break 458 00:31:59,740 --> 00:32:00,360 out of the application 459 00:32:01,000 --> 00:32:04,140 you need to start from that assumption and then secure your box from there 460 00:32:06,820 --> 00:32:10,700 other control Internet Explorer navigation keys again you're probably 461 00:32:10,700 --> 00:32:15,060 familiar with most of these one thing that administrators tend to overlook is 462 00:32:15,060 --> 00:32:22,820 control l also current traits and open dialog box as well as control o just a 463 00:32:22,820 --> 00:32:27,500 few more shortcut keys there are a lot of keys you have to lock down this is 464 00:32:27,500 --> 00:32:29,740 part of the reason why people use the customized keyboards 465 00:32:31,000 --> 00:32:36,660 it's just too much of a pain to go back and remap a lot of these keys as far as 466 00:32:36,660 --> 00:32:40,060 application security controls there's a lot of different things that you can do 467 00:32:40,940 --> 00:32:43,860 one of the things that you can do is you can reboot the application after a 468 00:32:43,860 --> 00:32:48,440 period of inactivity so if nothing's happened within the application within 469 00:32:48,440 --> 00:32:52,900 10 minutes 15 minutes go ahead and reboot the application that way it forces 470 00:32:52,900 --> 00:32:57,320 a clear the cached should be cleared and causes personal information to be able 471 00:32:57,320 --> 00:32:58,860 to be to log 472 00:32:58,860 --> 00:32:59,120 log 473 00:32:59,120 --> 00:33:02,060 If you don't want to reboot the application, you can also use wiper software. 474 00:33:02,680 --> 00:33:04,560 Just be careful you don't actually wipe the logs. 475 00:33:04,780 --> 00:33:05,940 You might need those later. 476 00:33:08,760 --> 00:33:12,040 Another thing that some people do, which is actually worthwhile, especially if you're 477 00:33:12,040 --> 00:33:14,680 fairly kiosk heavy, is come up with a custom website. 478 00:33:15,360 --> 00:33:19,080 If your normal website links off to third parties, you may go through all the trouble 479 00:33:19,080 --> 00:33:23,220 of getting cross-site scripting eliminated from your environment, but you have no control 480 00:33:23,220 --> 00:33:26,800 over what the third party site does, and you're probably not keeping up with what 481 00:33:26,800 --> 00:33:29,340 the third party is utilizing in their environment. 482 00:33:30,220 --> 00:33:32,360 So what some people do is they set up a custom website. 483 00:33:32,920 --> 00:33:38,620 That way there are no links to third parties, and they can limit the functionality that 484 00:33:38,620 --> 00:33:41,820 the person can interact with to make sure they don't do more with the account than 485 00:33:41,820 --> 00:33:42,400 they really should. 486 00:33:44,380 --> 00:33:49,340 As far as utilizing a custom application, there are several commercial solutions. 487 00:33:50,160 --> 00:33:54,240 If you go on the source forage or fresh meat, you can find some entry-level ones which range 488 00:33:54,240 --> 00:33:55,220 from $80 to $250. 489 00:33:55,220 --> 00:33:58,660 These will mostly go through and set your group policy settings for you. 490 00:34:00,520 --> 00:34:03,980 Some of these other ones are just some of the bigger names in the field. 491 00:34:05,360 --> 00:34:11,420 NetKey is fairly popular in terms of setting up environments and doing custom environments 492 00:34:11,420 --> 00:34:15,520 for you and doing custom applications, but again you have to keep in mind they're not 493 00:34:15,520 --> 00:34:19,440 considering your website a lot of times when they're designing these solutions. 494 00:34:21,400 --> 00:34:25,200 As far as open source solutions go, there are several open source solutions available. 495 00:34:25,200 --> 00:34:27,540 One is OpenKDE Kiosk. 496 00:34:29,240 --> 00:34:34,480 This is of course Linux-based, but what it allows you to do is lock down the KDE environment 497 00:34:34,480 --> 00:34:35,880 using name-value pairs. 498 00:34:39,820 --> 00:34:41,320 That can get a little bit tedious. 499 00:34:41,500 --> 00:34:44,740 They also have a kiosk administration tool so you can go in and do check boxes for it. 500 00:34:46,280 --> 00:34:49,480 I haven't taken a complete look at it, but if you're more of a Linux person and you prefer 501 00:34:49,480 --> 00:34:51,220 Linux, that's one solution. 502 00:34:52,300 --> 00:34:54,740 There is a custom Chrome for Mozilla. 503 00:34:55,920 --> 00:34:59,620 I took a look at it and it does the job it needs to do, however the code is a little 504 00:34:59,620 --> 00:35:00,100 bit kludgy. 505 00:35:01,160 --> 00:35:06,140 In terms of customizing it for your particular environment, it's not necessarily the strongest 506 00:35:06,140 --> 00:35:07,460 code base to work off of. 507 00:35:08,180 --> 00:35:09,660 Then there are also bootable CDs. 508 00:35:10,440 --> 00:35:14,240 Another approach that many people take is they will say, okay, I'm not going to do the 509 00:35:14,240 --> 00:35:18,480 hard drive, I'm not going to do the install, I'm not going to take the risk of them writing 510 00:35:18,480 --> 00:35:18,900 to disk. 511 00:35:19,040 --> 00:35:20,620 What I'm going to use is a customized CD. 512 00:35:22,880 --> 00:35:25,180 There's Instant Kiosk, Kiosk CD, BoothBase. 513 00:35:25,200 --> 00:35:27,080 BoothBase is fairly popular. 514 00:35:28,000 --> 00:35:33,720 It runs off of a customized Linux kernel called damn small Linux, so limited Linux kernel. 515 00:35:36,960 --> 00:35:39,940 It's an okay solution, but one of the things you also have to keep in mind when you do 516 00:35:39,940 --> 00:35:45,000 these CD solutions is that patch management for a CD only solution is difficult. 517 00:35:45,660 --> 00:35:51,340 If you want to upgrade because there's a Mozilla browser exploit out there, you have to go 518 00:35:51,340 --> 00:35:54,700 and re-burn a whole bunch of CDs and mail them all to your retail locations. 519 00:35:55,940 --> 00:35:59,520 Then have somebody go in and switch out the CD that's being used. 520 00:35:59,760 --> 00:36:04,620 It's not necessarily practical for a lot of businesses, which is why sometimes I go with 521 00:36:04,620 --> 00:36:05,780 a full operating system install. 522 00:36:07,040 --> 00:36:13,740 The URL I provided at the bottom, this is a charity which takes old machines and creates 523 00:36:13,740 --> 00:36:14,800 public web stations. 524 00:36:15,300 --> 00:36:19,880 For instance, the people affected by Katrina, you could send them your old hardware. 525 00:36:20,060 --> 00:36:25,040 They throw in a BoothBox CD and they set up public web stations for people who are affected 526 00:36:25,200 --> 00:36:26,000 in the Gulf Coast region. 527 00:36:30,600 --> 00:36:35,440 One of the last things I wanted to go through in terms of security is also operation security. 528 00:36:37,400 --> 00:36:41,060 Most of the time when I've gone to environments, no one ever asked me what I'm doing. 529 00:36:41,240 --> 00:36:45,120 No one asked me why I was taking photos of the kiosks for the slide show. 530 00:36:47,520 --> 00:36:52,100 For clients that have actually had me go in and try to affect an environment without warning 531 00:36:52,100 --> 00:36:55,180 the employees first just to see what we could do. 532 00:36:55,180 --> 00:36:56,240 How long we could stand there. 533 00:36:56,400 --> 00:37:01,460 In most cases, we could stand there for a really long time and infect the environment. 534 00:37:04,020 --> 00:37:07,940 Employee education can also be important in terms of warning people that someone may 535 00:37:07,940 --> 00:37:09,240 try to alter these environments. 536 00:37:10,080 --> 00:37:15,380 If it's a Target kiosk or a similar setup, they may try to put one of the card readers 537 00:37:15,380 --> 00:37:17,000 over the top of the existing card reader. 538 00:37:19,320 --> 00:37:21,680 People need to be able to be on the lookout for that. 539 00:37:22,460 --> 00:37:22,860 . 540 00:37:23,680 --> 00:37:26,860 If you're thinking about actually walking out of here and starting to test some of the 541 00:37:26,860 --> 00:37:32,040 kiosks, one of the things that you should probably think of is that casinos tend to 542 00:37:32,040 --> 00:37:35,980 have better video monitoring than your average retail store. 543 00:37:36,560 --> 00:37:40,780 Also if you break out of the kiosk and you think, well I'll break out, see where I can 544 00:37:40,780 --> 00:37:44,280 get to and then put it back, you can't always get it back the way you found it. 545 00:37:45,400 --> 00:37:46,300 Or so I've heard. 546 00:37:47,300 --> 00:37:47,700 . 547 00:37:48,980 --> 00:37:51,920 Then you've got to go find somebody and say, stupid computer, broke. 548 00:37:52,440 --> 00:37:52,840 . 549 00:37:54,080 --> 00:37:57,720 If you're designing web applications you need to make sure that the kiosk is 550 00:37:57,720 --> 00:37:59,660 integrated in your software development life cycle. 551 00:37:59,860 --> 00:38:05,440 That your web developers are aware of the kiosk scenario and they're designing their 552 00:38:05,440 --> 00:38:10,220 cookies to be temporary only or they're designing a specialized website or they're considering 553 00:38:10,220 --> 00:38:12,600 how the functionality is going to affect the kiosk. 554 00:38:12,740 --> 00:38:18,740 So if it's going to redirect you, like the example I found, something that needs to be 555 00:38:18,740 --> 00:38:20,740 considered with these kiosks. 556 00:38:20,840 --> 00:38:21,000 . 557 00:38:21,580 --> 00:38:26,020 It also needs to be integrated into incident response programs, which I will get to shortly. 558 00:38:26,600 --> 00:38:31,320 And of course you can always have somebody review the deployment of the kiosk. 559 00:38:33,240 --> 00:38:36,840 As far as kiosk security and headlines, this was actually a public access terminal, but 560 00:38:38,180 --> 00:38:41,040 it was interesting enough that I thought I would mention it. 561 00:38:41,860 --> 00:38:46,840 Basically what somebody did is they went into kiosk and they implanted a sniffing program 562 00:38:46,840 --> 00:38:52,260 called Invisible Key Logger Stealth, it was kind of popular a while back, at 13 kiosk stores 563 00:38:52,260 --> 00:38:53,240 sprinkled around Manhattan. 564 00:38:54,820 --> 00:38:56,720 This occurred over a period of two years. 565 00:38:57,080 --> 00:38:59,100 The guy just kept going back in there and installing it. 566 00:39:01,280 --> 00:39:08,020 And it's not positive whether it was like this at this time, but one of Kinko's solutions 567 00:39:08,020 --> 00:39:11,740 was to completely re-image their kiosks on a weekly basis. 568 00:39:12,020 --> 00:39:15,060 That way if you installed a keystroke logger, it would be wiped away. 569 00:39:15,060 --> 00:39:24,080 It was apparently worth this guy's time to keep coming back anyway, and keep stealing 570 00:39:24,080 --> 00:39:25,580 public information. 571 00:39:26,300 --> 00:39:28,180 And I've got the URL if you want to see the full story. 572 00:39:29,400 --> 00:39:35,060 This also created a problem too when the FBI was going after a terrorist a while back. 573 00:39:36,140 --> 00:39:40,480 Terrorist was using Kinko's to go out and communicate with other terrorists. 574 00:39:40,740 --> 00:39:44,680 The fact that Kinko's completely re-imaged their kiosks actually put a gum in the works, 575 00:39:44,740 --> 00:39:45,040 and they were able to get away. 576 00:39:45,060 --> 00:39:49,180 Because along with completely re-imaging the OS, they also re-imaged all the logs. 577 00:39:49,880 --> 00:39:54,480 So the FBI was somewhat stuck there in terms of being able to figure out what this guy 578 00:39:54,480 --> 00:39:55,420 could do. 579 00:39:58,580 --> 00:40:02,380 In general, if you're thinking about deploying kiosks, they are fairly popular. 580 00:40:02,740 --> 00:40:08,460 Most of the people I've talked to have either deployed a kiosk themselves, or are in the 581 00:40:08,460 --> 00:40:10,720 process of deploying them, or have broken into them for fun. 582 00:40:11,840 --> 00:40:13,280 But there are major security risks. 583 00:40:13,320 --> 00:40:14,400 They're very hard to lock down. 584 00:40:14,940 --> 00:40:18,880 Usually, it doesn't take a really qualified hacker to break into these things. 585 00:40:18,960 --> 00:40:19,560 They're very simple. 586 00:40:20,580 --> 00:40:24,140 I didn't release any ODays or tools with this because you don't need them. 587 00:40:25,600 --> 00:40:30,480 In most cases, you're using existing functionality, or you're using a simple attack such as cross-site 588 00:40:30,480 --> 00:40:31,860 scripting in order to get into the environment. 589 00:40:33,800 --> 00:40:35,920 Also it requires security at every level. 590 00:40:37,320 --> 00:40:41,680 The environments that we've looked at in the past, they tend to have the skilled security 591 00:40:41,680 --> 00:40:42,160 model. 592 00:40:42,160 --> 00:40:48,440 So once you break into the kiosk, you are able to get everywhere else you think you 593 00:40:48,440 --> 00:40:49,040 might need to go. 594 00:40:50,980 --> 00:40:52,780 You also need to think about your web applications. 595 00:40:53,160 --> 00:40:56,920 If you're going to point your browser at these web applications, what does that mean 596 00:40:56,920 --> 00:40:57,600 to your environment? 597 00:40:58,180 --> 00:41:00,540 What do cross-site scripting vulnerabilities mean to your environment? 598 00:41:00,760 --> 00:41:03,140 What do permanent cookies mean to your environment? 599 00:41:05,660 --> 00:41:08,660 SSL versus HTTP, how does that work within the environment? 600 00:41:08,800 --> 00:41:10,000 How does that work within a kiosk? 601 00:41:13,380 --> 00:41:17,400 How well do you have the browser itself locked down against several common attacks? 602 00:41:20,420 --> 00:41:22,540 I finished a little bit earlier than I expected. 603 00:41:23,540 --> 00:41:24,580 Are there any questions? 604 00:41:25,640 --> 00:41:25,980 Yeah? 605 00:41:26,900 --> 00:41:27,400 Male audience member 2. 606 00:41:35,880 --> 00:41:40,720 The point with that is the implementation within the environment. 607 00:41:40,880 --> 00:41:42,140 If you have a skilled security environment. 608 00:41:44,400 --> 00:41:48,180 The question was, what was the point of disabling SSL v2 in the environment? 609 00:41:49,260 --> 00:41:52,240 One of the threats would be the internal attacker who's sniffing the environment. 610 00:41:53,640 --> 00:41:55,240 Most people are using the kiosk. 611 00:41:55,260 --> 00:41:56,120 It's not their personal computer. 612 00:41:56,400 --> 00:41:59,180 They will probably just go ahead and click OK, pass any security warning messages. 613 00:42:02,140 --> 00:42:06,340 Also in terms of monitoring and knowing when somebody's going to do something, when somebody's 614 00:42:06,340 --> 00:42:10,280 going to go to a site, it's much more likely in a kiosk scenario that they would know when 615 00:42:10,280 --> 00:42:10,840 that's going to happen. 616 00:42:10,840 --> 00:42:13,880 Because you can physically see the person doing it within the environment. 617 00:42:15,500 --> 00:42:16,040 Male audience member 3. 618 00:42:17,040 --> 00:42:17,580 Male audience member 4. 619 00:42:17,580 --> 00:42:22,200 How do you like the use of Windows XP embedded for this application? 620 00:42:22,560 --> 00:42:26,540 And whether you have any specific suggestions how to secure Windows XP embedded systems? 621 00:42:27,200 --> 00:42:27,220 Male audience member 5. 622 00:42:27,920 --> 00:42:29,560 I only heard part of that. 623 00:42:30,480 --> 00:42:32,520 Specific recommendations of Windows XP and what? 624 00:42:32,740 --> 00:42:32,820 Male audience member 6. 625 00:42:33,060 --> 00:42:36,700 I'm talking about the Windows XP embedded edition. 626 00:42:37,020 --> 00:42:37,340 Male audience member 7. 627 00:42:37,340 --> 00:42:37,560 Okay. 628 00:42:37,640 --> 00:42:37,980 Male audience member 8. 629 00:42:37,980 --> 00:42:39,660 I'm talking about Windows XP embedded for Windows XP embedded, which is a lot more suitable 630 00:42:39,660 --> 00:42:46,240 for actual kiosk designs since you can disable most of the stuff right at the OS level. 631 00:42:46,460 --> 00:42:47,980 And why are people not using it? 632 00:42:48,780 --> 00:42:49,260 Male audience member 9. 633 00:42:49,260 --> 00:42:50,240 Why are people not using it? 634 00:42:50,480 --> 00:42:52,500 Um, different reasons. 635 00:42:52,660 --> 00:42:57,440 Some people believe they can go all in alone and just design their own kiosk. 636 00:42:57,900 --> 00:43:01,680 There are environments which do use the Windows XP embedded environment. 637 00:43:02,060 --> 00:43:03,760 Like I mentioned earlier, there was a Windows. 638 00:43:04,120 --> 00:43:07,960 I found the Windows CE blog where the guy said they've got a lot of stuff embedded in 639 00:43:07,960 --> 00:43:11,320 tried to deploy Windows CE in multiple environments and there's just too 640 00:43:11,320 --> 00:43:17,660 diverse of in this situation for it so embedded systems sometimes will work in 641 00:43:17,660 --> 00:43:21,800 terms of limiting the number of attacks also proprietary operating systems will 642 00:43:21,800 --> 00:43:26,600 work in terms of limiting the type of attacks what I found the interesting 643 00:43:26,600 --> 00:43:30,540 thing I found about Windows XP embedded because I was kind of curious about one 644 00:43:30,540 --> 00:43:35,860 kiosk project it's basically a full copy of Windows XP professional mm-hmm except 645 00:43:35,860 --> 00:43:42,160 that you get to be able to customize every aspect of the OS and still be able 646 00:43:42,160 --> 00:43:48,180 to apply a standard source pack against it that's about as close as you get to 647 00:43:48,180 --> 00:43:52,680 custom windows in fact I'm considering deploying Windows XP embedded as a 648 00:43:52,680 --> 00:43:57,720 desktop OS rather than a general-purpose desktop OS at this point yeah patching 649 00:43:58,700 --> 00:44:02,900 patching can be critical for these environments and difficult to do given 650 00:44:02,900 --> 00:44:03,860 the network segmentation 651 00:44:05,860 --> 00:44:10,620 also in terms of predicting downtime and things like that next what about 652 00:44:10,620 --> 00:44:14,500 touchscreen terminals with no keyboard what sort of spice there might be to you 653 00:44:14,500 --> 00:44:20,020 know then that some touchscreen terminals still have environments or 654 00:44:20,020 --> 00:44:24,080 things that you can do within the environment it depends on what type of 655 00:44:24,080 --> 00:44:28,320 buttons they have in place I know one person I was talking to said that they 656 00:44:28,320 --> 00:44:31,300 were able to get down to the shell because they knew that with the 657 00:44:31,300 --> 00:44:35,000 touchscreen environment like if you touch the two corners in the bottom and 658 00:44:35,000 --> 00:44:35,320 then you touch 659 00:44:35,320 --> 00:44:38,020 touch the two corners and the top, it would kill the application and get you to the desktop. 660 00:44:39,660 --> 00:44:45,520 They are much, they can be safer. It depends also on the software you're deploying. For 661 00:44:45,520 --> 00:44:51,420 instance, I believe NetKey, they provide touch screen environments but they still use JavaScript 662 00:44:51,420 --> 00:44:57,880 and VBScript and they still process the original home page. So it depends on the vendor in 663 00:44:57,880 --> 00:45:01,640 terms of how you're doing the touch screen environment. But that would be the next step 664 00:45:01,640 --> 00:45:06,260 up from not provide, from just providing a keyboard with limited keys. 665 00:45:06,620 --> 00:45:10,180 But the only sort of exploit type of things would be that touching the screens 666 00:45:10,180 --> 00:45:13,300 and getting out of the application type of stuff. There isn't some other way around that. 667 00:45:14,540 --> 00:45:17,300 Well, once you get to the desktop, sometimes the touch screens will also allow 668 00:45:17,300 --> 00:45:17,960 you to move the mouse. 669 00:45:18,400 --> 00:45:18,760 Yeah. 670 00:45:18,760 --> 00:45:19,060 So... 671 00:45:19,060 --> 00:45:20,260 Yeah, you have that, sure. 672 00:45:20,480 --> 00:45:23,880 So from there, it depends on where you could get to in terms of clicking within 673 00:45:23,880 --> 00:45:28,160 the environment. But it is much more limited in those scenarios. 674 00:45:28,600 --> 00:45:28,860 Thanks. 675 00:45:29,100 --> 00:45:29,520 All right. 676 00:45:30,980 --> 00:45:31,620 Next question. 677 00:45:32,240 --> 00:45:37,400 I had a question. Do they make, I saw earlier you showed a list of like kiosk 678 00:45:37,400 --> 00:45:44,500 applications. Do they make like an application that can go in and say like intercept the 679 00:45:44,500 --> 00:45:48,760 keyboard and the mouse functions and pipe it through it before allowing it through? 680 00:45:48,820 --> 00:45:52,820 Essentially putting the operating system sort of asleep in the background and then 681 00:45:53,460 --> 00:45:57,080 everything, you know, as far as input and output goes is filtered entirely through the 682 00:45:57,080 --> 00:46:00,860 application that's been written dedicated to the kiosk application. 683 00:46:01,260 --> 00:46:01,620 Yeah. 684 00:46:01,620 --> 00:46:01,880 Do you have anything for the guys in the audience? 685 00:46:01,880 --> 00:46:01,960 Yeah, thanks. 686 00:46:01,960 --> 00:46:06,100 Yes. That is actually one of the solutions that they do in terms of around customized 687 00:46:06,100 --> 00:46:11,780 browsers is that they will write a wrapper application so that you're not directly interfacing 688 00:46:11,780 --> 00:46:18,400 with the software. So you would launch that application as the shell environment and 689 00:46:18,400 --> 00:46:21,420 then all the keystrokes and all the events would go to that application. That application 690 00:46:21,420 --> 00:46:22,740 can choose whether or not to honor those. 691 00:46:23,280 --> 00:46:23,680 Okay. 692 00:46:24,840 --> 00:46:31,460 So there are applications that do that. I believe NetKey does that to a certain extent. 693 00:46:31,560 --> 00:46:31,600 Yeah. 694 00:46:31,600 --> 00:46:34,680 although they're a little bit more browser-based. 695 00:46:34,860 --> 00:46:36,900 I believe KISS and KeyAware do that, 696 00:46:37,000 --> 00:46:40,100 but my memory's a little bit vague 697 00:46:40,100 --> 00:46:41,560 in terms of the differences between some of these. 698 00:46:43,480 --> 00:46:46,940 I was going to say to the guy that previously asked the question 699 00:46:46,940 --> 00:46:48,340 who was talking about the touchscreen thing, 700 00:46:48,780 --> 00:46:51,520 I was going to say I do remember a hack at a college 701 00:46:51,520 --> 00:46:53,300 where you could actually take a key 702 00:46:53,300 --> 00:46:55,200 and rub it in the corner of the screen 703 00:46:55,200 --> 00:46:56,920 and actually cause the taskbar to kick up. 704 00:46:59,480 --> 00:47:02,940 Yeah, there are different shortcuts for different vendors. 705 00:47:03,140 --> 00:47:04,840 It's a security through obscurity thing. 706 00:47:05,660 --> 00:47:08,160 For instance, the person I was talking to 707 00:47:08,160 --> 00:47:10,940 who knew the combination in terms of the two keys, 708 00:47:11,040 --> 00:47:12,080 the corners and the tops, 709 00:47:13,740 --> 00:47:16,220 that was because they also deployed the same kiosk, 710 00:47:16,220 --> 00:47:17,460 so they knew how to get out of it. 711 00:47:18,920 --> 00:47:21,020 Most of the kiosk vendors don't necessarily publicly 712 00:47:21,760 --> 00:47:24,400 give a lot of information in terms of how their kiosks work, 713 00:47:25,640 --> 00:47:26,720 because I tried to go in, 714 00:47:26,740 --> 00:47:26,900 I was trying to figure out how to get out of it, 715 00:47:26,900 --> 00:47:29,620 and try and see what some of them do. 716 00:47:29,980 --> 00:47:32,120 So there is a little bit of security through obscurity, 717 00:47:32,200 --> 00:47:36,940 but still, that's probably just a phone call 718 00:47:36,940 --> 00:47:38,600 away to the tech support if you need to ask a question. 719 00:47:38,740 --> 00:47:39,800 Just say you lost the manual 720 00:47:39,800 --> 00:47:40,860 and ask them what you need to need. 721 00:47:41,500 --> 00:47:41,820 Okay. 722 00:47:42,860 --> 00:47:43,600 All right, thanks. 723 00:47:45,400 --> 00:47:46,200 Any other questions? 724 00:47:51,760 --> 00:47:52,080 Okay. 725 00:47:52,880 --> 00:47:54,080 Thank you, everyone, for coming. 726 00:47:54,380 --> 00:47:55,260 If you have any questions, 727 00:47:56,400 --> 00:47:56,880 there's my email address. 728 00:47:58,040 --> 00:47:59,660 And I'll be happy to talk to you about this afterwards. 729 00:48:00,280 --> 00:48:00,760 Thank you.