440 points · by todsacerdoti · 5y ago · 181 comments
Most municipal infrastructure automation is run by SCADA systems. SCADA systems are designed to be closed ecosystems by default, which means they don't have access to the internet. Cables are run and point to point connections are made to transport these signals. If you've seen a big shiny aluminum box on the side of the road, that's a SCADA system.
Consumer demand has changed a lot since SCADA was first thought up. These days people want to be able to log into a portal and see their billed water usage by the day. Cities want to be able to turn off a meter remotely at the click of a button rather than rolling a truck. They want pressure loss, contaminate, and fault detection. They'd like to balance pressure in the water system dynamically. They want to perform detailed reports on total water loss, which means instrumenting pumps, retrieving telemetry data, auditing that data against every home usage, identifying faults, and producing a report out of it. All of these things don't work very well with closed ecosystems as they generally require a certain amount of external information. In response, cities have either crafted their own devices because they don't have the money to hire an integrator to design and produce them a device that will survive extreme weather conditions, be fault tolerant, make minimal use of power, and employ standard security measures or they hire an integrator. Even certain integrators can do shotty work.
The takeaway from this isn't that SCADA is bad or the infrastructure version of "the sky is falling!". It's that we desperately need to be thinking about how different generations of systems can be modularized and be built upon to minimize cost while maximizing security, capability growth, and reliability.
For the folks talking about "who tests what", I don't know what I can talk about in regards to specific programs but I feel confident that I can say that the FBI tracks this vigorously and works with companies that work in public infrastructure.
It still lets you remotely monitor systems, but if you want to adjust the operation of the critical infrastructure you have to physically go there and do it in person. People often complain that this is inefficient, but if your own workers are unable to remotely affect a system then neither can an attacker - given the consequences of an attacker compromising a critical infrastructure I think the inconvenience is a fair price to pay.
[1] for those unfamiliar, this is typically implemented using two computers connected via fibreoptic cable, such that there are only transmitters (lasers) on one side and only receivers (photodiodes) on the other side. Thus the information can physically only travel in one direction. The computers at each end handle conversion from connection-oriented protocols (e.g. TCP) to connectionless (e.g. UDP) while maintaining reliability.
Wait, isn't that a bit over-dramatic? I mean sure, that's true of nuclear systems. But I mean, my home thermostat? My car's smart key system?
As for the thermostat - it's winter below freezing and a hacker turns your heat off during the night. Sure someone might wake up, and it would have to be very cold for you to freeze, but if you have someone old or a child then it could be life threatening. Depending on the heater it might be able to make it cause a fire.
Many car's smart key system is on the same network in the car as everything else, including the brakes. Read more in https://money.cnn.com/2014/08/01/technology/security/most-ha...
So no, it's not being overly dramatic to categorize any SCADA system as a weapons platform. It might be, as they say, 'an abundance of caution', but I am fine with erring on that side than erring the other way.
Three Mile Island can be viewed as caused because one gauge was not being tracked correctly (where it was supposed to be was being tracked, not where it actually was). What if remote access was enabled on systems in a nuclear power plant, so that people didn't have to drive all the way there? A hacker might manage to replicate some version of Three Mile Island. I can hear the 'but it's secured' response from some already, but any system that can be accessed can be hacked, given enough time and resources.
The key thing people should realize is that cybersecurity does not prevent hacking, it attempts to delay it until a real person can take corrective action to protect the system. This is why you have defense in depth and rings of security. Essentially, it is a door lock. The better the lock, the more skilled class of thief it will dissuade by being 'too hard to bother'. A skilled thief who has state of the art lock picks, or is willing to use a door ram, is not going to be deterred by even the best of locks (think organized crime or state actor hackers here). But if our imaginary door only opens one way no matter what, to let people out, and can physically never let people in - then even the greatest thief is SOL. That is the purpose of a data diode.
The other other concern, and it's not minor, is that any time you start measuring safety in terms of cost effectiveness you are putting a value on human life. It is saying that is is cheaper to pay the settlements and/or fines resulting from deaths due to insufficient safety precautions than it is to make it safe to begin with.
It’s not a nuclear power plant. There’s no crack team of snipers to kill anything that gets too close to the fence. Physically these places are certainly not wide open, but neither are the fences, doors, and locks any more intense than what’s on the local high school.
Same isn't true for physical security.
I have not personnaly worked in industrial environment, but from people I know, security wise, it is very scary at some places. Here is one such example of a "smart guy":
The IT crew of a factory have a sane policy of deny all traffic, except some well thought out rules.
A supplier would like to open a remote connection for maintenance of the equipment. Since the process for opening some traffic for a short duration is so convoluted, they finally install a 3G card inside the equipment (without telling their customer, and they even make it a habit for future install) so that they can do maintenance whenever they want.
The IT crew still thinks all is safe from outside...
Did someone in this story report it to the company management? This sounds like a clear lawsuit (or at the very least, contract termination) waiting to happen, and one that would scare other vendors away from such "clever" workarounds.
My fallback approach is, to insist on machines incapable of self-destruction and Whole System BackUps. Its easier & cheaper, to unplug, replace some spare-parts, reinstall some acronis images and go. Sad world, but real world
plant < diode < internet
you could control it but not get any feedback. I meant
plant > diode > internet
so you could monitor it but not control it from the internet.
Aside from the technical limitations of some of these platforms there's a cultural issue. Controls engineers aren't trained in Infosec. The software and device manufacturers are developing better products, but I don't feel like there's a "secure by default" initiative. It still takes skills on the part of the installer.
I still see a huge lack of consideration for security in the people actually installing gear (at least in the small-to-medium sized manufacturing companies and small municipalities I work around). The biggest concerns are making sure vendor's support personnel can troubleshoot remotely because frequently the on-site personnel have limited skills. That's how we end up with TeamViewer, VNC forwarded thru routers, etc.
For instance, most SCADA and IT vendors can do a lot better than (probably not patched) Windows 7 with TeamViewer. However, there's two prevailing attitudes that interfere:
1. We're not big like Boston or New York, therefore we're not going to be targeted and are fine, nobody cares to harm us.
2. When you have a working SCADA system, nobody wants to run updates or make security policy changes when that might lead to not having a working SCADA system. Security vulnerability remains the constant invisible bogeyman, you never know if you did enough until it's too late.
If enough events keep occurring (and why would we suspect they won't), this attitude will HAVE?? to change. Kids will learn about it, and do it for the lulz. The city of Dallas had its tornado sirens hacked, and at least in the local areas, it brought some attention to the subject. Eventually, the bored teenagers in the small towns are going to do it just because.
That's an excellent call-out. City salaries will almost never employ the type and level of personnel to do anything beyond maintaining the status quo typically.
Even if you had the funds to employ highly trained engineers, most sites couldn't give them enough work to keep their skills sharp.
I've had hundreds of plant engineers and SCADA operators tell me that their systems were "not connected to anything" and every single one of them was wrong.
Whether it's an old 2400 baud modem on a spare port on the RTU or "serial" comms being multiplexed across IP or MPLS networks or the unlicensed TeamViewer install for vendor support, there is always a "well except ..."
I find this hard to believe. In this modern world of connected convenience, I’d say what I want from the water company is 99.99999% safe water and 0.00001% real time billing. The idea that you would sacrifice the former for the latter is ridiculous.
Nothing in your comment makes me think SCADA is bad, it just makes me think connecting it to the internet is dumb.
there's lots of safe ways to export data from a secured/highly controlled system in a manner designed for one way information flow. even if it's as simple as putting data in a pipe-delimited CSV in a cron job.
first get the data out of the secured system's boundaries, nothing sensitive, and then do whatever is needed to present it to customers in a friendly web GUI.
Sometimes they don't even craft devices, even shoddy devices would be better than other options some take. Sometimes it's just a matter of someone in the muni saying 'hey, we can fix this, let's put this on a password protected wireless network'. Sometimes it's not even password protected.
Sometimes it's not the muni, but the vendor, who decides for remote management and puts the device on the internet.
I agree with the other poster who said they thought data diode was the way to go. Make it so the companies and munis can get data, but cannot send data to the devices unless they are physically on site. Of course, that means the site has to be secured - a lot of times security through obscurity is relied on by putting in remote locales, fake locales, etc. This also includes securing the device - it should detect tampering and default to a 'tampered state' if tampered, one that is encoded at manufacturing so it cannot be changed. While I'm on it, I would love to start seeing TPM 2 chip and Sel4 OS a mandated minimal requirement for all SCADA devices. The cost would go through the roof - strike that, the atmosphere - but it is so necessary.
At her request I sat in on a meeting with their vendor to ask some stupid questions (but less stupid than what the commissioners would have asked) about their proposal for updating the control systems.
Some crazy things discovered:
* it's all windows, all the time. I don't know why but I find this disturbing, but apparently all the drivers for these systems only work on windows. I guess Linux is only just starting to penetrate this market.
* yes, remote access is a thing (even in the old system), especially in this case where the plant it under 20 feet of snow half the year. They claim the system can only monitor things, not control things, but I wonder how locked down that really is. Security is via a VPN.
* the vendor at play here seems to be a tiny shop of a few people that basically serve a few dozen sewer treatment plants in the area. They deal with replacing the hardware and programming these interfaces in.. kind of a crazy local cottage industry I just wasn't really aware of.
Having a background in web services / unix left me pretty unprepared to really do much more than ask some stupid questions around security / obsolescence, but the vendor had reasonable answers to my concerns. Just a very different world than what we think about every day.
Outside our tech bubble working on Unix is still perceived as hollywood-style hacking of the bank and folks really have no clue, unless its done in GUI just like... you guessed it, Windows. Folks wouldn't even touch it.
Windows is an awful choice for any system that must be reliable. I know, because the industrial control system at my workplace used to be windows, and cost us mega bucks every year in down time. Now it's Linux, and we haven't had ANY downtime in over two years.
All this to say, Windows isn't the worst thing ever necessarily, and ideally you want a system that's purpose built and only does what is required with the least amount of code/systems possible.
Also I would guess whether we hear about it or not is more likely to be a political decision. Can the news be leveraged for whatever change we want to see? Or is it too embarrassing and works against us? Sometimes it doesn't need hiding, so then we find out. (Cynical, I know.)
10+ years ago I used to do demonstrations of this specific attack for govt and other critical infrastructure owners. In our demo, we had a two small vats of coloured "chemicals," with pumps controlled by a bank of PLCs, an HMI and a network of a bunch of vulnerable VMs. We would walk people through how to exploit trivial web vulnerabilities that would get them to the HMI and cause the pumps to reverse and cause a chemical spill from the vats. The look on their faces when they caused a vat to overflow themselves with very little skill, was their "scared-straight" moment.
It was 90's, even 80's level hacking. There is no way the managers didn't know this was possible and likely. They're only acting surprised. What this really looks like to me is a test run for something more coordinated and worse.
Not sure what kind of filters protect against this kind of thing, but a pH sensor with an alarm might mitigate the family level risk somewhat.
Maybe the goal isn't to make every single facility 100% secure to all threats, but it's totally defeatist to say that we couldn't somewhat increase the actual security of many systems. VPNs alone would provide a great first line of defense, and even for a government-run utility, the barrier to installation is very low there.
I have a fair level of skepticism around security theatre, too, but I think it's unfairly cynical to suggest that we don't have a goal of making ourselves more secure.
https://en.wikipedia.org/wiki/Kerckhoffs's_principle
In addition to assuming the adversary knows how everything is designed (as opposed to security-by-obscurity) there should also be an assumption that security is obtained through real implementations, not theatre.
What happens when everyone in my street buys the same security system? Seems like we all just spent a lot of money buying something that now offers us no benefit.
Short of purchasing a honeypot property with (seemingly) no security system and going full Home Alone on the inside of it, it seems like you're going to need actual security at some point.
At least for the home example, you're usually better off reducing the factors that would make a break-in happen in the first place rather than trying to win an arms race against a determined attacker; there are high trust societies where people don't bother locking their doors and people don't get burgled. But obviously the threat model is different than a utility.
You mean men with guns stationed 24/7? There is no "actual security" against determined burglars available on the market for regular people. There's delaying action (e.g. laminated glass), noise making and deterrence (cameras). Each can be worked around.
This is also a general point on security: there's no perfect security, there's only adequate security - where "adequate" means it costs the attacker more to breach it than they can expect to profit. From this view, appearance of security is almost as good as actual security measures - you make security look expensive to breach, which achieves the same effect, as long as nobody is willing to call your bluff.
Sure but it might keep out all the people who don't know what they are doing. Like some clueless junky.
Classifying someone as a “junky” adopts a cruel and unrealistic worldview blaming the victim and absolving a number of powerful actors of their role in contributing to addiction on mass scale.
Its all fun and games until somebody wants to kill people and they suddenly can.
(This is also thought to be the reason "Florida Man" is a thing: https://www.oxygen.com/florida-man-murders/crime-news/why-ar...)
Shouldn't the system notice when the "knobs are turned up too hi" and disallow that?
Confirmations to ensure setting is entered accurately and logging of changing of settings and by whom are good ideas though.
Are you quite confident that is how engineering works?
For example, a well engineered plane allows the pilots to control the fuel flow to engines, but also does not allow pilots to dump fuel into the passenger compartment. Much engineering goes into, how to isolate the toxic chemicals of fuel or other fluids/gases away from the passenger compartment. So you have freedom, but you also have constraints.
Likewise, a well engineered plane probably should allow pilots to fly the plane according to their needs, rather than overriding their inputs as they fight to point the nose up while the plane decides that no you really want the nose down right now. Of course the pilots should've disengaged MCAS, but in a crisis it's bad engineering to force operators to remember which unhelpful/murderous system needs to be disabled in order to avoid catastrophe. The system took too much agency away from the operators, and violated the principle as espoused by that comment you're quoting.
Well, Um, these water plants are build to very rigorous webscale cyberstandards: They’ve got to have a ON/OFF switch. We used a bounded model checker to show nothing bad could happen in a maximum number of transitions.
What’s the maximum number of transitions?
Oh,… one, I suppose.
The UI will be designed for people who know 11,100 ppm is a stupid level, so it's probably light on fancy error messages.
You might as well ask why Google has a setting where I can type "' SELECT * FROM NSA_SECRETS;--" into the search box.
Therein lies the problem: assuming your users will never be malicious or make mistakes.
Note also that you can type whatever the hell you want in a google search box. I could type "launch all nuclear forces at Russia", but that isn't going to actually happen.
I agree with this.
I imagine that we will find out that the attacker was indeed someone who was given access (at some point in time) and not an attacker from the internet
What was shocking was that I had to explain to the lead engineer the "never trust the client" security concept. A few hours later he found a major exploit.
I suspect that there are many small software companies with similar problems.
1) have the computer running this stuff on a network which faces the internet 2) install teamviewer on it
I mean.. what did they expect?
Yes, obviously - or perhaps not, to some - no designer of the physical plant in their right mind would consciously spec the ability to raise levels so high so quickly. The thinky box can ask for whatever it wants but that don't make it so.
That said, for that sort of town it should only require a tonne or so per hour NaOH to raise to that level. Which is throughput you can get from any generic .
Depends on the tank size, and how much NaOH is in reserve, I can see one of the outcomes being "yo, why's the hydroxide tank empty?". Or "customers reporting funny tasting [but not harmful] water". I'm not convinced that dangerous levels were impossible, however, and I was expecting to be.
https://arstechnica.com/information-technology/2021/02/breac...
Couldn't the involved staff be jailed if they tried to conceal it?
SCADA is an offline ecosystem by design because the innards of the system are mostly just signals flying around. There's no encryption or IAM in place to defend against bad actors. More recently the cities want their municipal infrastructure that runs on SCADA to integrate nicely with other information systems to either retrieve data which is useful for generating reports, like the delta between water pumped and water served which indicates total loss. The other use case is to perform actions. If I know there's a fire on one side of the city that is a four alarm fire, which will put pressure on service lines as multiple firetrucks begin to demand water, I can decrease pressure on one section while increasing pressure on another. You could perceivably do this in an automated fashion, but there's no such capability in any SCADA systems I know of. Hence, municipalities end up finding integrators who will build them custom devices to interface with their systems.
So, this is less an "aging infrastructure" problem and more "new capability demand".
Where I live, things are very nice and it’s maybe fairly unique to my exact county.
But if you are referring to overall infra like highways or something- I don’t share the sentiment it’s in anyway a problem where we live.
Im not plugged into interstate trade or things like that. So maybe I’m not totally aware of the problem. But it hasn’t seemed locally problematic.
Edit: downvote, really? I’m trying to know more about crumbling infrastructure.
This is a good summary from a neutral source: https://www.cfr.org/backgrounder/state-us-infrastructure
Much of that report focuses on things like traffic congestion and delayed flights from busy airports:
> According to Petroski, the delays caused by traffic congestion alone cost the economy over $120 billion per year.
Ironically, the abrupt shift to remote work and work-from-home due to COVID has significantly reduced traffic burdens in many cities.
I'm all for improving infrastructure where necessary, such as the ~10% of bridges that are structurally deficient or improving access to cheap broadband. I'm not enthusiastic about rallying cries to encourage more car traffic, though.
tl;dr the USA earns a D- in infra.
The D- is a bogus rating meant to increase spending, not improve value.
https://www.strongtowns.org/journal/2011/12/12/best-of-blog-...
https://usa.streetsblog.org/2013/03/20/is-the-asce-failing-t...
You can't just hack Teamviewer.
Possible by a national actor, not from a script kiddie.
National actor is obviously not going to change to a value that sounds dangerous but will be quickly found and does nothing.
So it's a insider job, I'd wouldn't rule out someone sat on a keyboard. I'd even put it out there perhaps no one remoted in.