start	end	text
0	4300	We're here to talk to you all today. All right, there we go. We're starting off right nice. Now,
4300	8220	we're here to talk to you all about data science up here in the Splunk field and what we do.
8400	13980	Now, before we go much further... oh, there we go. Electricity. Before we go much further,
13980	18020	I have one thing to say. We're not going to talk about anything here that requires
18020	22820	you to purchase anything, which is good. But if I did, don't buy anything on what we say,
22820	27980	because we lie often. Mostly about the capabilities of our math abilities. So,
28460	33100	my name is Ryan Kovar. I'm a principal Splunk security strategist. I've been around doing
33100	37540	this for a while. And for those of you in the audience who are good at math, we have 30 minutes
37540	44300	to go through 81 slides. So, do the math and I'm going to quickly move on. But not do well
44300	51560	for choreography. Hey guys, I'm Dave Harreld, also a security strategist at Splunk and been around
51560	57240	also quite a while. Do a lot with SANS. Ryan and I and a bunch of other people up here,
57240	61080	David and a bunch of people in the audience, work on this thing called Splunk Boss of the
61080	67900	Sock, which we would love for you to check out sometime. And my name is also David. I'm also a
67900	72420	principal security strategist for Splunk. And I also do a lot of the same things these guys did.
72420	78600	And I'm doing my best to not talk about MITRE today. So, that's my personal growth goal.
78600	81960	However, I did have a talk at Blackout. So, feel free to go back. So,
81960	85200	we do a lot of things. We've been doing this for a long time. There's a lot of people up here who
85200	89200	have experience doing plumbing for networking. We've done some science and data and some
89200	93460	research and development. We are certainly not experts in the field. And that's exactly what
93460	98040	this talk is about. What we're going to go briefly over are the things that we've tried
98040	102900	in the world of data science. What it means to be a citizen data scientist. The things we're
102900	106340	actually trying to do. And then we're going to go into the works in progress for some of our
106340	113940	ongoing research. All right. So, as Ryan just mentioned, this talk is all about
114500	120180	applying machine learning from the perspective of security practitioners, not from the perspective
120180	125580	of someone who's trained in data science. A lot of these things we did to teach ourselves how to do
125580	131740	machine learning. And how to think like a data scientist. We consider ourselves citizen data
131740	137340	scientists, which is a term from Gartner, which we kind of like. We're going to talk about this
138180	145080	called the MLTK, which is a toolkit that you can run on top of Splunk. We generally use Splunk
145080	149120	because we work there and they pay for our kids to go to college and things like that. But
149120	154880	these topics are generally applicable across a wide variety of different tool sets. So,
154880	160240	don't get hung up on Splunk. MLTK is an add-on that you can install on top of Splunk. It's a
160560	168620	toolkit that allows you to apply all kinds of different algorithms. It is a thin wrapper over
168620	174740	some Python machine learning libraries. Super useful. There's a little bit of stuff that you
174740	180300	can do in the MLTK. I'm not going to go over it all. But you can do things like numeric predictions
180300	185380	and categorization and forecasting and outlier detection and a whole bunch of other cool stuff
185380	192860	using this toolkit. And with that, Mr. Verve is going to go over some things that we can do with
192860	198620	that toolkit and with some of the other pieces of Splunk or any other analytic toolkit.
200340	206500	So, yeah, let's talk about some actual detections. So, a part of our day-to-day life is going out
206500	210880	and talking with customers who want to be deploying security machine learning. And
210880	214740	security machine learning is one of my favorite subjects to walk into a customer to talk about
214740	218700	because most of the time, they don't really know what they're actually looking for. And so,
218700	222640	I can talk about the magic of bespoke machine learning and how we can deploy all this type of
222640	228880	stuff. And a lot of the time, what they actually want is really simple statistics, which I'm sure
228880	234140	should resonate with everybody because this is the life of data science. Most of the time, inside of
234140	237860	the land of security, the things we see people getting the greatest amount of value from are
237860	241820	rarity detections, looking for things that are uncommon or first-time seen, like being able to
241820	247080	detect the first time somebody goes to a domain, first time somebody launches a particular process,
247080	251240	first time a particular process launches with this particular file hash, things like that.
251320	256380	Or time series spikes, being able to track something that happens more than it typically does.
256620	261880	A lot of this can be done with simple things like standard deviation. And we really like to describe
261880	267460	this concept to end consumers because in that idea of the citizen data scientist, it's not
267460	272940	something that takes a PhD. We can have the conversation about different types of distributions
272940	279540	and whether standard deviation is a fair thing. And Kovar loves to talk about IQR versus standard
279540	283580	deviation. But at the end of the day, what we want to be able to do is give people a ton of different
283580	287640	content that's very straightforward for them to deploy. And I'm sure you're all sitting here
287640	293240	reading through each item in that slide deck. You have to look at all of them because functionally,
293240	297020	when we look at these kind of simple categories, where we see people driving tremendous value
297020	303780	with the ease of customization for it. So for example, take this detection here. This looks for
303780	311160	new error codes being generated by users in AWS data. And the way that it's doing it is looking
311160	317560	at a corpus of AWS data and it's saying give me the first time and the last time that this error
317560	322720	occurred for this particular user. And we look for if the first time is in the last day or if
322720	326260	you're running on an hourly basis in the last hour or if you want to get fancy, you can say
326260	330280	since last time I ran it or things like that. But functionally, it's a pretty straightforward
330280	335340	type of detection. And the great thing about it is if you want to spin this around in a different
335340	341100	direction, all you have to do is change the data source and what fields you're looking at. So
341100	346720	instead of looking at error codes generated by users, which is, you know, casually interesting.
346720	350200	One of my favorite ones is looking at the first time a particular user generates a particular
350200	356160	or hits a particular API. If I've never created an instance before, I should have a record of
356260	360300	David all of a sudden created a bunch of instances. If I've never interacted with a
360300	363360	particular region and all of a sudden I start spinning a bunch of instances in a particular
363360	369700	region, that's also really useful information. So these are the things we talk about in a high
369700	375400	level. But how do we actually go apply that? How does that really work in the real world?
375400	380720	And you'll note, this is customized for Las Vegas. Polish here. So this is one of the things
380720	384600	that we've actually seen customers deploy to a great extent. And my favorite example of all
384600	388940	can talk at great length about it. But as we mentioned, 81 slides, 30 minutes, no time for
388940	394220	great length. My favorite example is from JP Morgan Chase. They presented at our user conference in
394220	401040	2017. And I have happily stolen this slide from them. And they built a system for monitoring
402440	408180	all types of their critical users. So whether it's an exec or a sysadmin or somebody who can
408760	413820	send a lot of money someplace, they want to track extra detail or put extra attention
413820	418060	on those types of users. And so what they have done is deployed a bunch of different
418060	422480	first-time scene detections. So we've got first time that an email comes in from an address. First
422480	427260	time a particular domain sends an email. First time they get an attachment type. They get a PDF
427260	432720	for the first time or a CR file or whatever. First time a service gets installed. First time the
432720	436440	registry gets modified, et cetera, et cetera, et cetera. And again, this is in the Splunk
436440	440900	nomenclature, we use SPL for our search language. It's the same search language that gets applied
440900	444780	for each one of these and you just change the fields and change the data source. The same thing
444780	448960	applies for all other types of data analytics platforms as well. And what they do is they
448960	454560	then aggregate all of these risky events or new events and then look for activities that are
454560	458200	occurring across multiple different, in this case, phases of the kill chain. Because they
458200	463920	presented this in 2017 before MITRE. I broke my rule. I wasn't going to say MITRE. Before MITRE
463920	468700	became the buzzword du jour. But this functional idea of saying if we see a user has a new sending
468700	474200	address and a new process created and a new connection and new attempted access, like, that's
474320	479880	a lot of suspicious things that we can now say this should be analyzed immediately. And it's
479880	485840	really useful. But of course, we're presenting at AI Village, so we like machine learning, too.
485880	488180	And everything we're going to talk about for the rest of this presentation is actual machine
488180	492640	learning. My favorite, because it was my first, machine learning detection, which I worked with
492640	497340	our data scientists at Splunk to build out, was this great, it's a buzzword bingo of descriptions
497340	502440	that uses standard deviation and IQR so it can make Kovar happy. It uses K-means clustering,
502440	509660	it uses PCA, lots of different fun things in here to be able to look at anomalies in Salesforce data,
509660	513640	which in this case was me, because I pulled, like, 38 million results out of our Salesforce data,
513640	518120	looking at, like, opportunities and things like that, because I didn't know how to use Tableau.
518120	521640	But it was great. It was a good use case, and we're actually able to find bad things of users
521640	527160	who are acting anomalously in a multivariate way in Salesforce data. I felt particularly
527160	532980	great about it, because I had 110 million audit events from 90,000 different users. I found,
532980	538860	kind of, scoped my IQR down to 291 outliers, and 291 outliers over the course of 90 days is
538860	543200	three outliers a day. That is a decent number. That is something I can actually give to a SOC
543200	547780	analyst. It's not going to overwhelm them with noise. I felt great. I felt super happy. And then
547780	551780	I actually looked at what I'd be sending to a SOC analyst, and it's a bunch of z-scores of how many
551780	556780	standard deviations somebody was away from their particular average on that particular day. And no
556780	562060	SOC analyst will use this. They will see it, and they'll say, that's fun, and throw it aside and
562060	567020	go deal with a vulnerability scan or something else that is also terrible to deal with, but less
567020	572420	complicated. So we said, okay, wait, why don't we make something a little bit simpler? And when
572420	578680	we're looking at simplicity, my favorite of these is kernel density. Not just because this meme
578680	584580	makes me extraordinarily happy. Kernel density, for those who don't know, is a lot of machine
584580	589200	learning that allows us to detect randomness. And frankly, I don't care about the details of
589200	593920	the machine learning, because I'm the citizen data scientist. I'm not the actual data scientist.
594200	601700	What I really care about is the ability to put a single piece of SPL up on the screen that works
601700	607980	and allows me to build a baseline, and then add one more command to invoke Splunk's machine
607980	613460	learning toolkit to be able to look at anomalies in the amount of data being sent out inside of
613460	618980	our own firewall logs. And to test this out, to validate that this actually worked,
618980	625040	this was back in the day before GDPR hit and we actually had access to some internal data,
625040	630100	I tracked users who were exfiltrating data from or sending out data from Splunk's own environment
630100	635900	and found one user who uploaded 130 gigs of data to Dropbox on a Friday afternoon,
635900	642620	blowing out all of the per hour baselines established. It's totally legit. You can ask
642620	647960	anybody, Dropbox is for sure a customer that we use, or a product that we use. Definitely not
647960	652100	something that is not a Splunk product, so you don't have to be any concerned at all about that,
652100	657840	it's fine. But this is a great result. It's clearly valuable, it's clearly understandable
657840	664580	for an analyst, and literally it's adding one extra line of SPL into a query that I already used.
664780	669580	So this is kind of the power of being able to expose these types of capabilities to the citizen
669580	675900	data scientist to make it very easy to do. But of course, in our team, we also like to do research.
676220	688430	So let's talk about the research. All right. So this is a short overview of a talk that we
688430	693290	did a couple years ago, Ryan and I did at the Threat Intelligence Summit, I guess a year and
693350	698370	a half ago. And so you might want to check out that talk if you're interested in what we're about
698370	704150	to kind of give just a little bit of a taste of here. First thing, kind of the inspiration for
704150	710590	this, there's a gentleman Mark Parsons, if you don't follow him, he's an amazing researcher,
710590	716270	Threat Intelligence Analyst, works at Microsoft. And he had been doing a lot of work on analyzing
716270	722890	SSL certificates and using them sort of as a new way to track adversaries and to track behaviors,
722890	728190	especially considering that most of the traffic that we see today now on our networks, when we
728190	733310	look at wire data is encrypted. And so that takes away a lot of visibility. But one thing that's
733310	738390	left are the SSL certificates themselves. He's done an awesome amount of work on this topic and
738390	745990	kind of inspired us to do some similar things in our tool set. So obviously, everybody knows,
745990	751100	I think, what an SSL certificate is, but it's basically an artifact that allows you to
752480	760620	assign a crypto key to some information in the subject of the certificate.
760840	766300	And it's super important, obviously, for SSL. And we have visibility to it when we look at
766300	773540	network data. We thought it'd be interesting to teach ourselves a little bit about machine
773540	779060	learning and maybe do something that's useful with this huge data set. And so we asked a very
779060	784840	simple research question, which is, can we build a model that would predict inclusion on an SSL
784840	793860	blacklist? And so we have an SSL blacklist that comes from abuse.ch. And we have a huge corpus of
793860	800080	SSL certificates that come from the Rapid7 project Sonar. You should check out both of those projects,
800080	805140	especially the Sonar project is extremely interesting if you're looking for a big data set.
805740	811960	And so we took that and we said, hey, we essentially have some labeled data in that we have
811960	817020	data that's either on this list or not, and we have a huge corpus. And so we thought this
817020	823620	would be an interesting first foray into supervised machine learning.
825080	831680	Started off down the trail of feature selection. And in Splunk, at least, it's nice because you
831680	839260	can look at data like on the left, which is gives you sort of a view that's easily consumed by
839260	845920	humans. And on the right, something that tabular view that we can feed into our machine learning
845920	852160	model and use for as features. And we just did some simple, very simple things. We started off
852160	857980	simple, right? Number of certificate extensions, number of issuer elements, number of subject
857980	864000	elements, et cetera. You can read those off. A very simple list of quantitative features that we
864000	869900	began to use. And we really didn't modify this too much, honestly. We got actually a lot of mileage
869900	875700	out of this, which I was surprised by. Put that into... and we used our machine learning
875700	880780	toolkit. We did some PCA, which I don't have a slide up here for, but principal component analysis
880780	886900	to kind of figure out which of those features actually had an impact on the data. And then we
886900	892720	fed that into a whole bunch of different machine learning algorithms. And honestly,
892720	898080	I'm a citizen data scientist, so I don't know the ins and outs of every single one of these.
898080	903880	But I can tell how they look, how they perform, right? Against one another. So I can say
904820	911640	obviously this support vector machine showed up as high accuracy rate with a low false positive
911640	919980	rate, which was super cool. We built this model. It didn't take too long. It took a long time to
919980	924680	load all that certificate data that I mentioned earlier. It didn't take too long to build the
924680	932760	model. Applied it. This is the things that you can do very simply with SPL. There's SPL shown
932760	938860	there. It doesn't look too simple, maybe, but if you read through it, it's actually not too
938860	945540	complicated. It's quite repetitive. There's not too much there as far as complexity. And the cool
945540	951500	thing was we found tons and tons of these certificates, right? Which we predicted that
951500	957040	would be on the blacklist and that actually were. And this was very useful, right?
958420	964180	It was useful because it could add context to something, right? Remember that we had that 4%
964180	969160	false positive rate, which if you're running this across the corpus of millions and millions
969160	974200	of millions of certificates, that's not that useful, right? Because 4% of a giant number is
974200	981040	still a giant number. However, it's super useful for adding context. And so, in our day jobs, what
981040	985940	we're trying to do is help customers see an alert and understand if that alert is something that
985940	991060	they can ignore or if it's something that they need to investigate more. And in order to do that,
991060	997580	you do a lot of enrichment. This is a great way to enrich data. So, you can say, oh, I see this
997580	1002820	alert. It has certain characteristics. I'm trying to determine, you know, is this important to me
1002820	1008740	or not? And also, I can say, well, you know what? That certificate is not on a blacklist because it
1008740	1015180	would have triggered probably a filter that, you know, some sort of a match if it were. But we can
1015180	1019400	also say, you know what? That shares a lot of characteristics with other certificates that are
1019400	1023880	on that blacklist. And that might give us a little bit of extra context to be able to be a little
1023880	1039860	quicker in how we triage that event. That was... yeah, that's right. So, that was an extremely fast
1039860	1044760	overview of that. Again, if you want to see a lot more detail about that process, definitely check
1044760	1049260	out the talk that we referenced earlier. And we have a link to here. And I'm going to let Ryan
1049260	1056560	talk a little bit now about... So, the whole goal of this, right? Everything we're doing is to reduce
1056560	1060600	your data set. Because I don't know the hell that Dave was just talking about for five minutes for
1060600	1065020	PCA. I can't do any of that. But I can read a computer screen and look through it. And what
1065020	1070580	we're trying to do is really find the bears in your network, right? Because when you start off
1070580	1073960	with tens of millions of events, but you can find the things that sort of match, that's where you
1073960	1078160	start getting the real return on investment for machine learning across a real data set.
1078160	1082460	So, what we learned was, it sure as hell doesn't solve cyber, but it can really help you add
1082460	1086180	context and actually bubble up the things that matter in your alerts or whatever else you're
1086180	1090560	looking for. So, we have this going on. We tried it. We had a lot of good success. Because remember,
1090560	1094800	the whole goal of this exercise for Dave and I was just to learn, could we actually do
1095700	1099840	data science? Could we actually take machine learning? I am literally someone who failed math
1099840	1104100	in first grade. So, for me, this was a real challenge. And I found it was actually doable.
1104100	1107820	And we had results at work compared to the bullshit marketing stuff that we've all seen,
1107820	1113400	so this was pretty exciting. So, we said, all right, next ML challenge, where's Glass Joe?
1114120	1117920	So, we said, cool, let's go back in history a little bit. We have a little bit of a theme here
1117920	1124960	with bears. Mr. Podesta once received an email. It looked just like this. And then there's another
1124960	1128920	email that looks just like this. Now, there's a big difference between these two emails,
1129480	1133340	one of which has a bitly link to get his Gmail account changed, and the other goes to Google
1133340	1138480	mail. There's virtually no other difference in the legitimacy of this email other than you have
1138580	1143620	a bitly link and you have a Gmail link. If you have a junior analyst who's never maybe seen this
1143620	1148520	before, you're going to have some problems, right? Because they are so closely identified.
1148520	1153220	I've been doing this for 20 years. I can look at an email and something just feels weird, right?
1153220	1156920	When I realize I'm mentally running through these models and I'm literally looking through that and
1156920	1160500	I'm finding the deepfake difference, which we didn't know we were doing deepfakes this week,
1160500	1164920	but this is the original deepfake we all grew up with, right? You have to find the difference.
1165000	1169000	And the difference sometimes can just be a little sliver. It's really hard for a junior
1169000	1173900	analyst or a senior analyst to look at that and know. So we came up with an idea. Let's keep
1173900	1177320	applying this research, and we're still in the middle of doing some of this, but we wanted to
1177320	1181780	see if we could predict a model to predict APT emails. And I'm not going to go over the nation
1181780	1185480	state or commodity or anything like this. The idea is just, can we predict things that look different
1185480	1190360	than just like, you know, porn links coming in or church emails or whatever it is that has those
1190360	1196600	links that all get through your spam filters? So here's the plan of action. We're going to go ahead
1196600	1200380	and we're going to look at these emails. We're going to look at these headers because the SMTP
1200380	1204780	headers are just a hell of a corpus of information, right? And what I did is I got a whole bunch of
1204780	1208740	senior analysts, a little drunk and a whiteboard, and we just went through and said, what makes it,
1208740	1212920	what gets your hinky filter going? What makes something kind of click for you about being weird
1212920	1217660	in email? And that was my method of feature selection, right? So we went through and these
1217660	1221200	are all the features that I've had some really senior badass analysts in the world look at
1221200	1226900	and identify as things that they have normally seen APT emails use, have modified, look different.
1227020	1230880	If you've ever seen some of these emails come in, you'll notice, for example, if someone sends it
1230880	1234940	through a legitimate Outlook client on their desktop in a corporation, and it goes through
1235080	1239360	a legitimate desktop in another corporation, you're going to see proof point headers from one org,
1239360	1243320	if you're a certain age, Postini, you're going to see a code through Gmail, it's going to come
1243320	1247840	back down, it's going to have all these awesome headers. But if they send it from a droplet in
1247840	1253380	DigitalOcean from a Python script, it might have five different lines of headers and that's it.
1253460	1258220	Because SMTP headers, that protocol is the sluttiest protocol that exists. You can just
1258220	1263300	about say, hey, y'all, you want to email, chuck it on over, there it goes. So there's a lot of
1263300	1267280	variations there, which is awesome for ML because now we can actually select features that are
1267280	1271440	interesting. So then we went through and we started working on this, and here's some things
1271440	1276160	that we identified from an Office 365 corpus. We weren't really happy with all the data we could
1276160	1280500	get out of there, so we kept looking. Then we compared it to the real things that we wanted
1280500	1285500	to focus on from Office 365. I'm going to throw this in just because I get angry at Office 365.
1286440	1292460	And I had to go like this, right? Old man Kovar yells at Microsoft Cloud. The reason being,
1292460	1296360	they get rid of all those headers if you're trying to bring it into your network. You have to do a
1296360	1300560	lot of work to try to get that information. And for network defenders, I need that data.
1300940	1304240	So we turned to something called Stoke. If you're not familiar with Stoke, we have a lot of
1304240	1308180	presentations on this. It's a file analysis framework. One of the things it does really,
1308180	1313640	really well is take data off the network and rip it out and turn it into a beautiful JSON blob.
1314120	1317960	That JSON blob looks a little bit like this, because at the end of the day, email is just a
1317960	1325380	key value, right? From value to value. That's all it is. So it's beautiful for JSON. And remember
1325380	1329360	before, I have all those headers. Well, those just become values in an extensible format.
1329360	1333340	So we keep going through this. And suddenly I found, when I looked at email from Stoke,
1333340	1339820	the exact same data set, I had 131 different fields in that SMTP that I could actually do
1339820	1344860	feature extraction on versus Office 365. So like we said, this is our work in progress. We're kind
1344860	1349180	of literally walking you through as we're doing our research. So we decided to go with Stoke.
1349760	1353720	The idea here, we're going to take good emails that we know are good, maybe from our personal
1353720	1358240	accounts or things that we're actually sending. And then we want to find a corpus of APT BAT.
1358400	1361360	There's various different ways to do that. One of which is that we're looking at going
1361360	1365400	into VirusTotal and actually just looking for people who have identified it. We pulled something
1365400	1371540	like 7,000 items out of there, looking for IOCs. Side note, please stop uploading your emails into
1371540	1377320	VirusTotal. I'm not joking. People are doing this in an automated method, right? So stop doing that
1377320	1380980	if you're in the audience and doing it. However, it's great for me because I get some real data.
1380980	1385200	So, going on. Problems that we've experienced doing this.
1386460	1392660	Am I just recreating a goddamn spam filter? Yes, I am. But it's my spam filter. And I get to tune
1392660	1397240	it how I want to look for things that I care about for my org. And that's really important to me.
1397580	1401940	Second, I speak English pretty poorly. So all the work I'm going to do is actually going to
1401940	1406980	be inherently biased to American English for an American organization. But that goes back to this.
1406980	1411920	It's my spam filter, and I'm tuning it for me, right? If you're a Spanish speaker, if you're
1411920	1416160	Czech, if you're Polish, whatever it be, all these are going to apply as well. Most of the languages,
1416160	1420980	the tool sets we use, NLTK, everything like that, Natural Language Toolkit, they have these
1420980	1426360	different plugins. As we said, we need a labeled corpora of data. We've kind of come over that.
1426360	1429640	We figured out a solution for that with some of the VirusTotal. However, for those of you who've
1429640	1435300	done real research in this, I'm not really sure if my labeled corpus of data is going to be great.
1435300	1439120	What I want is for someone to take the research that we're doing, who is at a giant organization
1439120	1444720	who has a labeled corpora, and then try it out and see if it works, right? Second,
1446200	1451140	in terms of at least for Office 365 stuff, I'm having a real problem keeping up on documentation.
1451140	1454660	The same thing for Google Mail. When you start trying to put this in production to get these
1454660	1458980	headers out of information, you're going to run into problems. I've already had my research break
1458980	1466480	twice because of changes on API from both Google Cloud Mail and Office 365. So keep that in mind
1466480	1471120	as you're going through. As we said, this is a little bit of a work in progress. The other part
1471120	1476080	is, as Isaac Newton once said, cloud data at rest tends to stay at rest, and it can be very expensive
1476080	1480160	to pull it out of the cloud, or it can be very difficult. Exciting things like if you're using
1480160	1485900	Google Mail, there's a 24-hour delay to pull it out of the cloud, which is not exactly great for
1485900	1491840	network defenders. It gives them 24 hours before you can find them. And we also have day jobs. This
1491840	1495380	isn't our full-time day job, so we're a little bit behind on some of the research we want to get to.
1495600	1500620	However, we have had some initial successes. I call this the Texas Ghanaian dataset.
1501940	1505500	We set up a little, I don't want to say honey pots, but we put out some email addresses all
1505500	1509180	over the place and started getting a whole bunch of spam in, and I started reading through it,
1509180	1513640	and the two major things I saw were Texas churches, and they made significant spam,
1513640	1518940	and then Ghanian hackers. I have no clue why. But we started to run some of our ideas around this
1518940	1523640	for Ngrams and kind of break apart things in the emails, in the headers that might be of interest,
1523640	1528520	and immediately we found things that were pretty interesting, like Receive, Liberty Capital,
1528520	1533600	Ghana Holding, which I'm not really sure what that is, Talk, Contact, and Message. Because the key
1533600	1538540	part of this, when you start doing NLTK, is every spear-phishing email has certain things that are
1538540	1546680	identical. ASAP, as soon as possible, Click, Execute, Run, Download, Unzip, Zip, Password,
1546680	1552940	Immediate, Invoice.pdf, Invoice.pdf, so many invoices and pdfs, right? So when you look at
1552940	1556340	these, these should be statistically different than things you're sending over. You can start
1556340	1560540	analyzing that grammar, you can look for forced verbs, you can look for weird conjugations, you
1560540	1566280	can look for left-adjusted. Depending if you're over 35, you probably learned to do Dear Orion,
1566280	1572080	Carriage Return, Tab, try doing that in a Python script for email, right? Those are various things
1572080	1576740	that you can pick up on that I notice, as an analyst, that are almost impossible to do without
1576740	1583800	having some sort of machine learning tool kit. So, in conclusion, on slide 76 of our 27 minutes
1583800	1592120	so far talking, we are simple country data scientists. We are network defenders. We are
1592120	1596920	not data scientists. None of us have a math degree, specifically. This is all something people
1596920	1600360	in this room, if you're not a data scientist, if you're a network defender who wants to learn how
1600360	1605340	to apply math, everything we've talked about today from Splunk, at least, is free. You can go ahead
1605340	1609760	and download the Splunk for free, you can do the MLTK install app for free, you can put a giant
1609760	1614100	dataset into Splunk and then start doing it for your own personal research. Everything's out there.
1614100	1617940	I'm going to be talking about that later today here, taking our Capture the Flag datasets that
1617940	1623680	we've open sourced that are 6 gigs and 20 gigs worth of network trap data, doing analysis against
1623680	1630440	that, take the DARPA dataset that came out in 1999, the NFS dataset that came out in 2009,
1630440	1635860	the MACCDC dataset that came out in 2012. There's a lot of datasets out there for you to start
1635860	1640340	learning how to do this machine learning against data that should look very similar to yours.
1640760	1647220	So, these are the things when people talk about, I want to do machine learning or I want to have
1647220	1652480	AI in my network, what they really are talking about is they want to do statistics. Honest to
1652480	1657560	God. They also don't know what their data is. So, that's why you're angry about IQR versus standard
1657560	1664100	deviation, right? Very simple thing to learn. Multivariate predictions versus seasonality.
1664180	1669100	I used to love this because for various reasons, I used to get to take a break every February when
1669100	1672800	I worked for the Department of Defense because for some reason, something happens in the middle
1672800	1679440	of February that I just didn't get spearfished. Look at that, right? Second, just apply a little
1679440	1682980	bit of magic. That magic might be your machine learning. That might be something else. We haven't
1682980	1687920	really figured it out, but it's all there. Takeaways, you can absolutely do this because
1687920	1692520	these three Joes, we did it, right? So, if you have a network and you can put together tools
1692520	1697220	and you can write Python at all, this is all achievable, right? Data is everywhere. It wants
1697220	1701700	to be free. It wants you to run things against it and draw conclusions. Why not go for it?
1701700	1704860	I'll do a call out for Splunk. I'll do a call out for every other vendor.
1705540	1709480	You need to standardize shit and you need to make it available and possible for everyone to do this
1709480	1712180	because that's the only way we're going to win these battles and actually help people do their
1712180	1716060	networks, right? So, think about that. If you're in a vendor space, if you're going to affect change,
1716060	1719460	go yell at your vendors, but we should be standardizing output of logs so that we can
1719460	1724140	actually do better analysis. So, instead of having to spend all of our damn time doing processing and
1724140	1728640	forming of data, actually draw conclusions and just come in as it should be so that we can run
1728640	1733280	these analysis and actually defend our network. So, special thanks to a lot of different people
1733280	1738000	who informed this talk, especially Ben Parsons, James Cole and James Elliott, a special group I
1738000	1744020	love, IKBD, Rapid7, Census, if you're not familiar with Census, they have awesome data, um, John
1744020	1748220	Landcow, Marcus LaFerrera and Lauren Deason at PunchCyber, Philip Drager and of course Splunk
1748220	1756280	for letting us do fun stuff like this at home. I'm Ryan. I'm David. Dave. Thank you. 81 slides,
1756280	1757360	44 minutes.
