slides for this half hour but the name of the presentation is is we don't need no stinking badges did I get that right right and we're gonna do is just have a review of the Monero village because badge and what it does what to expect from it maybe a bit of history but how to use it just the basics right so and I can just say that I can just say that there are three official versions which were produced I have four years simply because I didn't want to remove one and then have this lopsided all the time so I made a single green one Christmas Irish Howard version that's why I was for and this is kind of the showcase model because I who is closed and you could't with the due process and so that's why but I been kind of demonstrating them and some people want to see the differences we have we have carried out most of the pre-sales distribution and there are some more for sale at some time today so what's the announcement there we're not sold out of the regular batch that's this orange one, don't worry about that, there will be more tomorrow as well I just have some reworking to do so if at any time you come and you want to buy a batch and you hear that there's no more, it just means you need to come back in three or four hours in two hours or tomorrow and don't worry, I think there's plenty the other two on top they are kind of sold out if you are a community member and you have wanted to purchase one but you haven't contacted me yet then you should do it immediately because there's just a handful that I've reserved for you I hope that was clear and as far as it goes I have what, 20 minutes left there are let me show a picture of this the back of the batch the back of the batch has a QR code on each batch you can point your camera at that with a QR identifier software and oh if I turn it over you get feedback and the QR code points to an online web application which was created by our friend Surhack which is very very good I'll show you what it looks like it's simply this here is there something I'm doing wrong and so this is it castello.org specs and I'll kind of do a shortcut here this works very well on mobile as well and then you can choose one of them the one with no colors here that's the regular batch it's quite inexpensive there's a blue colored one which is called the alien because we didn't have any more than a dumb name for that and there's a the orange colored badge is called the boss badge which is called the boss badge because it has kind of an authoritative flashing animation and I'm going to switch microphones can I do that? show it is it a good idea if I switch? okay alright we'll keep trying so there are those three variants and you can see how they look here and you can see how Surhack's web application shows them on the screen you can go to this URL now it's live but it's not complete so I'm just going to click on the regular original badge that's the one without colors it brings up here I think you can zoom in and out with some gestures it's good enough for that and here there's a slider so it's this here I don't even really know how this works okay and once you click on this for example let's move all the way to the bottom you can see that there are a few different components that are highlighted there this is kind of nonsense it's going to be better documentation but if I click on that row on that array of LEDs then it should give me some explanation here unfortunately it says no additional documentation for the LEDs it's kind of small I don't think maybe I can increase the size? I don't think so okay I can't increase the size but as you see it goes off the screen then so I'm not sure if that's going to be a good idea so I'm not sure if that's going to be a good idea yeah so okay I guess we'll increase the size a bit so if you go to the left there's a menu interface there there's a button which is called the animation button so if you push that just watch now we have the authoritative boss badge style here with the red and white and blue flashes I'll change the animation by pushing the button and then it moves to a different animation I'll change it again it moves to a different animation the boss badge is the only one that has this authoritative animation they're all a bit different it's controlled by the firmware and if you find that you have a badge and you just push the button and nothing happens it's because there's a sampling of this button at the end of the animation which takes about half a second almost a full second so if you're not just right on time you see how I'm pushing that and nothing happens the same animation is appearing well it's because I haven't pushed it long enough so I'm just going to push the button for a long time and then the animation will change to the next one in fact it will cycle if I just leave the button held down so that's kind of one trick that some people have missed if they think their button is not working correctly in some cases the button really isn't working correctly we've found some problems with that and I've replaced all of the boards which have problems with that but in case I've missed one then you can come up and tell me about that please so that's this animation button there is an antenna which you can see on the front it's embedded on the back of the board but it does show you on the front of the board where it where it should be in case you see it says NFC there I can't turn the animation over the web app over but I can turn this over and then you can see the antenna it's a trace antenna right on the PCB on the back works very well and all you need to do to test that I'll show you how using a real telephone it's kind of small for you I apologize for that it's kind of here in the front row so I just have a android telephone and I'm going to push one of the radio buttons to connect the EPROM which is over here with the antenna yeah this is a really nice application so I'm going to push one of these buttons in order to connect this EPROM which is called U2 with the antenna let's see what happens first of all if I do nothing at all if I do nothing at all if I do nothing at all usually when you tap a NFC tag to a device like a telephone it registers but I have not connected the antenna to the EPROM so this is called if you lay your phone down on a table or any NFC tag especially a passive NFC device a table may have an embedded active NFC circuit in it they will steal your data whatever is on your NFC tag this is called an opportunistic data attack or passive data theft and we protect against that by forcing the user to actually push onto the button so now I will repeat the test you see at the bottom something appeared there because it is detecting that a tag is being placed on the back of the telephone and because it is a type 4 NFC tag it really can hold anything I think there is about 20 profiles or maybe 15 official ones and there is an additional 5 or so which other application developers have added to the official print and there is a disclaimer paper that comes with the badge you can read a few things on there frequently asked questions it tells you a bit about the NFC standard what RFID frequency it uses and so on but the basic idea is that you can use the badge with a telephone for example as long as it has a built in NFC circuit there are a number of other advanced devices all over the world that use NFC our good friend M2049R I think you can state M249R he developed he implemented it into Monorujo just to support our badges so if you really want to experiment if you really have almost no funds at all or if you are really happy to live on the edge and feel the risk of using it then you can do some experiments with Monorujo and the badge so now you know what you can do with the badge it has a light loop animation you can effect that by pressing on the animation button to change the animation and on the other side of the badge it has the NFC circuit which you can press on either of those two buttons to selectively connect the antenna to one of the two earplugs and one earplug can hold the V card and the other earplug can hold your telephone number or URI it's up to you you just have to program it yourself if you want to know how to program that the way I do it I just use my telephone and I download an Android app something that puts a C in here I'm sure there's quite a lot of them the ones that I've been using are Ctools since they work quite well um right and that's the NFC circuit once you look through you're going to see a lot of things that are well documented um there's a power button on the side I think that's self explanatory the batteries that we're distributing with the badges are kind of not low quality but not high quality either it's impossible for us to test them all so we assume that although a fully fresh high quality battery lasts for about four days you're only going to get about two days maybe even one and a half days worth of life with these batteries so just be careful with that if you do want to use this battery for your for your entire DEF CON experience then you probably want to turn it off once in a while maybe just use it in the evening when the parties everyone's lit up but I would recommend that you have a second battery if you really want to make sure you have a backup source of energy in case the battery we supply you with goes out and is drained after say Saturday tomorrow afternoon so you should have a second battery possibly something new um what else can I say about this um there are two programming interfaces so by the way I don't really know what a resistor is so he wrote transistors on here there's a few mistakes like that don't worry I'm going to fix them and um there's a couple programming interfaces if you've ever used an Arduino before um you maybe have been exposed to the AVR 8-bit microcontroller um instruction set and so this is it's not an AT Mega but it's an AT Tiny so it uses an AVR 8-bit instruction set as well which means that if you want to program if you don't like these animations you like animations you want to put some other your own on there you can do that by programming using an Arduino style connector which is not populated it's this one here let me see not that one but Arduino interface but I don't see it in the list it must be up here somewhere here it is so that's I don't have a laser but I think it's clear enough it's those very large holes there's six holes and I actually have some header pins for the more adventurous of you if you know how to program um MCUs and you want to try doing that then I can give you some header pins I think tomorrow there is a two hour workshop that's which we'll learn how to program our badges there's not much you can do with them you can't connect microphones or sensors you can't do serial exchanges you don't have serial buses like SPI or I2C it's a very simple microcontroller what's on here so you have some GPIOs which are digital only which means they send 3.3 volt signals out square wave or read a 3.3 volt signal you can do some programming but it's very very primitive right and um as a last demonstration because I think we're pretty well through the features if you don't understand NFC you've never used it before then it's nice there's no risk in using this just do the risky things start with vcards read through what your choices are as some people are using this for SSH keys and GPG keys you can do that but it's kind of the next level up because if you lose that data for some reason if you generate a new GPG key you start using that you don't have a backup because you have it on your badge and then something happens your badge is stolen and then something happens or you wipe the EPROM or whatever then you've just lost your GPG key it's just not very nice so be careful with the badges they're powerful last thing I'm not going to make a new program but I'll show you what I use for programming basically it's called Adam it's called platform IO maybe some of you know that you can program them with Arduino IDE as well but I'm more experienced with platform IO so that's what I'm using and it begins here starts here I'm not sure I'm sorry take that back I can't demonstrate this because I'm using a different account to present it I'm using the present account so what I usually do this will be obvious tomorrow as we do the two hour workshop there's no time now we'll do some programming and testing demonstrations and you can even program your own chip with your own firmware if you like that's the very beginning this is the IDE start typing some code AVR code here hello world and so on and then manipulate the GPIOs to make them flash on and off we do some Charlie flexing so that we can use more LEDs than there are GPIO pins things like that so we've compiled the source code in the usual way then we flash it using AVR dude which is a command line program as you can imagine there are many different ways to do this but this is AVR dude and this is my favorite method of programming the MCU using firmware that we have compiled using platform IO so that was a mouthful I know it's a bit difficult to understand if you've never programmed but that's what the workshop is for tomorrow I've just basically showed you the first two steps that I do I use platform IO to write the code and compile it using GCC AVR because it's not Intel instruction set so we have to use a different compiler for that and then once I have the compiled firmware I send it to the device using this AVR dude software and there's a special cable for that as well and that goes full loop back to these two interfaces this is where you connect to the MCU this is the SPI interface and that's what I said before the six large holes and the second one which is identical it's just connect interface so there's just five minutes left but I would welcome any questions about the badge any questions? maybe I was very thorough I think you're not talking about profiles I think the question is how much storage can these badges hold? is it a megabyte is it one byte or something in between the answer is the regular storage the ones that are still available they're very inexpensive by the way $25 and that's why we're using low rated chipsets and EPROMs and ICs for them and that's why they can store only two kilobits of information which means 256 bytes so some people say oh that's quite a lot for NFC that's all I need that's a standard amount but really it's not very much you know something you type in the browser that's going to be something like I don't know 40 bytes 20 bytes something like that so it's plenty for that type of application but if you're doing 4096 bit RSA keys and so on I think it won't work for that on the other hand the Alien and the Boss badges have identical NFC EPROMs on there and they're much larger they are 64 kilobits so that means you have 8 kilobytes of storage don't forget there's two EPROMs on each badge so you're not going to want to split your data in half but it's common to put more than one type of data kind of multiplex it on a single NFC tag and you don't have to do that in this case because you have two on the badge as far as profiles go you didn't ask the question but I find it interesting so I'm just going to if I can quickly find applications like R which I was talking about and because you can't see the screen I'll just read them off I'm going to make a new data set and I can choose and these are all standard profiles text which is agnostic data just in text form URL or URI is a second profile user defined URL URI not sure what that is a search I don't know what any of these are sorry a search is a profile an archive application URI email contact telephone number SMS a place a user defined place I'm translating from German a user defined place an address a seal address a a seal address target address a search a location search a street view an emergency information and Bluetooth URI Wi-Fi address and data agnostic data so there's all these things you can do any last question before we wrap up do you have a question can you connect two badges to each other you can if there are DEFCON badges but okay so the question is can you connect two badges to each other and I think we're talking still about the village badge because they are passive NFC circuits they don't have any energy in fact if I remove the battery I can still use the side so if you think along with me then that implies an answer doesn't it because at least one of the two devices like I demonstrated before the telephone must have must be powered must have some battery some voltage because it's going to transfer energy badge to the NFC circuit so that the circuit can work and that means that two badges placed next to each other will do nothing there's no energy anywhere for to supply them with energy so that does not work just the same as if you have a library card with an NFC tag inside and your student card you put them next to each other nothing happens it's always one active circuit like a telephone and one library card or whatever else passport these kind of things the reader always supplies energy wirelessly to the NFC circuit so I think we're out of time thanks so much for coming what's next Rebar?