start	end	text
0	4580	Okay, everyone, let's begin with our next talk. For our next talk, I've got Richard Gold,
4580	8240	and he's going to be talking about asset discovery, making sense of the ocean of
8240	13980	Ozint. Richard is the head of security engineering at Digital Shadows. If you have been on his
13980	18600	Twitter at all today, especially in the last six hours, you will have noticed that he has
18600	23340	just released a new tool. So I won't spoil everything by revealing what he has been
23340	27360	talking about, because I guarantee this is exactly what he's going to be talking about today.
27360	29780	So without any further information, there you go, Richard.
29780	34700	Cheers. Thanks a lot. Hey, everybody. Thanks for coming out. I'm Richard Gold, as mentioned,
34700	39500	director of security engineering at Digital Shadows. This is my first time talking at
39500	44200	Recon Village or Defcon, and indeed my first Defcon. So I'm glad the shots are here to sort
44200	49580	of help me through this experience. But I'm here to talk to you about asset discovery.
49620	55320	Now, as part of the Recon process, you need to discover assets. And that's something that we've
55320	59760	spent a lot of time thinking about the last few years. And we've done a bit of work,
59760	64140	done a bit of tooling, done some stuff. And I'm going to share that with you today.
65200	69760	So I've got my little friend here, the orca, who has been released into the wild
69760	75900	this morning. And we'll be talking all about him and what he gets up to today.
76800	81100	So when you're doing your OSINT reconnaissance, you've got a target, you're going to do some
81100	87500	investigation, you're going to get started. It's tricky to define the scope accurately.
88420	95020	So for any particular organization you want to look at, if it's of a reasonable size,
95020	100840	especially these sort of large, sprawling, acquisition-driven organizations, companies
100840	106860	who've bought a whole bunch of companies over time, they've maybe integrated them, maybe not,
106860	110640	maybe there's infrastructure left over, maybe there isn't. They're in different countries,
110640	116240	different jurisdictions. You have this huge, sprawling mess. And so figuring out what that
116240	122260	scope is can be really challenging. And another issue on top of that is cloud, of course.
122260	129100	So, you know, it's a thing. I think we've all got to that point by this stage. And we struggle to
129100	136500	find then what belongs to who. For example, if you have an IP address and you're thinking,
136500	141640	this is an IP address, it's likely associated with my target, and then you find out that the
141640	145880	day before they released the IP, it's gone back into the pool, somebody's pulled it out, spun up
145880	150900	an NFS server, and now you're looking at some crazy vulnerabilities you didn't even imagine
150900	156200	would happen, and it's just a false positive, and you get crushed and go home and cry.
158040	162760	So that kind of thing really messes up the scoping aspect of doing the recon.
162760	166840	And then on top of that, it's, well, what sources do you want to look at?
166900	170580	So do you want to look at network ownership information? Do you want to look at social
170580	176180	media to find employees? Do you want to look at documents that have been leaked onto the web? Do
176180	179780	you want to look at the actual websites itself? Maybe a bit of appsec, maybe you're looking for
179780	185640	some misconfigurations, that kind of a thing. So, and there are lots of great tools, as the
185640	189680	speaker has just now mentioned, which already exist to help you with all this kind of stuff.
189680	197160	But typically, in our experience, these tools focus on the breadth of collection. So they're
197160	201620	sort of the big advantage that they bring, and it is an advantage if you're doing that kind of work,
201620	209080	is to look at a huge range of different sources, social media, blacklists, all this kind of stuff.
209080	214660	But it can quickly become overwhelming, especially if you're looking at a big size target.
214660	220800	So we struggled with this exact problem ourselves a bunch of times, and after sort of solving the
220800	224520	problem, attempting to solve the problem a whole bunch of times in a kind of manual way,
224520	228800	we sort of, the realization slowly dawned on us that, you know, computers are quite good at
228800	233960	automation, and maybe, you know, writing a program to do this kind of stuff for you might not be such
234060	242300	a bad idea. So after much sort of banging our heads on keyboards, we created the Orca, and this
242300	249900	is our targeted OSINT framework for discovering networks and services related to our targets.
249960	255760	It's now on GitHub as of this morning, so please do feel free to git clone it, have a play, see if
255760	264080	you like it, give us some feedback, you know, take it for a spin. And it's specifically,
264960	268280	the goals of it are really around making sure that the scope is narrow,
268280	271260	spending quite a bit of time on making sure that you can establish the scope
272320	278060	accurately, and then also spending quite a bit of time on asset traceability. Now we had this
278060	283620	problem many times ourselves, that we, you know, do a whole bunch of recon, we gather all of this
283620	288840	information, and we'd find something that was kind of interesting. If you find a vuln, you know,
288840	292440	some old misconfigured server that had been abandoned, you know, some Linux box that had been
292440	297360	spun up three years ago and abandoned, and you're like, oh yeah, yeah, yeah, great. And you find
297360	301940	this thing, and you spend a bit of time on it, and then you're like, who does this belong to
301940	307520	again? Where does this come from again? How did we find this? And, you know, then you'd have to
307520	314100	basically redo your whole recon process all over again, just to find that piece of information to
314100	319640	let you know how to actually, you know, make that chain from where you started from to this, like,
319640	324560	interesting finding that you had. So again, after doing that a whole bunch of times and then
324560	329960	realizing that maybe we should really find a way to automate this, we've baked asset traceability
329960	337340	into the Orca. We'll go through all of this during this presentation. But then this allows you to
337340	342180	know with, you know, pretty high degree of certainty when you find something, the path that
342180	349860	you took to get there. So, in general, in the overview here, so what does the Orca actually do?
349860	357960	It is, does a whole bunch of stuff around domain discovery, so using both Google and Shodan. So
357960	364540	we'll talk about exactly what that is in a second. It does subdomain enumeration, as the
364540	368720	speaker just now mentioned, very useful. So you take in, you know, google.com and it gives you
368720	372880	the subdomains underneath that. And then once you've got these subdomains, you can enumerate
372880	378140	them with Shodan to figure out what ports are open, what services are listening, if there's
378140	383020	what type or the version type of software is running on it, and then are there any
383020	387320	vulnerabilities associated with it. And if there are any vulnerabilities associated, are there
387320	391580	any publicly available exploits available for that? So we can gather all of this information for
391580	398240	you and, you know, give you an Excel spreadsheet because the whole world runs on Excel, whether
398240	403400	you like it or not. But of course you can always dig into the database yourself and, you know, you
403400	408200	can have a whole bunch of command line output stuff as well. But we found that, you know, we
408200	414960	spent a lot of time, again, taking the CSV or the SQL output from the database and then trying to
414960	420120	make it into something that we could give to somebody else to do the follow-up work. And, you
420120	426280	know, so again, after cursing at Excel for many months, we decided to bite the bullet and write
426280	430500	an Excel output. So you can get an Excel spreadsheet and you can give it to somebody to run
430500	439860	with. So the end goal is to find vulnerable or misconfigured systems. So for us, we found it to
439860	447040	be extremely helpful to be very, very specific about that. So we often had trouble before, as I
447040	451940	mentioned, with this kind of taking a very, very broad view because you end up with this situation
451940	455800	that you get all this stuff and you don't really know why you've got it. And it could be
455800	461340	interesting, could it be not. And then you have a hard time justifying the impact of your
461340	464920	findings to people. So you say, I found this kind of thing, it's kind of cool. And they're like,
464920	471460	well, yeah, I guess, but why is it interesting? And being able to express it very clearly in that
471460	475260	you have found something which is vulnerable, certainly if something is vulnerable to a public
475260	480160	exploit or something which is misconfigured, maybe it's revealing information that you wouldn't
480160	486500	typically want to reveal to the public. Having this kind of very, very specific end goal, we
486500	490800	found that really focused the work that we did and gave us much higher quality results from our
490800	499180	recon. So it also helps us to discard unnecessary sources. So if a data source is not helping us
499180	505480	find vulnerable or misconfigured systems, we don't use it. And it also ensures that the
505480	509700	collection is relevant. So when you are collecting something, you have a high probability that
509700	516820	you're getting something useful out of it. Also for recon, I'm sure that everybody here follows
516820	524760	the same rules, but we found this sort of way of expressing it to be pretty concise. So no
524760	531460	exploitation, no auth bypass, and no DDoS. So don't throw an exploit at something, obviously
531460	535360	you're interested to know if something is vulnerable, but then you have to kind of keep
535360	541500	yourself in check in that point, obviously. You know, breaking authentication, big no-no, and of
541500	549880	course DDoSing people is right out. So keeping those things in mind also helped us with how we
549880	554520	should build the tool, decided what things we should put in, what things we should leave out.
554760	557720	I mean, I don't know if you've ever played with some of the tools which are out there which say,
557720	565020	oh, we're a recon tool, and then you see it's like launching SQL map in the background and like,
565020	571400	oh my god, control C. So trying to avoid that. So the orca won't send you to prison, which I think
571400	577460	is a good selling point for any tool. So how do you find the assets which are relevant to the
577460	585840	target? So again, when you're doing this kind of enumeration, you want to be doing enumeration
585840	590140	which is going to keep you in scope. So we're going to talk about the different ones that we
590140	597580	do, but just to give you that kind of hint, we are ensuring that the enumeration that we do
597580	601580	keeps you in scope and ensuring that that is then traced, is then tracked in the database so that
601580	606180	you can skip back to it afterwards. So you have a clear lineage between where you started from
606180	611400	and then, you know, where you ended up. So we'll talk about all the different enumeration techniques
611400	616320	in just a second. So in a nutshell, this is what the orca looks like. It has a very friendly user
616320	620660	interface, assuming that you love the command line as much as I do. Who doesn't? I mean, come
620660	627840	on. So this is what it looks like. It has help, has contextual help, and it gives you, you know,
627840	634340	it's pretty self-explanatory and that kind of thing. There is also, due to complaints from
634340	638300	everybody else in the team, there's actually an example walkthrough on the wiki page which
638300	642980	actually takes you step by step through all the different features that the orca has and can give
642980	651060	you a pretty good place to start for what it's like to use the tool in anger. So where do you
651060	657180	start? So there's usually three pieces of information. One of three pieces of information
657180	662100	that we start with. So it's either the organization's name, it's either the domain name
662100	669460	associated with the organization, or a CIDR prefix. And that's pretty much the main places
669460	674660	where you want to start. And then we have all the enumeration functionality following on from that
674660	680120	to help you derive the assets you're interested in from these original pieces of information.
680260	686980	But usually when we were doing our OSINT recon engagements, we'd be given just the organization
686980	692160	name and somebody would rock up and go, hey, we're interested in this, this organization,
692160	696680	want to know more? And they say, well, okay. And so, you know, tell us all that you know about
696680	702320	this organization. And they go, yeah, we just did. And you go, okay, well. So you've got to start
702320	706160	somewhere. So at least, you know, if you've got a name, it gives you something to get going with.
706920	711040	Domain name, if you're lucky, so that you make sure that you're, again, going after the right
711040	717940	target. There's, you know, amazing how much overlap there is on the internet between different names
717940	723980	and especially acronyms, which, you know, you'd think, which just end up being shared everywhere
723980	728040	and everyone uses them all over the place. And sighted prefixes, again, if you're really lucky
729020	733040	to give you an idea about the network ranges, which were in use by a particular organization.
733500	739080	So the initial enumeration step looks, you can do one of these three from those three types of
739080	743740	information. So if you've got, for example, using PayPal, because they have a really nice bug bounty
743740	753880	scope, you'll see a few of their domains and host names in this one. And also Nmap, so they have a
753880	757580	really nice set of vulnerable machines on the internet that you can use for recon, which is
757580	764680	pretty nice, good for testing. So if you're starting, let me run over here. So you've got your
764680	770560	name, so you've been told, you know, you're gonna have to PayPal, okay? So you can use PayPal, you
770560	775480	do, you can use a search engine, so Google or Shodan, you can get PayPal.com at the end of it,
775480	782020	if you're, if everything works out properly. You can, if you're just given the domain name, you
782020	787540	can do subdomain enumeration and get something like this out the end of it. And if you've been
787540	793080	given a CIDR prefix, you can then enumerate all the different, oh, that was close. Sorry about
793080	802880	that. You can enumerate all of the IP addresses inside of that CIDR prefix. So in terms of asset
802880	808020	traceability, this is where it comes in. You actually, so when you're putting in your first
808020	813660	piece of asset data into the database, it gets tagged. So PayPal.com gets a, it's a number there
813660	819660	and that gets an ID and that ID flows through when you do the next stage. So even when you've
819660	826620	got to the next stage, which is you've found this subdomain or host name, that will get its own
826620	834840	ID as well over here. And then that will flow through for later enumeration that you do for
834840	840720	other things, network services, bounds, exploits, DNS, that kind of stuff. And, you know, but the
841980	848100	the original piece of asset data identifier follows along then with this piece of subdomain
848100	852840	enumeration. So that by the time you get to your end state, remember we're looking for vulnerable
853520	860960	misconfigured servers, you can find out which piece of asset data it came from. So in some cases
860960	867620	we'd be given, you know, in terms of domains, we'd be given a list of 2,000 domains, you know, 3,000
867620	872880	domains, and you're asked to, like, give us, you know, give us something, give us some cyber
872880	879760	threat intel on this stuff. You're like, oh my god. And again, being able to make that asset
879760	886020	traceability, having it baked in into the database means that it's really, really good for stopping
886020	891300	you from making horrible mistakes and, you know, inadvertently reporting false positives back to
891300	896260	your customer or to your own organization. So being able to really keep that, like, under
896260	907150	control, I found that to be really helpful. So when we do a search like this, as I mentioned,
907150	911610	like the, especially the organizational name, you put it into a search engine, you get back some
911610	917630	kind of information, some set of domains. How do you know that the domain that you've discovered
918270	927190	is connected to your target? And the answer is you don't. You just can't. There's no way
927190	935170	automatically with a decent false positive rate you can be really sure that the name of your
935170	941450	organization, of your target organization, belongs to a certain domain that you get from a search
941450	948570	engine. Doesn't matter which search engine, Shodan, Google, whatever, Bing, but you just won't
948570	956430	know. So you have to do additional recon yourself as an operator to figure out if that is actually
956430	960690	relevant or not. So when you do that kind of thing with the Orca, you can see, like, an example of
960690	967270	the syntax here that you can use, you know, if you're familiar with Python click tool, that kind
967270	973010	of text user interface, it's going to prompt you when you do that initial recon. And it's going
973010	978150	to be the same also not only for searching for organization names but also for CIDR prefixes as
978150	984470	well. We'll get on to that a little bit later. But you have to have that prompting. You have to
984470	989870	have that additional manual confirmation step. It's just the ownership information, like, you
989870	996270	know, domain who is just simply isn't accurate enough. And, you know, especially if you're doing
996270	1001690	something where it's, like, a related name, and there will probably be somebody called, like,
1001690	1007130	PayPal burger company here in Las Vegas, which, you know, just because. There's always something.
1007130	1011690	So you've got to watch out for that. So it's a bit tedious, but it's the only way you can get
1011690	1018050	quality data. And, again, it will save you a lot of time later on when you're trying to disambiguate
1018050	1022570	at the end of your process where all the hell this stuff came from if you did all of that work
1022570	1027690	up front. If you front load it and you spend your time at the beginning, you know, taking care of
1027690	1033530	this much later down the line, you'll be really grateful that you did that. So, yeah, just a note
1033530	1039390	on terminology. Subdomain enumeration versus host name enumeration. Generally used interchangeably.
1039390	1045450	I also use them interchangeably. Not quite the same thing. Host name would be something like a
1045450	1051870	fully qualified domain name, FQDN, and that would be like the full name where no additional
1052590	1057670	resolution is needed in order for you to use it. Whereas a subdomain will be, like in this case,
1057670	1066090	beta sandbox, is a subdomain for paypal.com. Just clarify that in case anybody was wondering. So
1066650	1073550	subdomain enumeration, pretty standard bit of recon. A couple of different data sets we use for
1073550	1081550	that. Rapid 7 for DNS. Great data set. Talk about that in just a sec. Transparency, pretty
1081550	1086510	good. And combining the two together. Because they're slightly complementary and they have
1086510	1092570	slightly different time scales associated with them as well. Talk about that as well. And we're
1092570	1097990	using DNS dumpster for this public tool release. So that if you want to enumerate the rapid 7
1097990	1103610	data, they provide you with an API that you can use. Which is very, very cool. The forward DNS
1103610	1107350	data set comes from a whole bunch of different sources as well. So you can see the sort of
1107350	1112730	things that they come after. They get, you know, PTR records from DNS. They do, um, sweeps of
1112730	1117370	the internet, like with mass scan, Z map, to get, you know, SSL information. So they pull the
1117370	1124550	SAN, the CN from that. Uh, if they see HTTP responses, you know, zone files, all that kind of
1124550	1128890	stuff. So check out their wiki page, which breaks it down pretty nicely. It's good to know where
1128890	1133370	the data is coming from as well. And you'll see as well, when you do this kind of subdomain
1133370	1138830	enumeration using the forward DNS data set, sort of certain patterns emerging. And one of the
1138830	1147970	patterns you'll see is like quite, quite strange, long, complex, uh, FQDNs, uh, host names. And
1147970	1152670	the reason why that is, is because they're pulling it from the, the SSL certificates where they
1152670	1158370	will have typically the, the full sort of name that they're using internally for a system, which
1158370	1162190	is, uh, quite, quite interesting. And that usually gives you some nice, nice breadcrumbs. So
1162190	1169030	that's certainly something worth looking at. So certificate transparency logs. Um, most
1169030	1174490	certificate authorities these days will be writing to the, uh, certificate transparency logs,
1174490	1180390	uh, when they issue a certificate. Now that, if you're not already aware, is basically a global
1180390	1186790	repository where people record what's being issued. Now it's a way to combat things like
1186790	1191510	fraudulent issuing of certificates. But what it turns out is for recon, it's super, super
1191510	1197490	useful because you basically have a real-time stream of certificates being issued. Now SSH,
1197490	1202810	they have a really nice, uh, search interface for that, which is very helpful. The, um, the
1202810	1209230	log is updated in real time as well. So if you're lucky, you can actually catch a server being
1209230	1214970	provisioned, like an SSL certificate being issued for a server before the service is fully
1214970	1219430	provisioned. So it might be the case that this happens before, like, certain security measures
1219430	1225210	are put into place, before a debug is been disabled, before, you know, there's changes fully
1225210	1229970	made from staging to production. So it's a really nice source to look out for. So that's why
1229970	1235630	the, uh, RapidSev and the ForwardDNS and the certificate transparency are quite
1235630	1240930	complementary. So highly recommend using both of those together to get the most bang for your
1240930	1247590	buck from your enumeration. Uh, as well as that kind of using sort of third-party data set
1247590	1253790	enumeration, the ORCIRC will also do enumeration of DNS. So you can give it a domain, it'll
1253790	1259330	enumerate the DNS records associated with it, A, quad A, MX, TXT, all that kind of good stuff.
1259330	1264330	But you can also give it for every single host name. And that's just like a flag you can set.
1264810	1269230	So that's very, very straightforward. It'll just crunch through all of the FQDNs that you've
1269230	1274650	discovered and check all the DNS records for every single host name you've discovered. And this
1274650	1281130	is a real goldmine. This is really, really useful. So you get all kinds of interesting things.
1281130	1287430	You see, for example, that which, you know, mail providers, cloud mail providers, organizations
1287430	1291410	are using. That's usually really interesting, especially if you're like later on going to be
1291410	1295790	doing a phishing campaign against them. Nice to know what they're using. You can fingerprint
1295790	1301650	their security solutions remotely just with DNS very, very easily, which is brilliant. TXT
1301650	1306490	records will tell you also what third parties that they're using. Because they will have things
1306490	1310970	like the SPF record, where they will say, oh, yeah, you know, Salesforce, they can send email
1310970	1315490	on our behalf, or, you know, all these different other services that people like to use. And
1315490	1321290	that's really helpful, again, for any follow-up work you will want to do from that. And you can
1321290	1327190	also, another one which I really like is the CNAME, the canonical name. So what you can see is
1327190	1334210	that they'll have something which will be like SSO.let's say PayPal, SSO.PayPal.com, and that
1334210	1340790	will be the A record. But the CNAME will be something like, blah, blah, blah, PayPal-Octa.com.
1341030	1345670	So you'll be able to see which is the actual service they're using for something, whether
1345670	1353410	you're fingerprinting, you know, login, like SSO solutions, or CDNs, or anti-malware, spam
1353410	1357670	filtering, all that kind of stuff. Being able to see what's actually being used with actual
1357670	1362430	third parties that are being used just from the DNS recon is very, very useful. So that gives
1362430	1368470	you a lot of very good information already about your target just from the DNS resolutions. So
1368470	1372190	the Orca will handle all of that for you, put it all into the database, so you can have a look
1372190	1376090	through it later. If you don't want to use the Orca, this is a kind of a busy slide, but
1377110	1382970	Amass, I think Jesse mentioned in the previous chat, great, great, great, great tool,
1382970	1386750	OWASP Amass, highly recommend it if you're not already using it. You know, the bug bounty
1386750	1390830	people are clearly all over it. You can see all the different sources that it uses,
1390830	1396910	absolutely brilliant. You can then get it to give you out just like text output, and you can
1396910	1401830	take that text output and import it into the Orca. So if you want to use Amass first,
1401830	1405830	because you're more used to it, you can then use that and import it into the Orca. It has an
1405830	1411190	import from file command, and you're off to the races. So yeah, just wanted to give you,
1411190	1414670	don't have to read all of that, just to give you an impression about all the kind of cool data
1414670	1425010	sources that Amass uses, so big shout out to that. So CIDR ranges, the Orca does not support
1425010	1431210	the discovery of CIDR ranges currently, so you will have to discover them on your own.
1431210	1435010	But the network ownership information that you can get from the various providers, and you can
1435010	1440690	also get it, it's all for free, the Whois databases you can get for free if you show that
1440690	1445550	you're a security researcher with a valid use case, which is pretty good. But you can get
1445550	1450890	like some really nice information. So you can see, for example, in this case with eBay or
1450890	1455550	PayPal or something like this, you can see the network range, and then you'll see the ownership
1455550	1465530	information so that you can correlate that. Again, where it really falls down is cloud
1465530	1470830	providers. So this is something which is like a constant headache, really, because, you know,
1470830	1474650	especially these days, many companies that don't even bother owning their own infrastructure,
1474650	1479610	so back in the day, these sort of more traditional companies still do it, but they'd have,
1479610	1483930	well, we bought this range of IP addresses, and it's registered to us, and that's ours, and
1484630	1489810	you'll see, you know, a lot of companies will use, or smaller companies will tend to use just
1489810	1494730	like straight ISP allocations like AT&T or Sprint or something like that. So the ownership
1494730	1499950	information, if you would take one of their host names or domain names and resolve it, you'll
1499950	1504690	get just a generic ISP as the ownership information, which doesn't really help you
1504690	1508990	because you don't know which other stuff has been assigned, you don't know if it's shared,
1508990	1514370	and so it's, you know, it's a bit of a dead end, a bit of a rabbit hole, really. And then
1514870	1520250	following on from that, a lot of companies nowadays will be using the cloud, and, you know,
1520250	1525530	you've got your Azure's, Amazon AWS CloudFlag, Google Compute, and you end up with all kinds
1525530	1532030	of stuff. And again, as I mentioned already, people will, you know, spin up something, use
1532030	1536670	it, give it back to the pool, and then that IP address where you found that sweet, sweet
1536670	1541010	phone will just disappear into the ether and you end up looking at somebody else's, you
1541010	1545070	know, like it's a cat walking company or something now rather than that financial services
1545070	1553530	company you were looking at. And, you know, it just, it's just a mess. So we recommend, at
1553530	1558770	least, just not looking at the cloud stuff unless you're really, really sure. You
1558770	1563970	typically have to have some other external method of corroboration to make sure that, you
1563970	1567670	know, you really got the right piece of information. You know, you're looking at the right
1567670	1573430	IPs and that they're being used right now. And so there's, and again, like the previous step
1573430	1578370	where we talked about having that kind of prompting where you go through the different steps
1578370	1583110	and you get prompted to say, yes, this is the one I want to add, no, yes, no, yes, no. You
1583110	1587190	also have to take a similar approach with the cloud stuff. And again, for these sort of
1587190	1591050	organizations which are pretty much, you know, cloud native, you've got to be pretty
1591050	1596770	careful. So you've got to really know what you're looking at. So the good thing is, these
1596770	1603050	cloud providers, as examples, do tell you which IP addresses that they use. So if you've
1603050	1607770	got the, and the Orca will give you the network ownership information once you've done
1607770	1612650	enumeration of an IP address, for example. So you will see who owns it, but you can check
1612650	1620190	as well yourself by just pulling down these different lists of IPs. So that's, yeah, a
1620190	1628710	little bit of our experience. So now we've gone through the enumeration of getting hosts.
1629150	1633170	So now we've got a bunch of different ways. We've got it from domains, company name,
1633170	1637230	ciders, boiled that down so we've got a bunch of hosts. Now we're going to look these up
1637230	1643110	in Showdown, a very popular tool which I'm sure everyone is very, very familiar with. It
1643110	1647690	is pretty impressive. You do need a paid key for this, but it's very, very cheap and you
1647690	1654350	get so much for this. So I don't feel too bad, and Mathly does a great job, so I don't
1654350	1660270	feel bad about promoting that here. So what this does is you give it an IP address and you
1660270	1665190	get back the ports, obviously, which is pretty handy. So, you know, if you put in, like,
1665190	1669990	the scanme.map.org, you get back which ports are open, which is pretty nice. And then you
1669990	1674890	get also back the CPEs, the Common Platform Enumeration, and we'll talk about that in a
1674890	1678450	little bit more detail in just a sec. But as I mentioned, you also get, like, the network
1678450	1685050	ownership information, the modules, which is pretty nice. So here you can see on the, this,
1685050	1692050	on scanme, the ports which are open correspond to the modules which are, which are listed
1692050	1696690	here as well, which is pretty cool. But the really nice thing with Showdown is that it will
1696690	1701450	tell you which modules are in use, even if the ports are changed. So if you're running, for
1701450	1707310	example, a Telnet server on some kind of weird port, because why not, you decided to run it
1707310	1712110	on 3389 just to mess with everybody's heads, you'll actually get the module telling you that
1712110	1717090	it's actually a Telnet server, not an IDP server. So that's really, really cool and something
1717090	1723450	we make a lot of use out of. So that's definitely a pro tip. But yeah, you get this, you get
1723450	1731740	this great information back from Showdown, which you can then take to the next stage. So as
1731740	1737120	I mentioned, the CPEs, which are really, really cool. So they are the common platform enumeration
1737700	1745920	and that will give you the vendor, the type of software that's in use, the version number,
1745920	1750900	and here, you know, you can get like the beta flag, which is pretty cool. So again, this is
1750900	1757040	back to our main goal, right? Our goal is vulnerable or misconfigured servers. How do you
1757040	1761240	want to tell something is vulnerable remotely without actually like attempting to shell it
1761240	1767080	over the network, which is, you know, against our rules of engagement, no shelling. Being
1767080	1771300	able to get this fingerprinting information, which then allows you to have a reasonable
1771300	1777000	level of confidence about the vulnerability of a particular service is extremely, extremely
1777000	1785900	useful. So these CPEs are then mapped to CVEs now by Showdown itself. We used to have to do
1785900	1789360	all of this stuff manually ourselves with, you know, a bunch of different tools that we
1789360	1793220	were using, and then one day we looked into the Showdown helper and it had all of the same
1793220	1797720	information that we'd all been looking for or been building ourselves all of that time. So
1797720	1802780	that was cool. So you can just use the CVE information, so the common vulnerabilities
1802780	1808980	enumeration information from MITRE, so you get a really nice list of the vulnerabilities
1808980	1818560	associated with a particular service. But we don't want to stop there. Absolutely not. So you
1818560	1823240	get the CPE to CVE mapping from Showdown, but then you want to know, like, is this really
1823240	1827860	exploitable? Because so many CVEs don't have a publicly available exploit, so the risk is
1827860	1832720	pretty low. Again, you want to be convincing people that, you know, your customers or your
1832720	1836680	own organization, that we found something which is actually of value, which is something they
1836680	1843680	should care about. And so we can store all of this information in the database. You see
1843680	1848820	all of these, you get the CVEs, you get the CVSS scores, you get a bit of information about
1848820	1860520	it, and we integrate with CVE search, which is a great little platform. It's a great little
1860520	1865000	database, and it gives you, like, it gives you basically a web interface to the exploit DB
1865000	1869140	database, a local copy, so you don't have to break out to the internet all the time, which is
1869140	1875060	pretty handy. So the Orca will then take the CVEs, which you've discovered for all of these
1875060	1881640	hosts that you found, and check to see for those CVEs, are there any exploits available, and
1881640	1885980	we'll store that exploit information into the database. So then you can actually go back and
1885980	1892300	say, well, we found these vulnerabilities, and of this subset of vulnerabilities, these ones
1892300	1896640	have a publicly available exploit. And you can even, like, filter out for, like, I only care
1896640	1902740	about RCE. I don't care about DOS, I only care about RCE. So that gives you a pretty powerful
1904480	1908920	platform to build on, and I say it's a very good way of finding something which you can
1908920	1914440	persuade somebody about. So you can footprint quite quickly somebody's entire infrastructure,
1914440	1918320	and just have a look at, oh, well, these are the services which have publicly available
1918320	1923940	exploits for them. And even if, for some reason, the exploits maybe don't work, or wouldn't
1923940	1927600	work, because maybe there's a platform discrepancy, or there's something, there's some
1927600	1932100	little issue which is going to set it off, it's usually a good place to start looking. I mean,
1932100	1937020	you know, you get something which is vulnerable to a CVE from 2008, there's probably
1937020	1941960	something else interesting lurking behind the scenes there. So CVE search is really cool.
1941960	1947920	We find, inside of the Okra distribution, you'll have the instructions about how to set it
1947920	1952920	up. It does take about, like, six hours to build the first time, so you have to be a little bit
1952920	1960060	patient, unfortunately. But once you've got it, it's super, super useful. So we get a lot of
1960060	1964060	mileage out of that. So a great little project, and really nice to integrate it in with the
1964060	1972020	Okra, to have that all in one place. So now, back again to the goal. We want to find those
1972020	1978500	vulnerable systems. So this is what the Okra has, like, an explore feature, where we can
1978500	1984800	give you sort of a representation of what's in the database without having to do, like, a
1984800	1988960	whole bunch of SQL queries, or without exporting it to Excel first, because maybe you just
1988960	1993920	want to look at it quickly on the command line. So you'll get a bit of information about the
1993920	1999720	host, information about the services, it'll tell you, like, which CPEs it detected from
1999720	2005940	Shodan. So here you get, you know, the vendor, the software version, the software type,
2005940	2009840	OpenSSH in this case, and then the software version, which is pretty cool. You get the
2009840	2013700	information from Shodan, it gives you the banner information, so you can see, like, what's
2013700	2016440	happening in the banners. And usually there's something, usually something pretty
2016440	2021700	interesting in the banners. Telnet banners are great, they're usually pretty hilarious. All
2021700	2027120	kinds of information in there, so you can really get a quick overview. And again, this is a
2027120	2031000	way of sort of supercharging your recon, so that, you know, you get the information that you
2031000	2037820	care about back as quickly as possible, and as being able to, you know, get what you need
2037820	2042140	without having to, you know, waste too much time going through all of this unnecessary
2042140	2046240	data. Because again, we're tightly focused, we're just caring about vulnerable and
2046240	2054920	misconfigured systems. So, once you've collected all of this information, you've got,
2054920	2057620	you know, you've done your subdomain enumeration, you've done your Shodan enumeration,
2057620	2064060	your DNS enumeration, you've looked up to see if there's any exploits available. Again, if
2064060	2069000	you've got a very large organization you're going after, it's difficult to make sense of it, or
2069000	2075040	to get that, sort of those nuggets that you care about. So the Orca has rules and sort of
2075040	2080640	tagging engine built into it. So it's accessible, you can just, they're just written in
2080640	2087020	JSON, you can add your own if you want to. And it's a great, it tags the assets that you
2087020	2093160	discovered according to whatever rules you put in. So one example is remote access. Again,
2093160	2097320	that's something that we look for a lot when we're doing recon. You know, you've got an
2097320	2101880	organization that's got, put in a whole bunch of ciders, you know, it's got a slash 16, a
2101880	2106920	slash 8 in some cases. But you've got a whole bunch of information which has come back.
2106920	2112520	You're like, well, okay, it's got lots of web servers, but I'm not too interested in those. I
2112520	2116940	want something which is more directly useful. And, you know, remote access is a great place
2116940	2124360	to start, right? VPNs, SSH, RDP, all that kind of stuff. So the Orca can just tag that all up
2124360	2128820	for you so that when you get the output, you can just filter for that particular thing, for
2128820	2134200	example, remote access, and then you can just see from the, like, 50,000 hosts you've
2134200	2141420	discovered, those 300 that are IPSec VPNs, SSL VPNs, RDP, all that kind of stuff. So that's
2141420	2147520	something we've found to be very useful as well. Also, for example, yeah, load balances is, you
2147520	2152280	know, you can pick up if there's an F5 there, for example. So if there's a Windows operating
2152280	2156380	system, as I say, there's a whole bunch of different rules in there for tagging up the
2156380	2161080	results that you've got to make it quicker for you to find the things that you really care
2161080	2167100	about. So as I say, it's extensible, so you can always, if there's something in particular
2167100	2175560	you're looking at going after, you can easily add that in, which is pretty handy. And so then
2175560	2182020	exporting. All enterprise software competes with Microsoft Excel, as the saying goes, and
2182020	2187760	recon tools are no different, it seems. So as I said, after spending ages having to do this
2187760	2194220	kind of conversion manually, we decided to just use the XLSX writer module for Python so it
2194220	2199640	will spit out. This is a very, very small snapshot. I had trouble trying to get it all onto
2199640	2204680	one slide, but basically all of the information which I've talked about so far will be put
2204680	2209560	into the spreadsheet. It'll have multiple tabs. It's got one for DNS, one for vulnerabilities
2209560	2215740	and exploits, one for the sort of overview of all of the host information, has all of the
2215740	2219500	showdown information, all that mapped in there. So then you can just take that and use sort
2219500	2225980	of standard spreadsheet foo to make sense of it. As I said, one particularly handy thing is to
2225980	2229560	do the filtering for remote access so you can immediately see, oh, these are all the remote
2229560	2234660	access machines that this organization has. I can then take that and then map it to, for
2234660	2238860	example, breach data and see, you know, is there anything that's got creds for that kind of
2238860	2244220	that system floating around in breach data, which again is a pretty high impact finding,
2244220	2257340	which people would probably be very interested in. So that is pretty handy. So in conclusion,
2257340	2264980	the Orca is a tool for sort of supercharging your OSINT, for giving you quick access to the
2264980	2269780	things that you care about. It's focused, it's tightly scoped, it doesn't look at any
2269780	2274360	unnecessary data sources, lean and mean, just the ones that you care about to get your job
2274360	2282720	done. So looking at how do you find vulnerable and misconfigured systems. It starts with
2282720	2288020	taking in organizational names, domain names, and site prefixes, and from there you can
2288020	2294660	discover subdomains, services, vulns, and exploits. You can tag up these results, give it
2294660	2300060	all to you, and export it to Excel. And you can also say it has an explore feature, so you
2300060	2303120	can look at it all from the command line, which is pretty easy, and if you're really
2303120	2308100	desperate, you can just go straight into the database and use some Postgres to get out the
2308100	2312780	stuff that you care about. It's been released into the wild as of this morning. You can get
2312780	2318020	it on GitHub, so please take it for a spin. There's an example walkthrough there which goes
2318020	2323120	through step-by-step all the different features of the Orca, how you can use them to find the
2323120	2326340	sort of things that you might be interested, whether it's for your bug bounty, whether it's
2326340	2331160	for Red Team, whether it's for your own organization, or for the LULs. So that's all
2331160	2334760	from me. Thank you very much indeed for listening, and I'd be happy to take any
2334760	2338880	questions. Thanks a lot. Thanks.
