start	end	text
0	2280	All right, good afternoon everyone, 3 p.m.
2280	4400	It is my pleasure to introduce Ukuşen.
4400	5980	Thank you.
7840	9500	Hello everyone, welcome to my...
9500	11880	By the way, can you hear my voice in the back side?
11880	12920	It's okay, great.
13260	17240	Welcome to my talk named Generating Personalized Word Lists
17240	21100	with Natural Language Processing by Analyzing Tweets.
21960	23960	Let me introduce myself first.
23960	26460	I'm Utkuşen, I'm usually doing researches
26460	28100	and writing tools which are about
28100	29460	offensive side of security.
29460	32560	I'm currently working for T-Security.
32640	35260	You can find detailed information on my website
35260	38600	and you can follow me on Twitter if you are interested in.
39500	42540	In this presentation, I will start by talking about
42540	44260	password guessing attacks.
44320	47920	Then, I will explain why reducing the word list size
47920	50360	is crucial for password guessing.
50540	53420	After that, we will see how can we generate word lists
53420	56000	based on target's personal topics.
56120	58220	Finally, I will demonstrate the Rodeolo tool
58220	59900	which does that job.
61520	64040	Passwords are our main security mechanism
64040	67520	for the digital account since the beginning of the internet.
67520	70920	Because of that, passwords are main targets
70920	72220	for the attackers.
72220	73880	Of course, there are lots of different ways
73880	75960	to gather a target's password.
75960	78660	For example, the attacker can prepare a phishing website
78660	81800	to trick targets into entering their credentials
81800	83400	to a rogue website.
83400	87200	Or an attacker can conduct a password guessing attack
87200	88920	through brute forcing.
89200	91740	Password guessing attacks are usually described
91740	93320	in two main categories.
93320	96000	They are offline and online attacks.
96880	99580	Offline password guessing attacks are usually conducted
100180	103740	against captured hashes or encryption keys.
103740	106740	For example, for hash cracking, attacker calculates
106740	110540	some password hash and compares with the target hash.
110540	113140	There are two variables which affects the success
113140	115280	other than the password complexity.
115280	116820	They are hardware resources
116820	119640	and the type of phishing algorithm.
119880	123300	More hardware resources are providing us speed,
123300	126540	therefore increases the chance of success.
126890	129320	The other thing is, of course, phishing algorithm.
129320	132140	For example, cracking an MD5 hash will be faster
132140	134580	than cracking a bcrypt one.
135580	137660	However, online password guessing attack
137660	139400	is something different.
139400	141460	In online password guessing attack,
141460	143600	attacker sends username password combination
143600	147300	to a service like HTTP, SSH, et cetera,
147300	149980	and tries to identify the correct combination
149980	153060	by checking the response from those services.
153200	155180	There are lots of different variables
155180	157660	which affects the chance of success.
157660	161480	For example, our connection speed, servers bandwidth,
161480	163780	also server can block our IP address
163780	166900	or lock targets, accounts, et cetera.
166900	168920	There are lots of counter measurements.
169380	171540	Online attacks and hardware resources
171540	173300	has no positive correlation.
173300	176800	Therefore, it's much, much harder than offline attacks.
178480	181940	Most of the web applications have password complexity rules
181940	185100	where user have to use at least one number,
185100	190020	upper level characters, and of course special character.
190020	192660	Therefore, reducing the brute force size,
192660	195300	brute force pull to an acceptable size
195300	197420	is very important for the attackers.
197700	200020	Instead of brute forcing all combinations,
200020	202500	actually we can make some smarter choices.
202500	205380	For example, we can try the most common passwords.
205380	209640	If it doesn't work, we can make some smarter combinations.
210920	213000	To reduce the combination pull,
213000	216180	Hashcat team created a technique called mask attack.
216200	219460	The main idea is people are choosing their passwords
219460	221240	with similar patterns.
221240	223260	They are not pure gibberish data.
223260	226380	Therefore, we can define a pattern which is called mask,
226380	229240	and we can do brute force with its boundaries.
229240	232780	Let's say our target password is Yulia1984.
232980	234780	With the brute force approach,
234780	236740	we need to brute force all nine characters
236740	238400	with all of our char sets.
238400	243180	The formula is 9 over 62, which is a very, very big number.
243780	246780	For the mask attack, since we defined the pattern,
246780	248700	we don't need to brute force everything.
248740	252300	For example, the first characters can be only upper letter.
252300	254320	There are 29 choices.
254540	257620	The total amount of combinations are way smaller
257620	259180	than the pure brute force technique.
259180	261740	It's around 200 billions.
262720	265520	But of course, it's still too much for the online attacks.
265520	268580	We usually can't send 200 billions requests
268580	271560	to web application and check its response.
273100	276220	But of course, pure brute force attack and mask attacks
276220	278580	are not the only way for password guessing.
278720	283140	There is also science fiction method based on smart guessing.
283240	286540	For example, on Sherlock's Hound of Baskerville episodes,
286540	289020	Sherlock Holmes was checking the personal stuff of the target
289440	293640	and we're guessing the password in just one shot.
295140	298540	So, we can talk about the third method now.
298560	301440	It seems very unrealistic, but in theory,
301440	304260	it's possible to find Julia 1984 password
304660	306780	in less than three shots.
306780	309480	We just need to have some Sherlock Holmes skills.
314600	316720	Let's assume the target is posted a tweet
316720	319080	and we are a Sherlock Holmes candidate.
319080	321500	We can make following deductions.
321920	323340	Target's author name is Julia
323800	325480	and the target loves her so much
325480	327860	since he or she tweets about her.
328060	330360	And the target's favorite author is George Orwell
330360	333160	whose most popular book is 1984.
333900	337760	So, combine them together, the answer is Julia 1984.
338380	340060	Is this that simple?
340060	342160	We will come back to this later.
343240	344840	So, according to some researchers
345700	349020	which are conducted by Carnegie Mellon University,
349020	350740	most of the people are choosing words
351340	354280	from their hobbies, sports, movies, etc.
354280	355980	for their passwords.
356040	358480	This means that most of the user passwords
358480	360740	contain meaningful words
360740	363640	and they are related with the password's owner.
363800	365280	So, in theory, we can become
365440	367900	a Sherlock Holmes on password guessing.
369280	370880	We can actually prove that people
370880	373720	are mostly using meaningful words for their passwords.
373960	375800	When we analyze leaked Myspace
375800	377880	and Ashley Madison password lists
377880	380380	and generate most used masks,
380380	384580	we can see that almost 95% of those passwords
384580	387720	are formed by sequential alphabetic characters.
387720	388860	So, there is a high probability
388860	391360	that these are meaningful words.
392880	394800	Let's try to prove that they actually
394800	396860	contain meaningful words.
396900	398920	So, what is a meaningful word?
398920	401020	We can say that a letter sequence
401020	403000	is a meaningful English word
403000	406400	if it's listed in an English lexicon.
406400	410140	For those who are not familiar with NLP context,
410140	412940	lexicon means that the complete set
412940	416520	of meaningful units in a language.
416580	421740	We used Stanford's WordNet lexicon for this job.
423100	427160	Our analysis showed that almost 40% of those word lists
427160	429940	are included in WordNet lexicon,
429940	432340	hence they are meaningful English words.
432360	434320	Now we need to apply post tagging,
434320	436080	which means part of speech tagging,
436080	439320	to these words to understand what kind of words they are.
439760	442320	Post tagging is a process to find a word's class.
442320	444620	There are eight different part of speeches
444620	446540	in English language.
447020	449480	For example, I learned them in English lessons.
449480	452660	For example, for those who are not familiar with those,
452660	455480	for example, there are nouns like table chair,
455480	458300	there are verbs like eating, going, et cetera.
458960	461060	So, we analyzed those words with the help
461060	463820	of Python's NLTK library and results showed
463820	468080	that most of these words are singular noun.
470000	473040	So, let's recap what kind of facts that we have so far.
473040	476560	First, our analysis showed that people are using
476560	478840	meaningful words for their passwords.
478840	481440	And second, from the research conducted
481440	484060	by various universities, we know that passwords
484060	486720	are mostly based on personal topics.
486880	490880	So, Sherlock Holmes' method is legit in theory.
492120	494660	But can it be done in practice?
495000	496720	What Sherlock Holmes did was analyzing
496720	498940	personal topics of the target.
499000	501160	Then, he combined them in his mind
501160	503320	and came up with a candidate password.
503900	506440	But how can we do it in real life?
506600	509040	To achieve this, we need the information
509040	512080	about the target and algorithm which extracts
512080	514820	good password candidates from that information.
516060	519420	We need a data source just like Sherlock Holmes said.
519920	522400	We need a source where we can find hobbies
522400	525960	and other interest areas of the targets.
526100	528800	And actually, we all know that kind of source.
529240	530840	It's Twitter, of course.
531260	533500	In Twitter, people tend to write posts
533500	536980	about their hobbies and other interest area mostly.
537020	539720	Since there's a character limitation for each tweet,
539720	542740	users need to write things more focused.
542740	544600	And this makes things easier for us
544600	548660	because we don't need to deal with large gibberish texts.
548660	550940	So let's use Twitter as a data source
550940	552960	and try to build our personalized
553620	555400	wordless generation algorithm.
556900	559180	First of all, we need to gather tweets
559180	561680	from target via Twitter's API.
562180	565800	Then, we need to get rid of unnecessary data.
566040	570360	But how do we know if a word is necessary or unnecessary?
570620	573740	Since we're trying to find personalized things,
573740	577140	we can remove stop words since everybody are using them.
577140	580680	For example, we can remove things like I, my, she, etc.
580680	582320	from the tweets.
582600	585780	Secondly, as you recall, our research showed
585780	588900	that people are mostly using nouns for their passwords.
588900	591560	We can remove any verbs.
591780	595540	For example, we removed suggest verb from the tweets.
596700	599520	As you can remember from the previous slides,
599520	603860	leaked word lists were mostly formed by nouns.
603860	606520	So we can apply post tagging to the rest of the words
606520	609480	to detect most used nouns and proper nouns.
609480	613010	For this tweet, nouns are daughter and author.
613420	616190	Proper nouns are George Orwell and Yulia.
618420	621220	Sometimes users are combining two meaningful words
621220	622660	for their passwords.
622920	626300	But of course, they are not like two random words.
626300	628860	They have a kind of semantic similarity.
629180	631780	We also need to combine similar words.
631900	634160	We used WordNet's pet similarity algorithm
634160	637760	for detecting semantic similarity of the words
637760	640280	which are extracted from the tweets.
640560	644420	Pet similarity algorithm gives us a score between zero and one.
644420	645940	And we are combining two words
645940	648860	if their score is greater than 0.12.
649340	651460	In the example shown in the slide,
651460	655120	we will combine cat, dog, and flame thrower with each other.
657060	659460	Researchers have also found that some of the most used
659460	663400	semantic themes in passwords are locations and years.
663400	667020	For this job, we will send the extracted nouns to Wikipedia
667570	670850	and parse related years and cities from them.
671160	674120	In this example tweet, we sent George Orwell to Wikipedia
674450	679270	and it returned us words like London, 1984, et cetera.
680460	683490	So the last step is combining all of our data.
683920	686740	From the example tweet, we got George Orwell word,
686740	690670	we sent it to Wikipedia, and it returned us 1984 words.
690670	693950	Beyond that, we also had a Yulia as a proper noun.
693990	696410	So when we combine all of our data,
696410	700570	we will have the correct password, Yulia1984, in somewhere.
700890	702910	So instead of millions of combinations,
702910	707410	we could correct this password in less than 20 or less steps.
707570	710290	So it's just like Sherlock Holmes did.
711430	716470	So to automatize all processes, I coded a tool named Rodeola.
716470	720290	It's written in Python and mostly based on NLTK library.
720290	724270	It follows the algorithm that I described in the previous section.
724270	726130	With a given Twitter handle,
726130	729350	it can automatically compile a personalized word list
729350	735970	with elements such as nouns, proper nouns, cities, years related to them.
736330	738470	Currently, it only supports English language,
738470	742210	but I will finish the Turkish and German support soon.
744210	747270	You can use Rodeola in three different modes.
747270	749990	In the base mode, Rodeola takes a Twitter handle
749990	753430	as an argument and generates personalized word lists
753430	755430	without any fancy stuff.
755510	757930	For example, when you give Elon Musk username,
757930	762030	it will generate passwords like Tesla, car, SpaceX,
762030	764910	boring machine 2018, et cetera.
766330	769790	In the regex mode, a user can generate additional strings
769790	771510	with the provided regex.
771510	774370	These generated strings will be appended prefix
774370	776310	or suffix to the words.
776550	779890	For this mode, Rodeola takes a regex value as an argument,
779890	782930	defines the string placement.
783030	784890	With the regex shown in the slide,
784890	787990	it will generate passwords like Tesla root 01,
787990	790910	Tesla root 02, and it goes like this.
792170	795790	In the mask mode, user can provide hashcat style mask values
795790	797790	for the word list generation.
798050	800750	So in this example, we used mask in which first character
800750	803870	is upper letter, second one is lower letter,
803870	806050	and the third one is upper letter again.
807290	809170	If you don't have any Twitter API
809170	811630	or you want to use another data source,
811630	813430	you can bring your own data.
813830	816270	Rodeola provides you two different options.
816270	819650	In the first one, you can provide a text file to Rodeola
819650	822270	which contains lots of harvested texts.
822270	824690	In the second one, you can provide a URL list
824690	828150	and Rodeola harvests text from these URL automatically
828150	831610	and will build the personalized word list right away.
833110	835910	You can download and try the tool
836530	838450	from our GitHub page by yourself.
840630	842690	Okay, so demo time.
842750	845670	To make this demo, I will get a Twitter handle
845670	848110	from the audience, a volunteer,
848110	849590	and we'll pass it to Rodeola
849590	852650	and we will check its results all together.
852790	855010	So is there anyone who are actively using Twitter
855010	858170	in English and willing to share the username with me?
859910	860710	Yes, sir.
860710	863790	But let me open up my terminal first.
877380	879460	Okay, I'm all ears.
883830	902490	A, B, A, B, E, E, K, yep, D, E, E, all right, S, this one.
902510	906510	Okay, let's see what we will have got.
907670	911110	Now it's downloaded a bit from that Twitter handle.
911930	914850	Probably it will download like 2,500
914850	918190	because it's Twitter's API limitation.
923870	926870	I hope I have a internet connection right now.
938900	940060	Weird.
945810	949450	All right, DEF CON Wi-Fi is not working.
957360	961020	Are there anyone who are using DEF CON Wi-Fi right now?
961020	962680	Is it not working?
963960	966360	They were saying they were getting rate limited earlier.
966380	967180	Sorry?
967180	969400	They said they were getting rate limited earlier.
969400	970360	The Wi-Fi?
970360	971180	Yeah.
971280	972140	Weird.
972580	975220	Actually, it was working for like three days
975220	978080	and it just stopped in my presentation.
979900	984320	Anyway, but I want, it can't stop me, you know?
984320	986300	I will use my hotspot.
987800	988920	Sorry?
989400	990640	DEF CON open.
993960	995980	Nah, it's rogue Wi-Fi, right?
996640	1002670	Come on.
1005330	1006210	Yep.
1014600	1015440	Yep.
1015440	1017360	Now we have a working Wi-Fi.
1024050	1025310	Come on, man.
1033980	1034700	No internet?
1034700	1035280	Yeah.
1035460	1036340	Okay.
1036540	1037320	Great.
1039580	1041840	I hope we can find your password then.
1057110	1058750	Yeah, you have lots of tweets, sir.
1059410	1061290	Too late.
1064070	1065230	Sorry?
1068830	1072630	Actually, it can't do that at this moment.
1072630	1075250	It just downloads like 2,000 tweets.
1075250	1078530	Actually, it will complete in a second, probably.
1079970	1082070	Yeah, good idea.
1082990	1085070	Actually, it downloads faster,
1085070	1086850	but because of my internet connection,
1086850	1088950	it's a little bit slow.
1088950	1089950	No, okay.
1089950	1092670	Now it analyzes the downloaded tweets
1092670	1097190	and we'll get like most used nouns, proper nouns,
1097190	1099550	and we will see them in a second.
1112190	1113110	Okay.
1113490	1117190	So, most used nouns are, wow,
1118110	1121970	giants, let's hope, let's go giants.
1121970	1124610	So is there like sport team or something?
1124610	1125390	Yeah.
1125390	1125950	Yeah.
1128710	1133430	United, Manchester United, NFL.
1133770	1135990	So does this make sense to you?
1135990	1136630	Yes.
1136630	1137430	Great.
1137430	1139210	These are the things I dreamed about.
1139210	1140310	No.
1141430	1144170	Okay, now it sent those words to Wikipedia
1144170	1148230	and parsed related locations and years from them.
1148230	1151170	And let's see what kind of passwords we have.
1152490	1153210	So.
1155390	1156150	Uh.
1158690	1160330	I don't know.
1164180	1165460	Actually.
1166800	1169700	Now, I don't know the reason,
1169700	1172060	but it couldn't parse related years,
1172060	1173640	but it should have,
1173640	1177620	probably because of main connection or something.
1178220	1181720	So, sir, is your password listed in this word list?
1181880	1184180	Could you please take a look again?
1184180	1184980	No?
1185640	1188520	All right, so of course it will be a miracle
1188520	1192640	to create a password with this method to a DEF CON attendee.
1192920	1196360	All right, so let's turn back to the slide again.
1202190	1203150	Right.
1205650	1208230	Anyway, I can stop the mirror.
1208970	1211110	Anyway, so as a conclusion,
1211110	1214890	since people tend to use words from their hobbies,
1214890	1217790	movies, sports, et cetera, for their passwords,
1217790	1223170	users should not use these words for their passwords
1223890	1227510	since we can create some kind of accurate word list
1227510	1230550	with given data.
1230670	1233010	Beyond that, any actor that has much more data
1233010	1235210	about that person will have an ability
1235210	1239270	to create more accurate word lists for the target people.
1239450	1243470	So people should avoid using those kind of times
1243470	1246090	in their passwords and should use password manager
1246090	1248430	with random passwords.
1248670	1251690	So that's all I have today.
1251690	1253970	Thank you coming for listening to me.
1257810	1260330	So are there any questions?
1260670	1261830	Yes, please, sir.
1268680	1270460	What kind of list?
1275090	1276630	Yeah, yeah, of course.
1276630	1279690	They are leaked MySpace and HLM medicine word lists.
1279690	1282770	So when you analyze them with the pack tool,
1282770	1284430	you can find it on GitHub,
1284430	1286950	you will see the same statistics.
1287830	1289910	So yeah, please.
1295140	1297420	Yeah, currently you can't do that,
1297420	1299560	but in future I will do that.
1299560	1302340	Because since it's some kind of experimental project,
1302340	1306000	I didn't want to limit, you know, password length.
1308900	1309820	Please.
1323210	1324330	Yeah.
1327590	1330010	To be honest, zero.
1331310	1334030	Yeah, of course I couldn't crack any like,
1334030	1336690	for example, my friends are using mostly,
1336690	1339670	you know, complex passwords, etc.
1339670	1342530	And I couldn't crack any of these passwords.
1342530	1344750	But when you try it on your, for example,
1344750	1346950	mother or, you know, some older person
1346950	1351110	or some not ungeek person, it may work.
1351110	1352110	So.
1353870	1354450	Yeah.
1360190	1365610	But I need to know the real identity of the targets.
1365610	1368650	So I need to get like their hobbies,
1368650	1373210	their something and like cross check with all of them.
1373890	1377450	But if only I know the correct real identity
1377450	1379830	of the MySpace word lists,
1379830	1382110	probably your method will work.
1382110	1385290	But actually it can be done in Html medicine word lists.
1385290	1388770	Probably their real identity is already revealed.
1389090	1390570	Maybe I can check them, yeah.
1391210	1391890	Please.
1400820	1403440	Good idea, actually, I haven't thought about that.
1403440	1404500	Yeah, good idea.
1406820	1410680	So there's, as far as I can see, there's no question.
1410680	1411160	Thank you.
1411160	1412500	Yeah, there's a question.
1414680	1418080	I use Python's NLTK library mostly.
1419420	1420200	Sorry?
1421020	1424320	I only know Python supports,
1424320	1426740	probably it only has Python support.
1427620	1430800	So wasn't that your answer?
1432640	1434040	Only Python.
1436040	1438720	Only English, only English, yeah.
1438720	1444180	Actually, I think it's kind of supports French or Spanish,
1444180	1446720	but they are not strong as English one.
1447440	1450460	So you need, if you are working on a different language,
1450460	1453340	you need to find some local implementation
1453920	1455980	for the NLP stuff.
1459420	1461940	Actually, each language has own websites.
1461940	1464680	So for example, for Turkish language,
1464680	1468400	there's, I can download some items from university websites,
1468400	1470760	but I didn't research about the other language.
1470760	1472920	But there is no single place
1472920	1474920	that you can download everything.
1477530	1478810	Okay, so that's all.
1478810	1479510	Thank you.
