Okay, everyone, and we'll just get started with the last session of the day. We've got another live tool demo, so hopefully everything will continue to work. It has so far at the moment, so we'll keep on going with this. So I'm probably going to pronounce his name wrong, but it is Upku, and if I've said that wrong, he's just going to smile politely and keep on going. The title of this is Generating Personalized Word Lists by Analyzing Targets' Tweets. Without further ado, I'm just going to pass over and get straight into things, and leave it to you. Thanks very much. Okay. So can anyone see my voice? Is it okay in the back side? Great. So hello, everyone. Welcome to my talk named Generating Personalized Word Lists by Analyzing Targets' Tweets. So let me introduce myself first. I'm Utku Sen. I'm usually doing researches and writing tools which are about offensive side of security. I'm currently working for Tier Security, and you can find my details on my website, and you can follow me on Twitter if you are interested in. So in this presentation, I will start by talking about password-guessing attacks. Then I will explain why reducing the word list size is crucial for password-guessing. After that, we will see how can we generate word lists based on targets' personal topics. Finally, I will demonstrate the Rodeo tool which does that job. Passwords are our main security mechanisms for the digital accounts since the beginning of the internet. Because of that, passwords are one of the main targets for the attackers. Of course, there are lots of different ways that attacker can get their target's password. For example, the attacker can prepare a phishing website to trick a target into entering their credentials to a rogue website. Or an attacker can conduct a password-guessing attack through brute forcing. Password-guessing attacks can be described in two main categories. They are online and offline attacks. Offline password-guessing attacks are usually conducted against captured hashes or encryption keys. For example, for hash-correcting, attacker calculates some password hash and compares with the target hash. There are two variables which affects the success of the, uh, other than the password complexity. They are hardware resources and the algorithm of the hashing, uh, type of the hashing algorithm. Uh, more hardware resources are providing a speed, therefore increases the chance of success. Uh, the other thing is the hashing algorithm. For example, cracking an MD5 hash will be faster than cracking a bcrypt one. Online password-guessing attack is where the attacker sends username password combination to a service like HTTP, SSH, et cetera, and tries to identify the correct combination by checking the response from the services. There are lots of different variables which affects the success. Uh, for example, our connection speed, server speeds, also website can block our IP address, lock target's account, et cetera. Online attack and hardware resources has no positive correlation. Therefore, it's much, much harder than the offline attacks. Also, most of the web applications have password complexity rules where user have to use at least one number, one upper letter, character, and special characters, et cetera. Therefore, reducing the brute force pool to an acceptable size is very important for the attackers. Instead of brute forcing all combinations, but we can make smart choices. For example, we can try the all common passwords. If it doesn't work, we can make some smarter combinations again. To reduce the combination pool, HashKit team created a technique called mask attack. The main idea is people are choosing their password with similar patterns. They are not pure gibberish data. Therefore, we can define a pattern which is called mask and do brute force with its boundaries. For example, let's say our password is Julia 1984. With the brute force approach, we need to brute force all nine characters with all our char sets. The formula is 9 over 62 which is a very, very big number. For the mask attack, since we defined the pattern, we don't need to brute force everything. There are 29 choices for the first character which can be only upper letter. The total amount of combinations are way smaller than the pure brute force technique. It's around 200 billion. But of course it's still too much for the online attacks. We usually can't send 200 billion requests to a web server and wait its response. Again, but of course, pure brute force and mask attacks are not the only way for password guessing. There is also science fiction based methods, method based on smart guessing. For example, on Sherlock's Haunt of Baskerville episode, Sherlock Holmes was checking the personal stuff of the target and we're guessing the correct password in one shot. So we have a third method now. It seems very unrealistic, but in theory it's possible to find Yulia 1984 password in less than three shots. We just need to have some Sherlock Holmes skills to do that. Let's assume that target is posted that tweet and we are Sherlock Holmes candidates. We can make following deductions. Target's daughter name is Yulia and target loves her so much since he or she tweets about her. And the target's favorite author is George Orwell, whose most popular book is 1984. So combine them together, the answer is Yulia 1984. Is this that simple? We will come back to this later. So according to some researches which are conducted by Carnegie Mellon University, most of people are choosing words from their hobbies, sports, movies, etc. for their passwords. Uh, this means that most of the user passwords are containing, uh, meaningful words and they are related with the password's owner. So in theory we can become a Sherlock Holmes on password cracking. Actually we can prove that people are mostly using meaningful words for their passwords. When we analyze leaked Myspace and HTML password slits and generate most used masks, we can see that almost 95% of passwords are formed by sequential alphabetic characters. So there is a high probability that these are meaningful words. Uh, let's try to prove that they are actually contains meaningful words. So what is a meaningful word? We can say that a letter sequence is a meaningful English word if it's listed in an English lexicon. For those who are not familiar with the NLP context, lexicon refers to the complete set of meaningful units in a language. Uh, we used wordnet lexicon for this job. Our analysis showed that almost 40% of those word lists are included in wordnet lexicon, hence they are meaningful English words. Now we need to apply post tagging which means part of speech tagging to these words to understand what kind of words they are. Uh, post tagging is a process to find a word's class. There are eight different part of speech classes in English language. Uh, we learned them in English lessons. For example, there are nouns like chair, uh, table, etc. And there are verbs like going, eating, etc. So we analyzed those words with the help of Python's NLTK library and the results showed that most of these words are singular noun. So let's recap what kind of facts that we have so far. First, our analysis showed that people are using meaningful words for their passwords and the second, uh, from the research conducted by various of universities, we know that passwords are mostly based on personal topics. So Sherlock Holmes' method is legit in theory. But can it be done in practice? But Sherlock Holmes did was analyzing personal topics of the targets. Then he combined them in his mind and came up with a candidate password. But how can we do it in real life? Uh, to achieve this, we need information about the targets and an algorithm which extracts good password candidates from that information. We need a data source about the targets just like Sherlock Holmes had. We need a source that we can find hobbies and other interest areas of the targets. Actually we all know that kind of source. Uh, it's Twitter of course. In Twitter people are tend to write posts about their hobbies and other interest areas. Since there's a character limitation for the tweets, uh, users write, need to write things more focused. And this makes things easier for us. We don't need to deal with large text. So let's use the Twitter as a data source and try to build our personalized wordless generation algorithm. First of all, we need to gather tweets from targets via Twitter's API. Then we need to get rid of unnecessary words. Uh, how do we know if a word is necessary or unnecessary for our job? Firstly, since we are trying to find personalized things, we can remove any stop words since everybody are using them. So we can remove things like I, my, she, et cetera. Secondly, as you recall, our research show that people are using mostly nouns for their passwords. So we can remove any words. For example, we can remove suggest word from the tweets. As you can remember from previous slides, leaked word lists were mostly formed by nouns. So we can again apply post tagging to the rest of the words and detect most used nouns and proper nouns. For this tweet, nouns are, um, outer and outer. Proper nouns are George Orwell and Yulia. Sometimes users are quite confused about combining two meaningful words for their passwords. But of course they are not usually two random words but they have a semantic similarity. So we also need to combine similar words. Uh, we used WordNet's pet similarity algorithm for detecting semantic similarity of the words which are extracted from the tweets. Pet similarity algorithm gives us a score between zero and one and we combine them together if the score is greater than zero point twelve. In the example shown in the slides, we will combine cat, dog and flamethrower with each other. Uh, researchers have also found that some of the most used semantic teams in passwords are locations and years. For this job, we will send extracted proper nouns to Wikipedia and parse related years and cities from them. In this example, we sent George Orwell to Wikipedia and it returns us words like London 1984 etc. So the last step is combining all of our data. From the example tweet, we got uh, George Orwell word, we sent it to Wikipedia and it returned us 1984 words. Beyond that, we also had Yulia as a proper noun. So when we combine all of our data, we will have the correct password, Yulia 1984 in somewhere. So instead of millions of combinations, we could crack this password uh, for twenty or less steps. Just like Sherlock Holmes did. So to automatize all these processes, I coded a tool named Rodeola. It is written in Python and mostly based on NLTK library. It follows the algorithm that I described in previous sections. With a given Twitter handle, it can automatically can compile a personalized word list with the elements such as most used nouns, proper nouns, paired words, uh, years and cities related to them. Currently it only supports English but I will finish the Turkish and German support soon. You can use Rodeola in three different modes. In the base mode, Rodeola takes a Twitter handle as an argument and generates a personalized word list without any fancy stuff. For example, when you give Elon Musk username, it generates passwords like Tesla, car, SpaceX, foreign company 2018, et cetera. In the regex mode, user can generate additional secret strings with the provided regex. These generated strings will be appended prefix or suffix to the words. For this mode, Rodeola takes a regex value as an argument, regex place defines the string placement. With the given regex value in the shown in the slide, it will generate passwords like Tesla root 01, Tesla root 02 and goes like this. In the mask mode, user can provide a hashcat style mask values for the word list generation. So in this example, uh, comment, we used a mask in which first character is upper letter, second is lower letter, third one is upper letter again and goes like this. If you don't have any Twitter API or you want to use another data source, you can bring your own data. Uh, Rodeola provides you two different options. In the first one, you can provide a text file to Rodeola which contains lots of harvested texts. In the second one, you can provide a URL list and Rodeola harvest text from these URLs automatically and builds the personalized word lists right away. Uh, you can download and try the tool from our GitHub page. Okay, so demo time. To make this demo, I will get a TV handle from a volunteer in the audience and we'll pass it to Rodeola and we will check its results together. So is there anyone who are actively using Twitter in English and willing to share username with me? Anyone? Or you can give some, you know, celebrity username, it's fine also. No one? Excuse me? Uh, no, sorry? I, you don't talk to me? You're talking with your friend, sorry. Okay, I'm sorry. Okay, so let's choose a random celebrity then. Okay. So last chance, anyone? Defcon? Yeah, let's try Defcon, okay. Uh, let's see what we will have. So now it's downloaded from the Defcon and it's trying to download Twitter account. Probably it will download like 2,500 tweets which is uh, Twitter's API limits. It will need to be done in 10 seconds. Uh, now probably Defcon's Twitter account has only 1,013 tweets. Now it's trying to detect most used nouns and proper nouns on the download tweets and also cleans data from the stop words and something like this. So most used nouns are obviously Defcon, Defcon 26, Defcon 27, new live batch, open share China, uh, et cetera, et cetera, village. And now it sends those extracted tweets to Wikipedia and will parse the related locations and years. But of course, uh, maybe Defcon Twitter handle is not a, you know, best candidate for this experiment. But you got the idea. Okay, let's check what kind of words that we have. Uh, we saw them and some years, some location. So you can use these words to brute force Defcon's Twitter account and let me know about the results. So some Chinese, these, some hotel names, again some, I guess, Chinese, these again. Uh, yeah, and Las Vegas of course. So you got the idea. Let's turn back to the slides again. So as a conclusion, since people tend to use words from their interest areas for their passwords and expose those interest areas on Twitter, it's possible for an attacker to create a word list by analyzing a target's tweets. Beyond Twitter, any actor that has much more data about the person will have an ability to create more accurate word lists. Therefore, users should avoid using words from the topics that are exposed in social media. It's better to use random passwords that are stored in a password manager software. So thank you everybody for listening to me. Any questions? Sorry? Address? Okay. Don't forget to send some stars and of course you can send forks, comments, issues. Alright, thanks everybody. Okay, thank you very much.