Hi everybody, I hope you're doing fine. I am. So, I'm here to talk to you about a project that we've been thinking about for a little while at Inverse, where I work, and it's called Fingerbank, so it's a DHCP fingerprint database. Come on. My friends are making fun of me, so yeah, that's pretty funny. Assholes. So, I'm here to talk about that, and let's see how it goes. Today, I'm going to first do reminders about device fingerprinting, passive fingerprinting, DHCP fingerprinting, going to cover some defensive and offensive use cases, then announce, quote-unquote, Fingerbank, and talk about what's next and what we are interested in doing in the future. So, who I am is... I'm Oli. Olivier Bailadeau, I guess, would be a close English equivalent. I'm working on PacketFence since 2009 as a lead developer there. I'm also teaching InfoSec in Montreal to undergraduates, having a lot of fun doing that. I'm really an open-source guy, so really into Android and Linux and stuff. I'm a new father. I brought my kid here, which is Odd Choice in Vegas. It's really not that great, actually, because she's crying all the time. She's seven months old. So, it's... Well, I wanted my family here, so here they are. This talk is implementing the U-Drink protocol. So, if I say something obviously stupid, you can interrupt me, and I'll offer you a beer if you are smarter than me. So, let's say it that way. And also, during the Q&A, I'll have... I'll have beer for good questions. So, here we go. So, device fingerprinting, what it does is that it identifies pieces of your software or hardware. You're probably familiar with Puff and stuff like that. So, there are various types of it. Operating systems, devices, browser, web server, web application. It's another type of signature, more or less, if you want. So... As easy as that. You know what? My type... Okay. So, two approaches of gathering fingerprints. There's an active approach and a passive one. So, the active is that you are doing stuff. So, it can be detected. It's more intrusive by nature because it's active. As opposed to the passive technique, which you only listen on the LAN or on the... On a router in between the network. So, it's really clear, active, passive, what it means. So, I guess I won't focus on that. But it's really completely separated, like the two techniques. And some tools... Well, most tools are focused on one approach. But there are new tools that are doing both. So, SynFP. SynFP is one of them. You can now feed it. It's a PCAP. And it can... It will do kind of a passive approach, if you want. So, why passive... Not why, but a reminder on passive fingerprinting. So, networks are really, really noisy. You probably already know that. You open up a TCP dump everywhere you get. And it's always... There's a lot of stuff going on. And a lot is about broadcast. And you get all the broadcast traffic. Sometimes, also, you are... You are in between. So, you are the gateway. Or you have a mirror port. And so, you see all the stuff that's going on. The wall of sheep is a good example of that. So, if you can sit at a spot like that and sniff traffic, then you will see a lot of stuff. And fingerprinting becomes really interesting because you'll be able to identify operating systems of your guests, the browsers, version of software, and stuff like that. So, on the LAN, there is DHCP, which is a broadcast protocol that you can use for fingerprinting. Talking about that in the next slide. There is multicast DNS, the iTunes. All that stuff is very, very verbose, noisy, and helps you a lot of identifying software or hardware that you're using. On the LAN, Honeypot is kind of... You know? You could do fingerprinting with a Honeypot, and you'll see kind of the Internet noise, if you want. So, it's possible to do that on the LAN also. Passively, of course. So, DHCP fingerprinting. The meat of the matter. Okay. So, DHCP is a great network. It helps you, you know, be online easily, low maintenance and stuff. So, it's broadcast-based, and it's on every LAN segment. So, every VLAN, if you want. And, like, through time, we found a way to, well, we, people find a way to aggregate DHCP, for instance, with IP helpers, sometimes called UDP helpers. So, you don't have a DHCP server on every physical segment, which would mean a lot of costs. So, because of that, you have... You use IP helpers. So, your DHCP traffic is all aggregated upstream to a few servers. And this is kind of a nice feature, because, you know, all the information about what's going on, IP-based, is aggregated because of the IP helpers. So, DHCP fingerprint, because of that, are easy to collect and rarely spoofed. So, rarely spoofed. By that, I mean, if you are, let's say, a pen tester, and you want to expose yourself as a voice-over IP phone, for instance, well, not a lot of people know that and know how to do that. So, it's really, really rarely spoofed. And by that, I mean, I looked to do it, and the only way I found... I found no tools, no automated tools to spoof DHCP fingerprints. And the only way I found to do it was modifying the DH client configuration directly... on Linux. So, it's seriously, for now, for now, pretty reliable. In the future, probably, there will be tools, or people will kind of have a backtrack, mimic a Windows XP system. But right now, you can spot backtrack as a Ubuntu system with fingerprints. So, the fingerprinting, again, a reminder. What is possible to fingerprint on DHCP? Well, it's... You could focus on the retransmission. You could focus on the retransmission timing and all the timing stuff on the TTL, so IPTTL on the packets. Sorry. But the greatest... Well, what we've been using for PacketFence, actually, is the option 55, which is the parameters. So, DHCP is kind of a key value thing. You have... You request a list of options. And then the server sends you... The values in it. And there's the two-way of the game. So, the client and the server have this, you know, option and then parameter. And so, option 55 is actually really, really interesting because it's all the stuff that we use DHCP for. And a lot of options that we don't use, but they are still there. So, there's an example on the next slide. But, I mean, host name, domain name, and stuff like that is all in there. So... So, if you want more details on DHCP, there was a Black Hat Japan presentation, which I built on for the FingerBank project that you can check. It's Eric Coleman and David Laporte who presented. And it's actually really nice, really detailed into the topic. So, here are the option 55 list. So, we only focused on these. So, and with this... Option 55 only, so no other parameters. We've been... We have a database of 160 different OSs and devices. And it's kind of all blurry together nowadays, OS device and stuff like that. So, I say slash OS slash devices. And this includes a lot of stuff, like scary stuff. I mean, you got the fluke devices. You've got switches. And now, I'm... When I saw that, I'm asking... I'm asking myself, who the hell run DHCP on switches? You know, it's... Shouldn't all be fixed IPs, but anyway, we got them. We have a lot of it. And so, the option 55, it's simply a list of the option, as you can probably see on the slide. It is like 1, 15, 3, 6, 44. And it's all because of the client, what they requested. Only... Only that simple list helps us to uniquely identify a lot of stuff. And like UPS devices, there's Pixy stuff, thin clients. It's really like gaming consoles, smartphones. And we can spot Android between each other. So, we have like the HTC Android, the Samsung Android. And so, it's great, seriously. I was amazed by that. And that's the reason why we're presenting or proposing FingerBank, I guess, is that, like, it's on every LAN. Everyone has it. Everyone, like, has this resource that they can, you know, identify what's going on in the network. But no one was really, you know, pushing it. Or maybe it was all in proprietary stuff, and I don't use proprietary software, so I just don't know about it. But this is the big reason. So, let's get into some use cases. Of course, I guess I'm into more defensive stuff. But here we go. There's... You can do really, really easily LAN operating system inventory. Or even, you know, flagging people with Windows 95 and telling them, hey, come on, get, you know, something serious, please. So, here is a screenshot of what we would pack at fans. You see the last switch, last port, last VLAN. This is possible with the HTTP option 82, which is... Implemented in Cisco switches. It's more or less reliable, but still it can help you. So, it's kind of powerful to have the two of them blended in because you will know for a host where it's located. And because of the finger bank technology, if I may call it like that, know what OS it's running. So, it's pretty powerful and interesting for network operators to know that. You can do firewall. And network access control integration to blacklist end of life stuff, for example, or even better, backtrack or Linux if you want. So, this is also pretty powerful and we use that in packet fans a lot to, you know, and this is like sliding to the next point. But we do that to automatically register voice over IP devices so that or printers so that the users don't have to do it. Which is, I know, a security problem because we're relying on client-side stuff to actually behave on the network. But, I mean, it's a usability problem. You know, someone has a choice to make. So, if you are a pen tester, then definitely, I mean, add in your toolkit, I would say, spoofing your DHCP option 55 list. Because it can make... It can make the network part of the infrastructure behave differently based on what you are. So, offensive use cases, obviously, stealth LAN recon. So, you can like sit there, hook a device and then just sniff the traffic and see what's there. And, I mean, it's even better when you get Windows 98 popping up and saying, hey, I'm Windows 98 and I want an IP address. So, now, I mean, you only have to own it like Metafocus. Just blow it and boom, it's done. So, the clients, they come to you, actually, in that case, you know, instead of you having to end map the network and stuff. So, this is, you know, it's a big one. It's really interesting. But, afterwards, I was trying to find other use cases, offensive use cases. And, actually, I guess someone will have to come up in the Q&A room and tell me other offensive use cases. I failed at that. So, why did we decide to push a finger bank? Because you saw it. It's so simple, this stuff. It's only a list of options, numbers separated by commas. But, I hate information hidden in silos and we need to be together if you want to spot devices. We get a lot of fingerprints and we just can't cope with the flow. And, they are all anonymous. So, we can't, you know, ask back. Or, even if we do. Ask back. Let's say we have the opportunity to ask back. People don't really know, you know. They run the software. It listens to everything. And, they don't even know the device that are broadcasting on their network. So, the project's goal is really about sharing it, talking about it, getting this out. And, so, this is why we're launching the website and the mailing list. Yeah. So, raise awareness and stuff like that. So, what is it? Actually. It's pretty simple. We popped open a website and we decided to just output the signatures and the documentation and the mailing list. We're probably going to open an IRC channel too. But, it's really links to the existing signature. And, we just packaged it in a nice format. And, then, based on the feedback of the community, I mean, there's a lot of stuff we could do with DHCP fingerprinting. And, based on who's interested. And, we're anticipating pickup by, you know, the larger network vendors, hopefully. And, so, with that, there will be definitely, like, more offensive tools. Focus on that. Defensive tools too. And, reporting and stuff. So, we'll see how it goes. So, for now, who's backing it? The guy who wrote the paper, Eric Coleman, wrote the DHCP fingerprint paper that was presented at Black Hat Japan. He's also started to write another one on DHCP version 6. So, it's interesting. I haven't read that yet. But, I really, he's really into it. And, a lot into passive fingerprinting. David Laporte was PacketFence's original founder. I think he's working at Harvard on their network. And, ourselves, Inverse, who's sponsoring Time and servers and stuff. Not that much resources, but still, they're still paying me to do it, which is great. So, they're backing it. So, what's the future of FingerBank? Well. Again, we need the, maybe, probably, better tool to share because a lot of them actually are close to each other when you look at the fingerprints. And so, we would really need better tools to, you know, find closest match and stuff like that. Also, right now, the data formats, PacketFence uses stupid, any file format type. And, Satori, which was... Which is Eric Coleman's tool, is using XML. So, we want to consolidate, sorry, the formats. And so, you know, have better reuse over with that. And then, we want, and this is the main focus, is we really, really want a lot of mind share around the fingerprints. And so, that when we get new obscure fingerprints, that actually, someone who will be subscribed will know about it and will be able to, you know, say, oh, hey, this is Intel when it's in BIOS boot mode, it's actually doing DHCP and sending that. So, there's a lot of the obscure fingerprints that we'll need help on. That's pretty much it. And I hope you enjoyed and we'll see you in the debriefing room if you're into fingerprinting, I guess. Thank you.