1 00:00:08,420 --> 00:00:14,380 Today we're going to talk about the immortal retrofuturism of mainframe computers and how to keep them safe. 2 00:00:14,380 --> 00:00:15,920 I will give you a small disclaimer. 3 00:00:15,920 --> 00:00:27,380 I am coming from, of course, the red team side, defensive security side, so this how to keep safe tips will not be as expansive as perhaps someone who is on the defensive side, but we will touch on it a little bit. 4 00:00:27,380 --> 00:00:29,360 So to begin, let me see... 5 00:00:30,920 --> 00:00:32,180 Yes, it worked. 6 00:00:32,180 --> 00:00:32,980 Okay, this is me. 7 00:00:33,440 --> 00:00:36,560 It looks a little weird, it's all blown out, but I am Michelle Eggers. 8 00:00:36,560 --> 00:00:38,540 I'm a security consultant with NetSpy. 9 00:00:38,540 --> 00:00:40,160 I've been with them for a couple of years. 10 00:00:40,160 --> 00:00:44,460 I specialize in mainframe web application and network penetration testing. 11 00:00:44,460 --> 00:00:51,460 I have a background in accounting and finance, which is a little bit linked to mainframe because, you know, the financial industry is essentially held up by mainframe. 12 00:00:51,460 --> 00:00:53,580 We'll touch on that in a minute more here. 13 00:00:53,580 --> 00:00:55,880 And I'm passionate about legacy tech. 14 00:00:55,900 --> 00:00:57,080 I like old things. 15 00:00:57,080 --> 00:00:58,680 I think they're interesting and cool. 16 00:00:58,980 --> 00:01:03,160 And we are still using them, so it's important that we make sure we're still securing them. 17 00:01:03,160 --> 00:01:06,220 We can't forget to pay attention to the entire topology. 18 00:01:06,220 --> 00:01:09,780 All right, so this is our outline. 19 00:01:09,780 --> 00:01:11,340 We're going to do a history debrief. 20 00:01:11,340 --> 00:01:15,340 We're going to look at how it kind of started and some things that have changed over the years. 21 00:01:15,340 --> 00:01:17,320 We're going to look at mainframes today. 22 00:01:17,320 --> 00:01:19,100 Why people still elect to use them? 23 00:01:19,100 --> 00:01:20,300 What's special about them? 24 00:01:20,300 --> 00:01:21,380 What even are they? 25 00:01:21,540 --> 00:01:27,360 We're going to look at a few modern threats, some notable breaches that have happened in the last decade or so. 26 00:01:27,360 --> 00:01:30,640 And then some things that we see in our pen tests currently. 27 00:01:31,540 --> 00:01:33,100 Yeah, and I have a demo, which is really cool. 28 00:01:33,100 --> 00:01:34,640 That shows a real thing that happened. 29 00:01:34,640 --> 00:01:36,560 It's a little scary, but it'll be interesting. 30 00:01:36,560 --> 00:01:38,400 And then, of course, the tips to secure. 31 00:01:39,180 --> 00:01:50,020 Okay, so before we get into the history and all of that, I want to know, whoever doesn't currently work with mainframe, anybody want to volunteer what you think mainframe is? 32 00:01:50,020 --> 00:01:54,660 Give a description on it, just a sentence or two. 33 00:01:54,780 --> 00:01:55,920 Any takers? 34 00:01:56,660 --> 00:01:57,540 Yes. 35 00:02:12,480 --> 00:02:20,080 Okay, so we have, she said, a cluster of computers with sort of different applications, use cases. 36 00:02:20,600 --> 00:02:21,920 Yes? 37 00:02:23,120 --> 00:02:24,440 Close. 38 00:02:24,720 --> 00:02:26,500 You're on your way. 39 00:02:27,160 --> 00:02:28,500 What's that? 40 00:02:29,660 --> 00:02:30,860 Everything's bigger? 41 00:02:30,860 --> 00:02:33,120 Yeah, well, depending. 42 00:02:33,120 --> 00:02:33,860 Yes. 43 00:02:35,140 --> 00:02:36,460 Yes. 44 00:02:36,740 --> 00:02:39,160 Yeah, they're big systems, obviously. 45 00:02:39,160 --> 00:02:40,060 Yes, of course. 46 00:02:41,680 --> 00:02:43,040 Yes. 47 00:02:46,360 --> 00:02:49,320 I love it. 48 00:02:49,320 --> 00:02:49,960 Okay, great. 49 00:02:49,960 --> 00:02:50,860 Everybody's super smart. 50 00:02:50,860 --> 00:02:52,680 You'll get big gold stars. 51 00:02:53,620 --> 00:02:57,040 So mainframes are actually just computers, right? 52 00:02:57,040 --> 00:03:06,700 They're specialized computers that have insane processing power, storage power, their input-output stuff, billions of transactions a day, literally billions. 53 00:03:06,700 --> 00:03:21,980 So it's not something like a quantum computer where you're having a highly complex transaction that's occurring, they're more simplistic, but they have to be incredibly precise and very, very fast and happening in tandem at the same time. 54 00:03:22,160 --> 00:03:24,500 Parallel SysPlex makes this possible. 55 00:03:24,520 --> 00:03:29,600 And they have unique operating systems like, you know, IBM Z, right, and Linux. 56 00:03:29,740 --> 00:03:30,860 So, very cool. 57 00:03:30,860 --> 00:03:32,560 You're not going to find Windows on a mainframe. 58 00:03:33,100 --> 00:03:34,380 I hope not. 59 00:03:34,380 --> 00:03:35,200 Please don't. 60 00:03:37,500 --> 00:03:38,580 Don't do it. 61 00:03:39,060 --> 00:03:41,460 So let's look at a few myths versus facts. 62 00:03:41,500 --> 00:03:48,240 Something that has been fun for me this week is this first myth, it's something I've had to fight with people basically every day on. 63 00:03:48,240 --> 00:03:52,420 They're like, oh, mainframe, oh, that's like 1960s AS4000. 64 00:03:52,420 --> 00:03:54,540 And I'm like, no, no. 65 00:03:56,900 --> 00:03:58,760 They've continuously evolved, right? 66 00:03:58,760 --> 00:04:03,580 They were some of the first systems to introduce virtualization, built-in encryption. 67 00:04:03,600 --> 00:04:06,460 I mean, there's more things coming out all the time. 68 00:04:06,460 --> 00:04:08,120 There's real-time AI inferencing. 69 00:04:08,120 --> 00:04:10,860 There are new things coming out next year from IBM. 70 00:04:10,860 --> 00:04:12,920 I'll tell you a little bit more about that, too. 71 00:04:13,140 --> 00:04:15,420 But they're not locked in the past. 72 00:04:15,420 --> 00:04:22,100 It's not like this green screen terminal from a 1980s movie or this image of this woman in this room. 73 00:04:22,160 --> 00:04:25,520 That's basically one computer in the entire room. 74 00:04:25,540 --> 00:04:27,260 We're way beyond that. 75 00:04:27,260 --> 00:04:30,280 Another myth is that cloud replaces mainframe. 76 00:04:30,300 --> 00:04:35,180 Due to regulatory compliance reasons, this is impossible in many scenarios. 77 00:04:35,460 --> 00:04:38,740 Also, it's kind of expensive to move off of the mainframe. 78 00:04:38,740 --> 00:04:49,000 So that's another reason why if you have a use case for it and you've implemented it, it kind of behooves you to keep it running because once you have it, it's actually pretty inexpensive. 79 00:04:49,000 --> 00:04:51,920 It's less expensive than cloud in that regard. 80 00:04:51,920 --> 00:04:55,700 You can also use them to host your own virtual private cloud, which is nice. 81 00:04:55,700 --> 00:04:57,380 And then hybridization. 82 00:04:57,380 --> 00:05:01,140 If you're going to look at cloud and mainframe, it's not going to knock mainframe away. 83 00:05:01,140 --> 00:05:02,540 You're not going to replace it. 84 00:05:02,540 --> 00:05:12,640 But we are seeing more and more cases of hybridization where certain applications and functions are in the cloud, and there's just API calls or whatever making these things possible. 85 00:05:13,440 --> 00:05:14,500 Oh, yeah, and then I like this. 86 00:05:14,500 --> 00:05:15,200 It's ELT. 87 00:05:15,200 --> 00:05:17,300 That is extract, load, and transform. 88 00:05:17,300 --> 00:05:24,620 So that's a way of getting your data off of the mainframe into a different environment so that you can do more analysis. 89 00:05:25,600 --> 00:05:26,660 Love it. 90 00:05:26,660 --> 00:05:28,980 Okay, and then another myth is it's just too specialized. 91 00:05:28,980 --> 00:05:29,660 No one knows what it is. 92 00:05:29,660 --> 00:05:30,700 Nobody knows how to do it. 93 00:05:30,700 --> 00:05:35,700 There really are literally maybe like 5 to 10 mainframe hackers in the world. 94 00:05:35,700 --> 00:05:36,720 So that's real. 95 00:05:36,720 --> 00:05:37,780 That's true. 96 00:05:37,820 --> 00:05:43,500 But there are moves underway to rebuild that workforce. 97 00:05:43,500 --> 00:05:52,820 It sort of took a hit in the mid-90s to the early 2010s in staffing, the funding went down as far as building people, bringing them into the workforce. 98 00:05:53,740 --> 00:05:58,320 But I was actually at Share, which is one of the biggest mainframe conferences that happens in a year. 99 00:05:58,320 --> 00:05:59,240 They do it twice. 100 00:05:59,440 --> 00:06:05,020 And I met a lot of people that were early career professionals that are in college and they're learning COBOL. 101 00:06:05,200 --> 00:06:05,840 And we're like, really? 102 00:06:05,840 --> 00:06:07,200 Oh, that's great. 103 00:06:07,380 --> 00:06:10,660 They're becoming these sort of system programmers in the mainframe environment. 104 00:06:10,740 --> 00:06:15,040 There's money going into it now because they're still being used and there's still innovation happening. 105 00:06:15,040 --> 00:06:17,700 And people kind of woke up and said, oh, they're not dead. 106 00:06:17,700 --> 00:06:18,800 We have to keep going. 107 00:06:18,800 --> 00:06:22,000 Oh, and then this Watson X code assist. 108 00:06:22,140 --> 00:06:24,060 That's a cool feature that's coming out. 109 00:06:24,060 --> 00:06:31,180 And it basically just means you can take your COBOL and use these tools to help translate it into a language like Java or Python. 110 00:06:31,180 --> 00:06:34,440 It's a lot easier to find developers who specialize in those languages. 111 00:06:34,440 --> 00:06:38,880 It's much more common than someone who specializes in COBOL, even though we are rebuilding COBOL people. 112 00:06:39,680 --> 00:06:40,600 All right. 113 00:06:40,600 --> 00:06:41,340 I love old pictures. 114 00:06:41,340 --> 00:06:42,160 I hope you do, too. 115 00:06:42,160 --> 00:06:43,140 Brief history. 116 00:06:43,760 --> 00:06:45,260 We need these lights down. 117 00:06:45,260 --> 00:06:46,540 It's all washed out. 118 00:06:47,080 --> 00:06:47,900 1937. 119 00:06:47,900 --> 00:06:48,400 Okay. 120 00:06:48,400 --> 00:06:49,640 We've got U.S. 121 00:06:49,640 --> 00:06:52,200 Navy Bureau of Ships, pre-mainframe technology. 122 00:06:52,200 --> 00:06:54,560 These were not digital systems, right? 123 00:06:54,560 --> 00:06:57,960 We're just talking about analog computers, mechanical calculators. 124 00:06:57,960 --> 00:07:01,660 These are for gunnery calculations, navigation. 125 00:07:01,660 --> 00:07:02,940 This is very military. 126 00:07:02,940 --> 00:07:04,840 This is pre-World War II stuff. 127 00:07:04,840 --> 00:07:07,900 But it's sort of like the bones where it began. 128 00:07:07,900 --> 00:07:11,020 This is where we started seeing innovation in this area. 129 00:07:11,440 --> 00:07:14,080 1951, the Eckert Mockley Computer Corporation. 130 00:07:14,080 --> 00:07:20,120 They made it possible for businesses to now get this technology for their own use. 131 00:07:20,120 --> 00:07:22,060 It was no longer simply relegated to government. 132 00:07:22,060 --> 00:07:24,540 However, it was the UNIVAC system. 133 00:07:24,820 --> 00:07:26,300 That was for the census. 134 00:07:26,300 --> 00:07:28,180 It was 1950 census. 135 00:07:28,580 --> 00:07:33,520 And then they rolled out the UNIVAC in 1951 to help process that data that they pulled in that year. 136 00:07:33,520 --> 00:07:34,880 So, really cool. 137 00:07:35,080 --> 00:07:36,860 Time marches on. 138 00:07:36,860 --> 00:07:38,020 When is this next one? 139 00:07:38,020 --> 00:07:38,700 Yes. 140 00:07:38,780 --> 00:07:40,120 Oh, I love this one. 141 00:07:40,120 --> 00:07:44,020 Okay, so unified architecture was a major achievement. 142 00:07:44,640 --> 00:07:50,780 Previous to the unified architecture, let's say you had several different types of mainframe boxes. 143 00:07:51,060 --> 00:07:53,200 They could not speak to each other. 144 00:07:53,500 --> 00:07:56,540 They didn't have similar software. 145 00:07:56,540 --> 00:07:58,340 Or even the language wasn't quite the same. 146 00:07:58,340 --> 00:08:01,660 And so you'd have to have a person trained up on each one. 147 00:08:01,660 --> 00:08:03,540 Or different people trained on each one. 148 00:08:03,540 --> 00:08:05,160 And they could not work together. 149 00:08:05,280 --> 00:08:07,880 But with unified architecture, it changed all of that. 150 00:08:07,880 --> 00:08:10,460 Now you could have a few different types of machines. 151 00:08:10,460 --> 00:08:12,100 And they could communicate together. 152 00:08:12,100 --> 00:08:12,820 Really nice. 153 00:08:12,820 --> 00:08:19,360 And then, of course, the vacuum tubes were replaced by this solid state technology. 154 00:08:19,360 --> 00:08:24,140 If you have vacuum tubes in an earthquake, that's just bad news. 155 00:08:24,140 --> 00:08:25,120 Like, it's not going to live. 156 00:08:25,120 --> 00:08:27,180 So, it got a lot better. 157 00:08:27,400 --> 00:08:29,200 1970, the innovation continued. 158 00:08:29,200 --> 00:08:32,780 We had magnetic ferric cores replaced by silicon memory chips. 159 00:08:33,040 --> 00:08:34,640 Virtual memory was introduced. 160 00:08:34,640 --> 00:08:37,180 And dynamic address translation was also introduced. 161 00:08:37,180 --> 00:08:40,240 So, as we're seeing, mainframe is really pushing, right? 162 00:08:40,260 --> 00:08:42,040 It's not lagging behind. 163 00:08:42,040 --> 00:08:50,380 It's constantly sort of at this parallel level with innovation, along with other technologies. 164 00:08:50,380 --> 00:08:52,460 It's just maybe not as talked about. 165 00:08:53,220 --> 00:08:55,220 1991, the saga continues. 166 00:08:55,220 --> 00:08:55,880 This is great. 167 00:08:55,880 --> 00:09:01,160 This guy, Stuart Alsop, he was like a talking head, right? 168 00:09:01,160 --> 00:09:03,160 For the technology. 169 00:09:04,300 --> 00:09:07,920 I think he wrote newspaper articles or something. 170 00:09:07,920 --> 00:09:10,920 But he said that mainframe would be dead. 171 00:09:10,920 --> 00:09:12,200 That it would be sunset. 172 00:09:12,200 --> 00:09:15,520 The last one's going to be unplugged on this very specific date. 173 00:09:15,520 --> 00:09:16,860 And that was published. 174 00:09:16,860 --> 00:09:17,560 That date. 175 00:09:17,560 --> 00:09:19,260 He, like, stood on that hill. 176 00:09:19,260 --> 00:09:21,200 And he was very much wrong. 177 00:09:21,740 --> 00:09:25,980 Because as we can see, mainframe is still being used, right? 178 00:09:26,540 --> 00:09:29,920 By finance, by military, health care. 179 00:09:29,920 --> 00:09:35,040 If you used your debit card today, that transaction touched a mainframe. 180 00:09:35,060 --> 00:09:42,460 If you have ever been to a doctor or you go to a hospital for something, your information is in a mainframe somewhere. 181 00:09:42,460 --> 00:09:43,500 It is. 182 00:09:43,500 --> 00:09:45,500 So now you know. 183 00:09:46,000 --> 00:09:48,600 And then we've got the new developments coming along. 184 00:09:48,600 --> 00:09:49,860 Something cool. 185 00:09:49,940 --> 00:09:55,240 So there's already AI on the Z15. 186 00:09:55,320 --> 00:10:01,960 But this next coming year, IBM is releasing a new box that's going to have more increased capabilities. 187 00:10:01,960 --> 00:10:10,600 And what we're going to see is the realtime inferencing is going to step in in such a way that if there's fraud, right? 188 00:10:10,760 --> 00:10:12,740 So this actually happened to my family pretty recently. 189 00:10:12,740 --> 00:10:16,360 Like, someone's at home, and then they get a call 10 or 15 minutes later. 190 00:10:16,360 --> 00:10:17,500 Hey, are you at Legoland? 191 00:10:17,500 --> 00:10:18,740 Did you just spend $800? 192 00:10:18,900 --> 00:10:19,300 No. 193 00:10:19,300 --> 00:10:21,960 Okay, well, we're going to cancel your card and reissue a new one. 194 00:10:21,960 --> 00:10:23,160 It's this whole process. 195 00:10:23,240 --> 00:10:25,020 And then that company has to eat that cost. 196 00:10:25,100 --> 00:10:29,200 Because you, as, you know, the account holder, and there's fraud, you're not going to pay for that. 197 00:10:29,200 --> 00:10:29,640 Hopefully. 198 00:10:29,640 --> 00:10:31,000 You shouldn't pay for that. 199 00:10:31,000 --> 00:10:33,180 And then are they going to catch the person who did the fraud? 200 00:10:33,180 --> 00:10:34,080 Likely no. 201 00:10:34,080 --> 00:10:37,260 So these companies are just eating all these fraud costs constantly. 202 00:10:37,260 --> 00:10:49,460 Well, if they can catch the fraudulent charge as it's occurring, instead of, you know, even five minutes later, it's going to really reduce that cost, that inconvenience, having to get a new card. 203 00:10:50,240 --> 00:10:51,400 I love it. 204 00:10:52,060 --> 00:10:52,620 All right. 205 00:10:52,620 --> 00:10:54,840 So, why do people use Mainframe now? 206 00:10:56,020 --> 00:10:57,300 Why do we care? 207 00:10:57,480 --> 00:10:59,020 There are three reasons. 208 00:10:59,020 --> 00:11:01,300 You'll hear this acronym in the Mainframe community. 209 00:11:01,300 --> 00:11:04,160 It's kind of like sales talking points. 210 00:11:04,180 --> 00:11:06,600 But reliability, availability, and serviceability. 211 00:11:06,600 --> 00:11:14,220 So if you're looking at the New York Stock Exchange or NASDAQ, something like that, they have to have what is called the five nines of reliability. 212 00:11:14,300 --> 00:11:17,120 So it's 99.999% uptime. 213 00:11:17,120 --> 00:11:22,360 They cannot have more than five and a half minutes of downtime in a given year. 214 00:11:23,360 --> 00:11:24,320 They cannot. 215 00:11:24,320 --> 00:11:24,780 Right? 216 00:11:24,980 --> 00:11:27,480 And so Mainframe is able to do this. 217 00:11:29,580 --> 00:11:31,420 Let's break out the slides a little more. 218 00:11:31,420 --> 00:11:35,680 Built-in redundancy across your hardware levels, your input-output paths, your power supply. 219 00:11:35,780 --> 00:11:37,800 You've got error detection correction. 220 00:11:37,800 --> 00:11:43,640 You've got these machines that are so robust, they can withstand up to seven magnitude earthquakes. 221 00:11:43,640 --> 00:11:43,740 Right? 222 00:11:43,740 --> 00:11:45,040 The vacuum tubes are gone. 223 00:11:45,180 --> 00:11:46,200 They're strong now. 224 00:11:47,440 --> 00:11:48,120 Availability. 225 00:11:48,120 --> 00:11:48,300 Right? 226 00:11:48,300 --> 00:11:57,040 We want to make sure that the machine itself, beyond it just being strong, you can still actually get your data out of it and it's accurate data at any given time. 227 00:11:57,040 --> 00:11:57,180 Right ? 228 00:11:57,180 --> 00:11:58,720 It's available to you. 229 00:11:58,720 --> 00:12:02,480 So you've got transaction rollback, checkpoint restart, complex job scheduling. 230 00:12:02,480 --> 00:12:07,840 They have 190 configurable cores in this one specific example, the Z15. 231 00:12:07,940 --> 00:12:08,260 Right? 232 00:12:08,260 --> 00:12:10,300 So you can basically finely tune your machine. 233 00:12:10,300 --> 00:12:12,780 You make like a bespoke system for yourself. 234 00:12:13,120 --> 00:12:17,360 Basically out of the box, you can start tuning it and fitting it to your specific use case. 235 00:12:17,460 --> 00:12:19,960 And again, with the unified architecture, they can all talk to each other. 236 00:12:19,960 --> 00:12:20,740 So we love it. 237 00:12:20,740 --> 00:12:21,740 And then the serviceability. 238 00:12:21,740 --> 00:12:23,640 So this is actually one of my favorite features. 239 00:12:23,640 --> 00:12:25,540 They're modular by design. 240 00:12:25,620 --> 00:12:25,880 Okay? 241 00:12:25,880 --> 00:12:26,120 So... 242 00:12:26,120 --> 00:12:32,860 And then when I mention parallel SysPlex, it means if you have a workflow or process that is relegated to one LPAR, one logical partition. 243 00:12:32,860 --> 00:12:33,060 Right? 244 00:12:33,060 --> 00:12:37,020 It's like the virtual segmentation within your mainframe. 245 00:12:37,380 --> 00:12:44,080 You can just swap those workflows over to another section of your box without any interruption, without any issues. 246 00:12:44,080 --> 00:12:49,840 So if you need to change a card out or you need to do some kind of repair, the machine itself never has to go down. 247 00:12:49,840 --> 00:12:50,340 Ever. 248 00:12:50,340 --> 00:12:55,760 You just move the pieces you need to move when you need to move them, because they're so modular. 249 00:12:55,760 --> 00:12:56,860 It's intentional. 250 00:12:57,340 --> 00:12:59,980 You've got the in-depth logging for problem solving. 251 00:13:00,140 --> 00:13:02,600 On-site, accessible for repair and maintenance. 252 00:13:02,600 --> 00:13:05,840 So I live by a Google plant. 253 00:13:05,840 --> 00:13:06,300 Right ? 254 00:13:06,660 --> 00:13:08,220 And , you know, they're just... 255 00:13:08,220 --> 00:13:08,820 What is the cloud? 256 00:13:08,820 --> 00:13:10,240 It's just other people's computers. 257 00:13:10,240 --> 00:13:11,260 We understand this. 258 00:13:11,260 --> 00:13:17,760 So I'm driving home, and it's dark, and I'm on the freeway, and I can see the plant kind of over near the river. 259 00:13:17,760 --> 00:13:23,840 And there are all these police cars, and a couple fire engines, an ambulance, and all the lights are going like this. 260 00:13:23,840 --> 00:13:25,700 And then I keep driving, like, what's going on? 261 00:13:25,700 --> 00:13:27,640 And then the road to get to the plant, same thing. 262 00:13:27,640 --> 00:13:28,580 It's blocked off. 263 00:13:28,820 --> 00:13:30,380 I don't know what's going on. 264 00:13:30,820 --> 00:13:33,020 If your data is there, are they gonna tell you? 265 00:13:33,720 --> 00:13:35,340 Or like, oh, well, it's just one region. 266 00:13:35,340 --> 00:13:36,240 Well, what if there was... 267 00:13:36,240 --> 00:13:41,480 I mean, I don't know if it was a physical breach or if there was a fire or if there was some other kind of problem. 268 00:13:41,760 --> 00:13:42,800 And they'll never tell you. 269 00:13:42,800 --> 00:13:44,160 Like, well, oh, well, it's redundancy. 270 00:13:44,160 --> 00:13:44,860 We have different regions. 271 00:13:44,860 --> 00:13:45,300 Okay. 272 00:13:45,300 --> 00:13:53,860 What if there was a coordinated attack against multiple regions at the same time, and they just so happen to be the regions that your data is stored in? 273 00:13:53,900 --> 00:13:55,200 Something to think about. 274 00:13:55,200 --> 00:14:08,920 If it's on site, and you have incredibly sensitive, business-critical data, and you can protect it with your own security, you know if there's a fire, you know... your organization knows if there's some kind of physical breach. 275 00:14:08,920 --> 00:14:11,760 You have a better... 276 00:14:11,760 --> 00:14:15,280 You have more insight into the security of your own systems. 277 00:14:15,580 --> 00:14:22,000 You're not, you know, hoping Azure is going to call you and say, hey, somebody broke in and started a bunch of fires and hopefully it didn't affect your stuff. 278 00:14:22,840 --> 00:14:23,200 So... 279 00:14:24,700 --> 00:14:25,740 And this is... 280 00:14:25,740 --> 00:14:26,440 I love this. 281 00:14:26,560 --> 00:14:26,780 Okay. 282 00:14:26,780 --> 00:14:28,600 So this is a little demo. 283 00:14:28,600 --> 00:14:29,800 Oh, I wonder if it will play. 284 00:14:29,860 --> 00:14:31,160 Oh, I wish it will. 285 00:14:31,980 --> 00:14:33,040 It may not. 286 00:14:33,060 --> 00:14:33,640 Darn. 287 00:14:33,820 --> 00:14:34,960 Well, basically... 288 00:14:35,800 --> 00:14:36,820 It's not going to play. 289 00:14:37,520 --> 00:14:38,720 They do this testing. 290 00:14:38,720 --> 00:14:39,780 I'll just simulate. 291 00:14:40,760 --> 00:14:43,500 This is really hard. 292 00:14:43,840 --> 00:14:46,360 And they simulate a seven magnitude earthquake. 293 00:14:46,440 --> 00:14:52,240 So, in New Jersey, about eight months ago, there was a 4.5 magnitude earthquake. 294 00:14:52,240 --> 00:14:53,560 And there was a campus near there. 295 00:14:53,560 --> 00:14:55,280 I mean, that earthquake went up the coast as well. 296 00:14:55,280 --> 00:14:56,980 It affected a lot of places. 297 00:14:58,120 --> 00:15:02,420 There was a campus with 200 mainframes, and not a single one was affected. 298 00:15:02,500 --> 00:15:04,920 There was no damage whatsoever. 299 00:15:04,920 --> 00:15:10,740 Do you want to start an earthquake in your server room and see how it goes? 300 00:15:11,000 --> 00:15:12,320 Probably not. 301 00:15:12,320 --> 00:15:12,760 Right ? 302 00:15:13,240 --> 00:15:13,840 Yeah. 303 00:15:13,840 --> 00:15:14,520 Yeah. 304 00:15:14,520 --> 00:15:15,540 A little bit scary. 305 00:15:15,540 --> 00:15:16,560 Mainframes can do that. 306 00:15:16,560 --> 00:15:18,740 They're literally built to do that. 307 00:15:18,820 --> 00:15:19,220 So... 308 00:15:19,220 --> 00:15:20,860 Apologies for the lack of the shaking. 309 00:15:20,860 --> 00:15:21,760 I can show you later. 310 00:15:21,760 --> 00:15:21,960 But... 311 00:15:21,960 --> 00:15:22,420 Yeah. 312 00:15:22,780 --> 00:15:23,740 All right. 313 00:15:24,260 --> 00:15:24,700 So... 314 00:15:24,700 --> 00:15:31,000 We've gotten a little bit of an understanding about why people care about mainframe, why they use it, what are the benefits of it. 315 00:15:31,260 --> 00:15:33,620 What are the things that can affect it? 316 00:15:33,620 --> 00:15:35,080 What are we scared of? 317 00:15:35,140 --> 00:15:37,860 Why do we need to think about the security? 318 00:15:38,020 --> 00:15:38,540 So... 319 00:15:38,540 --> 00:15:42,580 One of the big things that affects mainframe are the integrations. 320 00:15:42,660 --> 00:15:43,220 Right? 321 00:15:43,340 --> 00:15:45,600 We see a lot of... 322 00:15:46,780 --> 00:15:48,900 Entry into the mainframe environment. 323 00:15:48,900 --> 00:15:49,820 Not by... 324 00:15:49,820 --> 00:15:52,200 Not starting at the mainframe level, of course. 325 00:15:52,200 --> 00:15:56,740 But with things like web applications that connect to it, or just the general network. 326 00:15:56,740 --> 00:15:58,940 In this case, even it was the WiFi network. 327 00:15:58,940 --> 00:15:59,360 So... 328 00:15:59,360 --> 00:16:02,520 The TJX company's data breach, payment card data breach. 329 00:16:02,520 --> 00:16:06,500 45.7 million user cards were affected, exfiltrated. 330 00:16:06,500 --> 00:16:08,180 This is a weakness in the wireless network. 331 00:16:08,180 --> 00:16:09,480 That's how that one kicked off. 332 00:16:09,480 --> 00:16:10,780 We're gonna see a trend here. 333 00:16:10,780 --> 00:16:12,860 Heartland payment systems breach. 334 00:16:13,020 --> 00:16:14,340 Double the last. 335 00:16:14,340 --> 00:16:16,380 100 million cards compromised. 336 00:16:16,380 --> 00:16:19,060 This was at the hands of a global cyber fraud operation. 337 00:16:19,060 --> 00:16:19,260 Okay? 338 00:16:19,260 --> 00:16:22,660 And this was a combined attack of network and application vulnerabilities. 339 00:16:23,000 --> 00:16:25,220 Then we see the Equifax data breach. 340 00:16:25,220 --> 00:16:25,620 Okay? 341 00:16:25,620 --> 00:16:28,980 This was now 147 million users exposed. 342 00:16:28,980 --> 00:16:30,920 Which just goes up every single time. 343 00:16:30,920 --> 00:16:31,820 It's worse every time. 344 00:16:31,820 --> 00:16:36,300 In this instance, it was the web application that provided the initial foothold. 345 00:16:37,460 --> 00:16:41,440 And this one is a little bit harder to find information on. 346 00:16:41,440 --> 00:16:43,740 This is the Logica data breach. 347 00:16:43,740 --> 00:16:44,840 This was in Sweden. 348 00:16:44,840 --> 00:16:46,360 And it affected the government. 349 00:16:46,700 --> 00:16:48,120 And it was so bad. 350 00:16:48,120 --> 00:16:51,460 And word got out that the government just published the documents. 351 00:16:51,460 --> 00:16:52,800 They just put everything public. 352 00:16:52,800 --> 00:16:53,860 They said, just... 353 00:16:53,860 --> 00:16:54,440 Here. 354 00:16:54,440 --> 00:16:55,180 Go ahead and find it. 355 00:16:55,180 --> 00:16:56,680 You can find it if you want to. 356 00:16:56,680 --> 00:16:57,800 It's in Swedish. 357 00:16:57,800 --> 00:17:00,540 But you can find all the documents about this. 358 00:17:02,140 --> 00:17:05,000 This was initial access via the FTP network. 359 00:17:05,000 --> 00:17:06,920 So unencrypted protocol. 360 00:17:06,980 --> 00:17:07,420 Okay ? 361 00:17:07,720 --> 00:17:10,760 The hackers used something like Hercules, which is an emulator. 362 00:17:10,760 --> 00:17:12,980 I used an emulator in my testing. 363 00:17:12,980 --> 00:17:14,540 I used X3270. 364 00:17:14,600 --> 00:17:20,960 But I tell you this to say it's not that hard to get some of these tools to start getting into the places that maybe you shouldn't be getting into. 365 00:17:20,960 --> 00:17:28,020 This attack specifically leveraged some zero days, which may be a little more difficult to, you know, make happen. 366 00:17:28,020 --> 00:17:31,880 But they were based on default configurations. 367 00:17:32,040 --> 00:17:32,780 Right? 368 00:17:32,780 --> 00:17:37,500 So this is something that is easy to fix and not have in your environment. 369 00:17:37,500 --> 00:17:42,260 Please, as soon as you have something new, turn off your default configurations. 370 00:17:42,600 --> 00:17:44,620 Change it as soon as possible. 371 00:17:44,700 --> 00:17:47,820 120,000 usernames stolen from RACF. 372 00:17:47,820 --> 00:17:51,360 RACF is like a security management tool in the mainframe environment. 373 00:17:51,720 --> 00:17:56,600 And the guy, you know, the head guy who was in charge of it, he was in Cambodia at the time, stole a bunch of money. 374 00:17:56,660 --> 00:17:58,080 It was very bad. 375 00:17:58,080 --> 00:17:58,680 It was very bad. 376 00:17:58,680 --> 00:18:04,420 And the entire government made all these new policies specifically because of this breach. 377 00:18:05,340 --> 00:18:05,820 Okay. 378 00:18:05,820 --> 00:18:07,600 So next up I'm going to show you a demo. 379 00:18:07,700 --> 00:18:09,040 I'll give a little information on it. 380 00:18:09,620 --> 00:18:15,400 What you'll see me doing, hopefully you'll be able to see it, is I'm authenticating to an LPAR, to a logical partition. 381 00:18:15,740 --> 00:18:16,280 Right? 382 00:18:16,280 --> 00:18:21,960 Assume that the endpoints that I navigate to have already been enumerated previously during the engagement. 383 00:18:21,960 --> 00:18:25,820 So I'm not going to... you don't see the enumeration part in this demo. 384 00:18:25,820 --> 00:18:28,200 But you'll see me sort of navigate to some endpoints. 385 00:18:28,200 --> 00:18:29,180 That's why. 386 00:18:29,660 --> 00:18:34,120 The user I am, that you'll see, is a lower level user. 387 00:18:34,120 --> 00:18:35,700 This is not an admin user. 388 00:18:35,700 --> 00:18:35,960 Right? 389 00:18:35,960 --> 00:18:40,060 So, of course, it means there are specific resources that they should not be able to access. 390 00:18:40,360 --> 00:18:40,640 Okay? 391 00:18:40,640 --> 00:18:48,040 So the goal of this hack was to try to access, of course, more privileged information. 392 00:18:49,280 --> 00:18:50,720 So... okay. 393 00:18:51,160 --> 00:18:52,240 And we're up and running. 394 00:18:52,240 --> 00:18:52,540 Okay. 395 00:18:52,540 --> 00:18:56,680 So this is me logging in. 396 00:18:57,120 --> 00:18:59,280 I've got TSO here. 397 00:18:59,920 --> 00:19:00,220 Right? 398 00:19:00,500 --> 00:19:01,140 ISPF. 399 00:19:01,140 --> 00:19:07,460 And then now you're going to see me begin to access a command line utility, which is a Unix-like feature within the mainframe environment. 400 00:19:08,280 --> 00:19:09,480 Through OMBS. 401 00:19:11,920 --> 00:19:12,920 All right? 402 00:19:13,580 --> 00:19:17,580 So it's... if it looks familiar to you in Unix space, you can just use your similar commands. 403 00:19:17,580 --> 00:19:17,960 Right? 404 00:19:17,960 --> 00:19:21,200 So I'm going to navigate to this opt secrets location. 405 00:19:21,280 --> 00:19:23,320 I'm going to see what's in there. 406 00:19:25,500 --> 00:19:26,940 I'm going to list it out. 407 00:19:27,140 --> 00:19:29,580 We've got a readme.txt and an SSH key. 408 00:19:29,680 --> 00:19:32,220 We're going to cat the readme.txt file. 409 00:19:32,220 --> 00:19:34,760 It says this is the SSH private key you need to log on as an admin. 410 00:19:34,760 --> 00:19:35,600 Do not share. 411 00:19:35,600 --> 00:19:39,340 Well, can I just cat the SSH key and just maybe access it anyway? 412 00:19:39,460 --> 00:19:40,060 No. 413 00:19:40,060 --> 00:19:40,820 Permission denied. 414 00:19:40,820 --> 00:19:41,520 Game over. 415 00:19:41,520 --> 00:19:42,020 Right? 416 00:19:42,020 --> 00:19:42,660 Wrong. 417 00:19:42,660 --> 00:19:48,420 I used the same IP that the LPAR is on and just navigated to it in the web browser over 8080. 418 00:19:48,420 --> 00:19:49,000 Right? 419 00:19:49,880 --> 00:19:52,240 Again, we already had the endpoints enumerated. 420 00:19:52,240 --> 00:19:52,800 Okay? 421 00:19:52,800 --> 00:20:00,760 So this specific location, the requests that are generated pull information from the mainframe. 422 00:20:00,760 --> 00:20:01,420 Right? 423 00:20:01,420 --> 00:20:08,660 So just open up the network tab and you can look at the requests that are made and maybe modify it and see what happens. 424 00:20:08,660 --> 00:20:09,120 Okay? 425 00:20:09,580 --> 00:20:11,240 So I'm generating the request. 426 00:20:11,240 --> 00:20:13,980 It makes a post request that pulls information from the mainframe. 427 00:20:14,140 --> 00:20:14,600 Right? 428 00:20:14,600 --> 00:20:15,980 We're going to crack that open. 429 00:20:17,640 --> 00:20:19,940 You don't even need to use an intercepting tool for this. 430 00:20:19,940 --> 00:20:22,740 You really can just use the network tab in your browser. 431 00:20:22,820 --> 00:20:23,960 It's a little bit insane. 432 00:20:24,280 --> 00:20:28,060 So in the message body, there's a request for a specific file. 433 00:20:28,060 --> 00:20:31,480 Modify that to point to what was disallowed earlier. 434 00:20:31,480 --> 00:20:33,400 Keep in mind, I have not authenticated. 435 00:20:33,400 --> 00:20:35,460 This is simply in the web browser. 436 00:20:36,980 --> 00:20:37,860 Okay? 437 00:20:37,860 --> 00:20:38,860 Got a 200 okay. 438 00:20:38,860 --> 00:20:40,100 That sounds promising. 439 00:20:40,200 --> 00:20:42,680 There's the endpoint I went to with that SSH key. 440 00:20:42,980 --> 00:20:44,840 Let's see what's in the response. 441 00:20:46,240 --> 00:20:47,520 There it is. 442 00:20:55,400 --> 00:20:56,360 Thanks. 443 00:20:56,540 --> 00:20:59,020 This is a real... this really happened. 444 00:20:59,960 --> 00:21:03,380 I will just say within the past year to be somewhat vague. 445 00:21:03,380 --> 00:21:07,800 And it was not an SSH key, but it was definitely some very, very private information. 446 00:21:07,800 --> 00:21:09,760 Completely unauthenticated access. 447 00:21:09,760 --> 00:21:12,840 Not even on... within the mainframe emulated environment. 448 00:21:12,840 --> 00:21:14,480 Just over the browser. 449 00:21:14,720 --> 00:21:22,920 So this is why I'm saying we need to look at the entire topology and make sure we're investigating the integrations with the mainframe. 450 00:21:22,920 --> 00:21:25,280 Because people say, well, mainframe is... it's older. 451 00:21:25,280 --> 00:21:26,380 It's safe. 452 00:21:26,500 --> 00:21:27,440 Yes and no. 453 00:21:27,440 --> 00:21:28,180 All right? 454 00:21:28,180 --> 00:21:30,580 So we've talked about the integration ones. 455 00:21:30,580 --> 00:21:32,300 What about the mainframe itself? 456 00:21:32,300 --> 00:21:35,820 If you're just looking at the mainframe, we're going to stay in this little box of the mainframe. 457 00:21:35,820 --> 00:21:37,700 Is it safe all by itself? 458 00:21:38,260 --> 00:21:42,240 These are things we find on a regular basis within our pen test. 459 00:21:42,240 --> 00:21:42,660 Okay? 460 00:21:42,660 --> 00:21:44,160 Local file include. 461 00:21:44,640 --> 00:21:49,380 We find insecure... insecure protocols all the time. 462 00:21:49,380 --> 00:21:50,800 There's so much 23. 463 00:21:51,160 --> 00:21:52,140 Yeah. 464 00:21:52,300 --> 00:21:53,820 Unauthenticated access happens. 465 00:21:53,820 --> 00:21:59,260 So there have been instances where I will begin the authentication process and then back out of it. 466 00:21:59,260 --> 00:22:05,920 Not complete authenticating and I can still run CICS commands or run KEMS, things like this. 467 00:22:05,920 --> 00:22:08,720 You should be authenticated to run these. 468 00:22:09,180 --> 00:22:10,560 So we do find this a lot. 469 00:22:10,620 --> 00:22:11,280 Injections. 470 00:22:11,280 --> 00:22:13,560 SQL injection into DB2 databases. 471 00:22:13,740 --> 00:22:17,400 JCL job control language injections or REC scripts injections. 472 00:22:17,400 --> 00:22:25,080 If you're able to use these when you're not supposed to, you could delete, modify, erase entire data sets. 473 00:22:25,460 --> 00:22:26,260 Bad news. 474 00:22:26,260 --> 00:22:26,860 Okay? 475 00:22:26,860 --> 00:22:29,820 And then we do see security misconfigurations. 476 00:22:29,820 --> 00:22:34,660 I don't see a lot of default credentials, thankfully, but it does occur. 477 00:22:34,660 --> 00:22:36,280 Weak password policies. 478 00:22:36,280 --> 00:22:40,680 Often I will see they'll allow mixed case passwords. 479 00:22:40,680 --> 00:22:47,040 So let's say you're supposed to have like your actual password is capital this and lower case this and some numbers and whatever else. 480 00:22:47,040 --> 00:22:50,820 You can switch the case around and do whatever you want and we'll still accept it. 481 00:22:51,140 --> 00:22:52,480 Don't do that. 482 00:22:52,480 --> 00:22:58,300 And not using external security management tools like RACF or top secret. 483 00:22:58,300 --> 00:23:02,540 Thankfully most shops that have mainframe are implementing these things. 484 00:23:02,660 --> 00:23:08,600 But just as a safeguard, you know, just make sure that you're using these things. 485 00:23:08,960 --> 00:23:09,380 Okay. 486 00:23:09,380 --> 00:23:14,620 And then now the promised ways to secure from the blue team side. 487 00:23:14,620 --> 00:23:16,800 Properly configure your network topology as a whole. 488 00:23:16,800 --> 00:23:18,300 I can't stress that enough. 489 00:23:18,300 --> 00:23:22,520 Please, mainframe is not its own weird thing off to the side. 490 00:23:22,520 --> 00:23:24,300 It is part of your stack. 491 00:23:24,300 --> 00:23:25,700 Treat it as such. 492 00:23:25,700 --> 00:23:27,880 Make appropriate use of your logical partitions. 493 00:23:27,880 --> 00:23:34,720 Make sure if a user has access to lpar 1, they can also somehow navigate to lpar 2 and 3 and 4. 494 00:23:35,560 --> 00:23:37,420 Your regions, your esm tools. 495 00:23:37,860 --> 00:23:40,040 Again, disallow unencrypted protocols. 496 00:23:40,040 --> 00:23:41,820 Secure with compliance. 497 00:23:42,120 --> 00:23:47,100 The cis benchmarking is really great for regular auditing purposes. 498 00:23:47,100 --> 00:23:48,440 And then the disa stigs. 499 00:23:48,440 --> 00:23:50,700 These are your department of defense guides from nist. 500 00:23:50,840 --> 00:23:52,480 I've used these on a test. 501 00:23:53,000 --> 00:23:54,340 It's really nice. 502 00:23:54,340 --> 00:23:58,600 So I had a db2 test where it's basically sql-based. 503 00:23:58,760 --> 00:24:04,880 And they have whole lists of commands you can run to check, okay, well, if I run this command, can I access this when I shouldn't? 504 00:24:04,880 --> 00:24:07,220 If I run this command, can I elevate my privileges? 505 00:24:07,400 --> 00:24:08,140 And so on. 506 00:24:08,140 --> 00:24:09,220 This is great. 507 00:24:09,220 --> 00:24:09,800 I love this. 508 00:24:09,860 --> 00:24:12,000 Very helpful tools. 509 00:24:12,000 --> 00:24:13,480 Secure with ongoing reviews. 510 00:24:13,480 --> 00:24:19,280 This is real basic stuff that everybody should be doing regardless of its mainframe or something else. 511 00:24:19,280 --> 00:24:22,200 Audit your identity and access management on a regular basis. 512 00:24:22,580 --> 00:24:25,260 Establish recurring audits for all features. 513 00:24:25,660 --> 00:24:27,520 And do recurring pen tests. 514 00:24:27,520 --> 00:24:29,260 I love a good internal team. 515 00:24:29,260 --> 00:24:29,880 Literally. 516 00:24:29,940 --> 00:24:31,940 You're closer to your stack. 517 00:24:31,940 --> 00:24:33,480 You're rolling out new features. 518 00:24:33,480 --> 00:24:35,860 You sort of understand what's going on. 519 00:24:35,860 --> 00:24:37,800 And you need to be there, right? 520 00:24:37,800 --> 00:24:41,860 But, you know, I'm biased, again, because I'm third-party pen tester. 521 00:24:41,860 --> 00:24:47,000 Which I think is incredibly important to get fresh eyes on your five minutes. 522 00:24:47,000 --> 00:24:47,920 Okay, thank you. 523 00:24:48,020 --> 00:24:49,140 I'm going to hurry up here. 524 00:24:50,020 --> 00:24:51,320 Fresh set of eyes. 525 00:24:53,020 --> 00:24:55,120 Not having the source code. 526 00:24:55,140 --> 00:24:57,780 Being, you know, somewhat unfamiliar with the environment. 527 00:24:57,780 --> 00:25:00,960 And then getting in and just gently breaking it. 528 00:25:01,120 --> 00:25:03,460 So you can help the company fix it. 529 00:25:03,460 --> 00:25:04,920 I think is really nice. 530 00:25:04,920 --> 00:25:06,320 It's a special place to be. 531 00:25:06,320 --> 00:25:07,380 I love it. 532 00:25:07,380 --> 00:25:10,220 So, again, what have we learned today? 533 00:25:10,220 --> 00:25:11,360 We're going to cover it real quick. 534 00:25:11,360 --> 00:25:12,660 And a few bullet points. 535 00:25:13,120 --> 00:25:15,400 Mainframe is not going away any time soon. 536 00:25:15,500 --> 00:25:17,220 Please keep paying attention to it. 537 00:25:17,220 --> 00:25:21,920 We rely on it globally to support finance, healthcare, government. 538 00:25:21,920 --> 00:25:24,560 All these critical industries. 539 00:25:25,180 --> 00:25:25,460 Okay? 540 00:25:25,460 --> 00:25:26,480 So we need to keep securing it. 541 00:25:26,480 --> 00:25:30,880 There are more possible vulnerabilities now due to the prevalence of integrations. 542 00:25:30,880 --> 00:25:32,380 It's just going to keep increasing. 543 00:25:32,580 --> 00:25:35,160 But if we work together, we can combat it. 544 00:25:35,160 --> 00:25:39,280 So thank you so much for coming to learn about mainframe. 545 00:25:39,320 --> 00:25:40,640 Thank you. 546 00:25:40,820 --> 00:25:41,200 Thank you. 547 00:25:41,920 --> 00:25:43,520 Thank you.