by WalterBright · 4y ago · 0 comments
It's about time. That's how airliners are designed. The guiding principle is "no single failure will bring the airplane down."
What it is not is "guarantee critical components will not fail".
The airline design principle is applicable to all kinds of things, like electrical grid design, security design, nuclear plant design, oil drilling platform design, ship design, and on and on. But I see it rarely applied, which is frustrating.
What ZTN is mostly about is changing the SPOF we had before --- the network perimeter --- to something fuzzier and more flexible. It's a good plan; we've been talking for over 20 years, going back to the Jericho Forum, about "deperimeterization" and "segmentation", and segmentation hasn't really worked out.
But it'd be a mistake to look at all of this stuff and think that it's a shift away from single points of failure, or to fundamentally greater resilience. We're opting for better SPOFs, not the elimination of SPOFs.
I have had people tell me in meetings at work that they have pictures of people swapping out parts on an assembly line for unknown parts. If that's happening, unless the machines are verified by XRay, from my point of view, the ZT concept isn't worth a whole lot.
We don't so much have to get lost in abstractions here. There's a blueprint: all this ZTN stuff was inspired by Google's BeyondCorp paper (ZTN is the marketing-neutral name for BeyondCorp; the Kubernetes to BC's Borg). So: just go read the BeyondTrust paper; it's great:
https://storage.googleapis.com/pub-tools-public-publication-...
a) This is implementation heavy
b) The implementation is tied to a specific company migrating to this approach incrementally
I would say it's a great case study for moving to a ZTN, but if I were to explain ZTN I'd probably just propose a definition. I'm technically a vendor but the definition serves me in no way.
1. Requests are mutually authenticated and always encrypted (ex: mtls)
2. Requests are authorized; policy oriented, granular, and contextual authorization
3. Requests are monitored and audited
The paper lists a bunch of ways to accomplish those goals. SSO, device inventories, an authorizing proxy, a monitor, etc.
Of course, you're right. Vendors are horribly self serving and have already significantly degraded the term and confused people.
The idea is assume the board is compromised. Now what?
Answering that question is the key to robustness.
A company wants to design a service with three operations. Signup(username, password), SetData(username, password, new_data) and GetData(username).
The client app is assumed to be trusted, but any server (no more than one though) could be compromised. Design a protocol so that the compromise does neither allow an attacker to update someone elses data, return wrong data, nor cause a denial of service.
aren't all internal amazon services doing this every-api-called-authenticated thing?
Yet another example of the concepts of airliner design being completely unknown outside of the aviation industry.
The "grid" doesn't appear to be a grid at all, but a tree. An actual grid would be able to route around failures, much like the internet protocol can do.
Load is simply distributed among the working parts of the grid.
However the issue is that the grid doesn’t cut off a part of itself for the sake of survival.
I think the issue is: at some point you have to shed off some of your customers and choose the ones that still get power.
Who makes that call? Where do you even draw the lines? And how do you do this quickly in a few minutes?
And yeah, you let a section fail if that prevents the entire system from failing.
The power in my neighborhood fails all the time, even though it is well within the city. Fed up, I finally installed a generator last year. Several failures since, including going out for the night 2 days ago, continues to justify it. I was probably the last holdout, one by one each of the neighbors had acquired a generator.
I live in California and I have had maybe 2 blackouts in 15 years? For maybe 3 hours?
Granted, my electricity bill is kind of high.
The trouble is that the power grid just operates on the electrical principle of electricity following the path of least resistance. So if there's low resistance but low capacity line between generation and usage, the electricity will flow through it, and there is no QoS on the line that can limit how much power goes through it, besides on/off.
The on/off nature of the interconnections is what makes the power grid fragile. If a interconnection has a rating of 100MW or whatever, and the grid attempts to pump 110MW through it, you either leave it on and hope it doesn't break or shut it off and pump 0MW. The grid will then automatically route that 110MW through other interconnects. If there is a nearby 500MW interconnect that is currently pumping 350MW, you're fine, but if it's pumping 475MW, you're probably not. This can lead to cascading failures.
The grid does have the ability to shut down usage if there's a danger of a cascading failure. For instance, if your 100MW rated interconnect has 101MW coursing through it, you can shut down a neighborhood that's using 10MW or whatever, and keep the 100MW interconnect online with just 91MW running through it. This is what brownouts and rolling blackouts are.
The grid can have major failures, but these major failures don't happen unless there are multiple overlapping minor failures. Similarly, if your 737 MAX has 2 MCAS sensors and 1 manual MCAS override button, and both your sensors and your manual override all fail, you're going to have a bad time. Look at the sequence of events of the 2003 Northeast blackout: https://en.wikipedia.org/wiki/Northeast_blackout_of_2003#Seq... There are at least half a dozen failures between the initial problem at 12:15pm and until the point of no return failure at 4:05pm that if handled properly would have averted the crisis and turned it into a minor inconvenience. At least half a dozen instances of human error plus multiple instances of equipment failures. If an aircraft had that many things go wrong all at once, the plane's going down.
Note that the Texas power outage last year wasn't like this at all. The grid actually kept working fine, the problem is that there were lots of generators that failed as a result of the cold, mostly due to impure natural gas freezing. The generation capacity of the grid was cut to a fraction of its capacity, and as a result, they shut down a bunch of cities to reduce load. For whatever reason, they just left power off in several cities for days instead of doing rolling blackouts. I don't know enough about the circumstances to speculate on what the reason for that is.
But you should know that there was a backup. 3 crews experience MCAS failure. 2 crashed. The 3rd crew simply turned off the stab trim system and completed the flight safely. You almost never hear about crew #3.
I can't really offer any suggestions for the power grid, as I don't know enough about it, except that I'm sure there's a way :-)
Unfortunately for the Ethiopian Airlines crew, they were too late. By the time they set the stabilizer trim to CUT OUT, MCAS already pushed the plane nose down too much and they couldn't manage them manual controls, which were pretty hard to use under extreme conditions[2].
I'm not an expert or even an amateur, but the engineering issue I see here is that Boeing really left no contingency plan for a catastrophically failing AoA sensor on take-off. You can't turn off MCAS directly, and the recommended indirect method for turning it off require skills that many (most?) commercial airline pilots are not trained for.
The worst thing, of course, is that the Lion Air crew that crashed wasn't even aware of MCAS. The 737 MAX manuals made no mention of it.
[1]: https://en.wikipedia.org/wiki/Ethiopian_Airlines_Flight_302 [2]: https://www.cliffordlaw.com/boeing-faa-knew-manual-stab-trim...
All it takes for a 737 MAX to crash is one piece of equipment failure and 2/3 an instance of human error. I submit that if three crews were presenting with the same situation and two of them crashed with everyone onboard killed, it's not really the sort of thing that you can blame on human error.
All it takes for a catastrophic failure of the grid is literally over a dozen cascading equipment and human error instances.
I guess I don't understand -- you're saying that the grid, where over a dozen overlapping failures is required for catastrophic results, should learn from the airline industry where it takes 2-5 failures to bring down an airliner.
I think it's possible you're maybe getting confused about what the point of the interview was-- were they talking about a targeted attack on the power grid? An adversarial opponent, knowledgeable, determined, well funded, conducting a dedicated attack on the power grid? I think that yes, if a nation state or terrorist organization conducted a targeted attack on the power grid, it would likely do an outsized amount of damage on a regional portion of the nation compared to the resources expended. But in that case the comparison to airliners does not apply -- all the redundant safety systems in the world aren't going to save you from a Buk or SM-2MR surface to air missile.
And in cases like zero trust it may mean things like “make sure it works so well you don’t have people resetting access over the phone” or requiring an in-person replacement of a security token, etc.
*Can* this fail?
but instead ask:
*When* this fails, can it be survived?
I don't think I'm communicating myself clearly here, but I would like to thank the parent commenter for his insight into this area and more. Just to cover my bases.
EDIT: I want to make clear that there is no sarcasm here. I respect WalterBright probably only behind Knuth in terms of effective programmers/engineers in the field today, and I doubt I could add anything to his opinions.
In order to survive shutting down that access, the system must be compartmentalized, so the shutdown is limited in scope.
For example, the hydraulic system on an airplane has a redundant equivalent hydraulic system. But within a hydraulic system, it is designed to isolate failed sections of it from the rest, so the rest can still function. I.e. developing a leak in the elevator actuators won't disable the aileron actuators on the wings.
The Fukushima plant and Deepwater Horizon rig both had a vulnerability to a single point of failure that produced cascading failures that unzipped the whole system. Both were easily and inexpensively preventable.
But that may not fit the risk profile, and you may need additional considerations - and perhaps even different levels of authentication.
1. when on a ladder, always 3 of my 4 limbs are firmly on the ladder at all times.
2. when jacking up my car, I always put 2 sets of jack stands under it.
3. I never put a body part underneath a chain hoist.
4. I rehearse in my mind what to do if the brakes fail.
EDIT: In case it's not clear: I'm talking about employee facing software inside an organization where you might have some kind of single sign on system or a distributed account system (like IPA or LDAP.)
The SP never sees the credentials. The SP only sees a token which includes the username (NameID) and other attributes passed from the IdP through the client.
https://en.wikipedia.org/wiki/Security_Assertion_Markup_Lang...
(Scroll down to the "Single sign-on using SAML in a Web browser" image for a good data flow depiction)
Basically this seems to be a "SAML-IZE EVERYTHING".
With ZT, you basically have to bootstrap trust from the factory. I don't think of ZT as "don't trust anything" - it's more like "trust our supply lines".
Think about the failure modes of ZT: if the NIC, the CPU, the OS, and the bootloader are deemed secure at boot time, there has to be something that starts the bootloader and loads its keys. If you compromise _that_ piece, then you can compromise anything further up the stack and not worry too much about security alerts. The only way to make sure that all machines are secure/uncompromised is to XRay all of the bootloader chips and verify them down to the ~100um level (got this figure by talking to a guy doing grad work @UofM when he was in SV around 2017-2018, I want to say).
There is a Wikipedia article on 'Key ceremony'[0] that seems to indicate an in-real-life shared secret creation and or sharing event.
For example, don't use the same password on your Etrade account that you use on your bank account.