start	end	text
0	5340	Hey everybody, my name's Austin Scott. I'm going to kick this off here. I'm talking about
5340	12440	purple teaming in ICS networks. So on the agenda today, we're going to be talking about
12440	16340	some of the basic definitions, sort of set the stage so that we're all on the same page
16340	23540	as far as defining what the different assessments are and the different categories. People have
23540	28120	different ideas of what they are, so I'll share mine. Then we'll get into some of the
28120	34320	ICS-specific challenges that we face doing assessments in these sensitive environments.
34560	40000	Then we'll get into story time. I'll share a couple stories from the field where the
40560	45680	names of the companies have been removed for their protection, but I'll talk about some
45680	49480	of my personal experience in these networks.
52300	58600	So, first, a little bit about me. I work for a company called Dragos, and we are a software
59580	66880	platform company. We have a product called the Dragos Platform that provides passive
66880	72980	monitoring and visibility into ICS networks. Our product's secret sauce is its threat-based
72980	81740	analytics, which are curated by our Intel team and our worldview reports. So our analytics
81740	87820	are very focused on the actual threats that we see and that have been recorded and reported
87820	92940	in the field. The other part of our secret sauce are the playbooks. So when an alert
92940	97500	comes in or a threat is detected, what do you do next? So part of my job is writing
97580	104500	a lot of the playbooks that provide details to the operator of the Dragos Platform about
105560	111420	what steps to take to triage what the different technologies are that they may find. Like,
111420	118060	you know, what's DMP3? What's a new master station? Things like that. As these alerts
118060	123000	come up, there's a lot of rich detail, ICS-specific detail that we embed into those playbooks
123000	130160	so people will know what to do next. And I've been working in the industry for 16 years
130160	136660	now. I started my career doing software development, actually building products for Schneider Electric,
136660	143040	building SCADA products on their software team, and then migrated into more integration.
143040	147300	I used to do some PLC programming and that kind of stuff in the field. And then I migrated
147300	152500	into cybersecurity for industrial control systems and I've never really looked back.
153180	157000	So I've got a lot of experience in the field, not only doing cybersecurity assessments,
157000	161220	but actually doing system integration and wonderful things like that.
162880	168320	So let's jump right into the definitions here. So I'm sure a lot of you are familiar with
168320	175580	these terms, but just so we're all on the same page, cybersecurity assessments are typically
175580	183140	categorized into shades of boxes. Of course, the white box is all the data being shared
183140	188280	during the assessment or up front, black box being none of the data being shared. So it's
188720	193780	a black box, you can't see into it. And then a gray box is somewhere in between white and
193780	202440	black. So we find that gray box testing simulates an activity group that has access to an environment
202440	209780	for an extended amount of time. And this is typically referenced as an activity group's
209780	214480	dwell time. We see in this industry that when an activity group gets in, they hang out for
214580	219220	a while and collect a lot of pertinent information to the environment before they mature enough
219220	228220	to do ICS attacks. So gray box testing is more what we lean towards when we only have
228280	235260	a one-week assessment. We don't have months to collect all that information. And jumping
237420	245320	into ICS assessment types. So these are common terms, but I want to introduce them here and
245320	252220	talk about sort of how they are different from their IT assessment type cousins. An
252220	258780	ICS vulnerability assessment is more of a passive review of documentation and sampling
258780	268480	of data opportunistically to provide an overall view of the cyber risk of an environment.
269500	276920	And an ICS penetration test is more of a white box or gray box active assessment where we're
276920	280920	testing for vulnerabilities and actually trying to exploit those vulnerabilities to prove
280920	285980	that the risk exists in the environment. And finally, a red team assessment is typically
285980	301120	more of a black box adversary simulation where we're going in without giving the IT SOC or
301120	307140	the ICS security team a heads up and detecting or testing their detection and the effectiveness
307140	318980	of their security controls. And finally, purple team is sort of a combination of red team
318980	326440	and blue team. So a red team on the offensive side, blue team on the defensive side. It's
326540	331700	a more of a collaborative approach to assessments where they're working together towards a common
331700	339160	goal of reducing cyber risk. And what's particularly unique about ICS purple team is that they
339880	345380	the blue team is usually comprised of not only cyber security folks but also the engineering
345380	352780	team, site operations team, and other personnel who are actively using the ICS environment
352780	362820	and are familiar with it. So let's talk a little bit about the role of the blue team
362820	371180	in the ICS purple team engagement. So the blue team will provide pertinent information
371180	376480	to the red team to help them progress through the network more quickly. And this is kind
376480	381400	of to simulate that dwell time that an activity group would typically have in an environment.
381560	385660	We only have a week to do this assessment, so having six months to collect all that information
385660	390940	organically just isn't an option. So having the blue team provide hints and information
390940	396160	and diagrams and IP addresses and even credentials at times will help us to maneuver through
396160	402720	the network more quickly and have an opportunity to really test their defense mechanisms and
402720	411580	detection mechanisms. And the red team's role is to communicate as they're enumerating,
411580	417400	as they're attacking, as they're doing network pivots and privilege escalation, and most
417400	424400	importantly to assist the blue team in troubleshooting their detection capabilities and their...
428840	433820	and coming up with recommendations for improving their detection and logging capabilities in
433820	437940	real time. So that's where we really see a lot of that value, is that opportunity to
437940	447360	really be that adversary and tune those settings as they go. So let's jump into some of the
447360	453620	ICS assessment-specific challenges. Now, there's some differences between an ICS assessment
453620	461200	and its IT cousin. One of the most important ones is the difference in safety and reliability.
461360	465640	Safety and reliability is paramount in these ICS environments, and quite often there's
465720	470800	a strong safety culture in these environments that we need to adhere to and be aligned with,
470800	476240	and any behavior that deviates from that could get a contractor banned or barred from that
476240	482060	site permanently. So we have to really be aware of that safety culture and watch out
482060	486780	for even small infractions or major infractions. Things that can get a contractor kicked out
486780	492980	are improper PPE, not taking the right gear for the environment you're working in, going
492980	500220	into unauthorized areas or unrestricted areas, speeding in the parking lot, not holding handrails,
501760	508160	going into areas with equipment that are class one, div one, that have traces of explosive
508160	513020	gases. If you bring your cell phone in there, that could cause a real risk to the plant.
514620	522280	So that's some of the safety issues that we are concerned about. And also touching anything,
522280	526740	like basically touching anything in the ICS environment without permission from the operators
526740	531700	or the operations team is a big no-no. Whether it's an oil and gas environment or a food
531700	536260	and bev, you can't touch anything without permission. And doing so could be barred from
536260	543240	the site pretty quickly. And on the reliability side, the site operations team and engineering
543240	549420	teams are very sensitive to the reliability of the system. So putting the ICS system into
549420	555360	any unknown state or unrecoverable state can be dangerous to the people on site, can be
555360	560160	very damaging to the equipment, and cause costly outages and downtime. Sometimes an
560160	564780	hour of downtime can be measured in millions of dollars. So it's something that the site
564780	569960	personnel are very sensitive to. And quite often, people's pay, their bonuses for the
569960	573840	year are tied to things like safety performance and reliability performance. So if you put
573840	581940	that in jeopardy, you're not going to be very popular at the site. So really, performing
581940	586980	any action that even has a remote possibility of tripping the process is out of the question.
587280	594200	So most sites often don't allow us to add any packets to the network. Any kind of active
594940	601400	information gathering is out of bounds for us quite often, especially in the level one,
601400	605080	level two areas of the Purdue network, the lower areas where the controllers and the
605080	611920	PLCs and SCADA equipment is. So we have to use more passive methods of collecting data
611940	617160	that don't introduce any risk into the environment. So pulling the data manually from these environments
617160	622260	and doing data collection, PCAP collection from SPAN ports, things like that that's very
622260	626740	passive that won't introduce any risk to that environment. And even if you do, even if you're
626740	630760	quite confident that you're not going to cause an outage or your scanning won't create an
630760	635220	issue, if the site has any issues, any kind of outages or problems while you're there
635220	640380	and you're putting packets on that network, they're definitely going to blame you. You're
640380	645820	going to be really careful about putting anything on that network. So why would we
645820	650740	test ICS networks? Why even bother if it's so dangerous? Well, it's important to do the
650740	654780	testing because activity groups are targeting these environments. They're actively targeting
654780	660080	these environments. We see it. We've got the intel to back that up. So it makes sense for
660080	666660	us to actively assess these and see what those adversary activity groups would potentially
666660	676680	run into if they did try to breach these networks. So it does require some careful planning and
676680	683340	experience working in these environments. We do need to be constantly communicating
683340	688360	with the operations folks to be successful. And often we have to find creative ways of
688360	692540	avoiding putting packets on the network, like setting up lab equipment or testing in a training
692540	698780	environment or virtualization or even testing during an outage when the site is not running.
700860	707080	So the next point on specialized equipment. Each ICS environment is unique. It's engineered,
707080	711280	built to solve a particular problem. And the technologies you'll find on one site won't
711280	716040	necessarily be the technologies you'll find on another. So there's a lot of very specific
716040	721700	engineering tools and protocols and wireless and OT technologies that are unique to ICS
721700	725440	that you won't find in IT environments at all. So understanding those, having experience
725440	731780	with those is very important to your success. Quite often, almost always, we'll do what
731780	736860	we call a crown jewel assessment during our assessments where we identify the critical
736860	744340	assets that can really impact the business, can put people's lives at risk. And we can
744340	749580	focus our engagement on protecting those or trying to reach those crown jewel assets.
750080	755260	So an example of that, in an oil and gas site, if you find a critical vulnerability in some
755260	759560	disposal well, and they've got 30 disposal wells at the site, no one's really going to
759560	765720	care. But if you find a critical vulnerability in their custody transfer meter, that's like
765720	769120	the CAS register of that oil and gas site, they're going to be a lot more concerned about
769120	777800	someone interfering with that piece of equipment. And communication is also critical. Operators
777800	781980	will want to know exactly what you're doing at any given time. Quite often, you'll be
781980	785820	doing this assessment with an operator over either shoulder, breathing down your neck
785820	792800	as you're doing the assessment. It's a bit unnerving. And before you do anything to the
792800	795420	network, or you want to try anything or touch anything, you always have to ask permission
795420	799640	and have that constant communication and that transparency with those operators so they're
799640	804780	comfortable with what you're doing. And they can make sure, if there's any risk, that the
804780	810220	process is in a safe state and that interruption isn't going to cause any kind of catastrophic
810220	817720	failure. And finally, the last sort of challenge is the cultural challenges that we face. There's
817720	822780	been, for a long time, a bit of friction between the engineering teams and the IT teams. Quite
822780	826760	often in the past, these IT teams would come in with their security patches, their Windows
826760	830640	patches, and they'd roll those puppies out and things would go down. So there's a bit
830640	837420	of distrust between these different groups. So trying to bridge that cultural challenge
837420	845140	can be an issue. But as I said, whenever you're on site trying to work in this operational
845140	851960	environment, it can be quite a challenge with operators standing over your shoulder. I always
851960	855860	find that you can get like half as much work done when you're on site as you would normally
855860	859520	just because of people asking you questions and interrupting and wanting to know what's
859520	863120	going on. So if you think you're going to get so much stuff done, you know, basically
863120	870940	cut that in half because it just everything takes longer when you're on site. So let's
870940	877600	jump into a tale of two ICS assessments. We're going to talk about two particular engagements
877600	883640	that we were working on and two different approaches that were taken. One was a pure
883640	889380	red team assessment. It was an energy company that was very capable, had a 24-7 SOC and
889380	896540	endpoint protection, ICS monitoring. And the objective was to pivot into any ICS environment,
896540	902140	any ICS component. And there were dozens of them. And the other one was a purple teaming
902140	906700	assessment, which was an energy company. And they just completed a multi-million dollar
906700	912140	cybersecurity program. And the objective was for us to pivot into a particular control
912140	921180	network. So during the red team assessment, our initial foothold was the corporate network.
921180	930460	And our goal was to breach into the ICS network. So we did some initial enumeration and found
930460	934540	an open file share on the corporate network and found some credentials, like the good
934540	938580	old Excel spreadsheet that has the credentials to the ICS passwords and all that stuff. And
938580	944960	we found there was a dual-homed historian server that was doing data replication between
944960	951180	the ICS environment of one of their plants and the corporate environment of one of their
951180	955820	plants through this SSH tunnel. So we were able to gain access to that Windows machine
955820	961360	and find the SSH credentials that it was using to replicate data with a file copy between
961360	967380	the ICS network and the IT network to share that valuable data with the corporate folks.
967380	973300	And we were able to create a remote desktop tunnel through that SSH credential that we
973300	978200	had into the OT environment. That was the only port that was open, was the SSH port
978200	984220	22. So we were able to pivot through that with our remote desktop. We did a remote desktop
984740	988660	into that environment, found that they were reusing some really weak credentials, like
988660	994480	the same admin, password, and user were everywhere once we were inside that ICS environment.
994480	999040	There was credential reuse galore. So from there we were able to do a remote desktop
999040	1003560	and a remote desktop and a remote desktop to get to different SCADA endpoints and take
1003560	1007760	pictures of the actual process running in the operator workstations and things like
1007760	1016740	that. And we kept expecting the SOC to give us a call or detect these things, but they
1016740	1023200	never did. There was no detection. There was no logging. Nothing was flagged by the
1023740	1033720	ICS or the 24-7 SOC. They didn't see it at all. So we wrote up our findings and provided
1033720	1039680	that to the customer. And because they weren't really overly engaged in the process, even
1040440	1043580	a couple years later we heard about another assessment they went through and they still
1043580	1049560	had the same findings. It was still the same kind of position it was when we did the assessment.
1049600	1055380	So I think the lesson learned here is having that active engagement, working with the blue
1055380	1061640	team at a more integrated level, having that purple team approach probably would have created
1061780	1064360	a different outcome in this environment. People would have been more engaged. That communication
1064360	1067460	would have happened. People would have understood the risk more at different levels in the organization.
1067780	1072120	And maybe that issue would have been solved and remediated down the line.
1072120	1077480	So let's jump into the purple team assessment that we did. So this was a bit of a different
1077480	1083520	scenario. We were actually physically at the plant and we had no access. They said, you
1083520	1088720	know, just get in any way you can into the plant environment and see if you can get into
1088720	1093740	the inner workings of the plant, the balance of plant environment. Because there's, you
1093740	1097800	know, in the Purdue model there were multiple layers that we needed to pivot through. So
1097800	1103480	we started off, our initial foothold was a mouse jack, which is the wireless Logitech
1103480	1110860	mice and Dell mice. They can act as keyboards and you can inject keystrokes into them. So
1110860	1116520	we were able to get a reverse shell through a mouse jacking vector right through the plant
1116520	1120860	manager. He happened to be using a Logitech wireless mouse and we were able to get a nice
1120860	1127560	shell back from his machine. So from his machine, we were able to enumerate the plant's active
1127560	1133700	directory environment and found that they had some misconfigurations with their LAPS,
1133700	1143710	which is the local administrator password service solution. Thanks, Leslie. That it's
1144360	1151260	a way of reducing the risk of past the hash attacks and changing the local administrator
1151260	1155720	password on all the Windows endpoints that Microsoft ruled out. But if you don't provision
1155720	1160980	those passwords, it's a central repository of those passwords that are stored in AD and
1160980	1166420	they didn't provision some of the passwords properly so anyone could just reach in if
1166420	1170720	they knew where to grab them and pull them out of LAPS. And we found some juicy passwords
1170720	1175680	in there. One was a backup service that was running Acronis across their entire network
1176340	1182700	and it gave us basically admin access to the corporate side of their plant, which allowed
1182700	1190860	us to find this hypervisor server. They had replicated Active Directory environments at
1190860	1196480	each of their different plants and they had this running in a Windows hypervisor environment
1196480	1203200	so when we had admin access into that hypervisor environment, we were able to find the virtual
1203200	1212600	machine that was running the Active Directory and export that VM and then just grab the
1213120	1220020	dump of all the password hashes from that AD environment. And then we were able to pivot
1220020	1228140	into the DMZ where the one jumping point, they had it really locked down in this environment,
1228140	1233840	there was only one port open that went from their DMZ into the balance of plant and it
1233840	1242480	was a tunnel, a tunnel using this OPC software and we couldn't progress any further. It wasn't
1242480	1249420	regular OPC, it was like a tunneled encrypted OPC that we couldn't breach. So we did have
1249420	1254200	success up to that point. We proved that they had locked down their environment but we did
1254200	1259220	find a lot of things along the way and actively were engaging with their blue team. We had
1259220	1265760	the SOC up on a bridge the whole time. We were talking with their team and as we'd run
1265760	1269500	different attacks or run different enumerations, they'd be like, okay, do that again. We're
1269500	1272180	going to tweak this rule a little bit and see if we can detect it this time. And we
1272180	1277160	tried again and then they'd try to detect it. So we were helping them to hone their
1277160	1284180	rules for detection and their logging, their event logging and Windows logging while the
1284180	1291480	things were going on. And we were able to help them reduce that risk while the engagement
1291480	1301740	was underway. So in summary, the purple team advantage, it really does reduce the risk
1301740	1306600	in these engagements. You're constantly in communication with those operation folks.
1306600	1309520	They're with you in the room quite often. You've got an open bridge, you're talking
1309520	1317020	to the operators. So that communication and that open channel really helps you to communicate
1317020	1322640	what you're doing and reduce the risk to the operating asset. And it does help improve
1322640	1326280	their defenses. They can test and tweak their detections in real time and we can replay
1326280	1331200	or even do a packet capture for them to work on later of our attacks and our enumeration
1331200	1336100	methods. We can even use a lot of the tools that we see the adversary groups using like
1336100	1350320	Puppy and compiled Python and different memory, Mimikatz custom compiles and things like that
1350320	1353620	that a lot of adversary groups are actively using so we can test their mettle against
1353620	1359660	what we're really seeing in the field. And then we're building better relationships.
1359660	1365040	We're leveraging that OT and IT team knowledge and building that bridge between these two
1365040	1370340	groups that don't always get along so having that opportunity to work together and also
1370340	1373420	take advantage of that knowledge. These people work in the plant every day, they understand
1373420	1379000	their system extremely well so in a week's time we can do what would take an adversary
1379000	1393120	group or activity group months of reconnaissance to pull off. And we do reduce risk. We're
1393120	1399420	addressing the four different ICS specific challenges that I talked about earlier. It
1399420	1406220	does help reduce this safety and I mean it does address the safety and reliability issues
1406220	1411620	that we often encounter. We have that ongoing communication that's important and we have
1411620	1416860	the knowledge of the operators and the engineers specialized knowledge of the industrial equipment.
1416860	1420500	Like I've worked with a lot of different environments, a lot of different PLCs and SCADA systems
1420500	1426920	but I'm always finding new ones. Everything out there is often different and unique. And
1426920	1434660	then helping build that cultural trust between these two groups. And that's the end of my
1434660	1439420	presentation. Any questions? Yes sir?
1440240	1444440	On one of your earlier slides, when you're talking about your assessments, you represent
1444440	1449900	standards. So outside of NERC-SIM or some of the other utility stuff, when you're not
1449900	1452820	utilities, what standards are you assessing against?
1452820	1458480	So quite often we'll assess against their, if they have a corporate or ICS standard that
1458480	1464160	they've stood up, that they're adhering their environment to. It's not really fair to compare
1464160	1468760	an industrial environment to a standard that the industrial environment has no idea of.
1468760	1472880	It's really up to the company. If they're not in regulation with NERC-SIM or something
1472880	1477740	like that, they don't have those expectations, then it's not fair to say, well, you should
1477740	1481340	comply with this standard or that standard. We'll do whatever the customer wants. Typically
1481340	1492840	we'll use the NIST-882 or even 853 or ISA, IC-62443, things like that, depending on what
1492840	1500420	the customer is interested in aligning with. But it's almost unfair if the site isn't aware
1500420	1504980	of that, if they haven't had that expectation to align with these standards. And a lot of
1504980	1510280	them haven't. But there's a bunch of different standards out there, so it's up to the customer.
1510280	1514000	We'll work with whatever. We've got people on our team who are on the steering committees
1514000	1518020	of these standards, so they know them very well. So we can always fall back on that and
1518020	1523740	leverage that knowledge as required in these assessments. Any other questions? Yes, sir?
1525680	1526520	Yes.
1547320	1552340	That's a very good question, and it was a point of debate at S4 this year. In my opinion,
1552340	1557800	maybe it's unpopular, I don't know, the Purdue model is not a cybersecurity model. It's just
1557800	1562900	an architecture model. So you shouldn't try to build your site to it. Every site is different
1562900	1566660	and has different challenges, so you should try to address the cyber risk in your environment
1566660	1574120	and not try to conform with necessarily the Purdue model. But it makes sense if your site
1574120	1578960	kind of aligns with that, but a lot of them don't quite fit into that weird little niche.
1579600	1582540	Great question, though. Thank you. Yes, sir?
1596880	1600780	That's a really great question. I actually had another presentation at the end of Blackhat
1600780	1605800	with Elasticsearch on that topic, talking about how we use batch files and bash files
1605800	1610320	to dump a lot of that information from Linux, Windows, endpoints, and then we ingest that
1610320	1613920	into Elasticsearch so we can do dashboarding and reporting against that endpoint. Because
1613920	1619400	we will opportunistically use Rapid7 and Nessus and Nmap, but it's not always an option.
1619440	1622100	So if we have to physically plug in and pull data, that's what we'll do. We'll run some
1622100	1627540	batch scripts, pull that data down in text files, got a Python parser to cut it all up
1627540	1634620	and throw it into Elastic to do the magic. Okay. I'm all out of time, but thank you,
1634620	1636940	everyone, for attending. Great to see so many familiar faces.
