start	end	text
0	4200	Thanks for coming out for a nice and cool DEF CON, right? It's so
4200	7420	nice outside. But to kick things off right away, who am I? So I'm
7420	9800	Joe Slowik. What do I do? Currently, I work threat
9800	12820	intelligence for Dragos, industrial control system
12820	15460	focused cybersecurity company, in case you haven't heard of it.
15900	18460	Prior to that, though, I was running incident response at Los
18460	21420	Alamos National Laboratory, was in the Navy, did some things
21420	24480	there. Some were interesting, some were not. And I was
24480	27260	actually a philosophy graduate student dropout at the
27260	29400	University of Chicago before I got involved in anything
29400	32520	relating to computers, like the most I did before, maybe the
32520	35800	Navy was game. So yeah, I've kind of took an interesting,
35800	37300	well, we've all taken interesting paths to this
37300	39980	field, but enough about me. Main thing we want to talk about
39980	43520	today are, you know, what are some major ICS attacks? What
43520	45860	could we learn from those? But also look at those in the
45860	49480	context of a surge and sort of minor IT based events and look
49480	52580	for the overlap and behaviors between these two and how do we
52580	55600	can start designing defense in light of what we've observed
55600	58780	from the sort of smaller things that are bubbling up.
59400	62260	So looking at ICS events, there's really not all that many
62260	65440	that are publicly disclosed or identified. So we've certainly
65440	68020	have seen some rather headline grabbing events in the last few
68020	71220	years. But, you know, in terms of ICS focused malware, you have
71220	75640	Stuxnet, Drink, Havocs, Black Energy 2 and 3, although Black
75640	79100	Energy 3 really isn't ICS based, it was just used for an ICS
79100	81900	attack. We can talk about that after this if you'd like. Uh,
81900	84340	the crash override framework, which I was, had the pleasure of
84340	86460	being here last year to talk about that with the guys from
86460	90240	ESET. Uh, and then Trisys, which was, uh, fairly recent,
90240	94300	September, um, August of last year, 2017. But then looking at
94300	96520	this, and we have a few other disruptive attacks, you know,
96520	98400	the malware maps to certain things, like we know what
98400	101600	happened, what has happened in Ukraine. Uh, there was the still
101600	104860	mysterious German steel mill event of 2014. If anyone has
104860	108080	more info on that, please talk to me. And, uh, you know, then
108080	110920	moving into, again, the events I just talked about with Trisys
110920	113480	and crash override. And only a couple of things that have
113480	116660	genuinely been disruptive. Stuxnet, crash override, and
116660	119880	Trisys. So we're not talking about a very large sample size.
119880	123140	And again, emphasizing known, um, you know, if you happen to
123140	127280	be a three letter agency person with little, lots of, you know,
127280	129900	words and letters or whatever after your name, maybe you can
129900	133080	speak to some others, just not here. Uh, but there's just not
133080	135680	that many events to start designing detections around and
135680	141080	take lessons from. So, you know, if we're looking to design
141080	144620	defense in ICS environments, what's our corpus of data? What
144620	147560	is our, uh, ability in order to start reading into this so that
147560	150240	we can start building out a defensive framework? Well, we
150240	153760	just don't have enough, you know, items within the ICS space
153760	157300	to really use those as, at least our exclusive set of building
157300	159860	blocks for how to arrange defense. Furthermore, if you're
159860	162900	taking a very traditional IOC approach to defense, you're just
162900	166080	gonna find yourself in a bad spot quite quickly because we
166080	168720	don't have a very large set of IOCs. We have, you know, maybe a
168720	172520	couple dozen hashes, uh, you know, IP addresses and stuff
172520	174460	like that might be somewhat relevant depending on the
174460	177360	environment, but we're talking about, you know, presumably a
177360	179580	controlled network that's not hooked up to the internet, I
179580	183120	hope. Um, so instead of focusing on these IOCs, why don't we look
183120	186360	at methodologies instead to look at how adversaries fundamentally
186360	189440	have to behave and start building out defense in that
189440	192320	respect. You know, furthermore, looking at the attacks in
192320	194920	question, you know, especially when we're talking about the
194920	197100	disruptive things, they're very specific to what they were
197100	200360	designed to disrupt. You know, Stuxnet, if you weren't running
200920	205020	a enrichment facility in Central Asia-ish or whatever, you really
205020	206560	didn't have to worry about it. It might have spread to your
206560	208340	system, but the way it was designed, it was really only
208340	210720	looking for a very specific environment to trigger its
210720	214300	payload. Uh, crash override was kind of modular, but at the same
214300	216860	time, you really needed to build up the capabilities in question
216860	219900	in order to deliver the effect on target. And then Trisys was
219900	223080	very specific, like if you're not running the exact piece of
223080	225500	equipment with the exact processor set and the exact
225500	228120	firmware set that it was built to, you really don't need to
228120	230640	worry about it. Very much designed for the target in
230640	233460	question. So again, if you're trying to build defense off of
233460	238080	these, using the IOCs from Trisys is useless, because unless
238080	240000	you're running that very specific piece of equipment,
240000	243080	which some people may, uh, it's not germane to your, your
243080	246060	interests. It's not relevant to defending your network. So what
246060	248820	we've really seen when it comes to, and you know, not to cast
248820	251740	dispersion on other researchers and, and whatnot, but when it
251740	254640	comes to talks like this or going to Black Hat and other big
254640	258140	events, and we look at things across the ICS cyber kill chain,
258140	262000	I'm sorry, you know, we really see things focusing on just that
262000	264920	final stage that, you know, execute attack, what's that
264920	267980	disruptive, destructive event, but we leave out all of these
267980	272000	other things. So what we really want to do is because past
272000	275120	events aren't all that sufficient to start designing a
275120	278520	more robust defensive framework, because we want to, you know,
278520	281320	look for other ways of going about this to see what it is
281320	283260	that we're missing and how we can move forward to build
283260	285720	something more robust, especially for a control system
285720	292300	environment. So while we've talked about, you know, the
292300	295080	scope and scale of ICS events, where do we get this larger
295080	298220	corpus of data then to start building stuff up? Well, really
298220	301060	we can just look at general IT infections because, you know,
301060	305180	buzzword here, IT OT convergence means that a lot of your classic
305180	308280	IT vulnerabilities and threat surface has been migrated into
308280	311260	the operational environment. You know, aside from marketing
311260	313680	buzz talk around that, you know, from a security perspective,
313680	315720	that's pretty damn important because it means that a lot of
315720	317640	the lessons and a lot of the things that we're seeing in IT
317640	320980	environments get moved into the ICS environment and are just as
320980	323140	effective there and perhaps even more so because we're dealing
323140	325980	with environments that don't have or are not amenable to the
325980	329660	fancy EDR solutions or, you know, complete visibility and
329660	332600	host-based logging and whatnot. So let's, what are the trends
332600	335060	that we're seeing in terms of IT-based attacks? Well, we're
335060	338460	seeing the rise again of the worms, you know, for those who
338460	340420	are maybe a little, this looks like a good audience, everyone
340420	343580	knows what conficker is, et cetera. But, you know, really a
343580	346860	return to that wormable sort of malware over the last year or
346860	349780	so. Uh, really seeing a re-emphasis on credential
349780	353080	capture and reuse. Uh, use of living off the land techniques
353080	356300	and running scripts in memory, leveraging native windows and
356300	359340	operating system, uh, technologies in order to execute
359340	361800	attacks. And then the unfortunate continued use of
361800	365980	wiper malware either as the end destructive event in question or
365980	367640	as a means of cleaning up one's tracks at the end of an
367640	372280	infection event. So in terms of worms, you know, WannaCry, uh,
372280	374640	I don't, Marcus isn't in here because we're not that important
374640	378420	but, uh, so WannaCry about a year ago, um, you know, everyone
378420	381580	was familiar with that. It was exploit-fueled, which meant that,
381580	383960	you know, if you're running SMBV1, it wasn't patched, you
383960	386460	had a bad day if anything that you had was touching the
386460	390840	internet back in June-ish of last year. But what was
390840	393540	interesting is that while that is still a problem, you can ask,
393540	396420	uh, TSMC, the Taiwanese chip manufacturer who had an issue
396420	399640	that they are attributing to WannaCry just this past weekend.
399660	401800	Uh, it's still an issue, but we've seen an evolution in how
401800	406460	these worms work when we went to NotPetya, BadRabbit, Olympic
406460	409460	Destroyer, and migrating away from just exploits and instead
409460	413120	building in things like Mimikatz to harvest credentials on the
413120	415860	fly and then use those to propagate. So it's relatively
415860	419100	low skill in a way. I mean, you have to design the software, but
419100	420720	once you've done that and deployed it, it's pretty much
420720	423940	fire and forget and let things take their course. So looking
423940	426220	at the evolution of worms, I didn't mention this originally
426220	429480	because it's, you know, Mirai, it's important, it's a worm,
429480	431840	used a hard-coded set of credentials to spread. Really
431840	435080	more Internet-of-shit focused than anything else, so not that
435080	437880	big of a deal when it comes to ICS environments. Then we moved
437880	441160	to WannaCry, we had, you know, the SMB exploit. That was pretty
441160	443100	nasty and it's still gonna be nasty in industrial
443100	446480	environments for probably the next 10 years as equipment ages
446480	448880	off and gets replaced and whatnot. But then when we
448880	451640	started getting into NotPetya and BadRabbit, we saw exploits
451640	454620	paired with credential capture in order to spread until
454620	456600	finally we got to OlympicDestroyer, which started
456600	460000	out with an initial seed of credentials that were harvested
460000	463520	through some preliminary operations and then used on-the-fly
463520	465880	capture and reuse to spread quite effectively through the
465880	469040	target network. Now, none of these are industrial-focused,
469040	472260	which is good, but almost all of them have had impacts in
472260	474760	industrial environments because their very nature has allowed
474760	477600	them to take advantage of certain network connections and
477600	479920	levels of connectivity to spread into areas where we really
479920	484460	don't want these things to be. So, you know, we're seeing a
484460	489340	movement towards that exploit-less migration by
489340	491560	harvesting credentials as malware moves throughout the
491560	494120	network, dumping things from LSAS and whatnot, and taking
494120	496380	advantage of the fact that people still stupidly run as a
496380	499840	local administrator all the time, and avoiding the use of
499840	503120	exploits and such, and thus facilitating living off the land
503120	505980	either in an automated fashion by continuing to build up the
505980	509880	capacity and capability of these worms, or pending that access
509880	511640	over that's gained through a wormable exploit to a human
511640	514800	operator so that they can take advantage of what this has been
514800	517880	able to, you know, worm its way into the network and spread.
518220	521380	That leads us to our next topic, living off the land. So, that's
521480	523760	a buzzword, I hate it, but, you know, I think I say that and
523760	526140	everyone kind of knows what I'm talking about, but if you don't,
526140	528520	you know, it's really we're talking about the use of native
528520	531600	Windows system commands, some legitimate system administration
531600	536360	tools like PS exec, as well as administrator-centric scripting
536360	539500	languages, PowerShell, WMI. No news to this audience, you know,
539500	542100	we know that these things are going on, but that's been a
542100	544580	really big shift across, you know, especially our more
544580	547760	advanced threat actors of really eschewing malware and going more
547760	552160	and more towards trying to blend in with native system activity.
552160	555160	Finally, wiper malware. This is like asshole stuff right here.
555160	557420	You know, now we're talking about destructive stuff that's
557420	560800	designed to wipe or otherwise, you know, render systems
561480	564900	unusable. You know, examples being the Shamoon attacks, the
564900	567680	Sony Pictures event, what else did I list there? Yeah. And
567680	570760	Olympic Destroyer was also a wiper as well. So I'm having a
570760	574840	screen resolution issue. So no worries there. But what we've
574840	578160	gotten from looking at this is that, okay, these might not,
578160	581140	these are certainly not ICS focused sort of attack
581140	583280	methodologies. But if we take a step back and instead of
583280	587860	focusing on that very last stage of how these ICS centric attacks
587860	591220	are executed, what I've just talked about facilitates
591220	593220	everything that goes on prior, whether that's your initial
593540	597180	intrusion into the IT network to get into the ICS environment, as
597180	600080	well as the ability to start moving within ICS to identify
600080	604800	your final targets and then deliver that bespoke, whatever,
604800	608700	destructive payload. So what we really want to do, you know, the
608700	610500	specifics of some of these commodity things aren't
610500	614460	relevant. I mean, I'm not a very big IOC fan. I blog about that
614460	616380	and then people yell at me on Twitter or whatever. But, you
616380	618700	know, I'm very much more focused on, you know, how are these
618700	622200	things fundamentally operating? And so looking at those sort of
622200	625460	general underlying trends gives us an idea of how the attack
625460	628380	landscape is shifting and how adversaries that are operating
628380	630360	within the industrial environments that this audience
630360	634260	cares about will execute attacks and what defenders need to do to
634260	637240	evolve to meet them. So expanding the kill chain not
637240	639660	only lets us get a view of, you know, things that we can get a
639660	642780	better grasp on, it also gives defenders the opportunity to
642780	646440	step in and catch these attacks at an earlier stage. So yes,
646440	650000	even if you were able to have a good signature to catch Trisis
650000	653860	or Crash Override or Stuxnet, yeah, I mean, but you're
653860	656640	catching perhaps the very last stage of a complex attack. So
656640	658960	you might just have averted boom, or you might have been
658960	662320	notified and got an email alert about boom 30 minutes before it
662320	664820	actually happens and no one's responded to it yet. That's not
664820	667840	terribly useful. Really, what we want to do is try and, you
667840	671300	know, move left of boom, sorry, former military, so I can
671300	674760	actually say that, I guess, too. But, you know, move further left
674760	677080	of boom as much as you can so that you can capture and
677080	679940	identify these attacks earlier in that kill chain process,
679940	683220	which makes and facilitates cleaning these things up and
683220	686500	mitigating any damage. So really what we're trying to do is, you
686500	690100	know, Venn diagrams are awesome, aren't they? But overlapping IT
690100	692900	attack trends on what the ICS, you know, threat environment
692900	695920	looks like, and really try and focus on that juicy center right
695920	698640	there for the threat surface. Like, that's really where an
698640	700720	adversary is going to be operating, where there's an
700720	706000	opportunity to go forth and stop those things, especially, again,
706000	708840	at an earlier potential stage, but also catch entire categories
708840	711820	of attack instead of worrying about very specific intrusion
711820	714620	events. Again, going back to the fact that many of these events
714620	717600	in question, when we look at concrete examples, are bespoke
717600	719760	in the sense that they're very much tuned to the target
719760	723800	environment in question. So in ICS, you know, worms, I think,
723800	727200	are a big frickin deal. I don't think enough attention has been
727200	730700	paid to this, despite the fact that Renault, FedEx, Maersk,
730700	733640	TSMC, etc., like lots of companies have had a bad day
733640	737260	just from an IT focused worm. Imagine if you take the same
737260	739860	capabilities that were leveraged in, you know, not even
739860	743140	leveraged, but unintentionally used in ICS environments, pair
743140	745260	that with something that's ICS specific in terms of
745260	749340	propagation and spread, and do something Stuxnet like in terms
749340	752340	of awareness for the environment that the malware is running into
752340	755660	at a payload. That's a scary day. I'm glad no one's done that
755660	757880	yet. Please don't take this idea and run with it and execute
757880	761380	that because that would not be cool. But, you know, really, it
761380	764100	could be quite effective means of getting into a network
764100	767060	burying in quite quickly before defenders might even know that
767060	770660	something's going on, and then detonating something further on.
771040	773640	Credential capture is very important as well, because, well,
773640	775640	one of the biggest reasons you don't have to use malware, if I
775640	779360	can log in as, you know, admin, admin, engineer, engineer, etc.
779480	783720	I don't need to exploit anything in that one lowers my signature
783720	785780	threshold. So even if you're running antivirus in the
785780	787840	environment, if I don't have to bring, you know, a piece of
787840	789960	malware in to do something, but you can just pivot around
789960	793060	through RDP and VPN tunnels, like, okay, that's one less
793060	795960	thing to look for, but also allows you to start modeling
795960	798340	legitimate activity, don't have to bring tools into the
798340	800840	environment, which is another touch point for defenders, and
800840	803480	really makes detection very hard. So, again, it's, you know,
803480	805360	it's something we need to deal with, but it's very much the
805360	808240	reality of the now as far as how these attacks are shaping up,
808240	811660	at least in their preliminary stages. Living off the land,
811660	813980	again, continues this theme, don't need to bring tools into
813980	816420	the environment, I've got all my toolkit right there with me,
816420	819200	maybe I bring PS exec into the environment so I can do some
819200	822160	remote process execution, but otherwise, I've got PowerShell,
822160	825940	what else do I need? I can run crap in memory and just copy,
825940	830080	good to go. You know, it really allows adversaries to just get
830080	833560	in, stay in, and not really have to do a lot of moving back and
833560	837400	forth from adversary-controlled infrastructure to the target
837400	841460	network. So what I'm trying to get at here is we're really
841460	844300	looking to build out what I call behavior-based defense.
844300	848040	Targeting the underlying adversary behaviors, targeting
848040	850780	what are necessary adversary touch points, you know, you
850780	853740	might say that, yes, there are potentially infinite different
853740	857480	ways of compiling and creating malware or whatnot to evade
857480	860720	signatures, but at the end of the day, an operator needs to
860720	862960	get control over implants or they need to design implants
862960	865900	with some sort of logic. They typically want to have some
865900	868000	means of staying within a network, some means of
868000	870760	persistence, but looking at those requirements then as means
870760	873560	of targeting what behaviors are necessary to achieve these
873560	877120	things, start avoiding the specific one-off implementations
877120	880380	reflected in an indicator and build a more robust detection
880380	883960	and monitoring framework. So when we're looking about these
883960	886720	things, we want to articulate tactics, techniques, and
886720	890380	procedures, PTPs, again, I'm a former military, I can say that,
890380	894940	and start identifying those underlying attack trends, map
894940	898120	those to the necessary adversary behaviors to execute
898120	901300	successfully an attack, and then start building out defensive
902120	905460	responses, detection frameworks, and playbooks for response
905460	908660	based upon what an adversary just simply has to do in order
908660	912080	to be successful, moving away from the final stages of that
912080	917320	ICS attack kill chain. So, things that we could look for,
917320	920600	you know, pursue those adversary goals. What is it that the
920600	923620	attacker needs to do to achieve things, target those, and move
923620	926640	on? You know, looking for attackers trying to abuse
926640	930220	legitimate commands, etc. These are not easy problems to answer
930220	932980	and I'm not up here to sell a blinky box that's gonna sit in
932980	935540	the rack that tells us, and people who do typically are
935540	937820	selling a little bit of snake oil, uh, you know, these are
937820	941000	difficult things to sort of answer and requires both a
941000	944040	commitment on the part of defenders to start building up a
944040	946420	profile of what attackers are doing, and then building up the
946420	949340	visibility to actually be able to track these sorts of things.
949340	951580	So, what we want to do is, you know, you identify a
951580	954200	fundamental behavior, you know, adversaries need command and
954200	956780	control. C2 is required, unless you're a vulnerable piece of
956780	959660	malware, but even then you might need some C2 of some sort for a
959660	962380	little bit of control over how that worm might interact. So,
962380	965480	like, that fundamental idea of C2 is necessary. Well, how are
965480	969280	different ways of implementing that possible? You know, what
969280	973200	does DNS tunneling look like? What does a, you know,
973200	976620	anomalous, hate that word, uh, HTTP connection coming out of
976620	979280	the network look like? Look at those ways, those broad-based
979280	981160	ways of implementing it, and then what sort of detections
981160	984020	can I build around there? And as far as possible, try to avoid
984020	986940	that last stage, because you can have near-infinite
987360	989780	instantiations of each of these more general items in terms of
989780	993100	concrete observables. Those will change quite trivially, uh, not
993100	995720	as trivially in some cases as possible because people are
995720	998500	lazy humans, but, you know, it's really trying to stay at this
998500	1001240	middle ground here to capture both the fundamental
1001240	1004400	requirements in terms of an attack execution while avoiding
1004400	1008060	the sort of limitations afforded by, you know, focusing at that
1008060	1011600	observable stage. So in implementing a behavior-based
1011600	1013980	approach to ICS defense, we really want to identify those
1013980	1017560	behaviors of interest, try and get an idea of the different
1017560	1021520	means of achieving those behavioral objectives, um, you
1021520	1025340	know, determine... is that a notification? I'm sorry. Uh, and
1025340	1028540	then build out means of detecting these things as they
1028540	1031960	move along the line. So for an example, with credential theft,
1031960	1034060	uh, credential theft and reuse happens. Well, how does it
1034060	1038120	happen? So there's both the, you know, minicats dumping LSAS
1038120	1040940	memory in order to achieve it. What does that look like? Well,
1043020	1047380	yeah. Posted network visibility are important items in terms of
1047380	1049600	answering this. So, like, in order to see when these events
1049600	1052480	happen, what sort of visibility, what, uh, information
1052480	1054960	telemetry do I need to track it? And then how do I then build
1054960	1058560	out an appropriate security response in order to defeat it?
1059300	1061980	So the thing is, is that do not alert on minicats. I mean,
1061980	1064200	maybe, like, you know, if someone wants to compile the
1064200	1066140	source code off of GitHub and they're stupid enough to do
1066140	1068420	that, all right, we can alert on that hash to catch the lazy
1068420	1070760	bottom feeding address areas. Although interesting enough,
1070760	1072600	some advanced ones have done this in environments that I'm
1072600	1075900	familiar with. Uh, but really the main idea is to focus on,
1075900	1078960	well, what does minicats allow you to do? How do I start
1078960	1081440	looking at that idea, not just of seeing the initial
1081440	1083880	credential dump, but then how that's actually implemented by
1083880	1087820	looking for logon activity that may be of interest, uh, you
1087820	1090700	know, anomalous, suspicious, or definitely malicious, and start
1090700	1094540	designing my defensive framework around that. So to talk about a
1094540	1097000	concrete example of this, let's talk about crash override. Why
1097000	1099500	talk about crash override? Well, because I worked on that a lot
1099500	1102540	and so I can talk about it to a certain level of detail. It's
1102680	1106120	also a pretty important attack in the ICS space. In this case,
1106120	1108300	the attack took place, you know, they had to penetrate the ICS
1108300	1111360	network, establish some sense of some sort of foothold, survey
1111360	1113260	the environment, get a feel what's going on there and then
1113260	1115700	deliver the attack. What's that sound like? It sounds like that
1115700	1117700	kill chain thing that we were talking about before, meaning
1117700	1121960	that getting from here to there requires a lot of time, effort
1121960	1124420	and other work in order to really execute it. So if you're
1124420	1128180	only focusing on this final stage right here, you've just
1128180	1132840	seeded your pen testing friends or your nasty black hat actors
1132840	1135740	all sorts of ground in terms of where they're able to operate
1135740	1138980	fat and happy without you being able to see it. So building up
1138980	1142220	stuff around here lets you start catching this sort of activity.
1143200	1146100	The crash override event required a lot of prepositioning
1146100	1149080	to execute and looking at how that prepositioning took place,
1149740	1152040	you know, at least from what we've observed so far and
1152040	1155500	reported mostly privately to this point, what we observed was
1155640	1158520	a lot of credential capture and reuse. We observed beamy cats in
1158520	1161680	the environment, not just beamy cats, but like beamy cats
1161680	1164420	dumped off the GitHub repo, packed with UPX and then
1164420	1167600	deployed. That's a pretty easy damn signature, actually. And
1167600	1170040	then a lot of use of native system commands and tools in
1170040	1172040	order to then facilitate movement of malware throughout
1172040	1174760	the network. So really mapping on right to those same trends
1174760	1179140	that we identified in terms of more general ICS attacks. So
1179140	1184160	yeah, we saw a pack copy of beamy cats, PS exec 2.11 in
1184160	1186400	terms of what was used in the environment for remote process
1186400	1189360	execution. And then a bunch of scripts that could have been
1189360	1193140	pulled from a tech net help page or from, you know, stack
1193140	1196880	overflow in order to facilitate things like system survey,
1196880	1199480	monitoring, verifying that file is removed, and then doing some
1199480	1201980	also remote execution stuff. So we're not talking about
1201980	1203980	anything that's really advanced here and really mapping right
1203980	1207220	on to what we've talked about so far. So for an example, here's
1207220	1209900	an ugly ass script that was used by the adversary Electrum
1209900	1213300	within this environment. On its face, it looks very much like
1213300	1217300	something you'd expect using WMI and W script in order to just do
1217300	1219420	some system profiling if you're trying to get a feel for what's
1219420	1222260	in your environment. You know, what's the so what there? Among
1222260	1224960	other things, you know, there's no obfuscation whatsoever going
1224960	1227980	on in here. So from a visibility standpoint, are you actually
1227980	1230360	monitoring for these things as they pop up within your network
1230360	1233260	to the extent possible? The example I like to give it, I've
1233260	1236200	given a talk on this previously a few times, is pairing bro for
1236200	1238820	file carving with things like Yara in order to do a deep dive
1238820	1241180	into them. Well, you can search for script files and then look
1241180	1243420	for these sort of administrator commands identifying system
1243420	1246080	profiling to at least identify when these things are moving
1246080	1248560	around, which could be a good touch point that something a
1248560	1251360	little shady might be going on in the environment. So we've
1251360	1253620	seen an overlap with some of these same general TTPs we
1253620	1256760	talked about. And believe it or not, I didn't just like sort of
1256760	1259340	shoehorn this in like, you know, it's kind of like came to me in
1259460	1262520	a dream fueled mostly likely by alcohol or something similar
1262520	1264760	that, you know, hey, like, you know, what we're seeing with
1264760	1266720	these general attacks actually kind of maps right on to what we
1266720	1269440	observed in the crash override event from soup to nuts. So
1269440	1271760	really looking for, you know, how do we start tracking and
1271760	1274440	identifying these sorts of things to build out some robust
1274440	1276800	defense, because at the end of the day, these adversaries are
1276800	1278940	following the same sort of script and playbook that we're
1278940	1283300	seeing the more lower level attacks use. So defense against
1283300	1285560	this, you know, really need to build defenses around what we
1285560	1288540	talked about earlier in terms of IT attack trends, you know,
1288540	1291280	credential replay and reuse. How do you identify when that's
1291280	1293760	taking place? How do you identify that living off the
1293760	1297100	lands tech taking place? But once you do that, and I'm sorry,
1297100	1298920	we have a short timeframe here. So we're not going to get too
1298920	1302880	much into the weeds on that. But the result of doing that sort of
1302880	1306100	defensive playbook is that you've now not just built up a
1306100	1308800	defense against how the Electrum adversary responsible for crash
1308800	1311700	override operates, you've also covered a lot of other attack
1311700	1313880	pathways as well for other adversaries that are going to
1313880	1319100	try and do roughly the same damn thing. So we've actually seen
1319100	1321820	this within the ICS environment, looking at some of the events
1321820	1325160	that have taken place over the last year ish, give or take
1325780	1328960	Alanite, which is in the news yet again, when DHS decided to
1328960	1332240	re-release after they re-released news about the
1332240	1334560	Russians in the US electric grid, a lot of their
1334560	1337580	operations, credential capture and reuse and using a lot of
1337580	1340240	scripts and system commands. Same thing looking at the
1340240	1343280	Zenotime adversary responsible for Trisys or Triton. I don't
1343280	1346780	know who sat in on the Black Hat talk on that if you had access
1346780	1349260	to that talk, but you know, unfortunately, they didn't go
1349260	1351940	into the actual preliminary for the attack. But if you look at
1351940	1354460	how the attack was executed in the environment, again, seeing
1354600	1357300	a lot of the same things, Amecats, using native system
1357300	1360200	tools, maybe a few custom scripts and custom binaries, but
1360200	1362840	overall, really mapping on to how we're observing these
1362840	1367260	attacks play out in, you know, the IT landscape. So the impact
1367260	1369280	is, is that when you once you start covering something like
1369280	1372800	credential theft, not only are you defending against a, you
1372800	1375000	know, specific adversary, but you're defending against entire
1375000	1377640	classes of behavior, which means that you get a better
1377640	1380560	opportunity in order to try and identify and defeat multiple
1380560	1383540	different things as a result of that sort of commonality and,
1383540	1387180	you know, very fundamental overlap in TTP. Worms are
1387180	1389520	another example. So wormable infections, as I mentioned
1389520	1392060	earlier, are really scary and worry me because I think they
1392060	1394140	can kick our ass in the ICS environment if someone
1394140	1396720	sufficiently weaponizes it and we've seen it before. Again,
1396720	1401580	Stuxnet, Drink. But, you know, that ability to move and burrow
1401580	1403600	within a network with no oversight is truly scary
1403600	1407000	because it allows for that unsupervised migration into the
1407000	1410080	network and potential to deploy a capability with very little
1410080	1412800	human intervention. And as we've seen with certain ICS
1412800	1416800	impacting but IT focused malware sets, they were quite effective
1416800	1420940	even though they weren't, didn't intend to be so. So, so far
1420940	1423300	again, the only ICS targeting worm is Stuxnet, but others have
1423300	1426520	had ICS impacts. And so focusing on how those impacts came
1426520	1429000	about and how those might be changed and weaponized in the
1429000	1431760	future, gives us a good warning for what we need to start doing
1432480	1435260	now, I would say like six months ago, and we're gonna shore up
1435260	1438060	against these things. And as any ICS professional can tell you,
1438060	1441640	just saying, well, apply the patch for MS1710. Like, well, I
1441640	1443580	can't necessarily do that everywhere unless I want to
1443580	1446220	void my warranty, or, you know, maybe the vendor doesn't
1446220	1449720	support it yet, or I need SMBV1 because my historian product
1449720	1452780	requires it in order to move data around the network, etc. So
1452780	1455000	there's a lot of dependencies here and just saying, apply the
1455000	1458480	patch is not a good answer. And yes, and the result of not a
1458480	1461500	good answer is that you get this happening in this environment,
1462120	1464780	which is not a good day. I imagine that the poor process
1464780	1469060	engineer in that facility had, I hope he got a beer after that,
1469060	1472560	if nothing else, because it's a pain to deal with. So we've
1472560	1475980	avoided, as far as trends within worms, is that we've seen first
1475980	1478620	off, the avoidance of exploits as time has moved on. So we
1478620	1481080	started out like Stuxnet is still the crown jewel or
1481080	1483180	whatever, a couple of Windows Zero days and some other fancy
1483180	1486260	shit, not everyone can do that. Mirai, okay, a bunch of
1486260	1489080	hardcoded passwords for internet of shit things. But then seeing
1489080	1492300	the weaponization of MS1710, very effective, still going to
1492300	1494660	be effective for the future. But then adversaries start getting
1494780	1497820	a little savvier and start doing that integrated credential
1497820	1501960	capture and replay to facilitate propagation. So using native
1501960	1505040	means within the system, like net use commands, and you know,
1505040	1508360	doing mapping shares to try and copy itself over and avoiding
1508360	1511280	the use of what looks like, you know, obvious malicious code.
1511280	1513780	And finally, a shift to wipers at the end, this is the asshole
1513780	1516340	move. So we saw it with NotPetya, we saw it again with
1516340	1518880	Olympic Destroyer, you know, what's the worm doing, get on
1518880	1522400	target, start doing, you know, mucking with the system and make
1522400	1525800	it unbootable or wipe data because you, you know, deployed
1525800	1528380	ransomware that has no decryption key. In an ICS
1528380	1530880	environment, that's a very bad day, unless you are backing up
1530880	1534060	all your project files offline, etc. That's going to ruin you
1534060	1537720	very fast and make your network quite untenable to operate. So
1537720	1540640	the risk to ICS is that you get some self propagating malware
1540640	1543360	introduced to the environment, it finds and traverses an IT
1543360	1547140	ICS link. That might not sound reasonable, but then again, look
1547140	1550040	at WannaCry, take advantage of some SMB links from historians
1550040	1552760	to business process systems in the IT network and boom, you got
1552760	1555800	WannaCry in the OT environment. And then if you can just
1555800	1558440	weaponize that by tacking on some sort of ICS specific
1558440	1561340	payload, the step that has not been taken yet, thank goodness,
1561340	1565580	you get a really big problem that crops up. So really, what
1565580	1570540	you can do is like Stuxnet for dummies. You know, to think that
1570540	1573380	we've kind of like moved back to what was the most advanced
1573380	1576060	attack yet no one really seemed to like build off of that a
1576060	1578900	little bit is kind of surprising. Yet, that's kind of
1578900	1582300	where we are. If you can start taking these sorts of attack
1582300	1584800	pathways and weaponize them in such a fashion that you're not
1584800	1587860	relying on the exploits and add that ICS component, you get a
1587860	1590600	very robust attack that can result in disruption or even
1590600	1592900	potentially destructive destruction if you have a good
1592900	1596400	enough ICS attack developer. So in building defense, you know,
1596400	1598600	how do we want to do this? Well, what's one of the fundamentals
1598600	1601660	behind how this attack executes? Well, it has to spread. So
1601660	1604320	looking at how things can spread within your network, do you have
1604320	1606900	network choke points? Does your network look like the top of
1606900	1610680	this podium in terms of how flat it is? If it does, then you have
1610840	1613140	a problem because if you get a wormable infection on just that
1613140	1615320	one central node or one of them, it's going to propagate
1615320	1618280	everywhere quite quickly. But if you establish choke points and
1618280	1620760	use those as a means of hardening defense by, you know,
1620760	1622940	building them up as bastion hosts or something along those
1622940	1625360	lines, then you get the ability to stop these sorts of things in
1625360	1628620	their tracks, or at least sort of limit the damage by allowing
1628620	1631100	you to filter to a certain specific endpoint and being able
1631100	1634120	to take action there. And then reducing that attack surface. So
1634120	1637400	identifying what those IT ICS traversing links are, locking
1637400	1640140	those down as much as possible, and maybe making sure that they
1640140	1642760	host on the other end of those, you know, whether that's putting
1642760	1647020	in something like a, you know, VPN gateway or some other sort
1647020	1649680	of bastion host, making sure that guy's patched, probably a
1649680	1652600	good idea. Finally, you want to increase visibility within the
1652600	1655220	network with worms might not help too much, because it's just
1655220	1657280	going to tell you what happened after the fact, which is
1657280	1659940	actually not trivial, because just being able to say that, hey,
1659940	1662400	we know why this happened is still an important question to
1662400	1667420	answer. But can inform detection, mitigation, and also
1667420	1670200	recovery by being able to track how an attack was actually
1670200	1673180	executed within the environment. So the impact is, is that will
1673180	1675020	hopefully get better architecture, you know, you
1675020	1677260	actually have a segmented network, some sane permissions
1677260	1679620	in place, etc. And you've reduced your attack surface to
1679620	1682240	mitigate other attacks, and you've narrowed the possibilities
1682240	1684640	for interactive intrusion, while you're taking care of that
1684640	1687440	wormable threat. So by focusing in how these things self
1687440	1689800	propagate, you've now taken care of or at least started to
1689800	1693100	address problems like, you know, RDP use by using captured
1693100	1696420	credentials by a human in the loop, taking advantage of single
1696420	1698360	points of failure in the network in order to start spreading
1698360	1701080	malware willy nilly within the control system network. So
1701080	1704700	really, again, taking advantage of what ideas are afforded by
1704700	1709860	these general IT attack trends to improve ICS based defense. So
1709860	1711880	in developing defense, you know, what really we want to, you
1711880	1714540	know, identify those sort of common commodity sorts of
1714540	1717100	attacks and start building up an idea of how these things
1717100	1719700	look within the environment, and then close at the sort of
1719700	1722500	pinnacle with how we're going to start building detections and
1722500	1725900	response around them. And again, the idea being is that once you
1725900	1728600	start getting up here and developing ways of responding
1728600	1731020	and identifying these, that you're covering a very broad
1731020	1734480	base of potential attacks based upon the identification of
1734480	1737880	fundamental behaviors that adversaries are taking. So
1737880	1740120	ultimately, and I just got a five minute warning, so we're
1740120	1745000	out of time for questions, is if you look at how attacks play
1745000	1747320	out, and I know this is a sort of an offensive conference, I'm
1747320	1751360	sorry, I'm a, like, blue teamer all the way, that defense really
1751360	1753780	has the advantage when it comes to ICS defense if you're doing
1753780	1756440	this sort of work. Because when you look at how an adversary
1756440	1759120	has to operate, they've got a lot of steps that they have to
1759120	1763840	succeed in in order to actually execute, what the... there we
1763840	1767620	go, in order to actually execute an IT, an ICS based attack.
1767620	1769460	They've got to get into the IT network, they've got to figure
1769460	1771900	out how to move from the IT network to get into the control
1771900	1774320	system network, figure out where the hell they are and
1774320	1776360	what's in that control system network if they haven't
1776360	1778420	harvested that from a spreadsheet sitting on the IT
1778420	1781180	network, which hopefully they didn't. But even if that step's
1781180	1782720	been accomplished and they already know what they're
1782720	1785640	getting into, you still have to get onto those devices, tunnel
1785640	1788060	into where you can actually start delivering a destructive
1788060	1790800	or destructive payload and deploy it. That's a lot of
1790800	1793380	touch points that as defenders you can use in order to trigger
1793380	1796500	off of what's going on and thus build out a more robust
1796500	1799680	multi-stage defense. And if you're lucky, you get them
1799680	1802140	here. If nothing else, you just want to make sure that your
1802140	1804140	response isn't when you see smoke coming up from one of the
1804140	1807640	machines on the plant floor. But really by following these
1807640	1810260	steps, I would say that defense legitimately has the advantage
1810260	1813420	and having done maybe things that are more on the attacker
1813420	1816420	side, it's harder than it looks and it's harder than we often
1816420	1818940	make it seem and adopting that approach, again, sorry,
1818940	1821700	defender here, really drives home the point that defense is
1821700	1823960	doable within these environments. So that's all I've
1823960	1842640	got. And now we've got a fast question. I don't know. I wish
1842640	1847660	I did. There's still a lot of details around that attack that
1847660	1850440	either are not public or just simply unknown for various
1850440	1853100	reasons. So we're still poking at that one and hoping to
1853100	1854780	answer that question someday. But unfortunately, I don't have
1854780	1856060	an answer for you right now.
1878220	1881180	Yes, that's a good question. And that's again goes to my
1881180	1884120	scary scenario. So I've seen some other talks or whatever,
1884120	1886740	like, oh, building an ICS attack is easy or whatever, you
1886740	1889720	just buy some stuff off eBay and rip some firmware or whatever.
1889720	1892340	And boom, you build an exploit. It's not that easy, thank
1892340	1894860	goodness, because again, a lot of the benefit to that is
1894860	1896940	depending on how you're building out an attack and what
1896940	1900380	equipment you're targeting. The unfortunate diversity in
1900380	1905660	vendors, standards and protocols builds in a unintentional layer
1905660	1909160	of security in that something that's going to say, attack the
1909160	1912380	DMP3 protocol for North American electric operations,
1912380	1916380	could be inapplicable for targeting, say, IEC 61850, which
1916380	1919200	well, no, that's a bad example. IEC 104, crash override
1919200	1921960	example, more prevalent in Europe and the Middle East. So
1921960	1924220	it really depends on what sort of targets you're looking at,
1924220	1925980	what you're actually identifying, and then weaponizing
1925980	1929120	it in that fashion. So it is possible, though, like we may,
1929120	1931220	well, we didn't really see it. And this will be a talk
1931220	1934900	tomorrow, the Modbus capture capability for VPN filter.
1934900	1936840	People have kind of implemented something along these lines
1936840	1939340	already. But that's only one example. And that is
1939340	1942180	allegedly, we'll talk to Mr. DeSantis tomorrow,
1942800	1945140	state-sponsored sort of activity, so not talking about
1945140	1948660	just any Johnny off the street executing that attack. So in
1948660	1950940	terms of the possibility of developing that, and again,
1950940	1953020	it's going to take time, effort, and resources to build
1953020	1955800	that out, but it's not impossible. And we've already
1955800	1958160	seen someone getting part of the way there with Olympic
1958160	1961100	Destroyer, because even just the capability that it offered,
1961100	1963560	which was very Windows system focused in terms of, well,
1963560	1966460	what's funny, Olympic Destroyer, the wiper function
1966460	1968980	operated very similar to the wiper function in crash
1968980	1971820	override, in that on top of wiping some files, it also
1971820	1974620	remapped systems in a way to render the system unbootable.
1974620	1976580	So really using the same sort of behavior, again, behavior
1976580	1980040	based defense. But if you ran that in an ICS network and it
1980040	1982360	spreads to Windows machines there, and you can do that by,
1982360	1985620	you know, deploy an implant that sniffs for Modbus traffic
1985620	1987760	on the wire. If it's in a situation where it detects
1987760	1990460	Modbus, I might be in the ICS network. Let me fire the wiper
1990460	1992480	there because I'm going to do more damage. Please don't take
1992480	1997900	that idea. But anyway, and at that point, you're wiping HMIs
1997900	2000600	and engineering workstations, which, yeah, maybe you haven't
2000600	2003000	caused physical destruction, but you've disabled your plant
2003000	2005280	environment and your engineers can't do their job. So, yeah,
2005280	2007560	it's evidently possible. It's just not necessarily the
2007560	2008620	easiest thing to do.
2019250	2021830	I do. You know, and that's one thing, like, everyone wants to
2021830	2024070	bemoan the state of ICS security. Like, oh, the vendors
2024070	2026110	are shit. The engineers don't want to patch their crop or
2026110	2028110	whatever. Like, no, I think everyone's taking this serious.
2028190	2031270	The problem is, is that you're not, like, for the same reason
2031270	2033370	why WannaCry is going to be a problem for the next five, ten
2033370	2035430	years, probably, is that you just don't, like, oh, well,
2035430	2037190	replace that piece of equipment. Like, that cost a
2037190	2038350	million dollars.
2039050	2041850	Right, exactly, which is the issue. So, as a result, we get
2041970	2044770	a really long tail, you know, that we're dragging behind us
2044770	2047150	of legacy equipment with its own sort of problems, which is
2047150	2050450	why, again, building that, you know, layered defensive model
2050450	2052950	is important because, like, yeah, I might have some PLCs or
2052950	2055030	whatever that those are going to be vulnerable to, you know,
2055030	2058050	MS-867 or whatever for the next 20 years, and I'm not ripping
2058050	2061590	them out anytime soon. But I've got these HMIs and EWs that are
2061590	2063970	sitting a little further upstream. I can harden those,
2063970	2066150	though, to make sure that, you know, that lessens the
2066150	2068530	likelihood that someone will be able to take advantage of the
2068530	2071290	weaker equipment at a lower layer of the Purdue model.
2074980	2079780	Yes. No, unless you're nuclear power, there is no air gap.
2079780	2083260	Sorry, that ship sailed a long time ago. Yeah, I mean, just
2083260	2085980	that's a fact of life. Look at vendor documentation. You want
2085980	2088360	updates? Well, you have to have network connectivity. Sorry.
2088720	2090980	And you know what? We get a lot of efficiencies out of having
2090980	2093100	no air gap in terms of, you know, even something as
2093100	2097000	fundamental, which allowed for WannaCry, you know, the way it
2097000	2099340	was implemented was wrong, but the fact that it's there is
2099340	2101920	sort of good. You know, links from data historians to
2101920	2105480	business process servers or systems within the IT network.
2105600	2107660	You know, I like having accurate electric bills or, you know,
2107660	2110300	being able to actually measure my processor and whatnot. So,
2110300	2112520	yeah, these things are here and here to stay. So the best thing
2112520	2114580	is, instead of bemoaning, like, oh, my God, if only we could
2114580	2116620	air gap these things, like, eh, pump your brakes, you can't do
2116620	2119720	that. You know, identify that that is no longer the case, and
2119720	2124560	how do we actually go about defending it then? All right.
2124720	2128600	It's hot in here. So, yeah. Thanks, everyone, for showing
2128600	2129000	up.
