Hi, everyone. It's really hard to see everyone With this slide. So if you cannot hear me, just Shout out, and I'll try to adjust the microphone. Can everybody hear me? cool. Good afternoon, everyone. My name is shishir, and I'm here to talk about red team and Attack vectors for operation technology. My objective here is to go beyond the hypothetical, and I'm Here to talk about red team and attack vectors, a real-world Example for some of our red team exercises for critical Infrastructure. However, before I start, a quick Disclaimer. Even though everything that I Present here is based on real-world case studies, the Content itself is highly redacted to remove any and all Identifying information. Now, we're not here to talk About it myself, but it's still customary to do a quick Introduction. My name is shishir. I'm a technical manager at mandiant slash google. I'm part of a dedicated team at mandiant that specializes in Security services for operational technology and Control systems. Personally, I've been, I've had More than 12 years of experience performing offensive security Work for industrial control and cyber-physical systems. And in that time, I have been fortunate to basically dabble With almost every critical infrastructure sector on the Planet, including power, transport, rail, air traffic Control, manufacturing, waste water, telco, and even building Management systems. Now, i believe everyone here Would already understand what we mean by operational technology. That said, i still wanted to take a minute and remind that Operational technology basically deals with systems and Platforms that are used to control and automate industrial Scale physical processes. People often tend to silo o.t. Into a specific sector or industry, but i'd like to Remind that o.t. covers a wide range of infrastructure, and my Talk here is industry agnostic. I'll be covering examples from Different verticals, including power, utilities, Transportation, manufacturing, and even telecommunications. I would like, i would also like to call out that real world Attack simulations against industrial networks do not Involve just h.m.i.s or p.l.c.s, but in fact, involve the entire Ecosystem, ranging from the enterprise network that supports O.t. to level one devices that control the physical processes In the field. One more disclaimer here, Offensive security exercises, such as red teaming and Penetration testing, essentially involve adversarial testing Against cyber physical systems that can pretty much blow and Burn. Thus, any kind of offensive Security testing for o.t. should only be performed by trained Individuals after careful consideration of scenarios, Hazards, risks, and preapproved rules of control engagement. Now, before we move into the crux of this talk and talk about Attack vectors and case studies for o.t., i'd like to quickly Touch upon one more topic, that is the i.c.s. o.t. attack Life cycle. Most people in cyber are already Aware of attack life cycles, but when we talk about hacking O.t., people often tend to assume that we are talking about Some cool exploit against an isolated i.c.s. or a control System device, so i'd like to call out that there is a Difference between hacking an individual control system and Hacking a large-scale industrial o.t. operation. Real-world o.t. attacks are rarely single-step compromises, Often involve a multi-step attack life cycle covering Multiple phases. From an attacker's perspective, This typically translates to information gathering, perimeter Breach, privilege escalation, internal reconnaissance, network Propagation, and finally, a precise execution to achieve a Predetermined objective in an o.t. environment. The basic idea here is to obtain prior information about the Target system, breach the perimeter of the o.t. environment, Remain undetected while operating within the target Environment, and then finally launch a precise attack to Achieve the target objective. Consequently, if you think about It from the defender's perspective, each phase of this Attack life cycle presents an opportunity for detection and Mitigation. Thus, it's important to understand the i.c.s. o.t. Attack life cycle, identify security issues before an Attacker has a chance to exploit them, develop preventive or Detective controls for known TDPs, and mitigate attack Vectors across multiple phases of the attack life cycle. Now, I don't believe I have the time to go through each phase of The attack life cycle in the next 20 minutes, so for the Remaining session, I'd like to distill the life cycle into four Key phases listed on the lower side of the slide here and walk Through some real-world examples and case studies for common Attack vectors across the four phases. The first phase I'd like to cover is initial compromise. As the name suggests, the objective of this phase is to Gain an initial foothold in the target environment. In most real-world scenarios, this typically translates to Using a social engineering or spear phishing campaign to Compromise the enterprise side of the organization. In fact, the majority of the red team exercises for o.t. that we Perform begin with some form of attempt to gain access or Foothold on the corporate side of the network. That said, the initial compromise phase could also entail Other more direct attack vectors to gain a direct foothold in the O.t. network. The list on the slide here lists Some examples, like direct connection to i.c.s. on the Internet, supply chain compromise, third-party Compromise, hardware implants, and last but not the least, Physical or wireless access to o.t. systems in the field. Industrial environments often have a geographically dispersed Field network, often connected using wireless networks, and Thus present a large attack surface for attackers to gain Direct access to o.t. devices. The simplest example of such a System here would be residential smart meters in advanced Metering infrastructure. So if an attacker, let's say, Is able to gain or manipulate the communication traffic Between the residential smart meter and a back office Collector, they could potentially use that as an Entry point into the back office, back-inherent system. The first example I have here is for a communication-based Train control system. In a c.b.d.c. network, on-board E.c.u.s. in the train typically connect to the back office Network through radio-based communication, such as wireless Network or cellular network. In this specific case, we found That a c.b.d.c. radio network was implemented using a hidden But essentially open s.s.i.d., thus providing an Unauthenticated access to the on-board embedded network on The trains. The right side of the screen Here shows us using the open wireless network to connect to A v.n.c. session on one of the operator displays in the local Cab. Insecure wireless networks are Probably not as common as in the recent past, but we still find Examples of unencrypted protocols or legacy encryption In older networks. The next example I have here is For an unprotected cellular network for a public transport Operator. In this case, our team was able To use an arbitrary personal sim to connect to the private a.p.n. For the field network and gain direct access to traffic Monitoring cameras across the metropolitan region. To be clear, this is probably an exception and not the norm to Have an unauthenticated private a.p.n., but such was the case Here, and it does show an interesting example of an Initial entry point into an o.t. environment through an Insecure cellular network. The last example i have here for Initial foothold is an initial compromise point into a telco Network. Modern telco networks are Essentially i.p. Based and involve an i.p. Based tunnel Between the mobile device and a gateway node in the core network. The gateway node forwards the traffic to the intended Destination through a backbone network, and it's best practice To basically have the gateway node allow only access to the Intended networks and block any or all attempts to access the Private nodes in the operator network. However, in this case we found that we were able to actually Use a commercial off the shop sim for the said operator to Connect to the core nodes in the telco network. Long story short, we were able to compromise the core nodes Such as session border controller, intercept user Traffic, including sms and voice call data. Now, i realize it's probably not as obvious from a single Screenshot here, but the picture here on the right-hand side Shows us intercepting sms message from the traffic captured On an sbc controller. Think about using your Personal mobile phone as an entry point into your telco Operator's network and compromising lawful interception Across the national network. To be clear, this is also very Rare, but still it does provide another interesting example of An initial entry point into what is essentially an Operational network. The next phase i'd like to Cover is internal reconnaissance. The objective of this phase is To leverage the foothold gained in the previous phase to Extract specific information about the target system. This is especially relevant in the context of initial Compromise in the enterprise it environment. The enterprise network is important not only from the Perspective of itot network segmentation, but it is also Important from the perspective of data segmentation. A typical enterprise network often hosts multiple sources That can provide an attacker with critical information about The target asset. Some examples on the slide here Include documentation, department of file shares, e-mail Communications, development resources, management consoles And even key logging and screen monitoring. Some examples of target information that an attacker Would typically like to retrieve at this phase of the exercise Include network diagrams, host names, ip addresses, process Documentation, operator manuals, and even potentially plain text Credentials. This is probably the most boring Stage of an attack life cycle from an attacker's perspective. But in my experience, an attacker will spend the maximum Time operating within this stage because the more information That i can obtain at this stage, the higher my chances of Success and precise execution in the subsequent stages. Internal reconnaissance often comes down to strategic Targeting information sources and key employees that are Responsible for the administration and maintenance of The ot environment. I realize that the screen shots Here on the slide are highly redacted. However, they still provide a snippet of the kind of Information that an attacker might target during internal Reconnaissance phase. Firewall rules, operation guides, Department shares, plain text credentials, password managers Are all critical information that are typically hosted in the Enterprise side of the environment, but provide Invaluable resources and information for attackers Targeting ot networks. Now, from a defender's Perspective, it is easy to underestimate the value of the Information exfiltrated during this phase of the attack life Cycle, and security teams, in my opinion, often ignore the Importance of this phase from a detection perspective. In fact, i would argue that this phase provides the maximum Opportunity for detection. If i, as a defender, can flag Indicators of compromise for internal reconnaissance in my Enterprise environment, i could potentially detect an attacker Before they even have a chance to reach the ot environment. Now, i'm not going to go into specific case studies for this Phase. Almost every exercise that we Perform involves some kind of internal reconnaissance. But i still wanted to cover some examples of target sources And information sources. Moving on, initial compromise Internal reconnaissance is often followed by network Propagation. In the context of a typical attack Life cycle, this often translates to network Propagation from an initial foothold in the it network to The target system in the ot network. Now, i know that we all expect our ot systems to be completely Isolated in air gap using nothing but space. However, in practice, that is rarely the case for modern Industrial environments. In an ideal world, i would Probably love to see perfect segmentation using gateways. However, the reality is that we still continue to find ot Environments that lack basic segmentation. Now, there are probably a million different ways to host Segmentation. But some common examples of Insecure segmentation between it and ot include lack of Properly secure authentication for remote access, dual home Servers with one leg in it, one leg in ot, shared active Directory domains or domain trust between it and ot, and Exploitable services in ot dmz. That said, the most fundamental Issue around it ot segmentation is the use of shared Infrastructure and management platforms. A classic example of that would be a hypervisor server hosted In the it environment which hosts guest machines for ot Network. So potentially if i can Compromise the hypervisor server in the it environment using Active credentials, i could pretty much gain access to the Ot consoles, thus bypassing the firewall rules between it and ot. Like i said, unfortunately, it is very common to find both Physical and logical flaws in segmentation between it and ot, And such issues can often be used to propagate from the it Network to the ot network. This slide here shows an example of installing a key logger on A compromised engineer desktop in the it network to basically Obtain the single factor authentication credentials for a Remote access point or a jump host server in the ot network. The screen shot on the right-hand side here shows us Basically connecting to a successful remote desktop Connection to an hmi interface for a subway line or a subway Overline. This is another interesting Example of compromising remote access credentials in the Corporate network. However, this time, through Direct compromise of an enterprise password manager or Enterprise password vault, which basically stored ot Credentials. Enterprise password management Systems often authenticate to corporate domain. So if an attacker is able to compromise the password, say, For example, engineering teams, the attacker could gain Credentials for remote access to ot systems. The screen shot on the right again here shows a successful Remote desktop connection to an its server for a traffic Control or a traffic light monitoring system. This slide here shows an example of a segmentation flaw, like i Said, using domain trust between it and ot. It is probably not as clear from the screen shot that i have on The slide here, but you will find that the it domain here is Actually superseded as the root domain for ot domains across Multiple dcs. The end result is that our team Was basically able to use compromised credentials in the Root it domain to gain access to child domains for multiple Plants across the globe. Finally, this is a real world Example of the issue of shared infrastructure between it and ot. The virtualization platform on the left authenticates to an it Domain, but hosts guest machines for both it and ot environments. Our team was able to gain administrator access to the Hypervisor management interface using credentials compromised In the it domain and leverage the same to gain access to the Local console on the guest virtual machines in the ot Environment. The screen shot on the right Hand side here shows an example of direct console access to the Guest vm for a server in the ot network which hosts software Updates for engineering workstations in the pc and plant Network. The final attack phase i'd like To cover is mission execution in ot. As the name suggests, this is the phase where we are dealing With core ot and the attacker will either attempt to leverage The access that they've already obtained or launch a prebuilt Exploit to achieve the final objective. As you can imagine, the tactics and procedures that an attacker Might use in this phase would highly depend on the specific ot System in question and more importantly the attacker Objective. So, for example, there are Attacker objectives that could potentially be achieved through Direct access and direct control of an hmi or simply abusing the Built-in features of the target system. While there are some other attack vectors or attacker Objectives which might require manipulation of the control Logic and input output signals on the lower level embedded Systems. To be honest, i think we could Spend an entire session talking about attack vectors for mission Execution in ot, but some common examples include remote command Execution through hmi interface, manipulation of configuration Data for a remote terminal or a plc, spoof communication for an Ics protocol, and last but not the least, a prebuilt exploit to Manipulate the process control logic or the process memory and Embedded controller in the ot network. As a general term of rule, it is relatively easier to cause Process disruption as compared to process manipulation. Ics systems are built with redundancy, safety, risks and Hazards in mind, and thus high consequence manipulation often Requires prior reverse engineering and exploit Development. Some common examples of security Issues that we typically find while assessing and building Exploits for embedded ics systems include unsecured Firmware updates, unpopulated interfaces, hidden back doors, Shared ssh keys between different customers, obviously Buffer overflows, and then leftover debug functions from Development and testing that have carried over to the Production systems. Here i would like to once more Stress that we are essentially dealing with cyber physical Systems, and thus any kind of offensive security testing For low-level ics devices should only be performed in a Non-production or a laboratory environment under controlled Conditions. The first example i have here is For a red team exercise for a power utility with advanced Featuring infrastructure. This shows an example of simply Using an hmi command to achieve the final objective, that is, Remote disconnect of a target smart meter at a specific Location. A team was effectively able to Breach the external perimeter, gain remote access to the Command and control interface for the head end system, and Initiate remote disconnect command for the end point Mirrors. This slide is another example of Mission execution through direct control of hmi. A team was able to gain remote access to the physical access Control interface for a building management system, thus Obtaining the ability to open doors and turnstiles through A simple click of a button. Unfortunately, i cannot show You the actual pictures here, but effectively we were able to Use the command and control interface for the bms to walk Into an operations control center while one of us was Actually operating and controlling the doors and Turnstiles remotely. This slide shows an example of Basically spoofing ics traffic for a locomotive control system. The screen chart shows us plugging into an on-board Ethernet switch in the locomotive cab and manipulating the Speed sensor reading on the operator's screen. The train here obviously is not moving at any miles per hour. This is essentially the effect of spoofing canvas traffic to An existing binary on one of the ecus on the embedded network On the train. Last but not least, i have Here an example of using debug features to manipulate the input Output signals for a light rail vehicle control system. It's actually quite surprising how many times one might find a Debug console enabled in a production environment. And this can often be used to manipulate control signals and Input output signals beyond the intended. The screen shot there on the left basically shows us using a Vendor ide, which i'm not going to name, to basically connect to A live unit on an lrv and using force tables to override input Output signal tags for the vehicle control system. Again, unfortunately, i cannot show the video here, but Essentially we were able to access or gain access to an ip Based ethernet network on the lrv, connect to the vehicle Control ecu and override operator input for doors, throttle, Direction, and even emergency braking. If you've ever seen a movie where you see a hacker scribbling On a laptop trying to stop a train, this is exactly that, but Much worse, because we were actually able to control the Throttle, basically override the dead man switch, move the train And disable all and everything, every operator input. I think i've run through 25 minutes, so i realize that i Pretty much run through my slides, but i only have 30 Minutes, so i hope that i have been able to provide some Practical real-world experience or perspective on some common Attack vectors that an attacker might use to hack operational Technology. But if nothing else, i would Like to conclude with four key takeaways from my talk. It is possible to conduct offensive security testing for OT, but such testing should only be performed after careful Consideration of risks, hazards, controls, and preapproved rules Of engagement. Real-world OT attacks are Rarely single-step compromises and often involve a Multi-step attack life cycle covering multiple phases. It's relatively easier to cause a process disruption as Compared to process manipulation. Process disruption can often be Achieved through direct abuse of prebuilt features of the system, Whereas high-consequence manipulation often requires Prior reverse engineering and exploit development. Lastly, from a defender's perspective, it is important to Understand the ICS OT attack life cycle, develop preventive or Effective controls for known TTPs, and mitigate attack Vectors across different phases of the attack life cycle. Cool. That's it. That's all i have for you today. I realize it's 3 p.m. on saturday afternoon in vegas. So thanks, everybody, for joining in and listening in. If you have any questions, although i cannot see anybody Here, but if you have any questions, you can hit me up Face-to-face. If you want to reach out and Discuss in more detail, you can reach out to us over e-mail or LinkedIn.