start	end	text
8690	15290	So my name is Jason Haddix, and this is Gunnar, and we are hackers.
16010	22930	We created a data, I guess, data repository and tooling called...
23510	25310	You didn't want that picture in the slides?
25310	26450	No, no, no, it's a good picture.
26450	27790	That's a great picture, dude.
27790	28930	I appreciate it.
29530	33890	And so we created some tooling and some data repository stuff
33890	37150	for people primarily who are doing application security testing.
38550	41050	Okay. So a little bit of history.
41290	44950	So about... oh, I don't know.
45750	50930	2016, I spoke at DEF CON on the main stage on this topic.
50950	52890	And the talk was called HUNT.
52890	55930	It was called HUNT Data-Driven Web Hacking and Manual Testing.
56510	60070	Now, HUNT, these fine people at the bottom
60070	62410	were the ones who helped me put that talk together.
62430	65350	What we're doing today is enhancing it a whole bunch.
65350	69670	So let me talk about the problem space we're working in right now.
69750	73990	So right now, a seasoned hacker, application security hacker,
73990	78130	can kind of look at a website, and for some reason,
78130	80250	they've developed, like, a spidey sense.
80250	82710	If you've been doing this for 10 years or 15 years,
82710	84050	you look at a website and you're like,
84050	86390	oh, yeah, that's probably vulnerable to X, right?
86470	90050	And that's just, like, something that people talk about all the time.
90050	91450	It's like, oh, I don't know really how I hack.
91450	94510	I just kind of, you know, I look at the site and I do this thing.
94510	97890	That is not helpful for new people getting into application security.
97890	101750	Just saying, oh, you'll develop this skill set in 15 years, right?
102330	105050	And so a lot of them call it, like, their spidey sense.
105150	109590	But really, it's experience and context that are driving these decisions
109590	112770	when you look at an application and know where to hack it
112770	115630	and how to hack that section of the application.
116550	119730	So how do we shortcut experience and context?
119730	121410	And in general, you should never do this, right?
121410	124750	But in our cases, we're going to try to help new people get some ideas
124750	129290	about where to hack certain things in the web application assessment arena.
130470	132730	Okay. So this is a URL.
132730	134510	Have any of you seen a URL before?
135710	137750	Woo! There we go. There we go.
137750	139750	All right. So here is a URL.
139830	142950	And at the end here, we have ID.
143550	146150	And so the whole structure is, like, you have your protocol,
146150	148070	and then you have your subdomain and your domain,
148070	149970	and then you have your file or resource name,
149970	154450	and then you pass that, usually a parameter and a parameter value.
154890	159570	Now, our talk and research is all about these things.
159570	161050	Parameters, right here.
161050	165070	Because they can be used in a sense and fashion
165070	166970	to give you the context we're looking for
166970	169530	and guide you into what to test.
170830	175350	Okay. So in 2016, when we did this research,
176830	180230	I mean, I won't call it stole, because I worked for them at the time,
180230	182670	but I didn't really get permission, but, you know, whatever.
183710	187730	Basically, I went over the dataset of every bug bounty on BugCrowd.
187730	189210	Anybody know who BugCrowd is?
189790	190950	Yeah. Okay. Cool.
190950	193590	So BugCrowd is a bug bounty platform.
193670	196670	And at the time, it had over 600 bounties, internal and external.
196870	198970	And what I did is I had the data engineers chop off the domain,
198970	201210	so I could not identify who the companies were.
201210	202970	But they gave me the URL data.
202970	206970	And then for every bug that existed on a URL,
208190	216790	I parsed out the parameters for that bug class and the bug URL.
216870	218850	So that was about two programs...
218850	223370	or every program had, on average, about two targets per bug bounty.
223630	227750	So targets are like www.defcon.org, forums.defcon.org,
227750	230090	media.defcon.org, etc., etc., etc.
230870	237590	So each target had about 15 average parameters per application.
237990	239850	And many were many, many more.
239850	243950	So approximately, we saw about 18,000 parameters
243950	246210	with vulnerabilities on them in this dataset.
246210	249050	Which is probably the biggest dataset, I think,
249050	252490	that's ever been parsed for vulnerability research in web before.
254370	256290	Or 18,000. Sorry.
256290	259390	So in the 18,000 parameters that we found,
259390	261330	that were anonymized,
261330	264390	we reduced them to make sure that we got the vulns
264390	266190	that we wanted to investigate, the vulnerabilities.
266190	269330	So things like cross-site scripting, SQL injection, command injection.
269330	271970	Things that you find in AppSec testing, right?
271970	274630	So we reduced it to ones we wanted to do research on.
274630	277710	And then we also reduced it to only P1s and P2s
277710	280790	or high-severity critical vulns.
281130	285250	Then we sorted by recurring instances of when that took place.
285250	291090	And then we included the 5 to 10 or 15, in some cases, we expanded to,
291090	294470	the reoccurring instances per vulnerability category.
294910	298990	And then we looked at those and then manually reviewed them
298990	302830	and were like, OK, well, I know with my 15 years of context
302830	304450	and that team of five people,
304450	307050	there's some permutations of this thing that I always want to look at,
307050	309390	so I'll add those just off the top of my head.
309390	311230	And then we also looked at a whole bunch of repos
311230	313010	that include fuzzing data.
313010	316230	Which was like PentestDB, FuzzDB, and SecLists,
316230	319390	which I run SecLists with Daniel Meisler.
319430	321610	So, we made these lists.
321610	326190	And what these lists were, were just lists of parameters in websites
326190	329130	that were vulnerable ones to a certain class of vulnerability.
329190	332330	But because we had seen certain ones so many times,
332330	334070	we started to tell our friends, like,
334070	336790	every time you see a next parameter,
336790	342130	probably you should check it for redirects and LFIs and RFIs
342130	343490	and stuff like that.
346220	349660	So, this talk, SUS Params,
349660	353180	is about releasing the tooling to do that yourself,
353180	356120	and jacking up the lists to the nth degree.
356420	358300	And analyzing that data.
358540	363140	So, SUS Params, obviously SUS and parameters.
363960	366200	We did a whole bunch of work with AI,
366200	367460	which Gunnar's going to talk about,
367460	369040	to actually do the data parsing.
369040	371580	And people say that data parsing with AI is impossible.
371580	372700	I'm here to tell you it's not.
372700	375000	We used it very effectively in this talk,
375000	376420	or in this set of tools.
376440	377800	We're going to release the lists,
377800	380000	and then we're also going to work with a friend of ours,
380000	381840	xmlhacker, who will give you a way to
381840	385180	implement this in your day-to-day life using his tool.
385180	388120	So, I'm going to pass it over to Gunnar as we go.
390060	390860	Alright.
391760	395380	So, right now, what we started with on this release
395380	397860	of the repo and the data,
397860	399980	the next target we went for was HackerOne.
399980	403580	We don't have any internal digs in HackerOne, right?
403580	405200	So, it's all the public data.
405280	407660	Anyone who knows HackerOne knows that there's a very long list
407660	410920	called the hacktivity that is publicly disclosed data.
412580	413460	Perfect.
413460	415080	So, we used AI to parse this data,
415080	416040	which I'll talk about later.
416040	418120	But this is what hacktivity looks like.
418640	422200	So, this would be kind of annoying to scrape,
422200	424140	and web scraping nowadays with dynamic websites
424140	425740	and all that stuff gets very annoying.
426200	429080	So, huge shout-out to HackerOne
429080	432420	for making this whole list populated by a GraphQL query
432420	433700	in the backend.
433700	435960	So, you can actually just script the GraphQL query,
435960	437920	it's a paginated GraphQL query,
437920	442280	and you can get all, I think, 15,000 publicly disclosed reports
442280	446520	on every public program on HackerOne.
446520	448440	Then, the next thing that's nice about it
448440	450580	is normally when you click on one of these,
450580	452980	it brings you to a HackerOne report,
452980	456240	which is now also stuff that would be very annoying to scrape
456240	457700	for text.
457700	461920	Well, again, all of the HackerOne reports come in JSON format.
461960	464160	If you take the URL of the HackerOne report
464160	466320	and tack on .json at the end,
466320	468280	it shows up in JSON format,
468280	470200	because that's how it gets pulled out of their backend.
470320	474860	So, what we did is I went and grabbed all of the report IDs
474860	476620	out of the GraphQL endpoint,
476620	479940	and then saved all of the JSON format of all those reports,
479940	481820	and we ended up with right around 15,000.
481820	483700	Again, it's in the repo if you want to see it.
483700	485960	I saved all the data from every step,
485960	489200	so if you want to reproduce it for some other data set,
489200	492560	you can follow the steps and make sure it looks very similar.
493640	496540	So, the AI parsing discussion.
496640	499000	So, we tried to do a whole bunch of different things
499520	501880	with AI to parse this data.
501980	504280	As a lot of people know who have messed with AI,
504280	507780	I'm not an AI expert myself,
507780	511360	but AI output is normally never very uniform.
511360	513540	You normally can't get AI to just give you JSON output
513540	514460	and only JSON output.
514460	516980	You normally can't get it to give you really clean output
516980	519540	that you can count on to be the exact same every single time.
519740	522610	So, just telling some of the AI,
522980	525660	hey, I'm going to let you read this text that I pulled,
525660	527480	and then you give me the parameter.
527860	529980	Sadly, it doesn't exactly work that way yet.
530340	532140	Maybe soon, but not quite yet.
532780	534600	So, oh, sorry, misclicked.
534600	539060	So, what we did instead was GPT 3.5 Turbo,
539060	541340	you can use with the OpenAI API.
541340	544060	I messed with that and messed with temperature
544060	545220	and all that kind of other stuff,
545220	547680	and it works sometimes, doesn't work all the time.
548220	550880	You pay the extra 20 bucks and use GPT 4,
550880	554560	and it's much, much better at understanding HTTP requests,
554560	559080	HTTP URLs, code, JSON, whatever it may be.
559220	564180	And we were able to use AI to basically take the mountain of text
564180	567420	that you would get from 15,000 bug bounty reports
567420	570160	and reduce it down to basically one sentence
570160	573640	that either had parameters in quotes,
573640	575240	parameters in a bulleted list,
575780	580120	or basically something that makes it basically rejectable,
580120	581540	which is going to be the next step.
581840	586260	So it takes this massive thing of text, reads it,
586260	587380	and then will tell you, like,
587380	589760	this report has parameters that are vulnerable or not,
589760	591100	this is what they are.
591220	593060	And since the reports come from HackerOne,
593060	597560	already broken into cross-site scripting, command injection,
597560	599020	SQL injection, whatever it may be,
599020	600980	you don't have to use AI to do that.
601140	602800	You just can already split it up as it goes
602800	604840	and then ingest it into AI that way.
605420	607300	And at the end of all the slides,
607300	608460	I'm going to go through the repo,
608460	610920	and I'll show you exactly what I did.
611640	614560	We used HackerOne, like Jason said.
614560	616540	You can use what we did,
616540	618340	and we're releasing the scripts,
618340	619900	of very few changes.
619900	621640	If you have, within your company,
621640	624220	your own internal data set of either incidents you've had,
624220	625660	or you run your own bug bounty program,
625660	626780	and you have your own internal reports,
626780	627840	and you want to know,
627840	629900	hey, can I make this data set just for my stuff?
629920	631580	Absolutely. That's the point of the project.
631580	634560	We're releasing our set, our new set of lists,
634560	636960	based on Jason's list, and this new data,
636960	640500	for bug bounty hunters, solopreneurs, whatever it may be.
640500	642360	But we're also releasing the scripts,
642360	644140	and we're going to explain how we did it.
644160	646380	That way, if you have something very similar
646380	647300	that you would like to generate
647300	649300	your own honed list of SUS params for,
649300	650540	you can also do it.
651480	653540	So, as Jason mentioned,
653540	656620	we have a buddy who goes by xnailhacker on Twitter,
656620	658700	who makes a burp extension called GAP.
659080	661400	GAP originally would collect,
661400	663260	as stuff goes through your proxy,
663260	665040	it will collect links,
665040	666980	and it will collect parameters, yes?
666980	667380	Yep.
667380	669680	From anything that flows through your proxy.
669680	672200	It does it automatically, and then there's a GAP tab
672200	674380	in your burp suite that you can click on
674380	675740	and read through them all and filter them all
675740	677120	and highlight and all that stuff.
677120	678900	He was nice enough to work with us
678900	683200	and implement the list that we created into GAP.
683200	685480	So the new version that's releasing today
685480	687640	with GAP will now do,
688120	690160	is not only will it collect parameters,
690160	693240	but if you check a little box in the config,
693240	694800	it will create burp issues,
694800	696640	just little burp issues for you,
696640	700720	for all your parameters that show up in the SUS params list.
701100	703920	So if you have a parameter that shows up in a URL,
703920	706820	it will automatically put it in the list for you.
706820	709040	You can go to GAP, pull down the list of burp issues,
709040	710260	and you can see all your parameters
710260	712320	that show up in SUS params.
712400	714740	So we'll show that to you in a screenshot.
714740	717440	Yep. So this is part of what it looks like.
717440	719440	Is there two? Oh, no. Okay. So there's just the one.
719440	721160	So this is kind of what it looks like.
721160	723220	So when it, you can basically pull the list
723220	725740	and it'll say like, okay, so it found an ID parameter.
725900	728900	Like people in the past have tested that for XSS,
728900	731920	IDOR, SQLI, SSTI, whatever it may be.
733180	734080	That kind of thing.
734180	735980	You can turn it off and on,
735980	738580	but this is basically what Jason was talking about,
738580	740280	where if you're maybe newer to the scene,
740280	742040	or you maybe are doing a fast, you know,
742040	744660	you're doing a fast engagement or something like that,
744660	746440	this is something to really help you
746440	748220	kind of narrow it down and maybe get to stuff
748220	749960	that might be vulnerable a little quicker.
751960	752260	Okay.
752620	754380	Did I miss anything before the demo?
754380	755580	Yeah. Cool.
756800	758500	Where's the escape key? There we go.
759020	761740	Okay. So I'll leave it up at the end,
761740	765220	but this is the repo for the project.
766600	768820	I was going to say, can we zoom in?
768820	771160	I wasn't allowed to use my Mac, so...
772020	773780	So this is a repo for the project.
774340	776140	Again, at the top, anyone who knows
776140	777900	it is TomNoNone, correct, is GF?
778660	779460	Yes.
779820	781560	So there's a tool that some people use in automation
781560	782820	just called GF.
782820	785180	So there's GF patterns for the list at the top, too,
785180	786360	if you use that tool.
787260	790900	And then as we go down...
790900	793020	So this query I saved.
794300	796500	This was the original query that I pulled.
796500	798160	This is your GraphQL query.
798180	799720	So if you want to try and pull hacktivity
799980	801220	a little bit different than I do,
801220	803840	this is the GraphQL query that you start with.
803880	805100	So that's just thrown into a text file
805100	806920	just in case, you know, so you don't have to
806920	808080	hunt it down.
808720	809980	That kind of thing.
811460	813300	After that, HackerOne and BugCrowd,
813300	815380	we did try and pull BugCrowd data publicly.
815440	818420	The CrowdStream is much smaller than hacktivity.
818420	821060	So size of dataset-wise,
821060	824300	the hunt dataset is vastly larger,
824300	826820	obviously, than what is on the CrowdStream.
827020	828680	Whereas HackerOne has much bigger...
828680	830200	Hacktivity is just much bigger.
830200	832340	So HackerOne.py, that file,
832340	834480	will basically run...
834480	835740	It does take a little bit,
835740	837280	because it's paginated GraphQL queries,
837280	839200	and there's quite a bit of JSON files.
839360	841660	But what it will do is it will save them
841660	842880	in this volns.json.
842880	845420	Again, I'm not going to try and open it,
845420	846580	because it's very big.
846740	848680	But this is the last pull that we did,
848680	849580	if you're interested.
849580	852300	Otherwise, just running that HackerOne.py
852300	856160	will make a new JSON for you,
856160	857020	and you can start over.
857020	858900	Because obviously, there's new stuff getting disclosed
858900	860860	on Hacktivity all the time.
861500	863520	If you want to take this list and not run it,
863520	865340	and regenerate the whole list,
865760	867440	it's very easy in the query
867440	869100	that's in the HackerOne.py file
869100	871140	to just add a filter
871140	873100	that says from X date to X date.
873100	874900	So you can be like, ah, just grab the last month.
874900	877300	So you don't have to run through all 18,000
877300	878900	that there will be at some point.
881860	883700	Next, this POC.py,
883700	884740	this is our proof of concept
884740	886180	for how we did AI.
886180	888180	Again, this will change
888720	891300	depending on what type of text you're putting in,
891300	893140	what type of data you're putting in, etc.
893200	894460	What we did is
894460	896240	I took the JSON file
896860	898800	and there was just one of the strings
898800	900800	was just all the text that was in the
900800	902560	description of the report. So it was pretty easy.
902560	904480	You just take the text and you put it into
904480	906660	OpenAI. So how we did that
906660	908860	is you just put in your OpenAI token at the top.
908860	911160	Again, GPT-4 for this use case
911160	912940	worked way better
912940	914480	than GPT-3.
914760	917020	Someone out there who is more of an AI
917020	919080	wizard than I am,
919080	921540	play with it. If you get it to work, let me know.
922420	923220	But GPT-4
923220	924840	does it basically out of the box.
925200	926940	This GPT conversation
926940	928860	function that you see at the top is
928860	930520	basically the out-of-the-box
931320	933160	conversation API call that they would
933160	934960	recommend you make using
934960	936520	GPT-4.
936960	938860	So the one thing I did
938860	940980	play with that you can either turn off and on
940980	942720	if you want to change the script,
942720	945020	is this is using the chat completion
945020	946900	part of the API, which
946900	949120	technically speaking will save a chat
949120	950760	if you want it to.
950760	952840	I clear the chat every time
952840	955160	because I'm doing 18,000
955160	956980	pieces of text. And if you
956980	958660	keep trying to hand OpenAI
958660	960900	an 18,000 thing
960900	962760	long conversation, it will very
962760	964440	quickly hit the token limit
964440	966160	and you can't do it anymore.
966160	968620	If you want to do something with
968620	970360	conversations and keep some back-end
970360	972240	data, you can probably play with that
972240	974360	and actually use a tokenizer.
974580	976520	I use TickToken. You can use
976620	978580	a tokenizer and probably keep the back
978580	980560	half of the conversation if you wanted to and maybe
980560	982480	enrich the data even further. But
982480	985540	what I did is I did one piece of text in a conversation,
985540	986600	had OpenAI handle
986600	988380	it, and started over with a fresh
988380	990120	conversation. Just
990120	991840	throwing that out there.
992460	994060	Then all it's doing is, again, there's going to
994060	995980	be a function for each one.
995980	998280	I split it into functions
998280	999980	that way if you want to just rip the function
999980	1002040	and do it for whatever your own thing is.
1002120	1004320	This goes through the JSON and does all the XSS,
1004320	1005740	all the SSRF, and we'll show
1005740	1008120	the categories at the end.
1008360	1010080	But this is basically just for every category
1010080	1011920	there's a function for it.
1012200	1012500	So...
1013700	1014500	What?
1015780	1016840	Okay, yeah.
1017880	1019940	These are just... and all the functions
1019940	1022040	are very similar. And then
1022040	1024020	again, this is the conversation that will grab the
1024020	1025960	conversation and print it out to
1025960	1027480	the, as you can see here, to the
1028020	1030060	volumetype-file in the test.
1030120	1032020	So this test directory,
1032020	1034060	this is what I was talking about,
1034060	1035540	and this one I can open.
1035620	1037640	This is not too big, hopefully.
1037920	1040140	So this is what I was talking about. Data parsing
1040140	1041240	in AI is
1042000	1044160	interesting, and the output is never uniform.
1044160	1045860	But, if you even look at these
1045860	1047740	top couple things, you'll notice
1047740	1050220	there's pretty obvious
1050220	1052060	patterns in the output.
1052060	1054200	First of all, 90%
1054200	1055960	of those parameters that it gave me, it says
1055960	1058020	the vulnerable parameter is, and then
1058020	1059960	the vulnerable parameter is normally in some
1059960	1061140	kind of quotation.
1062200	1064160	So I can use regex
1064160	1066220	on this dataset, which is now much
1066220	1067960	smaller than the mountains
1067960	1070280	of text that I just was putting into OpenAI.
1070760	1072060	And it now also
1072060	1073940	eliminated any report that it read
1073940	1076280	and didn't find the parameter in the report.
1076280	1078060	If it didn't find any parameter names in the report,
1078060	1080060	those are now eliminated. So not only did I eliminate
1080220	1082100	a huge amount of reports, but I
1082100	1084160	lowered the amount of text to much lower
1084160	1086100	where you can easily regex through this and it happens
1086100	1088220	instantly. And we regex
1088220	1090140	for any type of quotation,
1090140	1092240	any type of list, anything that comes after
1092400	1094100	a colon, a whole bunch of
1094100	1095820	things. That
1096440	1096880	is
1103670	1104110	in...
1104110	1105190	Oop, wrong one.
1106030	1107190	This one, sorry.
1109530	1110990	So these, again, this
1110990	1112910	file here, when you look at it,
1112910	1114970	and again, this is something you can play with too. If your data
1114970	1116950	looks a little bit different, this one you can play with
1116950	1118770	too. But this, I put little
1120990	1122950	comments in the Python so you can know what
1122950	1124790	each of the regex does. Thanks to
1124790	1126890	ChadGPT for making my regexes, by the way, to
1126890	1127950	look through its own data.
1130230	1130870	So,
1130870	1132890	like I said, there's stuff for quotes, there's stuff
1132890	1134870	for single quotes, the dashes, there's
1134870	1136990	stuff for REST API endpoints that lands
1136990	1139170	inside two backslashes,
1139170	1141130	colons, everything else. Like the list goes on and
1141130	1143730	on. Then what it does is it takes,
1143730	1145270	as it goes through the regexes,
1145270	1147070	those regexes create their own list of data
1147070	1149670	that they parsed out of the much smaller text,
1149670	1151150	you combine all those files
1151150	1153090	for each category, and you
1153090	1155170	end up in here
1157990	1158950	where now
1158950	1160990	you actually have sorted, counted
1161570	1162050	parameters
1163650	1165130	from the output.
1165530	1167230	And from here is how
1167230	1169210	we then basically turned it
1169210	1170830	into categories and lists.
1170830	1173370	So, I think...
1174210	1175230	Alright.
1175230	1176770	So, let's look at
1176770	1179110	the categories.
1183450	1188850	Okay. So,
1188850	1190870	we looked at file
1190870	1192870	inclusion. What parameters
1192870	1194690	when you do web application
1194690	1196850	testing are most likely vulnerable to
1196850	1199590	file inclusion of some sort.
1199610	1201070	So, that is something
1201070	1203130	like the parameter name lang, type,
1203130	1205210	text domain, name, token, URL,
1205210	1206910	path, etc., app, platform,
1206910	1209230	resource type, file, default language,
1209230	1210890	directory, API path name.
1210890	1212990	So, if you've ever written an application, you probably
1212990	1214930	use one of these keywords to reference
1214930	1216470	how you handle a file
1216470	1218950	or anything, right? And so
1218950	1220910	in the English language,
1220910	1222910	in my 15
1222910	1224790	years of testing web applications,
1224790	1226830	I don't see any on here that I haven't
1226830	1228750	found a file inclusion button on. I've found
1228750	1231010	at least one on all of these parameters.
1231550	1232690	We also did
1233230	1235330	insecure direct object reference.
1235590	1236690	So, of all of those
1236690	1238510	two datasets, which at this point
1238510	1240710	encompasses over 32,000
1240710	1242730	vulnerable parameters,
1242730	1245050	out of all of those, out of all of the IDORs
1245050	1246610	that existed there, these are the most
1246610	1249250	statistically likely ones that have IDOR.
1249330	1250870	The ID parameter,
1250870	1253790	the user ID, username, email,
1253790	1255990	extended data, username,
1255990	1257230	data ID, etc.
1257410	1260110	We also did redirect vulnerabilities.
1260710	1261570	So, redirect,
1261570	1263690	very common, has a high score in
1263690	1265670	URL. The
1265670	1268030	parameter next, redirect,
1268030	1269810	return, host,
1269810	1271550	you can see that redirect and return appear
1271550	1273670	multiple times under permutations.
1274050	1275510	So, it makes sense, right?
1275510	1277610	A redirect vulnerability lies
1277610	1279690	in these parameters. Now, one thing is
1279690	1281830	that we looked at parameter data, but if your application
1281830	1283630	uses RESTful URLs, you can
1283630	1285410	just substitute
1285410	1287990	these keyword terms for
1287990	1289950	parameters instead. You could just look
1289950	1291430	for them in the path instead of
1291430	1292990	parameters.
1294690	1295810	So, we also did SQL
1295810	1297910	injection. Obviously,
1297910	1299730	the biggest offender in SQL injection, because it
1299730	1302470	fits the database nomenclature as ID,
1302470	1304050	then email, refer, limit,
1304050	1306370	search, token, username, password.
1306830	1307890	Pro bounty tip, always
1307890	1309730	try SQL injection in the refer,
1309730	1311590	keep a blind SQL injection payload
1311590	1313290	in your refer at all times.
1313630	1315930	Hit that one many, many, many times.
1317110	1317770	Server-side request
1317770	1319770	forgery, we did the same
1319770	1321810	thing here. Same thing,
1321810	1323770	URL, source,
1323770	1325750	start, host, those make a lot of sense
1325750	1327610	for server-side request forgery.
1328290	1330090	Server-side template injection,
1330090	1331770	we didn't get great data for this, so we
1331770	1333650	just... So, the GF patterns have
1333650	1335630	more together. Okay, so hold on,
1335630	1337530	we do have some stuff for server-side template
1337530	1339710	injection. And then cross-site scripting.
1340590	1341730	So, yeah.
1341730	1343390	So these are the places
1343390	1345650	where you're most likely to find vulnerable parameters.
1346470	1347670	And the GF,
1347670	1349750	so when you go up to the GF patterns,
1349750	1351390	the GF patterns, so that was the
1351390	1353370	output for only HackerOne, right?
1353370	1355730	So HackerOne actually didn't have,
1355730	1357470	at least that we found, using the parsing
1357470	1359270	methods we found, didn't have anything for
1359270	1361430	SSTI. Maybe it's not as common,
1361430	1363510	maybe, you know, there's a possibility we missed
1363510	1365330	it, either way. But,
1365330	1367270	there's still old data from
1367270	1369310	Hunt, that's still, like, it's old,
1369310	1371290	but it's still very useful, and it's still the
1371290	1373390	same parameters that are being used. So the GF patterns
1373390	1375330	that we made are the full list
1375330	1377210	of both, right? That's where they both
1377210	1379510	come together, and same thing, the SUS parameters,
1379510	1380930	if you use the SUS parameters list
1381770	1383330	on XNL Hacker's GAP
1383330	1385350	extension, that will be both data sets
1385350	1387350	put together, right? So the
1387350	1389310	GF patterns are basically the end
1389310	1391290	product of Jason's old research, with
1391290	1393330	the five people that were at the bottom,
1393330	1396330	and our research this time, put together,
1396330	1397370	and basically
1397370	1399190	the goal of this is, A,
1399190	1401290	to close the gap in experience,
1401290	1403670	but again, I really want to reiterate,
1403670	1405630	you can do this with anything.
1405770	1407470	There's CVE data out
1407470	1409430	there, there's XSS data out there,
1409430	1411590	we will probably do that at some point,
1411590	1413270	as we continue to play with the repo
1413270	1415510	and bring in the database.
1415630	1417130	Again, if you have internal data
1417130	1419210	that's, you know, pertaining
1419210	1421250	only to your company,
1421250	1423410	make your own lists. The scripts
1423410	1424830	are supposed to be out there, and
1424830	1426470	the repo is public.
1427490	1429310	Specifically so that this can
1429310	1431310	maybe generate some other folks out
1431310	1433290	there, to make maybe some different kind
1433290	1435270	of lists for stuff that you would also want to see.
1435570	1437290	This is kind of an opportunity,
1437290	1439370	hopefully, to again close the experience gap
1439370	1441210	in more fields than
1441210	1443590	just vulnerable parameters.
1443850	1445270	So we had planned to do
1445270	1447290	CVE stuff, and we put it
1447290	1449210	in the abstract for the talk. The problem
1449210	1450930	we ran into is that
1450930	1453030	many CVEs are like
1453030	1455190	what I like to call ghost CVEs.
1455190	1456450	They're CVEs that people
1457090	1459270	say the bug class, and they put it out on CVE
1459270	1461070	details or some other place, but they don't
1461070	1462870	actually give you any exploitation data, right?
1462870	1465170	They just said X product, how to cross-site scripting,
1465170	1467170	whatever. And then the ones that do
1467170	1469130	have proof of concepts, which include URL
1469130	1471030	data, which we need to do this,
1471030	1473030	are often on blogs. And so we have to do
1473030	1475210	two steps of crawling, and
1475210	1477170	we're close to figuring out all
1477170	1479090	that. And so when
1479090	1481170	we get that done, we'll probably try to tackle
1481170	1483230	this data set. And we figured the last
1483230	1485030	five years would be relevant. That's what we had planned
1485030	1487210	for the talk. So we got stymied
1487370	1489110	a little bit on this data set, but we really want to
1489110	1490710	include it in the list as well.
1491430	1492950	The other one we wanted to do
1492950	1495170	was XSS.com,
1496130	1497110	which if you've ever seen
1497110	1498770	that site, it's purely
1498770	1500990	XSS proof of concepts.
1501450	1502310	Oh my god.
1507570	1508290	So this is
1508290	1510610	XSS.com. It's a
1510610	1512550	hacker website where
1513310	1514490	gray hat hackers
1515470	1517110	post a bunch of
1517110	1518790	XSS vulnerabilities,
1518790	1520890	usually when they don't get paid through a bug bounty.
1520890	1523190	So they have a total of
1523190	1525010	45,000 total XSS
1525010	1526830	proof of concepts on XSS.com.
1526830	1529370	So that one would specifically
1529370	1532810	enrich the XSS data.
1532810	1533850	Some other ones
1533850	1536330	that we might look at in the future
1534290	1536290	is actually looking at
1536330	1538210	instead of looking at
1538210	1540410	the bugs that come through HackerOne
1540410	1542070	or BugCrowd, we could look at
1542510	1544330	researcher lists. We could figure
1544330	1546310	out a way to scrape their blogs and look at their
1546310	1548470	personal research and see where they find cross-site
1548470	1550310	scripting vulnerabilities, which was actually
1550310	1552490	the first iteration of anything like this
1552490	1554090	when stuff like this happened in
1554090	1556470	2014 or 2012 or something like that.
1556470	1558310	So the possibilities are endless for us
1558310	1559870	to keep enriching the lists.
1560510	1562410	We think that this project will help a lot
1562410	1563270	of people.
1563270	1565530	And I think
1566790	1567270	that's
1567270	1568550	all we have.
1568610	1571050	So last thing, I will say for people curious
1571050	1572990	about cost,
1572990	1574950	because the few people I've talked to about the talk
1574950	1577670	before we gave it, that was the first question that came up.
1578330	1579290	I parsed
1579290	1581390	all of the HackerOne reports
1581390	1582830	on a personal
1582830	1584950	OpenAI token, and it was right
1584950	1586410	around $30.
1587330	1589610	So it's not, you know,
1589610	1591070	not too bad.
1592910	1593990	Any questions?
1595010	1596330	Kind of talk fast.
1597710	1598510	No? Cool.
1598510	1599170	Thank you very much.
1599170	1600410	Oh, wait, we got one. Sorry.
1600790	1602310	Sorry, I killed you guys.
1606270	1606990	Yeah.
1614570	1615190	Oh, yeah.
1615910	1616870	Oh, yeah.
1617010	1618370	With every model.
1618370	1620870	It will do it sometimes.
1622290	1624030	Let me repeat the question.
1624030	1626050	So the question was, did we try
1626050	1628290	prompt engineering to change
1628290	1630350	the prompt to pull out the data
1630350	1631890	in the format that we wanted?
1631950	1634270	If we said, give us the parameters
1634270	1635750	this one way, did we try more
1636270	1637730	specification in what we wanted?
1637730	1640270	Did we change it to say different words?
1640370	1641830	And the answer is yes.
1642070	1644130	So we tried a lot of that with a lot of the different
1644130	1645010	models.
1645010	1646770	Even, because obviously
1646770	1648770	it will definitely struggle to
1648770	1650930	give you a JSON output or something like that.
1650930	1652810	But even just trying to beg it to be like
1652810	1654810	please just always put it in quotes.
1654810	1656730	Like no matter what the extra stuff is,
1656730	1658390	just please use double quotes.
1658530	1659930	It'll do it.
1659930	1662250	It looks almost identical.
1662490	1664590	It's immensely frustrating.
1665750	1667250	Was there any other questions?
1667450	1668290	Yes, sir.
1682080	1683540	Boom.
1684080	1685600	Yeah.
1693480	1695920	You could try.
1695920	1697520	I feel so bad for your
1697520	1699080	open AI token.
1699820	1701440	Like I guess
1701440	1703300	I never just like let it fully
1703300	1705280	exhaust itself into infinity.
1705280	1707400	But I tried doing retries.
1707400	1709500	I even tried going to the quoted
1709500	1711500	version, and then taking the quoted
1711500	1713300	version, like slowly going
1713300	1715480	downhill, and it still is...
1716280	1717500	Yeah, it has a really hard
1717500	1719420	time creating structured output like
1719420	1721080	JSON. It just doesn't work.
1721340	1723500	I don't know why, but it hallucinates
1723500	1726180	formats, it adds extra characters.
1726560	1727380	It's just because
1727380	1728940	it's trained on next characters, right?
1728940	1731360	It just doesn't create structured JSON
1731360	1732120	very well.
1732920	1735360	Not saying it can't be improved. Again, I'm not
1735360	1737320	saying I'm the expert. This is just like what we've
1737320	1739360	tried. Again, that is probably
1739360	1741380	if you play with this project, that is
1741380	1742640	probably one of the areas to
1743400	1745640	play with, right? Yeah, I mean we wanted that to work.
1745640	1747180	We really did want that to work.
1751540	1752760	Yep, yep. So I
1752760	1754960	actually counted... so with the regex
1754960	1756120	I actually counted
1756820	1758580	how many lines I was actually
1758580	1760640	catching with the regex versus how many I was just like
1760640	1762860	dropping. And the regex
1762860	1764600	was able to catch like 98%.
1764600	1766920	Right? So I mean there's like 2%
1766920	1768560	there that probably still had
1768560	1770020	malformed data or whatever, but like
1770500	1772600	that was as close as I could get. Without
1772600	1774860	literally making like a
1774860	1776720	whole list of like 80 regexes for
1776720	1778640	every single... at that point you're just manually going through
1778640	1780740	the file anyway. And I... why
1780740	1783540	even script it, right? So, yeah.
1783540	1784700	So this is the repo and you guys
1784700	1786720	can use it. Any other questions?
1786720	1787120	Yes.
1787120	1787920	...
1796640	1799220	That's actually a really great question.
1799220	1800940	So the question was, could you
1802000	1803320	subcategorize these into
1804040	1805200	parameters that were most
1805200	1807120	likely vulnerable on an industry vertical?
1807380	1808980	Like finance or banking
1808980	1811060	or automotive or something like that.
1811400	1813120	You could with the HackerOne data
1813120	1815200	I believe because they... I think they reference
1815200	1817280	the vertical, don't they? So you can
1817280	1819180	with the HackerOne data if you're going to go
1819180	1821700	deep into it because they always reference the target.
1821920	1823080	The publicly disclosed reports
1823080	1825200	always say a target. So if you're willing to
1825200	1827340	make a master list of like for instance
1827340	1829280	the HackerOne targets and say okay this target
1829280	1831040	is financial, this target is like
1831040	1833080	XYZ or gaming or whatever it may be.
1833220	1835260	You could probably do that with AI pretty easily.
1835500	1837100	Yeah. So it is possible. Yep.
1838440	1839840	Any other questions?
1840940	1841360	Okay.
1841360	1842480	Now you guys can clap for Gunnar.
1842480	1843560	Thanks guys.
