1 00:00:00,000 --> 00:00:00,880 All right. 2 00:00:00,880 --> 00:00:02,320 Good morning, audience. 3 00:00:02,640 --> 00:00:04,420 Welcome to the second day of DEF CON. 4 00:00:04,420 --> 00:00:05,120 Proud to be here. 5 00:00:05,120 --> 00:00:07,340 Hopefully everyone's had a great experience so far. 6 00:00:08,780 --> 00:00:11,700 I want to kick things off by introducing our next speaker. 7 00:00:11,760 --> 00:00:13,540 He is coming all the way from Norway. 8 00:00:13,540 --> 00:00:15,300 So he's had a very long flight. 9 00:00:15,300 --> 00:00:17,480 So we definitely want to give this guy a lot of attention. 10 00:00:17,500 --> 00:00:22,740 His name is Melvin Langvik, and I'll read just a quick breakdown of his bio. 11 00:00:22,900 --> 00:00:26,600 Melvin is an accomplished professional with a diverse background in tech. 12 00:00:26,600 --> 00:00:36,500 He started his career as a developer and integration consultant, gaining practical experience in distributing critical back-end infrastructure for an international customer base. 13 00:00:36,520 --> 00:00:42,800 Melvin's passion for cybersecurity led him to transition into offensive security, the bad team. 14 00:00:42,800 --> 00:00:47,900 He previously worked for TrustedSec, which is an internationally recognized security company. 15 00:00:47,900 --> 00:00:57,980 As part of TrustedSec's targeted operations team, Melvin was tasked with performing targeted cyber attacks against some of the most mature and often largest companies in the world. 16 00:00:58,100 --> 00:01:03,760 Today, Melvin is with the offensive security team lead at a company called Colbert AS. 17 00:01:03,800 --> 00:01:08,760 So please give Melvin a very warm welcome and listen to what he has to say. 18 00:01:09,260 --> 00:01:10,160 Thank you, Melvin. 19 00:01:10,160 --> 00:01:10,860 Thank you so much. 20 00:01:11,240 --> 00:01:12,600 Thank you so much, guys. 21 00:01:12,740 --> 00:01:19,480 Okay, so this talk is only 25 minutes, so the first portion is going to be super quick, and then towards the end, we'll slow down and I'll give you guys a nice demo, okay? 22 00:01:19,480 --> 00:01:22,560 So evading modern fences versus phishing with pixels. 23 00:01:22,560 --> 00:01:25,680 We're going to be talking about QR code phishing specifically. 24 00:01:25,680 --> 00:01:29,520 Quick introduction about myself, even though my biography got read up here. 25 00:01:29,520 --> 00:01:30,660 My name is Melvin Langvik. 26 00:01:30,660 --> 00:01:32,300 I go by the alias Flangvik. 27 00:01:32,300 --> 00:01:35,020 I'm the team lead for a small Norwegian pentest company called Colbert. 28 00:01:35,020 --> 00:01:36,680 Previously, I was at TrustedSec. 29 00:01:36,680 --> 00:01:39,660 I've done quite a few offensive security tools for the community. 30 00:01:39,660 --> 00:01:42,280 Maybe somebody recognizes sharp collection or team filtration. 31 00:01:42,600 --> 00:01:46,900 I also create trash, semi-good-ish infosec content on YouTube and Twitch. 32 00:01:47,380 --> 00:01:51,120 I don't want to go on a stream every Sunday, but close to every Sunday, I do a stream. 33 00:01:52,580 --> 00:01:55,540 Like you guys, I'm a part-time alcoholic when I'm at conferences. 34 00:01:55,940 --> 00:02:00,260 And I'm also the guy who did the meme-y C2 and EDR tier lists. 35 00:02:00,640 --> 00:02:03,240 Obviously, AnyDesk is the best C2 out there, right? 36 00:02:03,240 --> 00:02:04,340 So this is all a meme. 37 00:02:04,940 --> 00:02:06,740 Okay, so the game plan for this talk. 38 00:02:06,740 --> 00:02:08,360 We're going to talk about QR codes one-on-one. 39 00:02:08,360 --> 00:02:10,120 We're going to talk about phishing with QR codes. 40 00:02:10,120 --> 00:02:11,900 Some basic detection engineering. 41 00:02:11,900 --> 00:02:14,080 Obviously, not my field, but just some basic stuff. 42 00:02:14,080 --> 00:02:19,240 Imageless QR codes, question mark, potential profit, taking things a step further. 43 00:02:19,240 --> 00:02:23,980 And then we're going to talk about the tool and toolkit I'm going to be demoing and sort of releasing today called Crucible. 44 00:02:24,420 --> 00:02:26,660 Okay, so let's talk about some QR codes. 45 00:02:26,660 --> 00:02:27,580 What is a QR code? 46 00:02:27,580 --> 00:02:29,360 QR code is a quick response code. 47 00:02:29,360 --> 00:02:32,720 It's essentially a barcode that contains a given amount of data. 48 00:02:33,120 --> 00:02:35,920 A QR code works while you scan it using a device. 49 00:02:35,920 --> 00:02:37,040 Typically, it's a mobile, right? 50 00:02:37,040 --> 00:02:40,000 The scan secure code takes you to a link or some other data. 51 00:02:41,780 --> 00:02:44,660 The QR code itself has a couple of key factors. 52 00:02:44,660 --> 00:02:50,960 Finder patterns, marked down here in purple, is for the device you're scanning the QR code to identify where the QR code is. 53 00:02:51,060 --> 00:02:52,800 Is this a QR code or not? 54 00:02:52,800 --> 00:02:59,600 You got the alignment marker in green, sort of telling the device the position of the QR code, so it knows which way to read it. 55 00:02:59,600 --> 00:03:06,580 And then you get the actual data modules, which is the black and white data between the alignment and finder markers. 56 00:03:07,000 --> 00:03:09,060 And then you have also error correction. 57 00:03:09,060 --> 00:03:14,980 I didn't know this before doing the talk, but QR codes can actually have error correction up to 30%. 58 00:03:14,980 --> 00:03:20,080 So if up to 30% of the QR code is missing, it's still readable depending on how it's generated. 59 00:03:20,960 --> 00:03:26,640 Different versions of QR codes refer to different size, how many modules are within. 60 00:03:26,640 --> 00:03:30,440 Take like the smallest one, I believe it's like a 21 by 21. 61 00:03:30,440 --> 00:03:34,340 Then you can go all up to like 172, I think, 171. 62 00:03:34,340 --> 00:03:38,840 And that will actually give you a bit over 4,000 alphanumerical characters. 63 00:03:38,840 --> 00:03:41,620 So a QR code can be huge and can contain a lot of data. 64 00:03:41,760 --> 00:03:49,100 Typical use cases for us, it's much smaller and does contain like a series of numbers or URL or something like that. 65 00:03:49,880 --> 00:03:52,620 QR codes has a lot of legitimate use cases. 66 00:03:52,760 --> 00:04:00,780 If you ever charge your electric vehicle, if you ever booked like an e-bike or like a scooter, if you ever ordered at a restaurant during COVID, they use QR codes. 67 00:04:00,780 --> 00:04:04,900 You scan them, you get to a web page, and then you give them all your data and you get some food, right? 68 00:04:04,900 --> 00:04:07,960 So they have a ton of legitimate use cases and they're great. 69 00:04:07,960 --> 00:04:09,040 We use them all the time. 70 00:04:10,020 --> 00:04:13,140 The thing is that attackers also like to use QR codes. 71 00:04:13,700 --> 00:04:15,520 I'm actually super proud of this meme. 72 00:04:16,940 --> 00:04:19,300 And why do attackers use QR codes? 73 00:04:19,300 --> 00:04:21,240 They're simple to create and easy to share. 74 00:04:21,240 --> 00:04:22,600 There's a bunch of online tools. 75 00:04:22,600 --> 00:04:24,440 There's libraries to use in scripting languages. 76 00:04:24,440 --> 00:04:26,680 There's pre-built offline tools, right? 77 00:04:26,680 --> 00:04:29,240 Easy to create, easy to share, and therefore easy to abuse. 78 00:04:29,780 --> 00:04:31,920 Again, everybody knows what a QR code is. 79 00:04:31,920 --> 00:04:36,800 Even non-technical people working in large organizations have some sort of reference to QR codes, right? 80 00:04:36,800 --> 00:04:40,300 So it definitely looks like a legitimate delivery method. 81 00:04:41,080 --> 00:04:49,060 Sometimes we'll talk more about this, but typically it's easy to evade initial email filters and some sandbox solutions by delivering URLs or data in QR codes. 82 00:04:49,780 --> 00:04:52,800 And actually, I think they convey a sense of legitimacy. 83 00:04:52,800 --> 00:04:57,640 I asked a bunch of my friends who's not technical, you know, can anybody create a QR code? 84 00:04:57,640 --> 00:04:59,220 And a lot of them thought no. 85 00:04:59,220 --> 00:05:07,980 A lot of them thought that you had to be some sort of legitimate entity, that you had to be an organization or get a license or whatever to create your QR code, which is obviously wrong, right? 86 00:05:07,980 --> 00:05:12,700 So I think that is underlying of why a lot of people feel QR codes are very legitimate. 87 00:05:13,860 --> 00:05:21,900 And also, the best thing about phishing, specifically with QR codes, is that you move the initial access of whatever you are giving to the victim off the main device. 88 00:05:21,900 --> 00:05:37,740 A lot of large corporate networks or large companies will have heavily protected machines, but the mobile devices are either private, owned by the employee themselves, or maybe not as heavily enrolled or doesn't have the same defensive capabilities as the machine itself. 89 00:05:37,740 --> 00:05:43,080 Meaning that, you know, a potential defense, a SOC, wouldn't gain the same telemetry from that phone as they would from the device. 90 00:05:43,080 --> 00:05:45,960 I think this is true for many, many organizations out there. 91 00:05:47,000 --> 00:05:51,580 Okay, so obviously, phishing with QR codes, I think everybody's seen a couple of these examples. 92 00:05:51,800 --> 00:05:55,240 I think the Microsoft multi-factor authentication one is by far the most abused, right? 93 00:05:55,240 --> 00:06:01,420 Because it's based on the legitimate use case where you set up a Microsoft account, you have to scan the QR code to set up your multi-factor app. 94 00:06:01,420 --> 00:06:08,040 And therefore, you know, you have to re-authenticate or whatever the context is a couple of times a year, and that really makes a good phishing campaign. 95 00:06:08,040 --> 00:06:09,640 DocuSign is also heavily abused. 96 00:06:09,640 --> 00:06:13,600 Anything related to Microsoft, really, people love throwing Microsoft logos around, right? 97 00:06:14,280 --> 00:06:16,440 So a bit of detection engineering. 98 00:06:16,440 --> 00:06:18,300 How do we detect QR codes? 99 00:06:18,300 --> 00:06:22,180 I googled this, which means I did great research on the subject, right? 100 00:06:22,200 --> 00:06:29,640 Found this blog post by Liam Jones, who created a basic detection rule for basically pulling out image attachments from emails. 101 00:06:29,640 --> 00:06:38,460 He then had some automation for parsing the images and looking for QR codes, essentially attempting to parse every image as a QR code and then look at the data, right? 102 00:06:38,460 --> 00:06:40,160 That's the manual way to do it. 103 00:06:40,160 --> 00:06:41,640 There's a couple of flaws in this rule. 104 00:06:41,640 --> 00:06:42,660 You can probably spot it. 105 00:06:42,660 --> 00:06:46,420 You know, there's a bunch of more image extensions than PNG, JPEG, and SVG. 106 00:06:46,620 --> 00:06:48,480 But yeah, that's just an example, right? 107 00:06:48,480 --> 00:06:52,000 And then you have black box solutions, which we don't know how to work like Microsoft Sentinel. 108 00:06:52,020 --> 00:07:01,120 If you give Microsoft some of your hard-earned money and get like an E5 or E3 or whatever their licensing model is at the time, you'll get this, which is Microsoft Sentinel. 109 00:07:01,120 --> 00:07:05,420 It will overwatch all your emails, inbound, outbound from the organization. 110 00:07:05,460 --> 00:07:08,580 And it will actually tell you if you got a URL from a QR code. 111 00:07:08,580 --> 00:07:13,620 You see, it will tag it as the source of this data is from a QR code and will give it a URL. 112 00:07:13,840 --> 00:07:15,600 And it will automatically browse through it. 113 00:07:15,600 --> 00:07:18,660 It will take a look at it and try to determine if it's nasty or not, right? 114 00:07:18,660 --> 00:07:24,460 So the detection solutions, defensive solutions out there are definitely aware of QR code phishing and it's an established thing. 115 00:07:24,460 --> 00:07:26,080 We'll get back to this later. 116 00:07:26,560 --> 00:07:29,180 Okay, how about image-less delivery methods, right? 117 00:07:29,180 --> 00:07:38,800 I think when I say that, most of you are immediately going to think about the ASCII art method because it's a known method where you basically use different weird ASCII characters to represent the QR code. 118 00:07:38,940 --> 00:07:47,420 And the reason I say that this is a known method because our well-known influencer John Hammond made a video about this four months ago and at least 2 million people know about this now. 119 00:07:47,420 --> 00:07:48,800 So it's definitely known. 120 00:07:48,800 --> 00:07:51,180 Obviously not to throw him under the bus, it's great. 121 00:07:51,180 --> 00:07:53,040 Just want to say it's an established thing. 122 00:07:53,340 --> 00:08:02,100 And so when we want to phish, if I wanted to phish without the use of images to avoid this detection that I just talked about, what could I possibly use for this? 123 00:08:02,100 --> 00:08:04,660 Well, I found this example in CSS. 124 00:08:04,660 --> 00:08:08,340 So there's a great guy called Jason Adelia or whatever I butcher his name. 125 00:08:08,560 --> 00:08:18,280 He's a web developer or a web designer and he has this CodePen link out on Google somewhere where he showcases his QR code to his website created with CSS. 126 00:08:18,280 --> 00:08:27,860 So he's actually using a blank white canvas and then using box shadows to fill in the black and white for the entire grid array and it turns into this beautiful QR code. 127 00:08:27,860 --> 00:08:29,320 Now, this looks interesting. 128 00:08:29,320 --> 00:08:30,600 This doesn't look like shit, right? 129 00:08:30,600 --> 00:08:32,260 So we could potentially use this. 130 00:08:32,300 --> 00:08:38,560 So me and ChatTPT sat down one night and we looked at some Python code and I came up with this dirty piece of crap. 131 00:08:38,560 --> 00:08:44,320 Basically, creates a QR code, goes through every cell in the QR code, determines if the QR code is... 132 00:08:44,320 --> 00:08:50,360 or that pixel or cell is black and then fills in the box shadow, the CSS using his technique with that. 133 00:08:50,380 --> 00:08:51,900 And then this looks really great. 134 00:08:51,900 --> 00:08:54,200 Actually, a bunch of email clients will happily render this. 135 00:08:54,200 --> 00:09:00,720 Both Thunderbird and Apple Mail, the built-in Apple Mail, will render this as CSS and it scans, it looks great and it's not an image. 136 00:09:00,720 --> 00:09:04,880 So this will fly by basic detection for email filters because there's no image there. 137 00:09:04,880 --> 00:09:06,820 So there's obviously no QR code there, right? 138 00:09:06,880 --> 00:09:12,740 And of course, you can see that the CSS is not offset because, you know, centering things to CSS is an absolute fucking nightmare. 139 00:09:12,740 --> 00:09:15,980 So I didn't bother spending the needed two hours to center this thing. 140 00:09:15,980 --> 00:09:17,340 I just screenshots it. 141 00:09:17,340 --> 00:09:18,820 That's your issue now. 142 00:09:18,820 --> 00:09:20,060 But it is what it is. 143 00:09:20,060 --> 00:09:25,560 The sad thing about this though is that Outlook doesn't support this in the desktop client. 144 00:09:25,560 --> 00:09:33,520 The web version of Outlook will happily render CSS for you, but the, again, not centered, but the desktop client will not render CSS. 145 00:09:33,520 --> 00:09:44,440 This is because the Outlook desktop client is extremely sassy and in general just is very picky about what HTML tags you can use, what CSS you can use. 146 00:09:44,440 --> 00:09:48,760 And if you ever made an email in the Outlook desktop client, you know what I'm talking about. 147 00:09:48,760 --> 00:09:50,260 It's a nightmare, right? 148 00:09:50,260 --> 00:09:51,460 So it doesn't work. 149 00:09:51,460 --> 00:10:00,420 And it's kind of important because it turns out, at least based on one source, that the Outlook desktop client owns about 58.1% of desktop machines. 150 00:10:00,420 --> 00:10:01,780 So it's kind of important. 151 00:10:01,780 --> 00:10:08,840 And, you know, when working against large organizations, by far the experience I have is that most people use the Outlook desktop client. 152 00:10:08,840 --> 00:10:10,480 I think we can all agree on that, right? 153 00:10:10,480 --> 00:10:11,660 That's a given. 154 00:10:12,560 --> 00:10:14,240 Okay, so we got to take a step back then. 155 00:10:14,240 --> 00:10:15,600 CSS, sure, we can use that. 156 00:10:15,600 --> 00:10:19,020 We already scripted that way, but we got to find some other way. 157 00:10:19,020 --> 00:10:26,580 What other structure could we possibly use to create like a drawing almost of pixels? 158 00:10:26,580 --> 00:10:28,220 Like what could we use, right? 159 00:10:28,260 --> 00:10:32,020 So the answer to that, at least one, is tables. 160 00:10:32,020 --> 00:10:35,460 So tables is something that Outlook desktop client supports. 161 00:10:35,460 --> 00:10:38,480 When I say tables, I don't mean like Excel tables. 162 00:10:38,480 --> 00:10:42,020 I mean like actual HTML tables and rows and columns. 163 00:10:42,020 --> 00:10:43,500 And they support styling. 164 00:10:43,500 --> 00:10:49,980 So you could take a table and you can style each column in that either white color or black color. 165 00:10:49,980 --> 00:10:51,480 And you can create a QR code. 166 00:10:51,660 --> 00:10:55,760 So again, me and ChattyPT sat down one night and we created this. 167 00:10:55,760 --> 00:11:02,100 So you set the cell spacing and the cell padding to zero or a given size for how big QR code you want to make. 168 00:11:02,100 --> 00:11:06,340 And then you basically start filling in, okay, this pixel of this QR code is white. 169 00:11:06,340 --> 00:11:10,740 Let's pad this or let's make the background color of this cell white or black, right? 170 00:11:10,740 --> 00:11:16,660 And then you go through the whole thing and voila, you got a beautiful looking table in HTML. 171 00:11:16,940 --> 00:11:20,000 And you got a beautiful looking QR code in Outlook Desktop Client, right? 172 00:11:20,000 --> 00:11:20,960 And this looks good. 173 00:11:20,960 --> 00:11:24,900 I actually think this deserves a round of applause, to be perfectly honest with you. 174 00:11:25,420 --> 00:11:26,740 And this is really dumb. 175 00:11:26,740 --> 00:11:28,540 This is KISS all the way, right? 176 00:11:28,540 --> 00:11:30,000 It's super simple, super dumb. 177 00:11:30,000 --> 00:11:30,980 And is it effective? 178 00:11:30,980 --> 00:11:31,900 That's the big question. 179 00:11:31,900 --> 00:11:32,980 Is this effective? 180 00:11:33,100 --> 00:11:39,640 So I actually, you know, I reached into my paycheck and I bought Microsoft Sentinel, XDR, EDR, whatever they call it now. 181 00:11:39,640 --> 00:11:40,940 They change them every week. 182 00:11:41,300 --> 00:11:44,020 And I give them my money and I wanted to test it. 183 00:11:44,020 --> 00:11:46,380 So first I set up two accounts. 184 00:11:46,380 --> 00:11:47,680 I set up Microsoft Sentinel. 185 00:11:47,680 --> 00:11:49,780 I started monitoring incoming email traffic. 186 00:11:49,920 --> 00:11:55,480 And then I set out this QR code in a Base64, as a Base64 image embedded in the email. 187 00:11:55,480 --> 00:11:57,600 And obviously Microsoft Sentinel picked this right up. 188 00:11:57,600 --> 00:11:59,060 It says, you know, this is a QR code. 189 00:11:59,060 --> 00:12:00,120 This is the URL. 190 00:12:00,340 --> 00:12:03,280 That's Rick Roll, if anybody recognized that. 191 00:12:03,280 --> 00:12:05,380 Hacks, Elite Hacks are to you if you recognize that. 192 00:12:05,640 --> 00:12:09,500 And then I tried sending a table and long and behold, nothing happened. 193 00:12:09,500 --> 00:12:14,800 So Microsoft Sentinel did not detect the table as an image or as a QR code at all and didn't parse it. 194 00:12:14,800 --> 00:12:18,140 And therefore, as a defender, you don't have telemetry for this. 195 00:12:18,180 --> 00:12:22,760 So if I send a bunch of phishing emails with QR codes generated as tables, the URL will not pop up. 196 00:12:22,760 --> 00:12:23,700 Nobody will spam it. 197 00:12:23,700 --> 00:12:28,400 No bot will hit it and it will reach a target and it's still scannable by mobile devices. 198 00:12:28,400 --> 00:12:30,200 So this works great. 199 00:12:30,660 --> 00:12:32,220 Now this, I've already done this. 200 00:12:32,220 --> 00:12:34,640 I talked about this at a conference a couple of months back. 201 00:12:34,640 --> 00:12:38,680 This is built into the tool Crucible, which I'll talk about later. 202 00:12:38,680 --> 00:12:40,140 And you can find that on GitHub. 203 00:12:40,140 --> 00:12:41,220 It works great. 204 00:12:41,220 --> 00:12:43,100 And yeah, it's cool. 205 00:12:43,100 --> 00:12:45,680 But let's think about it and take it a step further. 206 00:12:45,680 --> 00:12:48,380 We can generate QR codes in CSS, sick. 207 00:12:48,400 --> 00:12:51,120 We can generate QR codes in tables, even sicker. 208 00:12:51,280 --> 00:12:55,940 But what about obfuscating email content using tables? 209 00:12:56,260 --> 00:12:59,520 Because think about it, the table is essentially our drawing board. 210 00:12:59,520 --> 00:13:01,080 We can draw whatever we want. 211 00:13:01,080 --> 00:13:03,940 Each column in the table is a pixel for us, right? 212 00:13:04,020 --> 00:13:06,340 So we could draw the entire email. 213 00:13:06,540 --> 00:13:10,480 We could render HTML and draw the entire thing as a table. 214 00:13:11,020 --> 00:13:13,160 So this is what we dive into. 215 00:13:13,160 --> 00:13:15,500 And this was a bit of a nightmare, to be perfectly honest. 216 00:13:15,500 --> 00:13:16,660 This is the process. 217 00:13:17,100 --> 00:13:18,620 So we need to... 218 00:13:18,620 --> 00:13:21,080 So the point, what I want to do, I guess I should go back on this. 219 00:13:21,080 --> 00:13:23,420 Why would you want to do this in the first place, right? 220 00:13:23,420 --> 00:13:29,440 So more and more defensive solutions out there are using AI to get the context of the email you're sending. 221 00:13:29,440 --> 00:13:30,680 They're using risk scores. 222 00:13:30,680 --> 00:13:37,000 They're using a context-aware AI to understand, you know, is this potentially a legitimate message being delivered to my user? 223 00:13:37,000 --> 00:13:41,420 And then based on the risk score, whatever, it will be delivered, sandboxed, looked at, whatever, right? 224 00:13:41,580 --> 00:13:50,800 So the thought behind this is that if we can obfuscate keywords in the email, like MFA, like QR, like re-authenticate, like Microsoft, right? 225 00:13:50,800 --> 00:13:56,540 It's going to be much harder for the AI model to determine the context of the email and if it's legitimate or not. 226 00:13:56,540 --> 00:14:04,160 So the whole point behind this is I want to take a keyword, say re-authenticate, and I want to render that as an image. 227 00:14:04,160 --> 00:14:06,300 And then I want to turn it into a table. 228 00:14:06,300 --> 00:14:10,680 And then I want to replace the keyword in the email with that table. 229 00:14:10,860 --> 00:14:12,540 So there's no text there. 230 00:14:12,540 --> 00:14:14,900 It's a table representing the text. 231 00:14:15,420 --> 00:14:16,480 So there's no text. 232 00:14:16,480 --> 00:14:18,500 You can't select it, but it looks like a text. 233 00:14:18,500 --> 00:14:20,520 The end user will think it's text, but it's not. 234 00:14:20,980 --> 00:14:22,700 I went through this process. 235 00:14:22,860 --> 00:14:31,260 So basically, you give the Python script the email, the HTML email that you want to send, and then you tell it, hey, I want to replace the keyword, re-authenticate. 236 00:14:31,380 --> 00:14:38,700 The Python script will then render the, the Python script will then inject a marker in that as to handle that word. 237 00:14:38,700 --> 00:14:44,120 So it will inject like a box around the word in HTML, and then it will render the entire email. 238 00:14:44,120 --> 00:14:48,380 And then it will use image recognition to cut out that box. 239 00:14:48,580 --> 00:14:51,780 And then it will remove the borders and turn it into a table. 240 00:14:52,460 --> 00:14:57,040 And this is dumb and complicated, and you would never think this would work, but it actually works. 241 00:14:57,040 --> 00:14:59,780 So I'm going to demo that right now so you can see that. 242 00:14:59,960 --> 00:15:04,040 Hopefully, you can see my terminal now. 243 00:15:04,040 --> 00:15:05,360 Can you see a terminal? 244 00:15:05,440 --> 00:15:06,240 Great. 245 00:15:06,260 --> 00:15:10,920 I'll try to clear this and make it a bit bigger for you guys. 246 00:15:11,840 --> 00:15:14,180 Like, ooh, okay. 247 00:15:14,280 --> 00:15:15,540 So this is Crucible. 248 00:15:15,540 --> 00:15:16,800 This is the help menu. 249 00:15:17,180 --> 00:15:23,560 You give it a URL that you want the QR code data, the data you want inside the QR code doesn't have to be URL, but typically it's URL. 250 00:15:23,560 --> 00:15:25,380 You want to set a QR code size. 251 00:15:25,380 --> 00:15:26,800 You give it an input. 252 00:15:26,800 --> 00:15:30,420 So you give it like a typically like a phishing email template in HTML. 253 00:15:30,420 --> 00:15:37,580 And then wherever the word QR underscore placeholder is will be replaced with a QR code table or CSS. 254 00:15:37,620 --> 00:15:40,700 And then you give it an output path if you don't want a random generated name. 255 00:15:40,700 --> 00:15:47,000 You can choose if you want the CSS method or the tables method, and you can also generate output in straight EML, which is an email format. 256 00:15:47,000 --> 00:15:49,940 So you can just open it in Outlook afterwards, which is super nice. 257 00:15:49,980 --> 00:15:52,020 And then you have the obfuscate method. 258 00:15:52,020 --> 00:15:53,740 So that's what I'll be demonstrating now. 259 00:15:54,220 --> 00:15:57,840 So in this command here, I'll be linking to Defcon.org. 260 00:15:57,840 --> 00:16:04,060 I'm using my MFA or QR code template, and then I'm obfuscating the keywords MFA, QR, and Microsoft. 261 00:16:04,060 --> 00:16:12,520 So those words will be pulled out of the email template and replaced with images illustrated as tables in the new output. 262 00:16:14,720 --> 00:16:16,680 So it worked, hopefully. 263 00:16:17,200 --> 00:16:20,040 I have a backup if it doesn't. 264 00:16:21,040 --> 00:16:22,440 Open Sesame. 265 00:16:23,580 --> 00:16:24,640 Placeholder, I think. 266 00:16:24,640 --> 00:16:25,240 No. 267 00:16:26,320 --> 00:16:27,460 Oh, okay. 268 00:16:27,520 --> 00:16:28,860 Hopefully this works. 269 00:16:29,940 --> 00:16:31,060 Yeah. 270 00:16:31,840 --> 00:16:35,340 So this is a table QR code, and this is the... 271 00:16:35,340 --> 00:16:36,540 Fuck, it broke. 272 00:16:36,540 --> 00:16:38,460 Okay, it broke. 273 00:16:38,460 --> 00:16:39,420 Give me a second here. 274 00:16:39,420 --> 00:16:40,920 I'll go back to the demo. 275 00:16:42,760 --> 00:16:46,340 So it looks like this, if the demo worked correctly. 276 00:16:46,520 --> 00:16:47,840 And then this is the output. 277 00:16:47,840 --> 00:16:50,180 So this is the generated email. 278 00:16:50,180 --> 00:16:53,320 Can you spot the text that is tables? 279 00:16:53,480 --> 00:16:54,660 There is text. 280 00:16:54,660 --> 00:16:57,500 There are keywords in this email that is not text. 281 00:16:57,920 --> 00:16:58,980 Give you guys a second. 282 00:16:58,980 --> 00:17:00,240 Some of it is obvious. 283 00:17:00,700 --> 00:17:02,220 Some of it is not. 284 00:17:02,740 --> 00:17:05,480 And all of this is not text. 285 00:17:05,980 --> 00:17:14,180 This is tiny tables inserted into the email template, resulting in it looking like text, but it not being text. 286 00:17:16,160 --> 00:17:17,180 Round of applause. 287 00:17:17,180 --> 00:17:17,980 Cue that. 288 00:17:23,460 --> 00:17:27,120 And again, this works when you're not demoing it live at DefCon. 289 00:17:27,920 --> 00:17:29,860 And that's basically all I got. 290 00:17:30,160 --> 00:17:32,580 Thank you so much, Adversary Village, for having me. 291 00:17:32,580 --> 00:17:34,200 I got stickers for the project. 292 00:17:34,200 --> 00:17:36,760 Scan this QR code, if you trust me, to get to the project. 293 00:17:36,900 --> 00:17:42,320 And yeah, go out there and fish somebody and improve our defenses by some degree. 294 00:17:42,340 --> 00:17:43,580 Thank you so much for being here, guys.