start	end	text
0	5140	So the next speaker, we have two speakers on board now, one is UnixNerd and the second
5140	12040	one is MaxSyntax. And they both are hacking and security enthusiasts. The topic that they
12040	18040	will be covering is how I found your password and other advanced data hoarding techniques.
18080	21920	So I'll hand the stage over to UnixNerd and MaxSyntax.
22620	32380	Hey, what's up folks? How's everybody doing? How are those hangovers out there?
37750	44930	Alright, well, thanks for coming to our talk. I'm glad the clickbait title drew a big crowd.
47920	56930	So introductions, I'm UnixNerd, I'm MaxSyntax, and we're from the internet. Research and
56930	62610	Destroy is our independent security research group, so we do this stuff for fun.
67560	74720	We'll just give you our wall of disclaimers. We won't read through each one of them, but
74720	79900	we'll leave the one right down at the bottom that we are not lawyers, so please consult
79900	82840	your own legal counsel for legal advice not possible.
83220	87340	I'll double down on that, we are not lawyers, just to be very clear on that.
89820	94820	Alright, so our agenda, we're going to have a little discussion about breach data, law
94820	100020	and ethics surrounding breach data research, a search engine discussion, and a tool release,
100020	102420	which we're really excited to share with you guys.
106720	112300	Alright, so our opening statement, our aim is to dispel misinformation and normalize
112300	117440	breach data research for security professionals. Addressing the elephant in the room.
122110	127370	So questions, how many of you know what breach data is, by a show of hands?
128250	131830	How many of you use breach data in one form or another?
132810	135170	Alright, yeah, lots of hands out there.
136830	140030	So what is it? I'm sure this is a review for most of you.
140990	146770	Breach data is any data that was intended to remain private, but was leaked through some form of compromise.
148590	152170	What does it contain? In short, all sorts of shit.
154170	157530	Database, PII, any sort of personal information.
157530	158370	EPHI, you know.
158630	160210	EPHI, depending on your discipline.
163010	169950	So, continued. Just a couple high profile examples from the media over the last decade or whatever.
170670	172570	Some of you may recognize, some of you won't.
173030	177990	You know, I was thinking about it the other day, that Ashley Madison, I think, what was that, 2016?
178010	181370	Something like that. I mean, we're almost ten years out from that.
181370	183250	If you think about it, that's crazy.
183710	188530	And then that Shanghai Police Database leak was fairly recent, I believe that was this year?
188530	189290	Yeah.
190410	195570	But anyways, the list of breaches isn't getting any shorter.
195570	199310	It keeps going on and on and on.
203170	205830	So, who uses breach data?
205930	208370	In short, everyone.
208370	211230	Everybody and their mom uses it, you know.
213570	220530	So, where does breach data end up once it's been leaked?
221230	225510	Breach data doesn't just go away as fast as the news cycle does.
226490	229710	It ends up on deep and dark web markets for sale.
230050	233990	And the dark web is not just some magical void where stolen things end up.
234390	236050	People steal things.
237130	241770	Those things are kept safe, usually in the hands of thieves.
241870	244150	And sometimes on a pastebin near you.
250210	255390	Either way, leaked data ends up in the hands of someone.
255610	257750	And they pursue their own interests with it.
259190	261170	Here's a few examples.
269970	274750	So, eventually, much of this data makes its way onto the capital I Internet.
275470	280150	Over time, breach data eventually finds its way into the public domain.
280370	283090	Or it's just leaked directly to the public.
283250	286270	What was PII becomes OSINT data.
288330	292710	So, is breach data valuable? Yes.
293090	294550	It depends on motive.
294550	297270	Nope, I looked at the wrong slide.
299010	300130	Yeah.
307180	313020	Yeah, so, is there any other value to breach data other than financial gain?
313020	314540	It depends on motive.
314860	316280	Here's a few examples.
319240	320020	Yep.
323840	327140	Why is breach data valuable to security researchers?
327140	331330	Because we can use it for adversary simulation, credential reuse,
331960	336560	profiling targets, generating realistic password lists,
336560	339660	illustrating impact, the pucker effect.
339660	342060	You know, like the opposite of Goatsy.
347590	350410	So, how long is breach data valuable?
350730	352910	Leaks themselves are timely.
352910	356070	And it all depends on, does anybody know if there's even been a breach?
356070	358770	Most of the time, it's happened either quietly,
358770	366130	or there'll be some sort of event that'll be a published event that it's happened.
366530	374870	But either way, what's vulnerable today may not be vulnerable tomorrow.
374870	377490	That's why it's important to kind of stay on top of this stuff.
378390	382050	But, is old breach data still valuable? Yes.
382050	385570	Because, in general, humans are very terrible at security,
385570	387050	and that's kind of why we're all here.
388790	393690	And some breach data can be too valuable, as you guys may recall.
394050	398270	As you guys may recall, the Shadow Brokers leak.
398310	400850	How much did they make, if anything?
400850	407030	So, on the Bitcoin address for the Shadow Brokers when they leaked NSA tools,
407030	411130	I believe there's somewhere around $4,000 or something in there.
411130	413670	And they were asking for a significant amount of money.
413710	415910	But, you know, they realized no one wanted to pay for it,
415910	419030	and they'd rather relinquish that risk.
419030	424470	Otherwise, they'd probably get scud missiles, drone strikes, and whatnot.
425270	432090	Either way, as breach data ages, eventually it makes its way around to the public Internet.
433250	436850	And as security professionals, should we use breach data?
436850	438630	And, yes, right?
438630	442570	And breach data itself is beyond low-hanging fruit, right?
442570	450390	And us not using breach data on engagements is kind of doing a disservice to our clients.
452590	454690	Breach data is beyond low-hanging fruit.
454690	458190	It's literally rotting on the ground all over the fucking place.
458230	460750	We need to take this stuff seriously, you know?
462370	464470	I'll speak on laws and ethics, right?
464470	467550	So, considering the origin of breach data, is it illegal?
467850	468830	Is it legal?
468830	469750	Eh, it is.
469750	471150	And, you know, it's not.
471150	474110	It really depends.
474250	480590	It's primarily illegal with misuse and if you don't have any sort of justification.
481350	485750	And, you know, it's legal based on intention and proper justification, right?
485750	487150	We do this for a living.
487570	491910	So, but, isn't breach data publicly available?
491910	493170	Yeah, it is.
493170	495030	But, you know, so are a lot of things, right?
495030	498950	Like default passwords and key-to-like systems, right?
498950	505230	Like the 1284X, the FAOK1, some keys that you guys may recognize.
506770	513190	And, you know, other personal information, you know, proof of concepts and end-day vulnerabilities, etc.
514890	517070	And at the end, it's kind of like having a black belt.
517070	519890	Like, just because you can kick somebody's ass, should you, you know...
519890	521510	Shouldn't be kicking everybody's ass.
521510	522130	Right, exactly.
522130	525170	And it all depends on scope and ethics in the end.
526310	530910	And so, lots of breach data is for sale as well.
532230	539330	We personally don't condone any monetary exchange for acquiring breach data as not to, like, fund cyberterrorism and such.
539910	542290	You know, so adhere to your moral convictions, right?
542290	545270	Unless your moral conviction is, don't get caught.
545270	547230	We're looking at you, Alphabet Boys.
547230	547850	Yeah.
550490	554990	Right, so when should you approach legal, right?
554990	559570	And you basically have to, you want to determine a need for using breach data.
559810	564330	And, you know, consider the risk and impact to yourself primarily, right?
564330	570410	Most importantly, you know, in your company, employees, and clients, you know, as well.
570410	573190	Whether you need to use it for them or otherwise.
573190	574570	And do your own research, right?
574570	575490	Because that's what we did.
575490	579130	And then we found something very important, right?
579130	586550	Did you guys know that the DOJ actually has public documentation and guidance around legally handling breach data?
587490	589790	Here's some resources, right?
590430	593530	So here's some brief quotes from the DOJ.
593530	603990	If a practitioner does not intend to use information obtained from a form to commit any federal criminal violation,
603990	610670	asking questions or soliciting advice from the form is unlikely to constitute as a crime.
610670	620410	And my favorite is, this assumes that the practitioners obtain information solely so that it can be used for cybersecurity purposes, right?
620410	627670	And defend against cybersecurity threats with no criminal or malicious intent.
627670	632750	So feel free to scan the QR code if you guys want a copy of that documentation.
632750	634050	It will also be on our repo.
634050	637570	Yeah, it's not malicious, we swear. You can trust us.
645710	647730	So, going to counsel.
648430	652330	So, when you go to counsel, you want to come up with a plan.
652550	661850	And based on what the DOJ specifies and your specific needs for using the data.
661850	665090	And then consult your executive leadership and your legal team.
665630	670950	Draft an official charter document that outlines the specifics in detail.
671010	675060	And then resolve any feedback with the legal counsel discussion.
675450	679330	And then finalize the initiative.
679330	682830	And then hurry up and wait, because legal takes forever.
682830	684770	Wait a seriously long time.
685390	688830	Time is relative, apparently.
688830	693770	But, eventually, everything should balance itself out.
693770	695010	And you'll have a pwnage.
695010	696170	So, questions?
698670	704050	So, how many of you had a legal policy in place before this talk?
704050	705590	For handling breach data?
707560	708650	How about now?
708650	711810	Who's going to turn up a legal policy?
712070	714250	Everybody's too shy to raise their hands.
717210	722410	Yeah, well, hopefully you guys take this home and really consider it.
722410	732770	Because, you know, we're all putting ourselves at risk by handling this stuff if we don't have legal protections in place.
733230	737450	So, now I'm going to cast a really big net.
738110	740670	Oh, actually, by a show of hands, we forgot that part.
740670	741930	Don't count the fingers.
742770	743710	Ignore the guy.
743710	745770	The guy's face down there, too.
745770	747890	I think it probably smells like armpits.
750250	754770	Alright, so, who uses the internet by a show of hands?
756110	758270	Yeah, keep them up. Keep them up.
758690	760630	Who uses a search engine?
763430	765630	Who used to use Google?
769120	771380	Who still uses Google?
772260	773300	Right?
773300	776660	What about other search engines?
777000	779540	What do you guys use? Like, shout them out.
785120	788040	Yep, I knew that one was coming. Yep.
788040	789180	Anybody else?
794370	795770	I'll take it.
797270	799990	But, yeah, there are far too many search engines to mention.
799990	803430	If you go online, there's quite the list of search engines.
803430	806250	But we've come to really love XerxNG.
806250	814630	So, XerxNG is a privacy-focused, self-hosted, hackable, meta-search engine
814630	820410	that supports 138 different search engine services.
821090	822590	It's pretty cool, right?
824290	826130	But we're hackers.
826490	830530	We like control, but we love root.
831310	835530	We like privacy, but we love anonymity.
835750	838530	We like to push things to their limits.
839590	844570	But above all, information should be free, right?
846190	849850	Free as in freedom, not free as in beer.
850570	852570	But we'll take the beer, too.
855520	857760	So, introducing XerxNG.
858200	860380	XerxNG is one part custom tool,
860380	863860	one part modified XerxNG Docker container.
864540	868020	Multi-threaded search queries are routed over the Tor network
868020	871260	with a 10-second circuit refresh rate.
871540	875260	The resulting search queries are stored in a SQL database.
875800	880740	And we've disabled error timeout features with XerxNG as well.
880740	884380	So, these configuration settings allow for evasion of search engine restrictions
884380	887360	commonly encountered while issuing many repeated requests.
887360	888080	Like, many.
891020	893500	So, in closing, before we demo the tool,
893900	896680	please do not use the dorksng client application
896680	899440	against any public XerxNG instances.
901000	904260	Our tooling is not meant for these traditional instances.
904260	906680	They don't have the customizations that we have made.
906820	909920	And we don't want to piss off that amazing community, basically.
911640	913200	All right, demo time.
915220	916720	How are we doing on time?
922870	926170	All right, so the first half of this demo is recorded.
926270	929310	So, here I'm spinning up eight container instances
929310	931990	of our custom XerxNG implementation.
933390	935950	Let me speed the video up a little bit.
935950	937530	Nope, not too much.
938330	941070	I got it at 2x, but I dial it down.
942870	945130	Yep, so you can see as I'm spinning up the containers,
945910	948590	they're initializing a connection into Tor.
948590	952830	And, yep, checking that Tor is connected,
952830	956870	checking IP, generating a self-signed certificate,
956870	961550	and then spinning up the XerxNG instance.
964320	966730	So, you'll see that the standard out in each container
966730	969450	displays a status code.
969450	973370	So, that's basically just testing the connectivity
973370	976050	and that everything's working correctly.
983570	985630	All right, chugging along here.
986950	989450	So, you'll also notice that when I'm spinning up these containers,
989450	993170	I'm staggering between initializing each one,
993170	995950	because if you try to start too many at a time,
995950	998050	you'll start to have Tor connectivity issues
998050	1000770	and then things won't work correctly.
1003250	1006010	So, I use Arch, by the way.
1009270	1011450	All right, real quick, I'll pause it here.
1012370	1017810	These are some of the command line functions of the application.
1019310	1022430	I have added a couple, and I'll talk about that later.
1033140	1036500	All right, so I'm going to issue a single search query.
1036500	1039220	Raise your hand if you know what a 1284X is.
1039220	1041900	I got one right here. Anybody?
1042780	1044580	That's Ford's fleet key.
1044580	1046760	Who buys fleets of Ford vehicles?
1046760	1048820	That's a far company.
1053750	1057570	All right, so now I'm going to issue that same search query,
1057570	1059650	but across a list of servers,
1059650	1062010	with four concurrent requests at a time,
1062010	1065130	up to 64 total pages.
1066730	1070250	There's a delay timer between requests. I have that disabled.
1072730	1073930	Yep.
1077310	1081190	So, this is firing off four concurrent requests at a time.
1081950	1087450	But so, our CirxNG implementation has seven search engines
1087450	1091090	that accept advanced search engine operators.
1091250	1093830	So, for every query you're making, that's times seven.
1093830	1096430	So, four times seven, what is that, 28?
1096450	1099450	So, every time we're issuing one of these requests,
1099450	1103130	that's sending out 28 upstream search requests.
1113420	1116140	This is why we speed the video up a little bit.
1116140	1119820	Yeah, so, with all those search engines added,
1119820	1122080	things are a little slow sometimes,
1122080	1124460	but you get a whole hell of a lot of data.
1149440	1153700	So, I did mention earlier that if you spin up containers too rapidly,
1153700	1154980	you might encounter an error.
1154980	1158640	So, there's an example of an error because I spun those containers up too fast.
1159520	1162440	But I have error handling built into the application,
1162440	1165640	so it should hopefully cross your fingers, right?
1165640	1166740	It should work.
1167960	1171080	The no new results counter is basically saying that
1171080	1174100	after receiving a response and deduping the results,
1174100	1177360	it didn't find anything new, so it decrements a counter.
1179380	1183500	And then once it hits zero, basically, or once it hits one, I believe,
1183500	1185420	then it stops the query.
1195170	1198270	All right, so we found 377 results.
1198610	1202750	So, now I'm going to query the SQL database with this regex string.
1202750	1206390	Remember, the 1284x, who buys it, right?
1206390	1211990	So, we're looking at police departments and so on and so forth.
1213650	1216210	So, there's all the results that it found.
1227090	1229030	The code's live now.
1232350	1234390	Can I scroll?
1235570	1237030	How do I computer?
1238790	1242330	I'd say the most important thing to pay attention to in our...
1242330	1245310	So, those are all the search engines, by the way, that we have enabled.
1246290	1248070	Buy us a beer or two, please.
1249390	1254230	But I would say the most important part to read in here is the tips section.
1254230	1257430	It's just a brain dump of a bunch of stuff.
1257570	1259670	But also as a treat for you guys...
1259670	1264410	So, we've been using the Google Hacking Database query set to bench test,
1264410	1268910	and we've been iterating over the entire list of Google Hacking Database queries.
1269410	1275850	Our database currently has, as of last night, hit over a million entries in the database.
1276450	1278950	So, that's there for you guys to have fun with.
1286200	1287920	Read the tips.
1288700	1290560	Also, check out DorkGPT.
1290560	1294820	We thought that was a pretty cool tool out there.
1305020	1307380	Now, we'll just kind of look at what we're doing with it.
1307380	1308700	So, here's the current...
1314220	1317860	What I've added is a database limit feature.
1317860	1323840	So, one of the things that we figured out through this process is that Python is terrible with deep recursion.
1323840	1329120	Matter of fact, it has a deep recursion limit, which was an unusual thing for me to run into.
1329480	1331500	So, we have that disabled.
1331500	1337480	But Python likes real thick stack frames, and it will literally just consume all the memory on the machine.
1339120	1343920	So, what I did to mitigate that is to use a database size limit.
1343920	1349060	So, you can set a limit, and once it hits that, it kicks that database off and starts a new one.
1349060	1355480	So, we've had this running since Sunday without any manual interaction.
1360040	1362320	So, there's our containers running.
1362940	1370080	Here is the current working... the work that's being done iterating over the Google Hacking database.
1370280	1373420	That bottom pane is a tool called Glances.
1373980	1380460	It's sort of like Htop, but the cool thing is it has a readout for the stats of containers.
1380620	1382100	So, I thought that was cool.
1385800	1391100	So, here you can see I'm merging all of the separate databases that we have.
1391100	1394040	And you can see at the bottom, we've got over a million entries.
1400850	1403470	And I'll just show you guys querying the database.
1403470	1406730	So, I'm doing a regex here, searching for SQL databases.
1411000	1414400	So, 10,000 entries, just sitting out there.
1415620	1417000	Alright, you ready?
1417400	1419300	So, lessons learned, right?
1419300	1423160	Policy sucks, but somebody's got to do it.
1423940	1427480	And your intention matters at the end.
1427680	1430060	And international law is not U.S. law.
1430060	1434600	So, what you can do here, apparently, you also cannot do elsewhere because of reasons.
1435600	1438580	And shit can still happen at the end of the day.
1438680	1446320	It's about having legal safeguards in place for yourself and company and your cohorts as well.
1447020	1452540	You can still get a knock at your door and eventually have to prove your intent.
1453400	1460560	And above all, practice good OPSEC and stay within your ethical guidelines written into your policy.
1460840	1463000	So, in the event you do get your door kicked in, you just say,
1463000	1466120	Hey, wait, I got this thing, and it should be okay.
1466120	1468780	Talk to my legal team and my lawyer, not me.
1469600	1473860	So, in conclusion, I hope you guys like our research.
1474020	1475860	And here's some examples.
1475860	1480180	You can go ahead and scan those to jump on the repo.
1483040	1484620	I'll give everybody a second.
1487640	1490100	I promise our QR codes don't bite.
1495490	1499210	Right. And so, if you guys want to chat, you know, this is pretty much at the end.
1499210	1501190	So, we'll be down at the bar.
1501190	1505070	Yeah, so after this is lunch break, so if you guys want to chat, we'll be at the bar downstairs.
1505070	1506550	We might show you some cool stuff.
1509210	1512190	So, shout-outs.
1513030	1519690	In closing, we'd like to shout-outs to SearchNG and Tor for making this possible.
1519690	1521210	Please donate to them both.
1521570	1523390	Right. Shout-out to our mentors.
1523390	1525690	We love you all. You know who you are.
1526410	1529150	Right. And shout-out to IP, you know.
1529150	1530810	Fucking hack the planet.
1533450	1535390	Peace. Thanks, guys.
