[00:00.000 --> 00:05.660] Hi, sorry for the setup issues. [00:07.620 --> 00:15.220] This is my talk about psychic paper. It's how to use e-ink displays and also e-paper [00:15.760 --> 00:27.540] displays to fake the front of identification badges and also discussion about the two or three [00:28.220 --> 00:40.080] e-ink systems that are pre-made from suppliers and how they have lax security and unusual sign-up. [00:40.620 --> 00:45.180] My handler is Zitobibi Gong. I'm a frequent of the DEF CON Discord. [00:48.540 --> 00:55.180] A lot more about who I am. I have 11 years of experience in the software industry. [00:55.700 --> 01:02.500] This is a hobby project and this is not related to my employer. I've actually had to add that [01:03.180 --> 01:08.600] to my presentations because people think that they're too advanced to actually not be related [01:08.600 --> 01:16.240] to my hobby. So what is this talk about? This talk is about the application of two [01:16.880 --> 01:26.640] to three-color e-ink displays and also a design prototype of a five-color e-ink display [01:26.640 --> 01:38.300] that would be much more effective in red teaming and or physical red teaming and social engineering. [01:39.360 --> 01:46.220] Anecdotally, I talked to the person at DEF CON and they were able to replicate someone's badge [01:46.860 --> 01:55.380] by looking for a high-resolution picture, copy and pasting it into an image editor, [01:55.380 --> 02:03.660] and then printing it out. This system, while having a lower resolution, could be done in real-time [02:04.220 --> 02:15.160] and also it could be replaced real-time too and combined with RFID knowledge that has been done [02:15.160 --> 02:23.280] in many DEF CON talks, you could basically clone an entire employee ID badge or physical access [02:23.280 --> 02:35.920] badge that uses RFID and or other technologies like MIFID and so forth. So first, we're going [02:35.920 --> 02:43.660] to go through three-color e-ink displays. These can be found on Amazon and Alibaba. They're very [02:43.660 --> 02:50.720] easy to source. They are much durable than the research prototype I have. They are reprogrammable [02:51.300 --> 02:58.920] and they have a weird way that you have to program them. So this is the nice pictures [02:58.920 --> 03:08.800] from Amazon that they put and on the upper right side that's the real thing. [03:09.760 --> 03:18.200] A good idea to understand the difference between e-ink, e-paper, and traditional display technologies [03:18.200 --> 03:27.100] or not really traditional but light emissive versus non-light emissive. So non-light emissive [03:27.100 --> 03:41.120] technologies require power and they require the emission of light, OLED, LCD, and so forth. [03:42.080 --> 03:50.040] By that nature, the obvious emission of light requires thermodynamically, you need a power [03:50.040 --> 03:57.060] source. On e-ink and or e-paper, e-ink is trademarked, so e-ink TM, [03:58.500 --> 04:04.180] it's an electromechanical device. And what does that mean? Electromechanical devices [04:04.180 --> 04:16.300] are devices that literally just move by an electric charge and then stop. Because they stop, [04:16.300 --> 04:28.560] they cannot acquire a power source after programming. I talked with someone [04:29.110 --> 04:35.940] in a previous talk I gave at another conference and they told me that they had [04:37.320 --> 04:43.620] a 12-year-old e-ink or e-paper device with the image [04:44.960 --> 04:55.580] for that long and there was no image degradation. But why I call this three-color is that technically [04:55.580 --> 05:02.200] there are three colors. There is white, red, and black. Now the other difference between e-paper [05:02.200 --> 05:10.920] and other light emissive such as LED and OLED is that because this is electromechanical, [05:10.920 --> 05:19.900] you technically have three colors. And it's not RGB, it's white-ish, black, and red. [05:19.900 --> 05:26.800] You can see this. And also if you had a Kindle, it's pretty obvious that white is not white-ish [05:26.800 --> 05:34.420] also. Even in the picture, you can see what true white is and white. So that's a big thing [05:34.420 --> 06:03.470] to consider. So this is a demo. It was on Amazon about just a two-color. As you can see the housing [06:03.470 --> 06:19.200] too. That will be important in the five-color prototype. So you could basically remake this, [06:19.200 --> 06:24.160] especially if they use only a QR code to authenticate people by just getting the [06:24.160 --> 06:32.620] data off the QR code and then using the e-ink or e-paper programmer and then scanning it. [06:37.820 --> 06:46.260] So some types of the suppliers are the software is made by Hippo Inc. or Hypo Inc. I'm not sure [06:46.260 --> 06:56.200] how to pronounce that. The APK must be downloaded from Hong Kong IP addresses or you have to be [06:56.200 --> 07:04.120] there. There's the active version that is also $100. The non-active version is around $40. [07:04.120 --> 07:12.140] The active version has a button and a USB-C, possibly to reprogram, but it's pretty obvious [07:12.140 --> 07:19.400] that they have to have some kind of battery to do that. But both need phones to connect to. [07:19.960 --> 07:25.740] The higher priced one uses an iOS device, but I'm only going to really show the Android one. [07:27.420 --> 07:32.660] So this is more an expanded on how to reprogram those three colors. You need a Hong Kong IP [07:32.660 --> 07:41.320] address. Use a VPN too. Volvad seems to work. You must silo the APK. You still must be using [07:42.220 --> 07:49.400] Hong Kong IP address to download the APK. Also, they have a link. You must create the login, [07:49.400 --> 07:55.400] still using the VPN. It has this weird setup. You use cross email, you set up a password, [07:55.400 --> 08:06.240] and then you have a pseudo two-factor that's emailed to you. Then you can upload the badge. [08:09.380 --> 08:19.460] The cards have 125 kilohertz NFC on it. The important part is, I believe, like aluminum tape [08:19.460 --> 08:27.380] or just to remove it if you want to use any other RFID technology, so you don't want to [08:27.940 --> 08:40.220] confuse the RFID or NFC sensor. The passive ones also uses NFC to reprogram, [08:40.220 --> 08:46.300] so I suggest putting on the back or just put it in your pocket. [08:48.380 --> 08:52.400] Now I'm going to go into more of the prototype design I made. [08:52.400 --> 09:00.400] So this is the more interesting part. It was not in the talk description, but I mean, [09:01.120 --> 09:12.200] why not? So as you can see on the right, there is a ePaper ESP32 circuit board. It then connects [09:12.200 --> 09:19.200] to the ePaper device. You can see that the fidelity is much better. The white is still [09:19.200 --> 09:32.040] off-white, but it's much more high resolution. Also, the purple part is the bezel. The orange [09:32.040 --> 09:40.760] part is the physical display connector. The middle part is a shim that they do where it [09:40.760 --> 09:49.440] takes one connector and adds it to another. The middle part is part of the programmer. [09:49.800 --> 10:00.580] There is also a Raspberry Pi hat. In the future, if I were to redo it, I would have [10:01.140 --> 10:04.960] done it that way. This programmer has either [10:10.180 --> 10:17.500] unreliable behavior, or when I've unplugged and plugged the orange part, it breaks my programming. [10:17.800 --> 10:24.500] So I have to do more research on that, but you could also do it as a one-and-done engagement [10:24.500 --> 10:32.480] anyways. The person who I talked about doing the physical engagement when he printed it out, [10:32.480 --> 10:37.640] he said he used it for the full engagement and nobody noticed for a month. So this is a more [10:37.640 --> 10:45.000] high fidelity that nobody looks at, but you can also do active programming by going in from one [10:45.760 --> 10:51.980] security, taking a picture about somebody else's picture with higher level clearance, [10:51.980 --> 11:03.980] reprogramming, and so forth. And this is the most important part and most technical part of it. [11:04.260 --> 11:15.110] I had to find a wallet that would cover the bezel. You see this bezel? I did find a wallet. [11:29.880 --> 11:34.390] This is on Amazon. This is not an ad for the wallet, [11:35.070 --> 11:39.990] but you can, I don't know if you can see that this well, but it covers the bezel. [11:41.710 --> 11:52.030] And number two is your friend is also called double-sided tape. And why does that matter? [11:52.370 --> 11:58.670] You want this to generally be in place so that the bezel scene is minimized, because people [11:58.670 --> 12:05.370] might notice the purple part and also you don't want it fall out. I would also recommend [12:06.330 --> 12:12.890] to use that so it doesn't fall out either, although it's pretty tight if you don't cut anything. [12:14.630 --> 12:24.490] But yeah, double-sided tape is really important. Measuring the bezels was annoying [12:25.110 --> 12:37.790] because this is in inches and the display prototype or the display I'm using is in metric, [12:37.790 --> 12:47.790] so millimeters. So the affected display that you have to program makes this 40 by 400. [12:48.130 --> 12:55.110] There are five colors in display which increases the fidelity. This is, since it's more do-it-yourself, [12:55.110 --> 13:01.670] makes it more fragile. The RFID and NFC component can be separate. There are two [13:01.670 --> 13:06.110] ways that you can integrate it. One, cut the back of the display, I mean back of the wallet, [13:07.550 --> 13:17.510] paste an RFID device or anything inside, remove the RFID shielding, because this one is shielding. [13:17.510 --> 13:23.950] I couldn't find one without shielding, and put it inside. Another way would be to take a picture [13:23.950 --> 13:31.270] of the back of the wallet, make a sticker on Sticker Mule, and then use double-sided tape [13:31.270 --> 13:42.730] on the RFID device and then put the sticker on top of that. So this is sort of a basic [13:43.350 --> 13:55.570] summary of the steps to do. You could also make your own lanyard. I actually think if I [13:55.570 --> 14:04.390] wanted to make a less prototype, or more like a release version, would be for me to replicate [14:06.770 --> 14:17.290] this white design and 3D print it, and then add Bluetooth programming or something else. [14:18.010 --> 14:26.470] And maybe also add the NFC holder on the back. [14:28.670 --> 14:38.870] So the brand for the wallet I'm using is Cavaleo. It's a police-style badge. [14:38.870 --> 14:45.830] I don't recommend using the other part because that's very illegal. [14:47.290 --> 14:55.350] You can see the resolution of this e-paper device. It's wave share. [14:56.210 --> 15:06.710] And then the HID card. You can either get these cards from online. You could get it by buying a [15:06.710 --> 15:15.130] Proxmark. You could get one by forgetting to return your hotel badges. Depends. There are [15:15.130 --> 15:24.370] two general frequencies, 125 kilohertz and 415 megahertz. But it really depends on the situation [15:25.520 --> 15:30.930] on what you're doing. And programming is annoying. [15:31.770 --> 15:41.830] ESP32 driver board. You can use a phone for the three-color. The five-color also has the ability [15:41.830 --> 15:53.030] to do programming online. So it's sort of weird. The ESP32 has two ways to do online programming [15:53.030 --> 15:59.530] through a website. One is a Bluetooth one that I couldn't get working. And two is the Wi-Fi one. [15:59.530 --> 16:07.890] And the Wi-Fi one is extremely finicky. I look in console and if you do it, it crashes. It says [16:07.890 --> 16:13.490] post does not work. And you have to do it in a specific order. If you do it in the wrong order, [16:13.490 --> 16:18.670] you could have real problems. And I would like overwrite the driver board. [16:18.670 --> 16:22.110] And this is why I don't want to use this driver board anymore. [16:23.950 --> 16:30.370] And there are many upsides for the Raspberry Pi usage. There was [16:33.630 --> 16:43.390] a DEF CON talk where they did a real-time badge cloning of RFID. And they used Raspberry Pis, [16:43.390 --> 16:52.610] which means that you could combine this into that talk. And then you wouldn't even need this [16:52.610 --> 17:03.130] driver board. Waveshare also has a wiki. It's okay, but there are no alternative suppliers to [17:04.130 --> 17:13.050] this. This is the best solution I've seen. 4.01 inches is really hard to find. [17:13.050 --> 17:20.970] Also, the purpose of these E-Ink, or why they even exist, are for digital signage. [17:21.630 --> 17:35.250] If you go to a Kohl's, they have a lot of... or a Best Buy, they have a lot of prices on [17:35.250 --> 17:40.610] the walls and they use it to automatically change it and possibly rip you off more. [17:43.050 --> 17:48.170] This is more about the driver board. It physically attaches. It connects to the [17:48.170 --> 17:55.470] paper and it supports Bluetooth and Wi-Fi. Once you do programming, though, it's not needed. [17:56.330 --> 18:03.650] So it could be a one-and-done engagement, really, considering how it is. It's very [18:05.350 --> 18:22.110] inexpensive. It's below $40. How I recommend is, a smartphone should be able to write it [18:22.110 --> 18:31.070] to the e-paper using the Wi-Fi, but the Wi-Fi setup has to be programmed specifically as a [18:31.070 --> 18:37.090] static IP. I thought of doing a demo like that, but it would require too much overhead and also [18:37.090 --> 18:45.650] Wi-Fi is spotty and I'd have to bring some kind of Wi-Fi divider. I also possibly, if you're going [18:45.650 --> 18:53.010] to do this yourself, to add a metal plate. They're not expensive to do, just to make the wallet more [18:53.010 --> 19:01.590] rigid because you can crack this quite easily by dropping it. So the aluminum would at least [19:01.590 --> 19:08.230] make it more rigid. And believe the padding in the wallet gives you enough. [19:09.910 --> 19:13.810] The badge reprogrammer is like a poxmark. You plug in the serial port. There's a lot [19:13.810 --> 19:19.150] of tutorials to do it. You should write the badge, read the badge from one, and then write [19:19.150 --> 19:24.290] and then put it. You could put it behind the prototype badge. That's a more advanced thing [19:24.290 --> 19:30.490] than emulating, but the top three would be. And by putting in, I mean, putting in behind [19:30.490 --> 19:37.390] the prototyping badges, you put in the programmed RFID behind it or keep it on you. It depends on [19:37.390 --> 20:09.670] how good you want to make it. So any questions? I believe it's white, red, black... [20:15.870 --> 20:24.710] Oh, it's seven. Yeah, you can see it here. White, blue, green, red, black, yellow, orange. [20:25.890 --> 20:44.870] It's the spinner. The bill of materials, if you were to redo this, would be [20:46.830 --> 20:57.550] the e-paper display is around $30 or $40. The wallet is another $30. The programmer is [20:59.450 --> 21:14.670] another $20. So around $200. It depends on how you're doing the RFID reprogramming. [21:15.030 --> 21:24.470] You can use a poxmark. On the other hand, if you're doing a physical one, [21:24.470 --> 21:29.430] you could just take somebody's and use the double-sided tape and the other sticker I alluded to. [21:37.370 --> 21:46.030] I can't hear what you say. Software side of what? [21:55.300 --> 21:58.920] It's an Arduino sketch that you get. [21:59.600 --> 22:14.490] It's an Arduino sketch that is given to you by Waveshare. Do not use Arduino IDE. [22:15.170 --> 22:24.510] Use the previous. The Arduino IDE have had problems. Using a Mac has problems. [22:25.290 --> 22:31.130] Using a window machine was the only way I could get it to work. It has this weird... [22:34.450 --> 22:39.690] When I program it, even though it'll verify and it shows up in tools... [22:39.690 --> 22:57.970] And here's what I was alluding to. You can see how janky this is. [22:58.870 --> 23:06.910] You have to program the SSD password. Static IP, gateway, subnet, DNS to connect to Wi-Fi. [23:08.070 --> 23:14.930] What I think was cool or funny was they also programmed the whole HTML website here. [23:17.010 --> 23:24.830] That's how they get the ESP32 to work. So it's not a server, it's a client. [23:25.890 --> 23:36.310] Server.h is this website serving. Server.h means to connect to a server. [23:36.990 --> 23:41.890] And then it displays this. I don't know why there's script A, B, C, and D. [23:43.710 --> 23:46.930] There's a Bluetooth one too. I couldn't get that one to work. [24:07.830 --> 24:15.910] You can see there's... It's probably hard to see, but it says you have to also use the board [24:15.910 --> 24:23.650] ESP2 dev module. So that means that you have to be connected to the internet to get the module [24:23.650 --> 24:32.110] parameters or setup because Arduino does not come with that by default. And what I meant by [24:32.110 --> 24:40.330] the Arduino version, so this is 1.8.29. So Arduino forks themselves [24:42.090 --> 24:48.030] by the ID where they have an Arduino IDE and they have the Arduino [24:49.810 --> 24:58.530] regular system or programming system, not IDE. When I tried programming with the [24:59.870 --> 25:07.510] traditional IDE, I had lots of problems to the point where I just reverted. [25:33.970 --> 25:39.950] So this is the three-color dispatch being programmed. [25:52.290 --> 25:55.810] This is where there was an issue when I was programming it when... [25:56.510 --> 26:03.870] This is me tapping it properly to... You can just... It'll cut. So this is... So you can see [26:05.230 --> 26:14.720] sort of the interface. And see, this is my face when you have only three colors. [26:15.300 --> 26:21.860] This is the logo I made that is in the tool. I plan on trying to make a tool that's integrated [26:21.860 --> 26:31.420] to the point where it will be... Try to do the USB programming directly [26:31.420 --> 26:36.460] and or hosted by the Raspberry Pi hat [26:37.290 --> 26:42.570] to try to integrate a lot of the difficulties I had with the traditional programmers. [26:43.370 --> 26:45.410] It's about time. Time? [26:46.110 --> 26:48.910] Thanks, everybody, for coming to this talk.