0:00 I'm going to be talking about… I've learned my lesson. I used to talk about
0:06 KERI and go through some of the simpler things. And I'm actually going to talk at
0:14 a more high level but more technically deep if that's contradictory because I
0:20 found that actually explaining the how and why of KERI is more interesting to people
0:26 than the what. The what is technical detail that's easy to figure out if you're
0:33 technical. If you're not technical, it's a waste of your time. But the how and
0:37 why I think it motivates KERI a little bit more. I'm going to talk about that
0:41 today. It's a long title. Somebody said this sounds like a thesis. And since
0:46 I used to be a professor, I can't help but write everything like it's an engineering
0:50 paper or whatever, but that's the way it is. And for those of you who don't
0:57 know anything about KERI. If you go to KERI.one, the resources page, there's a
1:04 bunch of links for articles that you can learn about KERI. KERI Foundation has
1:09 videos online. You go to there. There's several videos from the last two
1:14 conferences. The KERI Foundation also has a GitHub for those who want to download
1:18 code. You can go there. And for those of you that have been out in the hallway,
1:23 there's a couple of KERI Foundation developers that are showing demos. The Web
1:28 of Trust, There's a lot of code there with KERI stuff. The KERI working group of the
1:33 Trust over IP Foundation. You can go there to see when we meet. And also they have
1:41 repositories of the specs. And then I also have a lot of papers and presentations on
1:45 my own personal GitHub page. Those are all places you can go to learn more about
1:50 KERI if this doesn't provide enough information. I'm going to start with a
1:57 few preliminaries. We talk about the sort of fundamental assumptions on which KERI
2:03 is based. And the fundamental assumption is that if I'm using really good crypto,
2:11 which means crypto that is seasoned, it's been around for a while, it's not new,
2:16 it's not black magic, it has been proven to not be vulnerable to brute force
2:22 attack. That's the whole point. Now, quantum computers are changing that.
2:28 Don't worry. We're cryptographically agile. We can move to that. But at this
2:35 point in time, these assumptions are valid and all it does is change what is good
2:40 crypto in the future. But the point is that if it's good crypto, by definition,
2:45 it's not vulnerable to a brute force attack. When you see movies and they're
2:50 breaking keys or breaking signatures or breaking encryption and they're just doing
2:57 it with some magic key, that's not how it happens. They can't brute force it. That
3:03 doesn't happen. And we can migrate, so we don't have to worry
3:09 about that. What the weakness is, is not brute forcing the crypto. It's called a
3:14 side channel attack. What that means is you're not attacking the crypto, you're
3:18 attacking something else. And principally what you're attacking is the key
3:23 management. You can't break the crypto, but you can break the key management.
3:28 Most people when they talk about cryptography, they assume that the key
3:32 management is not broken. You go read a spec for some sort of crypto and you get
3:39 down to the security considerations. They'll say things like, we assume that
3:43 your private keys remain private. And if your private keys have been exposed, then
3:48 nothing that we said above works because it's all broken. If you go
3:54 through life thinking that crypto solves the hard problem of key management, you
3:59 would be absolutely wrong. Crypto does not solve key management. It solves a problem
4:05 that is brute force attack. You can't brute force attack. And they do a really
4:10 good job of that. Key management is the principal weakness because that's
4:15 where most site channel attacks. When you get phished, are they attacking the
4:20 crypto? They're attacking the key management. What are they phishing? Your
4:25 keys or your password, which is your secret. Vulnerabilities are
4:31 almost always side channel attacks. KERI uses a signed everything no shared
4:37 secret security system. What are shared secrets? Passwords, tokens, TLS uses
4:47 shared secrets. Even though it has public private keys, it's exchanging a shared
4:51 secret. Shared secrets are fundamentally weak because two parties know the secret.
4:58 It's shared. That means either party is a vulnerability. A key compromised
5:04 impersonation attack is where the host has really, really good security and the
5:13 client has really, really bad security. They don't attack the host, they
5:17 attack the client. They compromise the client side of the shared secret and then
5:22 they can impersonate the host. Now the thing you want to get into is not the
5:27 client. You want to get into the host. You've now made it so that some
5:31 other client thinks that they're getting into the host and they're not. They're
5:35 getting into a compromised host and then you're asking them to reveal other keys
5:40 and other permissions and now that's the first step in a recursive privilege
5:46 escalation attack. By saying no shared secrets anywhere, we've eliminated the
5:52 single biggest chunk of vulnerabilities in all of the internet. We've
5:58 thrown them out the window and said those don't apply to us. All right.
6:02 That's one of the principal basis of KERI is saying we're going to avoid being
6:07 vulnerable to things by not using those things that make us vulnerable. It's a
6:11 signed everything no shared secret approach. Principal weakness, side
6:16 channel attacks, management of private keys. We still have private keys. We got
6:19 rid of shared secrets. Private keys are not shared secrets if they're truly
6:23 private. If I share something that's not private. The definition in the dictionary
6:29 of private has 20 definitions. The first three or four are about intimate
6:35 information. As soon as you share something, you're using a different
6:42 definition of privacy. If I share something with another party, it's not
6:49 private anymore. It's private if it had never left me. The idea of a
6:56 private key is that it's never shared. If it's never shared, it's hard to phish
7:00 because everybody is educated to share their secrets if they're shared secrets.
7:06 How do I log in with a password? I have to share my secret. Phishing is about
7:12 confusing the user when to share and when not to share. If I never share, it's much
7:18 harder to confuse me. Now, you still can, but that's why I say it's phish-resistant.
7:22 The idea is we're starting with the hardest thing for an
7:26 attacker to attack is the private keys. For example, FIDO and passkeys use
7:32 private keys in signatures. They're fundamentally more secure than anything
7:36 that doesn't use private keys. But they don't solve the hard problem of key
7:41 rotation. KERI solves the hard problem in key rotation. That's what we're going
7:44 to talk about. What is KERI? It's a tunable fault-tolerant decentralized key
7:50 management infrastructure based on a complementary set of threshold structures
7:54 that make system failure practically infeasible. Up above, I talked about
8:01 computational infeasibility. That means you can't brute force the crypto. And
8:07 computational infeasibility means if you had all the supercomputers in the world
8:11 trying to brute force it for the next trillion years, they couldn't do it.
8:15 That's what cryptographic strength means. It is just not possible.
8:19 Practical infeasibility means that the resources available to the attacker to
8:27 attack you, if you make your system sufficiently fault tolerant, it will
8:36 always cost them more to succeed in an attack than they get from the attack.
8:43 They won't attack. Does that make sense? Does that definition resonate with you
8:46 guys? Anybody? The idea is to make an attack more costly to the
8:52 attacker than what they get from a successful attack. And despite what
8:59 everybody might think, most attackers, there is a cost-benefit analysis they go
9:05 through because there's a rich target environment. They're going to attack the
9:09 things that are going to give them the maximum return. They're not going to
9:12 attack the things that don't give them return. The design ethos of KERI is to
9:19 make attack practically infeasible. Let's talk about fault-tolerant systems
9:25 because I use that term. The definition of fault-tolerant system and in the English
9:31 dictionary fault and failure are synonyms, but in fault-tolerant systems we define
9:36 them differently. A fault-tolerant system continues operating despite faults.
9:41 An example would be
9:47 you're driving a car and the rear passenger window breaks, the car can still
9:55 drive. But if it's raining and your windshield breaks and you can't see, then
10:02 that's called a failure because you can't drive anymore. If you have a flat
10:06 tire for most cars, that's a system failure. Lots of systems
10:14 that are fault tolerant have typically enough redundancy that things can fail and
10:19 you can still complete your mission. I use this example from World War II. Tiger
10:25 tanks had thicker armor, bigger guns, were really tough to beat. The Americans
10:34 had Sherman tanks, which compared to a Tiger tank were just not all that great.
10:39 But the Americans had production capacity, they could afford to produce five Sherman
10:45 tanks or even 10 or 15 Sherman tanks for every German Tiger tank. Five Sherman
10:52 tanks can take out a Tiger tank. Now they can't take out the Tiger tank in a frontal
10:58 assault. The front armor on the Tiger tank is too thick for the Sherman tanks. Their
11:02 guns won't pierce the armor. They're just not big enough. They just bounce off. But
11:07 if you can get behind the Tiger tank and shoot it in the behind, the armor back
11:13 there is thin enough that you can take it out. The whole strategy is to send five
11:18 tanks around the Tiger tank and get it confused enough that it finally lets you
11:22 get behind it and you can shoot it. And there's a movie where they demonstrate
11:25 that. What's it called? – Is it Fury? – Fury, yes. They actually
11:31 do that in the movie. They have a squad of five Tiger tanks. I mean Sherman tanks.
11:37 The Tiger takes a couple of them out right away and then the other ones manage to
11:40 kill it. A squadron of Sherman tanks is fault
11:47 tolerant. Much more so than the one tiger tank. What we call a fault is
11:54 that if some part of the system malfunctions, that's the fault. That's not
11:59 the same as a failure. I've already given examples. You can have faults all
12:02 the time, but if you can complete your mission, you're fault tolerant. In other
12:06 words, the faults occur, but it doesn't matter. You can continue.
12:11 When the system as a whole is no longer able to achieve its mission, then we call
12:14 that a system failure or a failure. What we're trying to do is prevent
12:18 failures. One of the things you do in a fault tolerant design is you look for
12:23 single points of failure. If I got a car with four wheels and I can't
12:29 drive with three, then every wheel is a single point of failure. I've got four
12:34 single points of failure. That's not a really good design. It's just
12:40 not going to survive. Another point is called a common mode failure. That
12:45 means multiple components that share the same failure mode. The same thing takes
12:49 them out. And in computer security systems the FAAs routers with
12:55 copper wires that takes down every single FAA system, that's called a common mode
13:03 failure. You just experienced a common mode failure. In fact, we had multiple
13:07 common mode failures this last week. In multiple
13:10 systems. People are not using survivability engineering to design those
13:16 systems. This is an engineering design failure. This is people building
13:21 systems not following textbook design principles for building those systems. And
13:26 guess what? Key management historically has not followed engineering survivability
13:32 engineering practices. It just doesn't because cryptographers in general don't
13:36 care. About key management. They care about brute force attacks so that it's
13:42 really good. And it's not a criticism of cryptographers. If you're an academic
13:47 who's trying to publish papers in cryptography, you're not going to get very
13:51 much acolytes for publishing a paper on key management. It's just
13:55 like, that's just boring, dumb something called key management that's
13:58 about user interfaces. The key is if you can repair faults as they occur
14:09 so that a cascade of faults does not lead to failure, then you have a really fault
14:15 -tolerant system. If you have just redundancy, let's say you have five
14:19 Sherman tanks. And you go to battle and two of them get killed. Now you're
14:23 down to three. You go to battle again, two more get killed. Now you're down to one
14:27 and then you're done. That's a system failure. But if you have a way to
14:32 replenish those Sherman tanks as fast as they get killed. Like today you
14:37 fought, you lost two, and then two more get dropped from the
14:41 sky and with new guys and the next day you're back to full strength. If
14:46 you can replenish every day, then you never fail. You go the whole war and you
14:51 never fail. They'd have to take all five of you out in the battle for
14:56 you to fail. The goal of really good fault-tolerant systems is recovery from
15:01 fault, not redundancy, not resiliency, but recovery. If I want to recover from a
15:10 fault, I have to be able to detect a fault. If I don't know that I had a fault,
15:15 I can't recover from it. Most computer security systems, you can't detect the
15:22 faults until they cascade into a failure. If you think about what a breach looks
15:33 like, they're usually like a recursive privilege escalation attack. There are a
15:40 set of faults that happen. And after a certain amount of time, those faults
15:45 result in a true breach. But none of those faults were detected until it was too late
15:51 and then you had the breach. Failure to detect describes pretty much every
15:56 computer breach. There was no ability to detect systems. Survivability
16:04 engineering is something that I worked on as an academic. I did a lot of work for
16:07 the Navy. I started doing autonomous underwater vehicles and I went into
16:11 survival shipboard automation. And then when I retired from the university, I went
16:16 into critical infrastructure system design and so on. The idea though is that there's
16:22 this old technology called reliability engineering. It's been around for years.
16:27 Reliability engineering is why the Japanese car industry,
16:32 automobile industry was able to become high quality in a very short period of
16:37 time because they, in their factory, said, we're going to do reliable engineering.
16:41 Anybody heard the phrase six nines? Reliable engineering is where six nines
16:46 comes from. You look at all of the faults and you figure out the likelihood of the
16:53 faults and then you work to make those faults only occur once in every
16:56 10,000 times. So that you just don't have faults. You build your
17:02 systems like that. The problem is that in the military, we have a hazardous
17:07 environment. An automobile motor that fails because the rings on the piston wore
17:15 out after 100,000 miles is reliable engineering. An automobile engine that
17:21 fails because a rocket hit it and blew it up is survivability engineering. The time
17:29 frame the dynamism of the fault is what makes it go from reliability to
17:34 survivability. You're in a hazard environment. People are blowing things up.
17:39 Like we did autonomous underwater vehicles underwater. These vehicles are
17:42 electric in saltwater. If you know what happens to electricity in
17:47 saltwater, it conducts. And you have metal canisters in saltwater with
17:53 electricity inside of them. That's a dangerous thing. That's corrosion waiting
17:58 to happen. And in corrosion at accelerated pace means that at some point
18:03 you're going to have a leak. In fact, that was… Never mind. I won't say that
18:08 story. Anyway, hazardous environments. What we did is we take the reliability
18:15 engineering techniques, we combine it with critical infrastructure because we're
18:19 trying to make that survivable, and then we come up with risk mitigation design
18:23 techniques. What critical infrastructure engineering, which is
18:28 related, did is it's you look at a system and you say, where do I put my resources?
18:32 How do I allocate resources to mitigate bad things from happening? Who in here
18:37 knows… What it says is you take the likelihood of failure, you multiply it by
18:42 the significance of failure. And typically what
18:48 you do is you just assign a dollar value. That the actuarial
18:53 insurance industry has produced a cost of death. Everybody's life is worth a
19:00 few thousand dollars on average. It doesn't sound really great, but it's true.
19:05 If an asteroid the size of Rhode Island were to strike the Earth,
19:13 what would be the significance of that failure? Depends on where it lands. If an
19:20 asteroid the size of Rhode Island hit anywhere on the Earth, what would happen?
19:26 Instinction level event. The significance of that failure is all the
19:31 value of everything on the earth as we know it. It is as high a
19:35 significance as you can get. Now, what's the likelihood of an asteroid the
19:39 size of Rhode Island striking the earth? It's a really, really, really teeny
19:44 number. The criticality is actually quite low. We don't spend
19:49 resources to protect ourselves from asteroids striking the earth. Now,
19:54 there is an extinction-level event that has a actually quite high likelihood. Does
19:59 anybody know what it is? Nuclear war. Another one is a solar flare. We
20:08 have solar flares that would put us back to the dark ages and we've had them happen
20:14 in the last 10 years. They just happened to be pointing away from the earth at the
20:18 time. But if they had hit the earth, they would have taken out all of
20:21 our satellites, all electronic infrastructure. We wouldn't have
20:23 electricity. Everybody would starve and die of food and die of disease. And we'd
20:27 be living like in the 1700s in about a year. I know you really like that.
20:33 The point is that when you're designing a system using these principles,
20:39 you need to figure out what your risks are in a criticality. And I
20:44 often get in these discussions with people who say, well, this could happen and this
20:48 could happen and this could happen and they don't multiply the significance it by
20:53 the likelihood. There's lots of things in a security system that if they
20:57 happen, it would be really, really bad. But the likelihood is so small that
21:02 it's not worth the resources. Could an attacker compromise grandma's
21:08 cell phone? Absolutely. Grandma's cell phone is protecting $100 in grandma's bank
21:15 account. What's the likelihood that that attacker is going to waste 10 times that
21:21 amount of effort or 100 times that amount of effort to actually compromise grandma's
21:25 cell phone? Zero. The point is that unless you weight every failure mode
21:32 by the significance, it doesn't matter that there's a failure mode because it
21:41 won't happen because there's no incentive. You rate and rank infrastructure
21:45 threats mitigation via criticality. You then establish a risk profile based on the
21:51 threat environment. And then you use survivable engineering to figure out
21:56 how to design the system to protect against the risk profiles and the threats
22:01 that have high criticality. That's the number. You go to the highest
22:06 criticality, protect against that one, then you just go down the list until you
22:08 run out of resources. And then you go, did we get practical infeasibility when we ran
22:13 out of resources? If we did, great, we won because they're not going to attack us. Or
22:19 if they attack us, they're going to lose money, so they'll give up after a while.
22:22 What you usually do is you build what are called reliability block
22:26 diagrams, where you take all the system components and all their dependencies and
22:30 you calculate all of this stuff. And I'm not going to go into the math here, but
22:33 it's well established. What does survivability look like? These are some
22:39 of the systems I worked on. These are the autonomous underwater vehicles. This is a
22:42 ship at the Naval Academy that participated in Fleet Week. What that ship
22:46 had is a self-healing communications network, a self-healing power network, and
22:53 that was all automating the steering and propulsion on the system. And we built
22:59 scale models of that same technology used for the next generation surface combatant.
23:05 And that was going really well until 9-11 hit. And then because that was to solve
23:11 blue water Navy problems and not brown water Navy problems. The Iran-Iraq
23:16 war was a brown water Navy problem. And then behind that is a picture of a
23:22 electronic substation that we automated with robotics and stuff like that, but
23:26 also done on that same design. And one of the ways I got into it as a consultant, we
23:31 did a criticality systems analysis for all of Miami-Dade's infrastructures. It took a
23:36 year. And that was actually after 9-11 because everybody after 9-11 was worried
23:42 that all of their buildings would get bombed. They spent time on it.
23:48 Survivability is three factors. Susceptibility: likelihood of attack,
23:53 vulnerability: likelihood of damage at a given significance given an attack and
23:57 recoverability: the likelihood of timely repair of damage at a given level of
24:01 significance before failure. Damage is a fault. I have a
24:10 slide. I don't have it here, but you guys know what it is. You've seen this. It's a
24:16 joke. If there are two people in the woods and they see a bear and one goes to the
24:22 other one, there's a bear. What do we do? And the other one says, run. And he goes,
24:26 we can't outrun the bear. And the second one says, I don't have to outrun the bear.
24:32 I have to outrun you. When attackers are attacking a system, they're
24:37 going to attack the slow fat one before they attack the fast one. And if
24:44 there are enough slow fat ones, they never get to the fast one. You only have to
24:48 be a little bit more secure than your target-rich environment. Now, the problem
24:54 with that is that with AI, the resources of the attacker have been multiplied so
25:01 that everybody looks slow and fat compared to the AI. That's a problem. But
25:07 still low value targets are low value targets even if they're easy to eat.
25:12 You're still not going to expend resources to get them. In other words, the
25:17 bear can chase you down and eat you, but if the bear has to run 50 yards, it may
25:24 not because it says there's just not enough food there. You're just not
25:28 worth it. You're not worth the effort. If you're not worth the effort,
25:32 your susceptibility is really low, which means you won't be attacked, which means
25:35 your survivability is actually quite high. Vulnerability is given that you're
25:39 attacked, can they do damage? If a Sherman tank is attacked by a Tiger
25:44 tank, it's done. It's vulnerable. But can the Tiger tank take out five Sherman
25:50 tanks? No, because they're mobile and agile and they can move around and it
25:53 might get one or two of them, but it won't get all five of them. The
25:57 vulnerability significance is a function of how much damage happens and
26:06 does the damage result in failure or is the damage only a fault that you can
26:10 recover from? Recoverability is the likelihood of timely repair, which
26:15 means you can repair the damage before failure. And if I can repair the
26:21 damage before failure, then my likelihood of failure goes way down. Likelihood of
26:25 failure is susceptibility times the vulnerability times one minus the
26:28 recoverability, which means if I have 100% recoverability, then I can have zero
26:34 failure because zero times anything is still zero. If I have one of
26:40 my recoverability, then my likelihood of failure is zero. That's an important
26:45 insight. We did some work, especially when we were doing the
26:48 shipboard automation. We used AI back in the 90s. When nobody knew what it was to
26:54 analyze all the different topologies of networks and figure out which ones had the
27:00 highest survivability for cost. You do a cost survivability trade-off and guess
27:06 what? Networks that could recover were much more cost-effective at survivability
27:13 than networks that were highly redundant. If I had 5x redundancy, it was actually
27:19 less survivable than a 1.5x redundancy, but where I could repurpose the redundant
27:26 components to smartly repair failures where they occurred on the network. I
27:31 needed a different topology than I would with just hot backups everywhere.
27:36 What's a threshold structure? A threshold structure multiplies the number
27:41 of attack surfaces that must be simultaneously compromised in order for an
27:44 attack to fully succeed. I've already given an example of that. A
27:48 squadron of Sherman tanks can take the tiger out unless the tiger kills all five
27:53 of them first. If one's left and is behind the tiger, he wins. That
28:00 means the tiger has a… They should be afraid. They should be going,
28:05 we got stronger armor. We've got a bigger gun, but we're slow and that Sherman's
28:09 much faster than we are. And if you watch the movie Fury, the rate at which that
28:14 tiger tank's turret could turn to track a Sherman, if the Sherman's 500 yards away,
28:20 it can track it. If the Sherman's 20 yards away, it can't keep up with it, which
28:25 means the Sherman can get around behind it and kill it before it can turn and bring
28:29 its gun to bear. You have to be really brave. You have to get in close. You have
28:33 to fight dirty, but you can win. A fault-tolerant system detects
28:39 and recovers from a partially successful attack, thereby reverting the attack
28:43 progress. Imagine the attacker starts to attack your system. They get a little
28:47 bit of the ways in it. You detect it. You recover from it. And now they have to
28:51 start all over again. And then the next day they did the same thing. Detect,
28:54 recover. Same thing. Next, detect, recover. And that goes on for several
28:57 months. What's the amount of resources they spent to attack you? Futily
29:03 with no return. That's part of the ROI. Recoverable systems that
29:11 have fault detection are really, really good against attackers because you can get
29:18 a perpetually secure system. You can have a system that if it's timely enough and
29:23 has enough recovery resources and in the threat environment, you've done the
29:27 design right, makes it so the attacker doesn't want to attack you. In
29:33 KERI, a recoverable fault is a successful side channel attack on signing keys.
29:40 KERI design assumes the worst case failure that everybody else says can't happen.
29:45 Everybody else says if you compromise your signing keys, you're done. All of
29:50 blockchain for the most part, it hasn't changed. Not yet. If
29:55 your blockchain signing keys are compromised, they can take all of your
29:59 money and there's no way for you to recover. – If they have a
30:03 verifiable smart contract. – Okay. They're working on it.
30:07 But if I have a passkey that allows me to access my bank
30:13 account and the signing key is compromised, I'm done.
30:18 That means that in KERI, we say that the fault isn't compromising the
30:24 signing key. The system failure is a different thing. It's loss of control over
30:30 the identifier. Does that mean that if your signing keys are compromised, there's
30:33 no danger to you? Absolutely not. In KERI, if your signing keys are compromised, you
30:38 could have harm. But if you look at the types of
30:44 systems that identities use to protect things, there are things we can do so that
30:49 a loss of signing keys, you can mitigate that harm significantly as long as you
30:54 don't lose control of your identifier. I just want you to
30:58 understand that that's our definition. We could have defined different faults and
31:02 come up with something else, but the side channel attack that is really hard to
31:07 do, that we say we're going to allow that as a fault that we can recover from means
31:11 that we're in a different regime from a security perspective. We've
31:16 gotten rid of all shared secrets. Shared secrets aren't in our vulnerability
31:19 profile. And even if you compromise signing keys, it's a recoverable fault for
31:24 us. We're already just in a different regime. By design, KERI is
31:29 in a different regime. And a lot of people don't understand that KERI isn't about
31:34 cryptography. KERI is about fault tolerant key management. KERI less about the
31:39 cryptography. I'm just using vanilla dumb, what do I call it? White magic
31:45 cryptography. It's off the shelf stuff. It's nothing fancy. It's
31:50 nothing like even now with the post -quantum crypto. One of the problems
31:53 people are saying is, NIST is standard on all these post-quantum crypto
31:56 stuff, but you know how much seasoning that post-quantum crypto has had? Like two
32:01 or three years at most. Do you know how long it usually takes for good crypto to
32:06 be seasoned before people are confident that there aren't any lurking
32:10 vulnerabilities? More than a decade. – But with agentic
32:16 probing, perhaps, maybe that timeframe can be compressed. – Perhaps.
32:24 The point is that if we design a system that already has vulnerabilities
32:28 built into it because we've taken risky design choices, then it's hard to make
32:34 guarantees. Elliptic-curve cryptography has been around for over 30 years. It was on patent
32:42 for 19 years. But since 2011, it's been off patent. Since 2011, it's proven
32:49 itself to be invulnerable. Despite multiple Moore's law increases in
32:53 computation and stuff like that, it's still just as strong as it ever was until
32:57 we get quantum computers and then quantum computers can break it. We
33:03 start by designing the system so that faults are always exposed. The rule is
33:08 if you're going to build a fault-tolerant system that has recoverability, the one
33:12 thing that you have to build first is detection of fault. You don't
33:18 hide the faults. Lots of systems are built to hide faults. A lot of distributed
33:25 consensus algorithms hide faults. They make it so the system is live. It always
33:31 has to operate. It can't ever stop. And that means that it has to make a decision.
33:35 And if that decision bakes in into history that a fault like your keys are
33:40 compromised, it's unrecoverable. It's baked in. And people don't think of it
33:45 that way. I'm not criticizing blockchain systems. I'm just saying
33:48 that exposing faults means that you usually make a trade-off where you say
33:53 if a fault occurs, we stop, we repair it, and then we resume. We don't just keep
33:59 going and ignoring the fault. It's better the fault you know about but can't
34:04 fix just yet than the fault you don't know about even if you don't need to fix it
34:08 just yet. You think, wait, I don't need to fix it yet. Why do I
34:12 care? Because a failure is a cascade of faults. If I don't know about faults,
34:20 then they're going to compound. They have no choice but to compound
34:24 because everything's faulty. Until eventually you have an unanticipated
34:29 catastrophic system failure. You didn't see it coming. And that describes pretty
34:34 much every security breach. The first thing we have to do is build
34:38 a detection mechanism. In KERI, the main fault that we're detecting is
34:43 duplicity. The aha moment I had in designing KERI was that a compromised
34:49 controller and a malicious controller (compromised means their signing keys are
34:53 compromised or the signing infrastructure is compromised) and a controller is
34:57 malicious can be forced to exhibit the same fault, duplicity. If I can force the
35:03 fault to exhibit in a way that I can always detect, then I have the first
35:09 fundamental principle of a good fault -tolerant system that has recovery. I can
35:14 have a fault-tolerant system without recovery, but it's not a very good fault
35:17 -tolerant system because eventually after enough faults, it'll fail.
35:22 The timeframe extends. But if I can recover, then it's perpetually never going
35:27 to fail. Does that make sense? If I want it to never fail, I have to have recovery.
35:33 I can't just depend on redundancy. Almost every cryptographic system that I've seen
35:38 depends on redundancy, which only extends the life it doesn't prevent failure. It
35:45 just means you won't fail today, but you'll eventually fail. External
35:49 inconsistency looks like duplicity. And I'll define that in a little bit.
35:54 The policy is that I can trust KERI as long as all the non-reputable signatures
36:03 verify and there's no evidence of duplicity. I verify everything and then
36:08 I check for duplicity. If duplicity exists, then I stop trusting. I
36:13 don't continue to operate. I say, I can't trust that controller.
36:17 Very first sign of duplicity, I stop. That protects me from that fault causing
36:23 me any harm. And I don't resume trusting until the duplicity has been reconciled.
36:28 There's two parties here. There's a controller that's been compromised and
36:32 there's the relying party that's interacting with the controller. The
36:37 duplicity thing means that the relying party doesn't suffer any harm when the
36:43 controller is compromised. Now, the controller can suffer harm, but I've
36:47 already gotten rid of half the harms. Half of the interacting parties are
36:52 protected. Now, I have to worry about the controller. We force all faults
36:58 to exhibit duplicity. I'm kind of saying the same thing over and over again.
37:02 But this forcing of faults to exhibit as a detectable fault makes it so that the
37:08 system relative to its properties is actually very simple. And
37:14 that's the thing. People say KERI is complex. I say no, KERI is actually the
37:19 simplest way to get this level of security. If I tried to get the same level
37:24 of security not using KERI's properties, it would be way more complicated. If
37:29 you think it's complicated now, try to get this. And that's the reason why most
37:33 systems don't have this level of security because it's too complicated. They don't
37:36 even try. I was stupid enough to try and it actually worked. I'm like,
37:41 Okay. But it took a while. I simplified fault detection. I made
37:47 it as simple as possible, but no simpler, to quote a phrase. If I only have one
37:55 fault I have to detect. And all the faults exhibit that way, and I can
38:02 design the system so that everything that fails, fails in a
38:09 duplicity evident way, then I have an endemically fault-tolerant system because
38:14 I'm just detecting one thing and repairing one thing, over and over again.
38:19 And if I can make the cost of compromising my duplicity detection higher than the
38:25 return gain from doing so, then I have I've achieved my goal, which is making it
38:32 so the attacker always loses whenever they attack. How do we make things
38:38 duplicity detectable? We sign and hashchain everything. Everything is
38:45 signed in hash chains. If you saw my talk yesterday and I had hashes everywhere,
38:50 that's because I have to hash everything to make it so that I can detect duplicity
38:54 because a hash or a digest of something that is signed cryptographically is as
39:00 strong as signing the thing that is hashed, which means now I can build
39:05 hierarchical data structures of hashes and I just sign the hashes. I don't sign the
39:10 other stuff and that means that I can build more complex structures and still
39:15 force the duplicity. A digital signature requires the signer to know the
39:20 private key. I'm just kind of restating the obvious, but I want to go
39:26 back there. If the signer has to know the private key in order to sign it, then if
39:34 something is verifiably signed, then there's only two possibilities.
39:38 Either the signer acted maliciously using that private key to sign
39:44 something they weren't supposed to sign, or that was bad for them to
39:47 sign. Or their signing infrastructure was compromised. But from
39:52 the verifier's perspective, it doesn't matter whether it's malicious or
39:56 compromised, it looks like duplicity because it's non-reputably signed, which
40:01 means if they sign two different things that are supposed to do the same thing,
40:05 then you have duplicity. This signed hashchain data structures make
40:12 everything provably duplices. And provably means that I don't have to trust anybody.
40:16 Anybody that detects duplicity can publish the detection in a provable way. I
40:21 don't have to trust the detector. Everybody can become a detector and I can
40:26 verify that it happened. A verifier can say I don't have to have any
40:31 trusted third parties. I just need to have mechanisms that prove to me duplicity. And
40:38 then I'm protected. That means that successful attacks are forced to exhibit
40:44 in a detectable way. I know I've gone through a lot of slides with a
40:49 lot of stuff, but I'm going to do this and then go back to the actual detection
40:57 mechanism so you can understand what they look like. What KERI does is that we
41:03 have multiple threshold structures. We have a single fault
41:09 type, a fault tolerant detection mechanism for that fault type, which I haven't
41:13 explained what it is. We have layered threshold structures, not just one, but
41:17 multiple. Each layer makes it exponentially harder to attack because the
41:22 threshold structure multiplies the number of attack surfaces that have to be
41:26 signlessly compromised. Let's say that I have a Tiger tank and a squadron of
41:32 Sherman tanks. That's one threshold structure. They got to get four or
41:38 five or something like that to win. And then I layer on top of that another
41:44 five squadrons. Now to be successful, they have to take out five times
41:50 five. And then I layer another on that another five times every one of those
41:55 five. Now they have to take out 125 to be successful. That's why
42:01 it's exponential. If it's low cost for me to layer threshold structure, which it
42:05 is because it's just software, then I can quickly build a system that is
42:12 practically infeasible to attack because I've exponentially increased the cost of
42:17 attack without exponentially increasing the cost of building the systems. And then
42:23 I build in recovery mechanisms. Even if the attacker attacks is partially
42:26 successful, I can detect the attack in progress, recover from it, and make the
42:33 attacker start over. Tunability is that I can take those layered threshold
42:40 structures and tune them down to the particular risk profile. Grandma may
42:46 only need single SIG with a pre-rotated key or one of two pre-rotated keys with a
42:55 smart card. And that's all she needs ever will need for security. Whereas the root
42:59 of trust of GLEIF might need a hierarchy of delegated AIDs with 12 signers at
43:06 the root and key escrow mechanisms and you can't have all seven signers that are GLEIF
43:15 employees being in the same building at the same time. You can add all kinds of
43:18 stuff to make it so the attacker can't get to it. Tunability means that
43:25 the hardest thing about security is friction. If there's too much
43:29 friction, nobody will use it. You want to reduce the friction to the point to
43:33 where people will use it while still maintaining the fault tolerance, fault
43:37 resistance for the risk profile. And if the tunability is there, then you can find
43:43 a solution that fits the risk profile. KERI is complicated because it's tunable.
43:52 But once you tune it, it can be as simple as it needs to be. It doesn't have to be
43:57 all that complicated because a given risk profile may say, I don't really need more
44:04 security than X. If a passkey is really strong compared
44:10 to passwords and that's strong enough, then KERI is already stronger than a
44:15 passkey. Just a Single Sig KERI is stronger than a passkey. That's all
44:18 you'd ever need. The friction is really small. But
44:22 if I'm trying to protect a large enterprise like the state of Utah or
44:27 any state for that matter at their root of trust, I might want to have a few other
44:31 tunable parameters to make my security little bit stronger. What are those
44:35 threshold structures? Key Event Logs, signing keys, and pre-rotating keys.
44:40 There's two different sets of keys. That's a threshold structure. Multi-sig
44:45 signing keys. I can have multiple signing keys. Multi-sig rotation keys. And
44:51 understand that's multiplying. I have two and then each of those two could
44:56 be five or four or three. Now I have six. I went from
45:04 two to six just by multiplying. Hierarchy of delegated AIDs. If I
45:10 have delegated AIDs, each AID in the delegation chain protects all the AIDs
45:15 below it. The only way I can compromise this AID and gain control of it is I have
45:20 to also gain control of the delegator one. And if it has a delegator, then I have to
45:24 gain control of that one. And if this one's a Single Sig, but the delegator is a
45:28 multisig, then I have a threshold structure multiplied by the keys of this
45:32 one. And if he has one that's also a multisig, then I multiplied five times
45:35 five. I'm now at 25 keys that they have to compromise in order to gain control of
45:39 this thing that's only single sig at the bottom. And it's not a
45:44 lot of work. It's just software at this point. The user doesn't have to
45:47 see that because the user is down at the bottom and the people in the middle don't
45:53 have to use their keys very much because all they're doing is delegating. They're
45:55 not actually signing anything other than a delegation every time they hire and fire
46:00 somebody, which might be months?
46:04 Witness pools. I'm going to get to witness pools. Somebody wanted
46:09 to know about witness pools. We'll talk about witness pools. The watcher network.
46:12 Time delays relative to detection latency. This is probably the most subtle one that
46:16 people don't understand. Detection takes time. It's not instantaneous.
46:22 People always say, but you've got network latency, so you won't detect
46:25 the detection in time to stop the fault. What I do is I make failure a multi
46:31 -step process. I designed the system so that the attack starts with an event
46:38 that's detectable within a network they can see. And then the next event happens
46:43 at a time delay greater than my detection recovery latency. They can't actually
46:51 succeed in the attack until I've ensured that the first step of the attack has
46:56 already been detected. Which means that I can stop the attack before it gets
47:00 to any point. I'll give you an example. I want to borrow money from a
47:05 bank. Somebody wants to steal my identity, so they're going to go to the
47:10 bank with the stolen credentials and borrow money in my name. I'm the one
47:16 that's going to have to pay the loan back. They're going to skip town with the cash.
47:20 It's a really bad thing. The bank doesn't want to loan money to somebody
47:24 that's going to skip town with the cash because they have some liability as well.
47:27 What the bank does, it says we don't loan money on just a simple presentation
47:31 of credentials. That would be a really bad idea. What we do is we'll start a multi
47:38 -step transaction where you come in, you sign a promissory note, you anchor the
47:44 promissory note in your Key Event Log. That now means that you have a detectable
47:48 event. The only way it gets anchored in the Key Event Log is if they control the
47:53 signing keys. Either you're stupid and you're borrowing money and you know what
47:57 you're doing. Or your keys have been compromised. Either way, it's
48:02 detectable. Gets anchored in your Key Event Log. All of a sudden, you get a
48:06 notification on your phone that says, hey, did you intend to borrow half a
48:12 million dollars? Because we just have a promissory note anchoring in your key
48:17 event log that you didn't put there. You go, no, I didn't. In fact, I didn't put
48:22 any of that stuff in there. You do a key rotation to recover from it and then
48:27 72 hours after the promissory note, the bank says, come back in 72 hours and then
48:32 we'll give you the money. The imposter comes back in 72 hours and goes, give me
48:36 the money. And the bank says, well, that promissory note you anchored three days
48:39 ago isn't there anymore. We're not loaning you the money. They can't
48:44 ever steal your identity because you've extended it. – In this case,
48:50 where your signing keys are compromised, usually the device that the person would
48:56 get the signal that they would be inducing and have anchored this promissory note in
49:01 their KEL might be the same device that also was… – It depends on how the
49:06 signing keys are compromised. – Right. But let's just presume it's both
49:09 like the same… – But you could have a watcher that's
49:12 watching your witnesses. That's a different device. – No, I understand. But
49:15 the user has to have awareness of some signal that
49:21 isn't intercepted that tells them, hey, you did this. – Yes, that's called an
49:25 eclipse attack. Most attacks, unless
49:31 you're attacking a high-value individual, don't have the resources to
49:36 capture all of those. – I understand that, but I'm just still trying to think
49:39 of what ways of recourse you could establish so that that signal could get to
49:43 you. Even if your device… – If you have multiple watching devices,
49:46 then it can get to you and you can have multiple ways to… And if you have enough
49:49 time, like 72 hours, then there's a really good chance […] or you
49:54 could just extend the time. – Or you have like a security mesh where you have a
49:57 collective agreement where I'm watching my friend. – Yes, there's lots of more
50:00 sophisticated ways you could do it. The principle isn't the actual
50:04 mechanism. The principle is that if I have fault detection that has a latency, I can
50:10 design high value transactions so that they're always detectable.
50:15 And that means that no harm comes to me. – I'm not disagreeing with you.
50:20 – TELs plus ACDCs just extend fault detection to
50:26 things that are not just your key state. Those are the threshold
50:29 structures.
50:37 I'll tell you why witnesses are a good fault detection
50:39 mechanism. Witness pool as a fault detector. How does it work?
50:47 You may have seen this slide. This is a KERI infrastructure. You see in there that
50:50 there's witnesses and watchers. I'm just going to take one person,
50:55 entity A. Entity A controls a pool of witnesses. It's the entity's witnesses.
51:01 They control them. It's not somebody's shared infrastructure. They also control
51:05 watchers. It's their watchers, not somebody else's watchers. These watchers,
51:10 a local watcher, is doing something very important. It's watching the controller's
51:15 own witnesses. It's watching its own witnesses. And what it's doing is it's
51:21 comparing what the witnesses are saying about your key state to what it knows as
51:26 your wallet's key state or the source of truth that the controller thinks of as the
51:31 source of truth. Because the witness pool is there to be provide high availability
51:36 and it has to be public and it's in the internet, it's going to use a fault
51:40 tolerant structure itself. It's going to be like a three or four witness network.
51:43 What happens is that in order for a witness to witness something, it has to be
51:48 verifiably signed. The only way a witness can witness something is if it's
51:52 signed with the private keys. If something shows up that the witness says,
51:57 hey, somebody gave me an event. It's signed. I witnessed it and a majority
52:02 of the witnesses witness it. Then the watcher says, but the
52:06 controller didn't tell me that that was an event that was valid. I can notify the
52:13 controller that there's an event that's invalid in your witness pool. And that's
52:19 evidence of duplicity because I've got two different versions of the Key Event Log.
52:23 One that is the source of truth and one that is what the witnesses are saying. And
52:27 the attacker doesn't know about the watcher. The watcher is not public. The
52:30 watchers can be a totally private network, put it in devices redundant. It has a
52:35 different security policy from the witnesses. Now you can detect any events
52:41 that are anchored. The only way that I can issue an issuance if I have a policy
52:48 that I only issue issuances that are anchored, I forced all issuances
52:55 to make any key compromise detectable for those issuances. Now I just have to
52:59 detect that one thing. The witness pool is my detection mechanism and it's a
53:03 highly fault tolerant mechanism. That's why it's there. It's not just for
53:08 availability, it's for detection. Now I can detect the events, which means now I
53:12 can recover from them because I have another threshold structure called my pre
53:17 -rotated keys allows me to do recovery and they can't attack the pre-rotated keys if
53:20 they're air-gapped or I do appropriate things. The attack surface for the
53:25 attacker gets really difficult. And all I have to do is go to multisig and
53:30 go to delegated AIDs and a few other things. And all of a sudden now the number
53:34 of keys they have to compromise is really high. And as far as I know, for multisig,
53:40 there have been very few successful attacks and most of them were
53:47 things like a code supply chain attack. And I think there was
53:50 an exchange where they had a multisig wallet and it was compromised. It had “two
53:54 of three” and they sent an email to the three holders that said, there's an
53:59 upgrade of your wallet. Click on this link. And they clicked on the link and it
54:04 downloaded a compromised wallet and then it explored…
54:11 There are still things that can happen, but you can minimize them.
54:19 Why are witnesses in KERI? The witnesses are in KERI so we can detect
54:22 key compromise and the watchers allow us to detect duplicity and
54:28 we've got a watcher in here detecting duplicity which allows us to detect key
54:31 compromise. Key compromise exhibits as duplicity. Did you guys get that?
54:37 Everything exhibits as duplicity and if I have a duplicity detection which is a
54:40 watcher I just have that one thing that I can detect.
54:50 Any questions? – This is all great. You see the duplicity.
55:02 Yes. – How quick is the recovery? You have pre-rotated keys that you can go
55:07 straight to? – Yes. – Because what I'm looking at is, they can't
55:13 get to the keys, but they could give a denial of service attack. – Yes,
55:16 absolutely. – And just keep doing that to where… – It depends on how you do
55:21 it. For example, if my pre -rotated keys… I'm going to use the
55:25 Veridian example because they give really good demo. Where was that? IIW, right?
55:31 They have these little smart cards that have a biometric on them. They
55:35 cost dollars. Or pennies. What'd you say? Pennies now? – The ones with the
55:41 biometrics are less than 10 bucks. – Less than 10 bucks. I have two of those.
55:45 They're air-gapped. They're NFC. They're not using a network. I have to
55:51 actually touch the device. I can store them in my safe. I can put one in a
55:57 different house. And if I lose my device, I just get a new device and I can
56:02 recover to a new device. Even if they get my phone and compromise my phone.
56:07 As long as I have some notification that I get someplace. Any
56:14 of my devices could notify me that A that my keys have been compromised,
56:19 then the recovery is how long does it take me to go get my smart card wherever it is
56:24 like in house of my safe and recover to a new device? That's my recovery latency.
56:31 And how do they do denial of service attack on an air-gapped system? It's
56:38 really hard to do. Because I could recover on a device they don't know exists
56:43 until I get the new device. They don't know that it's a device to attack unless
56:48 they're like physically present following me around and most of these attackers are
56:51 not physically present following me around. They're across the ocean
56:55 someplace. It's not hard to build these systems to be really
57:01 secure relative to the threat profile or the risk profile. Anyway, I passed my
57:08 time. I thank you so much. I'm sorry.