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