1 00:00:00,000 --> 00:00:05,660 Hi, sorry for the setup issues. 2 00:00:07,620 --> 00:00:10,780 This is my talk about psychic paper. 3 00:00:10,780 --> 00:00:40,080 It's how to use e-ink displays and also e-paper displays to fake the front of identification badges and also discussion about the two or three e-ink systems that are pre-made from suppliers and how they have lax security and unusual sign-up. 4 00:00:40,620 --> 00:00:42,440 My handler is Zitobibi Gong. 5 00:00:42,440 --> 00:00:45,180 I'm a frequent of the DEF CON Discord. 6 00:00:48,540 --> 00:00:51,100 A lot more about who I am. 7 00:00:51,100 --> 00:00:55,180 I have 11 years of experience in the software industry. 8 00:00:55,700 --> 00:01:00,640 This is a hobby project and this is not related to my employer. 9 00:01:01,240 --> 00:01:09,860 I've actually had to add that to my presentations because people think that they're too advanced to actually not be related to my hobby. 10 00:01:10,640 --> 00:01:12,700 So what is this talk about? 11 00:01:12,700 --> 00:01:38,300 This talk is about the application of two to three-color e-ink displays and also a design prototype of a five-color e-ink display that would be much more effective in red teaming and or physical red teaming and social engineering. 12 00:01:39,360 --> 00:01:57,200 Anecdotally, I talked to the person at DEF CON and they were able to replicate someone's badge by looking for a high-resolution picture, copy and pasting it into an image editor, and then printing it out. 13 00:01:57,200 --> 00:02:34,460 This system, while having a lower resolution, could be done in real-time and also it could be replaced real-time too and combined with RFID knowledge that has been done in many DEF CON talks, you could basically clone an entire employee ID badge or physical access badge that uses RFID and or other technologies like MIFID and so forth. 14 00:02:34,780 --> 00:02:38,780 So first, we're going to go through three-color e-ink displays. 15 00:02:38,780 --> 00:02:43,220 These can be found on Amazon and Alibaba. 16 00:02:43,220 --> 00:02:45,580 They're very easy to source. 17 00:02:45,580 --> 00:02:49,420 They are much durable than the research prototype I have. 18 00:02:49,420 --> 00:02:55,500 They are reprogrammable and they have a weird way that you have to program them. 19 00:02:56,340 --> 00:03:08,800 So this is the nice pictures from Amazon that they put and on the upper right side that's the real thing. 20 00:03:09,760 --> 00:03:25,080 A good idea to understand the difference between e-ink, e-paper, and traditional display technologies or not really traditional but light emissive versus non-light emissive. 21 00:03:25,080 --> 00:03:41,120 So non-light emissive technologies require power and they require the emission of light, OLED, LCD, and so forth. 22 00:03:42,080 --> 00:03:51,220 By that nature, the obvious emission of light requires thermodynamically, you need a power source. 23 00:03:51,480 --> 00:04:01,440 On e-ink and or e-paper, e-ink is trademarked, so e-ink TM, it's an electromechanical device. 24 00:04:01,440 --> 00:04:02,320 And what does that mean? 25 00:04:02,760 --> 00:04:13,500 Electromechanical devices are devices that literally just move by an electric charge and then stop. 26 00:04:13,500 --> 00:04:25,140 Because they stop, they cannot acquire a power source after programming. 27 00:04:26,060 --> 00:04:48,500 I talked with someone in a previous talk I gave at another conference and they told me that they had a 12-year-old e-ink or e-paper device with the image for that long and there was no image degradation. 28 00:04:51,480 --> 00:04:57,140 But why I call this three-color is that technically there are three colors. 29 00:04:57,140 --> 00:05:00,040 There is white, red, and black. 30 00:05:00,040 --> 00:05:12,820 Now the other difference between e-paper and other light emissive such as LED and OLED is that because this is electromechanical, you technically have three colors. 31 00:05:12,820 --> 00:05:19,900 And it's not RGB, it's white-ish, black, and red. 32 00:05:19,900 --> 00:05:21,820 You can see this. 33 00:05:21,820 --> 00:05:27,340 And also if you had a Kindle, it's pretty obvious that white is not white-ish also. 34 00:05:27,440 --> 00:05:31,580 Even in the picture, you can see what true white is and white. 35 00:05:32,980 --> 00:05:35,620 So that's a big thing to consider. 36 00:05:38,640 --> 00:05:41,740 So this is a demo. 37 00:05:41,900 --> 00:05:45,720 It was on Amazon about just a two-color. 38 00:06:01,390 --> 00:06:04,550 As you can see the housing too. 39 00:06:05,110 --> 00:06:08,750 That will be important in the five-color prototype. 40 00:06:15,360 --> 00:06:32,620 So you could basically remake this, especially if they use only a QR code to authenticate people by just getting the data off the QR code and then using the e-ink or e-paper programmer and then scanning it. 41 00:06:37,820 --> 00:06:44,920 So some types of the suppliers are the software is made by Hippo Inc. 42 00:06:44,920 --> 00:06:45,840 or Hypo Inc. 43 00:06:45,840 --> 00:06:47,760 I'm not sure how to pronounce that. 44 00:06:48,240 --> 00:06:57,000 The APK must be downloaded from Hong Kong IP addresses or you have to be there. 45 00:06:57,200 --> 00:07:01,260 There's the active version that is also $100. 46 00:07:01,380 --> 00:07:04,120 The non-active version is around $40. 47 00:07:04,120 --> 00:07:14,900 The active version has a button and a USB-C, possibly to reprogram, but it's pretty obvious that they have to have some kind of battery to do that. 48 00:07:15,860 --> 00:07:19,400 But both need phones to connect to. 49 00:07:19,960 --> 00:07:25,740 The higher priced one uses an iOS device, but I'm only going to really show the Android one. 50 00:07:27,420 --> 00:07:31,540 So this is more an expanded on how to reprogram those three colors. 51 00:07:31,540 --> 00:07:33,500 You need a Hong Kong IP address. 52 00:07:33,500 --> 00:07:35,500 Use a VPN too. 53 00:07:35,920 --> 00:07:38,060 Volvad seems to work. 54 00:07:38,180 --> 00:07:39,900 You must silo the APK. 55 00:07:39,900 --> 00:07:45,280 You still must be using Hong Kong IP address to download the APK. 56 00:07:45,280 --> 00:07:47,280 Also, they have a link. 57 00:07:47,680 --> 00:07:51,040 You must create the login, still using the VPN. 58 00:07:51,040 --> 00:07:52,600 It has this weird setup. 59 00:07:52,600 --> 00:08:01,900 You use cross email, you set up a password, and then you have a pseudo two-factor that's emailed to you. 60 00:08:03,440 --> 00:08:06,240 Then you can upload the badge. 61 00:08:09,380 --> 00:08:15,600 The cards have 125 kilohertz NFC on it. 62 00:08:15,600 --> 00:08:34,400 The important part is, I believe, like aluminum tape or just to remove it if you want to use any other RFID technology, so you don't want to confuse the RFID or NFC sensor. 63 00:08:35,280 --> 00:08:46,300 The passive ones also uses NFC to reprogram, so I suggest putting on the back or just put it in your pocket. 64 00:08:48,380 --> 00:08:52,400 Now I'm going to go into more of the prototype design I made. 65 00:08:52,400 --> 00:08:55,160 So this is the more interesting part. 66 00:08:55,160 --> 00:09:02,640 It was not in the talk description, but I mean, why not? 67 00:09:03,120 --> 00:09:11,120 So as you can see on the right, there is a ePaper ESP32 circuit board. 68 00:09:11,120 --> 00:09:14,700 It then connects to the ePaper device. 69 00:09:14,820 --> 00:09:17,500 You can see that the fidelity is much better. 70 00:09:17,500 --> 00:09:24,760 The white is still off-white, but it's much more high resolution. 71 00:09:25,440 --> 00:09:31,420 Also, the purple part is the bezel. 72 00:09:31,420 --> 00:09:36,040 The orange part is the physical display connector. 73 00:09:36,040 --> 00:09:44,040 The middle part is a shim that they do where it takes one connector and adds it to another. 74 00:09:45,240 --> 00:09:49,440 The middle part is part of the programmer. 75 00:09:49,800 --> 00:09:55,980 There is also a Raspberry Pi hat. 76 00:09:56,660 --> 00:10:02,700 In the future, if I were to redo it, I would have done it that way. 77 00:10:02,700 --> 00:10:04,960 This programmer has either 78 00:10:10,180 --> 00:10:17,500 unreliable behavior, or when I've unplugged and plugged the orange part, it breaks my programming. 79 00:10:17,800 --> 00:10:25,600 So I have to do more research on that, but you could also do it as a one-and-done engagement anyways. 80 00:10:26,940 --> 00:10:36,120 The person who I talked about doing the physical engagement when he printed it out, he said he used it for the full engagement and nobody noticed for a month. 81 00:10:36,120 --> 00:10:53,880 So this is a more high fidelity that nobody looks at, but you can also do active programming by going in from one security, taking a picture about somebody else's picture with higher level clearance, reprogramming, and so forth. 82 00:10:57,080 --> 00:11:03,980 And this is the most important part and most technical part of it. 83 00:11:04,260 --> 00:11:09,480 I had to find a wallet that would cover the bezel. 84 00:11:10,860 --> 00:11:12,460 You see this bezel? 85 00:11:13,180 --> 00:11:15,110 I did find a wallet. 86 00:11:29,880 --> 00:11:31,900 This is on Amazon. 87 00:11:32,520 --> 00:11:39,990 This is not an ad for the wallet, but you can, I don't know if you can see that this well, but it covers the bezel. 88 00:11:41,710 --> 00:11:49,270 And number two is your friend is also called double-sided tape. 89 00:11:49,410 --> 00:11:52,030 And why does that matter? 90 00:11:52,370 --> 00:12:03,450 You want this to generally be in place so that the bezel scene is minimized, because people might notice the purple part and also you don't want it fall out. 91 00:12:03,450 --> 00:12:12,890 I would also recommend to use that so it doesn't fall out either, although it's pretty tight if you don't cut anything. 92 00:12:14,630 --> 00:12:21,150 But yeah, double-sided tape is really important. 93 00:12:21,770 --> 00:12:39,370 Measuring the bezels was annoying because this is in inches and the display prototype or the display I'm using is in metric, so millimeters. 94 00:12:43,550 --> 00:12:47,790 So the affected display that you have to program makes this 40 by 400. 95 00:12:48,130 --> 00:12:52,370 There are five colors in display which increases the fidelity. 96 00:12:52,430 --> 00:12:56,570 This is, since it's more do-it-yourself, makes it more fragile. 97 00:12:56,650 --> 00:13:00,670 The RFID and NFC component can be separate. 98 00:13:01,150 --> 00:13:02,990 There are two ways that you can integrate it. 99 00:13:02,990 --> 00:13:17,510 One, cut the back of the display, I mean back of the wallet, paste an RFID device or anything inside, remove the RFID shielding, because this one is shielding. 100 00:13:17,510 --> 00:13:22,030 I couldn't find one without shielding, and put it inside. 101 00:13:22,030 --> 00:13:35,590 Another way would be to take a picture of the back of the wallet, make a sticker on Sticker Mule, and then use double-sided tape on the RFID device and then put the sticker on top of that. 102 00:13:39,290 --> 00:13:45,770 So this is sort of a basic summary of the steps to do. 103 00:13:49,930 --> 00:13:52,750 You could also make your own lanyard. 104 00:13:52,750 --> 00:14:17,290 I actually think if I wanted to make a less prototype, or more like a release version, would be for me to replicate this white design and 3D print it, and then add Bluetooth programming or something else. 105 00:14:18,010 --> 00:14:26,470 And maybe also add the NFC holder on the back. 106 00:14:28,670 --> 00:14:34,970 So the brand for the wallet I'm using is Cavaleo. 107 00:14:35,170 --> 00:14:38,870 It's a police-style badge. 108 00:14:38,870 --> 00:14:45,830 I don't recommend using the other part because that's very illegal. 109 00:14:47,290 --> 00:14:52,910 You can see the resolution of this e-paper device. 110 00:14:52,910 --> 00:14:55,350 It's wave share. 111 00:14:56,210 --> 00:14:58,650 And then the HID card. 112 00:14:59,070 --> 00:15:04,450 You can either get these cards from online. 113 00:15:04,450 --> 00:15:07,470 You could get it by buying a Proxmark . 114 00:15:07,650 --> 00:15:12,170 You could get one by forgetting to return your hotel badges. 115 00:15:13,410 --> 00:15:14,690 Depends. 116 00:15:14,690 --> 00:15:22,630 There are two general frequencies, 125 kilohertz and 415 megahertz. 117 00:15:22,630 --> 00:15:27,710 But it really depends on the situation on what you're doing. 118 00:15:28,510 --> 00:15:30,930 And programming is annoying. 119 00:15:31,770 --> 00:15:33,690 ESP32 driver board. 120 00:15:33,690 --> 00:15:37,630 You can use a phone for the three-color. 121 00:15:38,350 --> 00:15:46,730 The five-color also has the ability to do programming online. 122 00:15:46,850 --> 00:15:49,450 So it's sort of weird. 123 00:15:49,570 --> 00:15:54,930 The ESP32 has two ways to do online programming through a website. 124 00:15:54,930 --> 00:15:57,950 One is a Bluetooth one that I couldn't get working. 125 00:15:57,950 --> 00:15:59,530 And two is the Wi-Fi one. 126 00:15:59,530 --> 00:16:02,190 And the Wi-Fi one is extremely finicky. 127 00:16:02,890 --> 00:16:07,430 I look in console and if you do it, it crashes. 128 00:16:07,430 --> 00:16:09,570 It says post does not work. 129 00:16:09,570 --> 00:16:11,750 And you have to do it in a specific order. 130 00:16:11,850 --> 00:16:15,830 If you do it in the wrong order, you could have real problems. 131 00:16:16,070 --> 00:16:18,670 And I would like overwrite the driver board. 132 00:16:18,670 --> 00:16:22,110 And this is why I don't want to use this driver board anymore. 133 00:16:23,950 --> 00:16:29,490 And there are many upsides for the Raspberry Pi usage. 134 00:16:29,790 --> 00:16:30,370 There was 135 00:16:33,630 --> 00:16:41,670 a DEF CON talk where they did a real-time badge cloning of RFID. 136 00:16:41,670 --> 00:16:50,250 And they used Raspberry Pis, which means that you could combine this into that talk. 137 00:16:50,270 --> 00:16:54,590 And then you wouldn't even need this driver board. 138 00:16:55,790 --> 00:16:58,150 Waveshare also has a wiki. 139 00:16:58,150 --> 00:17:04,750 It's okay, but there are no alternative suppliers to this. 140 00:17:04,750 --> 00:17:09,310 This is the best solution I've seen. 141 00:17:09,630 --> 00:17:13,050 4.01 inches is really hard to find. 142 00:17:13,050 --> 00:17:20,970 Also, the purpose of these E-Ink, or why they even exist, are for digital signage. 143 00:17:21,630 --> 00:17:40,610 If you go to a Kohl's, they have a lot of... or a Best Buy, they have a lot of prices on the walls and they use it to automatically change it and possibly rip you off more. 144 00:17:43,050 --> 00:17:45,710 This is more about the driver board. 145 00:17:46,050 --> 00:17:47,730 It physically attaches. 146 00:17:47,730 --> 00:17:52,090 It connects to the paper and it supports Bluetooth and Wi-Fi. 147 00:17:52,090 --> 00:17:55,470 Once you do programming, though, it's not needed. 148 00:17:56,330 --> 00:18:02,710 So it could be a one-and-done engagement, really, considering how it is. 149 00:18:02,710 --> 00:18:06,470 It's very inexpensive. 150 00:18:06,850 --> 00:18:08,290 It's below $40. 151 00:18:15,690 --> 00:18:32,030 How I recommend is, a smartphone should be able to write it to the e-paper using the Wi-Fi, but the Wi-Fi setup has to be programmed specifically as a static IP. 152 00:18:32,610 --> 00:18:42,330 I thought of doing a demo like that, but it would require too much overhead and also Wi-Fi is spotty and I'd have to bring some kind of Wi-Fi divider. 153 00:18:43,070 --> 00:18:47,810 I also possibly, if you're going to do this yourself, to add a metal plate. 154 00:18:47,810 --> 00:18:59,150 They're not expensive to do, just to make the wallet more rigid because you can crack this quite easily by dropping it. 155 00:18:59,490 --> 00:19:03,510 So the aluminum would at least make it more rigid. 156 00:19:04,550 --> 00:19:08,230 And believe the padding in the wallet gives you enough. 157 00:19:09,910 --> 00:19:12,390 The badge reprogrammer is like a poxmark. 158 00:19:12,390 --> 00:19:13,510 You plug in the serial port. 159 00:19:13,510 --> 00:19:15,330 There's a lot of tutorials to do it. 160 00:19:15,330 --> 00:19:20,250 You should write the badge, read the badge from one, and then write and then put it. 161 00:19:20,250 --> 00:19:22,450 You could put it behind the prototype badge. 162 00:19:23,070 --> 00:19:27,730 That's a more advanced thing than emulating, but the top three would be. 163 00:19:27,730 --> 00:19:36,530 And by putting in, I mean, putting in behind the prototyping badges, you put in the programmed RFID behind it or keep it on you. 164 00:19:36,530 --> 00:19:42,390 It depends on how good you want to make it. 165 00:19:44,090 --> 00:19:46,490 So any questions? 166 00:20:03,770 --> 00:20:09,670 I believe it's white, red, black... 167 00:20:15,870 --> 00:20:17,610 Oh, it's seven. 168 00:20:18,570 --> 00:20:20,210 Yeah, you can see it here. 169 00:20:20,210 --> 00:20:24,710 White, blue, green, red, black, yellow, orange. 170 00:20:25,890 --> 00:20:29,250 It's the spinner. 171 00:20:41,030 --> 00:20:50,470 The bill of materials, if you were to redo this, would be the e-paper display is around $30 or $40. 172 00:20:50,470 --> 00:20:54,850 The wallet is another $30. 173 00:20:55,050 --> 00:21:01,010 The programmer is another $20. 174 00:21:06,390 --> 00:21:08,670 So around $200. 175 00:21:10,610 --> 00:21:14,670 It depends on how you're doing the RFID reprogramming. 176 00:21:15,030 --> 00:21:16,770 You can use a poxmark. 177 00:21:17,970 --> 00:21:29,430 On the other hand, if you're doing a physical one, you could just take somebody's and use the double-sided tape and the other sticker I alluded to. 178 00:21:37,370 --> 00:21:40,630 I can't hear what you say. 179 00:21:44,150 --> 00:21:46,030 Software side of what? 180 00:21:55,300 --> 00:21:58,920 It's an Arduino sketch that you get. 181 00:21:59,600 --> 00:22:05,080 It's an Arduino sketch that is given to you by Waveshare. 182 00:22:11,600 --> 00:22:14,490 Do not use Arduino IDE. 183 00:22:15,170 --> 00:22:18,450 Use the previous. 184 00:22:20,250 --> 00:22:22,690 The Arduino IDE have had problems. 185 00:22:22,690 --> 00:22:24,510 Using a Mac has problems. 186 00:22:25,290 --> 00:22:29,850 Using a window machine was the only way I could get it to work. 187 00:22:30,150 --> 00:22:31,130 It has this weird... 188 00:22:34,450 --> 00:22:39,690 When I program it, even though it'll verify and it shows up in tools... 189 00:22:39,690 --> 00:22:45,800 And here's what I was alluding to. 190 00:22:54,350 --> 00:22:57,970 You can see how janky this is. 191 00:22:58,870 --> 00:23:01,610 You have to program the SSD password. 192 00:23:01,610 --> 00:23:06,910 Static IP, gateway, subnet, DNS to connect to Wi-Fi. 193 00:23:08,070 --> 00:23:14,930 What I think was cool or funny was they also programmed the whole HTML website here. 194 00:23:17,010 --> 00:23:22,150 That's how they get the ESP32 to work. 195 00:23:22,630 --> 00:23:24,830 So it's not a server, it's a client. 196 00:23:25,890 --> 00:23:32,710 Server.h is this website serving. 197 00:23:32,710 --> 00:23:36,310 Server.h means to connect to a server. 198 00:23:36,990 --> 00:23:38,630 And then it displays this. 199 00:23:38,770 --> 00:23:41,890 I don't know why there's script A, B, C, and D. 200 00:23:43,710 --> 00:23:45,350 There's a Bluetooth one too. 201 00:23:45,350 --> 00:23:46,930 I couldn't get that one to work. 202 00:24:07,830 --> 00:24:17,950 You can see there's... It's probably hard to see, but it says you have to also use the board ESP2 dev module. 203 00:24:18,090 --> 00:24:31,330 So that means that you have to be connected to the internet to get the module parameters or setup because Arduino does not come with that by default. 204 00:24:31,330 --> 00:24:38,290 And what I meant by the Arduino version, so this is 1.8.29. 205 00:24:38,290 --> 00:24:56,050 So Arduino forks themselves by the ID where they have an Arduino IDE and they have the Arduino regular system or programming system, not IDE. 206 00:24:56,050 --> 00:25:07,510 When I tried programming with the traditional IDE, I had lots of problems to the point where I just reverted. 207 00:25:33,970 --> 00:25:39,950 So this is the three-color dispatch being programmed. 208 00:25:52,290 --> 00:25:55,810 This is where there was an issue when I was programming it when... 209 00:25:56,510 --> 00:26:01,190 This is me tapping it properly to... You can just... It'll cut. 210 00:26:01,190 --> 00:26:07,130 So this is... So you can see sort of the interface. 211 00:26:10,680 --> 00:26:14,720 And see, this is my face when you have only three colors. 212 00:26:15,300 --> 00:26:19,240 This is the logo I made that is in the tool. 213 00:26:19,240 --> 00:26:42,570 I plan on trying to make a tool that's integrated to the point where it will be... Try to do the USB programming directly and or hosted by the Raspberry Pi hat to try to integrate a lot of the difficulties I had with the traditional programmers. 214 00:26:43,370 --> 00:26:44,650 It's about time. 215 00:26:44,650 --> 00:26:45,410 Time? 216 00:26:46,110 --> 00:26:48,910 Thanks, everybody, for coming to this talk.