Hello. It's 1 p.m. now and you're sitting in room 5. So if you have read the schedule right, that means you're in the KSVPN CTF gaming network talk. So I'd like to get some information about the audience first. So who of you is involved in a hacker space? Who of you is involved in CTF gaming? That's a bit less but also interesting. Okay. And who of you has experience with network? Good. Okay. This talk is about KSVPN CTF gaming network. Who we are? Rude. This is Jens Mücke. He's an open WRT developer. He's been working with us for a long time. He's been working with us for a long time. He's a developer. He codes for his daytime job. And he has written a lot of the codes we need to write. Then we have Virus. He's with DC949. He did the OCTF or worked with the OCTF 1 to 5. He's layer 1 mentioned. I don't want to read all the slides. You can read that. Yeah. He's one of the co-founders at Null Space Labs and did some other interesting things, especially regarding CTF, capture the flag network, hacking networks. Then we have Eric Taves. He's from the KS Computer Club Darmstadt. He studied computer science. He's been working with us for a while. He's been working with us for a while. He's been working for a while. He's been working at the TU Darmstadt now and is interested in cryptography, cryptanalysis and stuff like that. You might know his software to break WEP in less than 60 seconds. And then there's me. I'm from the KS Computer Club Hamburg. I'm an administrator for the daytime job. I played a lot CTF with the University of Darmstadt. For example, USB CTF. Some of you might know Cipher and DA open. Together with some people I co-hosted the CCC CTFs. And I like to travel hacker spaces and have some friends around the world in different hacker spaces which I'd like to communicate to. Any questions for the speakers? So, I will explain how we got to all of this. So, has anyone of you been on hackers at random? Some. I see two or three. Hackers at random is a Dutch camp. Hackers camp in usually the swamps somewhere. This time it was not too bad. We talked a lot about that it is a problem to communicate on the network between the different hacker spaces. Also, we wanted to play CTF and we were playing CTFs. But, you know, hosting a CTF is a lot of work. And most of this work is the same way. Most of this work is using Não. It's the network setup. So, there was an idea born. We wanted to play CTFs in our rooms. Most of us had hackerspaces. And this required a VPN setup. To reduce the work on that, we decided to make this VPN setup permanent or wanted to have that permanent. If you don't have to set it up all over again, that saves a lot of work by doing the initial and the final setup. But the main challenge was to make the VPN setup permanent. From a a CTF and you can understand that if you do a CTF, which is a lot of work, you want to reduce the things that you have to do all over again which is not too interesting. It's interesting to write a service but it's not too interesting to set up the network again and again and again. KSVPN, we'll explain that. Fulfilled most of the requirements somehow but not all of them. And with KSVPN we had a lot of experience with that software and with Tink. So we needed to redo KSVPN. Okay. I think at this point I should explain KSVPN. KSVPN at that point was a meshed VPN that's used to host the KS phone which is the asterisk phone service, the KS client. And it was a very, very, very, very, very, very, very, very, very, very large computer club has among their spread hackerspaces. So we have a big asterisk system and we used Tink and some power code on some DBM boxes to connect all of them together. And to have a phone system within that because you can understand that we would like to have a phone where, well, just we are listening. Okay. The overall involvement was very, very, very, very, very good. I think the involvement on the idea we need a talk on the 2063. We're kind of leaving the shadow like telling people what we are doing and we are planning to do. The things done there was the rewrite of the code to see. We'll explain the reasons after that. And we got a lot of people, a lot of more people involved in that. So the idea. We wanted to have private privacy on the network. Sure you don't want to have your internet access provider and his packet inspection looking directly in your packets all the time. Also with the times that providers, for example, fake DNS and other stuff, which just leaks out a lot of information of the web pages that people use in the hacker spaces. We want to get more of that private. And especially the thing we wanted to get private is the traffic between the hacker space. Well, there was virtually very few between those, but we wanted to have private traffic between that private. The community, that all was to connect the hacker spaces and our friends and the whole hacker space thingy and to play war zone. But the first step was to redo this network and then use this network to play war zone on that. The availability was a problem. We want to have a setup that is really robust and has a solid uptime. So a lot of those VPN installation in the hacker spaces have the problem that they are, you might know this, but they have a problem with the Liber relevancy. And when we were COBRAạnh that working somehow, we wanted to avoid that. Well, speed. If you do, you want to be limited by the VPN stuff. We wanted to have fast network for sure that somehow FTP and other data transfer, maybe later going on and also the latency if you want to do CTF, especially if you want a LAN grass broke between to VoIP, you need low latency. It should be easy to use. So maintenance not very complicated and never join your friends, block your enemies. So what we came up basically was a mesh based encrypted and authenticated private network that administrates itself. I'm going to explain that. Meshed, the meshed thing is the biggest difference compared to most VPN installation. In meshed everybody is communicating with everybody. So if you set up tunnels and you have two spaces you need one tunnel. If you set up a system between three spaces you need three tunnels. You will see that this in the end scales with O equals N square. So that's how it works. So Tink defines end points and not tunnels. This just is N. So scales way better. The latency is better if all the hacker spaces just communicate to each other and not over certain routing hops. You get a high bandwidth because you're just limited between those two connections and the connection in between but you're not limited, for example, on the speed of some root hops. We don't have a single point of failure in there on the network base. So if any node can die and just this node will be off the network, not the whole network. And very important, nobody will see the traffic from other people in the default configuration. If you want to, you can also fuck up this one. But it's pretty hard. Any questions on that? Any other questions? Any other questions? Encrypted and authenticated. Well, this is easy. You should want to have strong encryption that people who may be able to tap the line will not be able to do it while tapping the line. And also we want to mask the traffic details. So somebody tapping the line cannot easily see what is going on there. You can do statistics of encrypted traffic and guess what's going on there. But, well, I think you know all that. It's just better this way. And authentication, we want to know who we're talking to, for sure. Private network is clear. We want to have the private network to connect all this. And then this is, if that guy has the password, that's all you get. So, these are the kind of lot of data comes in, we think, oh, we need to try and talk it out. We have the information and then here's some of the other things. So that's it. And for me, when you are almost done with connection, for example, it's very simple to talk to the network. First of all, we want to see what this does. Do you know what's the powerful and powerful way to talk with other people. We want to see what are the protocols that when the content is out and if it's not managed. We want to see what's the most powerful way to do that. And that's the tech and the things you need to do on the browser side that are most important for you to think about. does not work, as you know that, and if you get over some time zones, this will just not be very good. So the problem of Tink is keep the config in Zonk. And if you have a problem that can be solved with writing a program, write it. So we did. Yeah, this was the network based around the case VPN before, who mostly ran the VoIP of the CCC, had seven years of uptime. I think that's pretty good uptime. Lesson learned from the first version from the network, you sometimes in Tink have the problem that some administrator by mistake, this happens more often, or somebody who will try to annoy you, announces a wrong network. And that is hard to get rid of. To explain that a bit, if you have a wrong network in your mesh cloud, which is a slash 24, you can announce two slash 25. This is more precise. And then you can take over the information again. But this does not work with the slash 22, slash 32, obviously. And we had some important servers with the slash 32 in the network. Also a poll was required. And if you want to put this on an embedded device, and our idea was to have it on an embedded device, if you put poll on an embedded device, there's not a lot of space left in this embedded device usually. Okay. So, the software. Yeah, I hope you don't have a hangover from the party last night. So, now it's a little bit more technical. So, basically, this is the software. It's not the same as the other software. We had this awesome software called Tink, which do all the VPN. But we had to do something for the configuration to get that in a good state of running. Basically, what our software is doing is it wraps around Tink, provide a tone device, which is needed for Tink, reads the local config file and knows what it has to do, like which address it has to download the config. So, it fetched the network config, so it knows about all hosts. And then it's and where it has to connect to which IP address and that stuff. And then it creates the config file for Tink with all the host files, all the up and down script and all that is needed for Tink to run the network and at the end it started. That's basically it. We do the rewrite so the first version was done in Perl because it's easy to write it in Perl and it works pretty good except for some mistakes that I already told. We decided to do rewrite and see more about that later and I really want to thank Higa and HC for taking that software with me because it wasn't only me that did that part. So the network file, so your local network file contains a public key and a P range for that part you're using. So you have to get all the nodes that downloads that file from a specific URL which is in your config. Why are we doing that? So we have a solution that can provide more than one network. So we did it for Warzone. We did it for chaos VPN. It's more known as a Google link here. And if you like to do your own network, you can do it easily. So I'm going to show you how to do it. Portability. This was very, very important for us. So this is one of the reasons we do a rewrite and see. It now compiles on every major system. We're looking for more. Special thanks for first compile on the windows. I'm not very much into that part. And we really strongly suggest to put it on embedded devices. And this was the main reason we put it on embedded devices. So we did that part and see because you don't want to run Perl on an embedded device like a little router. After we did the rewrite from Perl and see to the 2633, we added some new feature to make it more comfortable. One of these features is we have this rewriting. So we have this new feature. We have this restart function that it restarts the things in a specific interval you can define in your config. And this interval means it checks if there's a new config available. So it requests the HTTPC for the config. And if it gets 304 response, it knows, okay, I didn't have to change anything, so I also didn't have to restart the thing to get the new config. We added an archive support, which means we didn't have to download each host file. And we can download one file and get an archive which includes all the host configurations, the main configuration, all the things you needed. And we also added some signing and encryption, more about that later by Eric, to get a more encrypted part. It also provides HTTPS, but this is different crypto. We didn't want to use it for that. And all that stuff is in around 4,700 lines of code. So it's not that much. We tried to get rid of most of the dependencies because you can build it on more systems when you have less dependencies. We are still backward compatible, which is the reason why we have this strange config file at the moment. So it's written in Perl style. Sorry for that. But you still can use an old config file with a new software. The only thing is, we added a lot of stuff to it. We added a lot of stuff to it. We added new features. So we have to add new config entries. But we set proper default values. So if you don't define that values, there's a default value for that. To make it a little bit more running on all devices, especially embedded devices, we provide a lot of images and archives for all Linux. I think we also will provide a Windows download pretty soon. But most people put it on these little devices for Nero 2.0. This photo is actually from Null Space, DC 949. Just Null Space. We got the experience that these devices running pretty good. They're very stable. They're less power consumption. So especially in Europe, energy is much more expensive than it is here. So we care about energy consumption. So we really want to make sure that our running embedded devices. You make it ready, it's running, you didn't touch it anymore and it's running for years. Another reason is to buy these little embedded devices. They are not that expensive. You can get one for 20 bucks. If you want to have a proper one, you can get one for 100 bucks. You can also put an MP3 player on it. It's basically a run device. It's not running anymore. And it's really much more energy efficient. Like a computer is like 50 bucks a month in power. And these devices are like five bucks in power a year. So in Europe for that. I'm not so much into the crypto part. So I really think that Eric is here and I give over to him. So I guys have a good time. You too. Thank you. So hello. I'm Eric and I'm here to talk about the crypto part of chaos VPN. So usually when you write software you will usually, you will usually notice very soon when you have done something wrong because the software starts crashing. Except if you have a security problem or you have a crypto problem. Then this won't be noticed. So I'm Eric and I am here to talk about the crypto noticed for a long time. So in Chaos VPN, every participant in the network owns an RSA key pair, which means that you have a private key, you are the only owner of that key, and with the private key you can decrypt some messages, but you are the only one who can decrypt that. And every other participant in the network has a public key, knows your public key, and he will be able to encrypt messages for you, but he will not be able to decrypt messages for you. The Chaos VPN client connects to a server and downloads an encrypted and signed configuration file for Chaos VPN, which is encrypted only for you, and it's signed, so after you've downloaded it, you can decrypt it and then check that nobody has altered the file on the server or during the decryption. So you know that this file is authentic. After the file has been decrypted and verified, the client generates a Tink configuration and starts Tink, and Tink can now establish connections with all other nodes in the network, and it can authenticate these other nodes using their RSA public keys. So when two nodes connect, they do an RSA key exchange to establish a session key. And then they can connect to the network, and after they have a session, they can exchange packets, and these packets are encrypted using Blowfish by default, and they are protected with a SHA-1 HMAC so that nobody can alter these packets. So far, that's reasonably well crypto in Chaos VPN. There are currently some weak points. That means that you can still improve that crypto part. So far, the configuration is distributed over a central network, and it's a good thing. But if you have a central server, which is not so good, you would like to have that on multiple servers. However, if the primary server here fails and the network still stays up, so the network can run for hours, days, or weeks, even without the central server, the only thing which does not work is that you cannot update your network configuration anymore if the central server is down. Currently, I think there are replay or downgrade attacks possible, so an attacker could not really alter your network. So, I think it's a good thing. So, there should be a new network configuration, but you could give you an old network configuration even if there are new one, even if there's a new configuration already out there. With Tink or Chaos VPN, it's possible to route packets indirectly between two nodes. So, if you have two Chaos VPN nodes all behind the NAT gateway, they might not be able to communicate directly. In this case, you can route traffic indirectly. So far, Chaos VPN does not reuse standard for network configuration, but if you formats for crypto like ISP or AHA to encrypt and protect the packets. But this could be added in a later version. And currently we don't have perfect for secrecy in the networks. This means if you have a chaos VPN node running now and one year later somebody is able to recover your private key, then you'll be able to decrypt your past traffic. In the future we would like to have more administrators for the configuration and more distribution points for the configuration. Even a decentralized distribution of the configuration would be nice. And we would also like to give participants of the network more choices in who they trust. So currently they trust central configuration and then configuration. But you can extend that to a kind of PGP or GPG like web of trust so that every participant can select certain nodes in the network he trusts and some nodes in the network he doesn't trust so much. And we would like to have indirect router traffic in the network which is only decryptable by the final destination. So that you can route traffic between two nodes who cannot see each other because they are firewalled or whatever. And then we would like to have a person with the assistance of a third node who will be able to pass this traffic through, but he won't be able to decrypt the traffic. Okay. Next question will be done by McFly. Any questions for the crypto part? It works. So far it works reasonably well. Okay. The question was how good does Blowfish work on these tiny devices like embedded access points? And the answer is so far it works reliably well. But this is a configuration option, so Blowfish is a default. But you can extend that to another, you can change that to another algorithm. So for example, some of these small devices have, you know, you know, you know, you can either use the WPA network, or you have accelerators for the algorithm because WPA uses AIS to encrypt packets and if you change that to AIS, you will more likely get a performance boost. We have chosen the 2.0n as, well, reference design because this is fast enough to host most available broadcast connections you will have hacker spaces or spaces where people hang around. Like they can solve up to around 20 to 30 Mbit downstream and upstream requires. So I think that's not too bad. If you have a bigger connection, like if you're in a university or stuff like that, you'll possibly want to use different hardware for that. That is true. Also, if you want to do some hosted servers, don't put an embedded device in front of it to do the crypto if you have like a gigabit internet speed. Then you will just need a bigger computer where you can install FreeBSD or OpenBSD or DBN, for example, or ArcLinux, whatever you want on that. And if you want to play around with the code and the compilers, you can also install Windows or Mac OS X on it. More questions for the crypto part? Okay, so I'll hand over to McFly. So I'll just shortly explain what the general status of the case VPN is at the moment. And then we will go over to Warzone, which is the second implementation. This is for the playing of CTFs. Like you remember from the beginning, our idea was to build up a network to play CTFs. But for this, we decided to redo the Chaos VPN first, which connects hackerspaces. And you will see what we use there. And, yeah, it's starting to get used for CTF stuff. So general status is the life, the network works. More and more hackerspaces are joining. IP ranges are compatible with some other networks. And some peers to DN42, which is another VPN exists. Those are, for example, a list of some hackerspaces involved. Like, well, I don't read down all of them. Those are more or less a lot of the bigger and older ones. The maybe more interesting thing is what is up on the network. So we have a DNS up there. Voice over IP is used very much. But that can't just be it. So, for example, one of the first things to have an additional use of the network is a rainbow table hash lookup system. Some of you might know Ben Coates and has read his... This is Twitter feed today in the morning that he just upgraded that to a new version. There's a box maintained by him on this network, which is just for the network and pretty fast. I think we... If you want to try that out, you will find out that you get most of the hashes. I think we are at 10 or 11 keys and all keys available on the German, American, and English keyboard for MD5. And a workbook for MD5 and the whole LAN manager stuff and that. We are working on a decked rainbow table lookup service there. ISC and Java servers are in that network. You will find hack and ISC servers in there. This is also a commonly used ISC network among CCC. The official CCC Java server has a lag in there. FTP, CCC, and CCC. CDE is there, so you can download stuff without people seeing what you're downloading there. We're making high-performance computing available there. Some people had just too many ATI and NVIDIA graphics cards and decided to get them together because they're very useful when it comes to the point... some points upstairs, the rainbow table. We kind of cloned computing. We can stream multimedia. So if you have a talk in a hackerspace, you can just stream that to a different hackerspace and watch it there. And the very interesting thing is you can kind of pick the nationality you go out to the traffic. So if you want to, you can choose proxies to become German, Dutch, American, or whatever is on the KSVPN. And more stuff still not mentioned and working here. But I think a lot of you are interested in the CTF, and now we'll come to see the CTF with the virus. I apologize in advance for sounding like a dead frog. My voice is still recovering from last night. I forgot to move that picture. So the Warzone is more or less a copy of the original KSVPN. It's just another spun-up instance of the same thing, but used for an entirely different purpose. The Agoralink KSVPN network is designed to be just universities, hackerspaces, people learning all the time, people mirroring talks between one space or another, VPN tunnels that we would test beta software on, VoIP channels for people to call back and forth in the middle of a talk. Maybe there's a talk going on at PS1 that somebody in New York really wants to watch. And they want to ask questions and stuff like that. That's, Warzone is just all pain all the time. The idea is to build this entirely isolated, no man's land of data where each person, each node gets its own little chunk of the network to host whatever game they want to host. We come up with a kind of a loosely adapted global scoring system and people just lay into each other. So if it's on that network, it's hostile. So, Warzone is like Agoralink, but evil. The idea is right now, for the most part, the concept of a CTF or challenges that are very similar, most of the time are relegated to a conference setting. You either go to a camp or you go to a con. And there's only so many games you can run because you only have a certain amount of time. Moving hardware around the world is expensive. So, you know, there's a lot going on. Sometimes there are types of challenges that aren't accessible. A lot of the offline challenges that people play, like Root Wars, are kind of niche and very tiny. And there's no scoring linking. So there are built-in limitations to playing these kinds of games in a conference setting. So the idea of the Warzone is to give this other space where anybody with an idea or with a contest concept can host these ideas all the time, hopefully so that there's some more freedom for more exotic challenges at some of the conferences. So the targeted groups for people playing on it, obviously Hackerspace is kind of the point. University groups, security research groups, anybody who's just looking for an ever-present, ever-evolving CTF-style challenge, you know, just constant brain teachers, you know, people that keep going. So the layout of the network is, each time, you know, each node on Warzone is given a slash 24. And the dot one of that slash 24 is your info page. Or basically, you know, if you're on a node and you decide you want to go play somebody's game, you know, you look up the giant directory and, you know, go, oh, it's, you know, PS1's hosting some game. You know, I'm going to go talk to them. So you go to their dot one and there's this web page that has all of the services that they're hosting and how to play and how to score and all the, you know, the ins and outs of whatever they're challenge may be. And the idea is that this dot one, you know, whatever the gateway is not, this is the only part of each node that's not malicious. This is the portion where you find out how to play, not the portion that attacks you. And there are rules, obviously. I'm not going to go over these particularly because, you know, we're still kind of forming, you know, how this is going to work. And there will be a more permanent fixture. But the idea is basically anything goes as long as you don't attack the hosting network itself. Whether it be botnet challenges, people hosting web stuff, or, you know, you can log in and elevate credentials. At Nelspace we're actually talking about a project where we'll take live malware and defang it, but leave the infectious portions and hide keys in them and let people download them and try to launch them at each other. Anything goes as long as you're not stopping other people from playing. That's the spirit of the rules. Yeah, that's, do you want to give the reply? You want to give the ending, thanks. Oh, no, you can do that if you... Oh, that's cool. Okay, there's some guys we need to say thank you for that. No, first of all, any questions regarding the CTF stuff? You don't have a lot of questions today, does it? Is that connected to the NINJA party last night? Okay. We need to say thank you to several people. One of them was Hege, who has built up an idea of this, of the VPN for the phone system years ago. Guus, who's the developer of Ting. He pretty much likes our hackerspaces, and Ting development is done at the moment together with us. You have seen some wishes for the future. Um... Eric Michaud is one of the Americans who kept the pressure. And OpenFly, who's doing the images, for example, for the Phonera. And a lot of other people who's helped to contribute in the code and stuff like that. Yes. And we have a wiki where we contact all this information. This wiki is the Hamburg CCC wiki, and if you enter chaosvpn in Google, it will directly get you there. The source is at GitHub, so if you want to have a look at what we are doing, you can just do that very easy. Um... The Ting website is ting-vpn.org. Um... Yeah. Usually you will find us on the Hackint ISE, as mentioned on the channel Pound Chaos VPN. Are there any questions? Two. Okay. The warzone and the chaosvpn are running on the same network, or are they just logically saying, don't attack these networks, we'll just stay over here, or are they not separate? No, they are two separate networks. Okay. It's this... Okay, the question was, if warzone and chaosvpn are two different networks, or if they just don't attack each other rule. There are two different networks. One of the reasons is chaosvpn is only for hackerspaces, while warzone is also for universities. And security groups and other groups of interested people. So it's different target groups, different ideas. It's just the same stuff we're using. I know that chaosvpn is used by hackerspaces, but are there other people out there in, like, countries where you can't give free exchange of information using this as an information exchange? Yes. Uh... This is not... This is just... We did it for us, but it's all open source. And we already have a lot of people, a lot of feedback from people who use it for their own network. I think the general idea to have a mesh network and the general requirements we have are requirements that a lot of people have to the network. This is why it's open source. There's documentation how to set it up for yourself. You'll just all find that on the wiki. And we have a network image from the chaosvpn to give an impression of the network. The size... But this... Shall we just show that? Yeah. Are there any more questions? Okay. Then I'll try to find... So if you want to get involved in one or another, just as we still have some time left, come over here and we can exchange data. All the information you will need is on the wiki. Just Google for Chaos VPN and if you want to be more detailed, Google for Chaos VPN, CCC and Hamburg, you will find that. Yeah, there's one more question. There is a set up. Since there are two different networks, do we need two different devices? The answer is no. If you use a decent computer with more than one network card or if you use the Fenera, the switch on the Fenera access point supports VLANs so you can put Chaos VPN on one port network without any Chaos VPN network. So you can put Chaos VPN on one port network without any at all on the second network. Then you can do on the third network and for example anything totally different on the fourth port. Ting is using this turn device so you can set up more than one tunnel which is basically the concept behind Ting and you don't have any problems running two or more instances of Ting at the same time. Working pretty good for me. This should be an overview of the network status at this minute. This page is generated every minute and it's a bit slow. It shows all the nodes on the star of the network. Are there any more questions? As this is loading. Sorry? So the question is what designates the security group on the war zone? Both networks are web of trust so ask and find out. More questions? Okay. Well the star is loading very slowly as it's a very big image. We'll just keep it loading, maybe post it up. And first of all, thank you for staying here and talking and listening. If you want to get involved in one or another, feel invited to just come in the front. And yeah. Okay. See you tomorrow then. Thank you. . . . . . . . .