[00:00.000 --> 00:07.440] Good evening everybody. So how was the first day of DEF CON with you guys? You enjoyed it? [00:07.600 --> 00:16.860] Liked it? Everyone is pretty much very tired so that's DEF CON. So guys we have last talk of the [00:16.860 --> 00:24.200] day before we have contest briefing. So we have Mike and Ron and they will be presenting [00:25.200 --> 00:29.660] Cryptocurrency Security Standard, CCSS. So here we have Mike and Ron. [00:30.520 --> 00:36.080] Thanks Ajit. You know what they say, save the best for last, right? [00:37.100 --> 00:42.940] Thanks everyone for staying a little bit later for this talk. I promise it will not be very [00:42.940 --> 00:49.520] technical. We're not going to tax your brains. It's just an overview of what the CCSS is so that [00:49.520 --> 00:55.800] you're able to understand the goals of it and you can research it on your own time if you want to [00:55.800 --> 01:04.020] learn more. Yeah. So I'm Ron Stoner. I'm a security engineer at Shapeshift helping to keep [01:04.020 --> 01:11.180] everybody's accounts safe while you do your crypto. I'm also the curator of the CCSSA exam. [01:11.180 --> 01:15.540] So we're going to talk about the CCSS today. We have some exciting things also as a result of [01:15.540 --> 01:20.060] that. I run my own consulting firm and you can find me on Twitter at forward secrecy. [01:23.720 --> 01:29.400] And I'm Michael Perklin. I'm the chief information security officer at Shapeshift. I work with Ron. [01:29.540 --> 01:35.580] Also, I'm the president of C4, which is the nonprofit organization that spent all the time [01:35.580 --> 01:42.160] with a variety of companies to pull all the data together to create the CCSS and to publish it in [01:42.160 --> 01:47.900] an open way so that all of you are able to use it without any restrictions for your own work. [01:48.500 --> 01:53.860] I also run a contest here at DEF CON called Coin Droids, which is the world's first blockchain [01:53.860 --> 02:00.780] battle game. And it's been running here at DEF CON for five years now. And it's pretty interesting. [02:02.300 --> 02:11.140] So a quick note about C4. C4 is a nonprofit organization that deals with measurements and [02:11.140 --> 02:17.660] standards. Our first project was the CBP, Certified Bitcoin Professional, which is for [02:18.500 --> 02:22.980] people. And our second project was the CCSS, which I'll be talking about today, which is for [02:22.980 --> 02:33.220] systems. It's been running now for six years, and we've got some pretty good board members, [02:33.220 --> 02:39.480] including Vitalik Buterin, Andreas Antonopoulos, Pamela Morgan, and Joshua McDougall. [02:41.140 --> 02:48.200] The CBP, which is what I mentioned, is the world's first certification related to Bitcoin [02:48.200 --> 02:55.360] or blockchains. Basically, how this was formed was we recognized that there was a need in the [02:55.360 --> 02:59.980] industry for everybody who didn't know what Bitcoin was to be able to identify somebody [02:59.980 --> 03:09.580] who did know Bitcoin. When we started C4, we realized that while I know what Bitcoin is, [03:09.580 --> 03:13.960] if I'm interviewing somebody, I can ask them pointed questions and I can tell if they actually [03:13.960 --> 03:19.020] understand Bitcoin or if they're just repeating a news headline and they don't quite understand [03:19.020 --> 03:26.160] what a Bitcoin is. But I'm already knowledgeable about Bitcoin, so it's easy for me to identify [03:26.160 --> 03:31.120] knowledge in others. But there are so many hiring managers, presidents, CEOs who know that they need [03:31.120 --> 03:35.680] someone who understands Bitcoin on their team, but they don't know the first question to ask them [03:35.680 --> 03:42.140] in the interview. This problem has been solved many times before in a variety of industries, [03:42.140 --> 03:48.260] like in accounting, they have the Certified Professional Accountant designation, the CPA. [03:49.760 --> 03:56.240] So these types of certifications have meaning for HR just to make sure that they are interviewing [03:56.240 --> 04:01.180] the right candidates. And we realized that there was no such animal for Bitcoin, [04:01.180 --> 04:05.660] so we decided to make it. Yeah. Can you talk the talk and can you walk the walk? [04:08.920 --> 04:16.420] While the CBP was the first project we did, which is related to people measuring a person's [04:16.420 --> 04:21.560] knowledge to make sure that they meet the minimum bar for understanding how to use Bitcoin safely. [04:22.440 --> 04:30.340] The CCSS is much different. The CCSS is for information systems, for a vault that you've [04:30.340 --> 04:36.360] created for your enterprise or for any other system that ends up holding Bitcoin. [04:37.920 --> 04:43.100] Yeah. So when we're talking about the CCSS, we're talking about security standard. [04:43.100 --> 04:46.560] So we've seen a bunch of different security standards throughout industries over time. [04:46.560 --> 04:52.260] And in crypto, we have CCSS. It's providing clear security guidance. It's providing a framework. [04:52.260 --> 04:58.380] It's providing security controls that information systems can adapt into their system. And it's [04:58.380 --> 05:09.600] free for everybody to use. Why do we need it? We want to instill confidence in customers and [05:09.600 --> 05:14.080] people using these systems. There's a lot of fly by night operations in crypto. You guys have seen [05:14.080 --> 05:19.000] the news articles. You've seen funds go missing. Everybody's kind of doing it their own different [05:19.000 --> 05:24.480] way. And there's not really a good standardization for this. So we can see that with these different [05:24.480 --> 05:29.640] companies, Mt. Gox, Coinbase, a lot of these companies were wrapped up with hacks and loss [05:29.640 --> 05:34.720] of funds, unfortunately, because they weren't following proper security standard and procedures. [05:34.840 --> 05:41.600] Or they weren't hacked because they were following the proper procedures. Everybody [05:41.600 --> 05:47.980] was sort of doing it their own way. Yeah. As we said before, when you're looking at things like [05:48.460 --> 05:52.260] doing business with people that are processing credit card companies, you look for PCI. When [05:52.260 --> 05:56.880] you're talking about your medical data, you want to see that HIPAA on it, right? And we know that [05:56.880 --> 06:00.960] that may not be the be all end all, but they're protecting your data. They're taking the steps. [06:00.960 --> 06:04.820] They're doing things correct within a standard to make sure that your information and your stuff is [06:04.820 --> 06:12.780] safe. We have things like ISO 27001. But when it comes to currency, what do we have? Cryptocurrency. [06:12.940 --> 06:16.660] So every industry has a standard and we're trying to fulfill that need. [06:18.160 --> 06:24.860] So now that you have an idea of what the CCSS is, let me reinforce what the CCSS is not. [06:24.860 --> 06:32.780] The CCSS is not a replacement for ISO 27001 or for traditional cybersecurity. You still have to [06:32.780 --> 06:38.200] worry about malware. You have to worry about insider threats. You have to worry about all that stuff. [06:38.240 --> 06:45.220] The CCSS focuses razor sharp on the keys themselves. How are the keys generated? How [06:45.220 --> 06:50.380] are they used? How are they stored? And how are they decommissioned after use? [06:50.380 --> 06:54.460] Right. Additionally, who's accessing them? What are they doing with them? Things like that. [06:58.820 --> 07:05.140] So when we get into CCSS, we know security isn't just tech. Security is all-encompassing, [07:05.140 --> 07:08.460] right? It's a whole bunch of different domains. It's a whole bunch of different systems within [07:08.460 --> 07:12.840] itself. If all you're doing is installing host intrusion detection and calling it a day, [07:12.840 --> 07:16.500] you're not doing it correctly, right? So when we get into information systems, [07:16.500 --> 07:20.180] we're talking about all these different domains with hardware, with software, [07:20.180 --> 07:25.400] with all of your procedures, with your policies. Are those things being cut up to date? Are they [07:25.400 --> 07:31.540] being tested? Who has awareness of those policies? Or if X employee leaves an information system, [07:31.540 --> 07:35.820] is that knowledge gone? And all five of these things, [07:35.820 --> 07:41.660] they work together like a chain. And you're only as strong as your weakest link. You can have the [07:41.660 --> 07:46.180] best hardware ever. You can have the most advanced software. You're totally patched with [07:46.180 --> 07:51.940] everything. But if your standard procedure is to write down a password and put it as a sticky note [07:51.940 --> 07:56.380] on your monitor, it doesn't matter how much tech you have or what encryption algorithms you're [07:56.380 --> 08:03.180] using. You're going to fuck it up. So the CCSS looks at an entire information system as a whole, [08:03.180 --> 08:07.700] which is all five of these areas all combined. Does anybody know where the weak chain is in [08:07.700 --> 08:21.600] this picture? Nice joke. So when we get into CCSS, we get into 10 overall aspects that we're [08:21.600 --> 08:27.660] talking about here. And as Michael said, it's very heavy on keys with usage, storage, how those keys [08:27.660 --> 08:31.820] are handed off, who has access to them. But then we get into other things that people may not be [08:31.820 --> 08:36.640] thinking about, like your data sanitization policy. So DSP is a big one where all the [08:36.640 --> 08:40.180] corporations say, you know, we've got these policies and we're doing all this stuff. But [08:40.180 --> 08:43.640] when you dumpster dive them, you find out that may not be the actual case. [08:44.540 --> 08:51.180] Yeah. And there are 33 separate controls that fit into these 10 different aspects. We're going to [08:51.180 --> 08:58.180] give an overview of each of these 10 aspects and what is covered in them. We're not going to get [08:58.180 --> 09:04.300] into too much detail because this is a fairly high level talk. If you do have any questions [09:04.300 --> 09:08.260] specifically about some of these, there's definitely going to be some time at the end. [09:08.260 --> 09:15.040] And of course, all this is published free open source online. The CCSS has three different [09:15.040 --> 09:21.920] levels and they are additive. There's level 1, level 2, and level 3. Whereas level 3 would be [09:21.920 --> 09:30.280] the highest, level 1 is the lowest. But where level 1 is the lowest, that doesn't mean that [09:30.280 --> 09:37.540] is poor security. It's actually great security. Level 2 is even better security and level 3 is [09:37.540 --> 09:46.780] paranoid. To my knowledge, no system out there meets level 3 security, but that's fine. They [09:46.780 --> 09:51.720] don't necessarily have to. I've said this many times before and I'll say it again. Any system [09:51.720 --> 09:58.460] that is certified level 2, I believe, would not be able to have the funds exfiltrated. [09:58.460 --> 10:02.420] I'm not saying that they won't be able to get hacked. They could still definitely get hacked, [10:02.420 --> 10:07.700] but a successful hack would not be able to pull any of the funds out of a system if it [10:07.700 --> 10:13.920] is level 2 compliant. We'll get into a little bit of the details of level 1, 2, and 3. [10:14.020 --> 10:21.940] But as a high level, the next slide shows the chain model. If you were to take a look at all [10:21.940 --> 10:32.200] 10 of these areas, now across the top, you can see level 1, 2, or 3. This is an example checklist [10:32.200 --> 10:38.140] for Acme Exchange Company. Now, if Acme Exchange Company, the way that they generate their seeds [10:38.140 --> 10:42.120] are compliant with level 1. They don't do a compliant level 2 or level 3, but they are [10:42.120 --> 10:47.320] still secure with level 1. But the way that they create their wallets actually does reach level 3. [10:47.320 --> 10:53.800] You can see some of the differences here. This system would be graded as level 1 because that [10:53.800 --> 10:59.640] is the one commonality. All of these boxes would have to be in level 2 in order for the system to [10:59.640 --> 11:07.400] be compliant with level 2 and similar for level 3. It's important to look at the system as a whole [11:07.400 --> 11:12.280] to understand how all of these things are individually graded in order to apply a grade [11:12.280 --> 11:18.560] to the overall system. And that overall grade is the lowest common denominator out of everything. [11:20.060 --> 11:24.760] And as Michael said, even with level 1, some people think level 1 is bad. But if I was looking [11:24.760 --> 11:30.640] to do business or move my funds to an information system that was level 1 certified, I know that [11:30.640 --> 11:34.900] they're checking off all those boxes or level 1 compliant. I know they're checking off those [11:34.900 --> 11:39.740] boxes. They've done proper procedures with their keys. I can more trust that information system [11:39.740 --> 11:45.860] that's not compliant with any of these controls. And actually, before we jump into each of these [11:45.860 --> 11:53.060] in a little bit more detail, one thing I want to say is how the CCSS was compiled. So in 2012 and [11:53.060 --> 12:01.440] 2013, C4 contacted as many exchanges as we could to understand more details of any of the hacks [12:01.440 --> 12:06.860] that occurred. And we gathered a whole bunch of data from security professionals all over the [12:06.860 --> 12:10.780] world. And then we started organizing it. Why was this exchange hacked here? Why was that [12:10.780 --> 12:14.940] exchange hacked here? Why is this exchange not hacked? And we identified the commonalities, [12:14.940 --> 12:20.600] which allowed us to group them together into these 10 aspects. So it was through a lot of [12:20.600 --> 12:25.960] data analysis that the volunteers at C4 and the companies that submitted data, we all worked [12:25.960 --> 12:33.340] together to pull them together like this. And with no further ado, let's jump into each of [12:33.340 --> 12:39.020] these 10 aspects in a little bit more detail. So the first one we're going to tackle is key seed [12:39.020 --> 12:43.680] generation, and probably one of the most important parts of a cryptocurrency information system. [12:43.880 --> 12:48.040] You can have everything secure, but if the person that generated your keys has a copy of that [12:48.040 --> 12:52.520] private key or seed at home, you're screwed at that point. So when we get into key seed generation, [12:52.520 --> 12:58.980] we're talking about things like, was the key and seed issued by another actor? Was it created with [12:59.080 --> 13:04.400] a compliant DRBG, deterministic random bit generator? So when you get into the very fine [13:04.400 --> 13:09.160] technical details of randomness and pseudo-randomness, that can have some far-reaching [13:09.160 --> 13:12.880] effects on your business, right? And your information system, depending on how those [13:12.880 --> 13:19.380] keys were rolled and what they were rolled with. We also talk about things like wallet creation. [13:19.680 --> 13:24.540] What was being used when that wallet was created? Were unique addresses being used for the [13:24.540 --> 13:30.600] ultra-paranoid level three side of security? As you can see, level one doesn't have any [13:30.600 --> 13:36.920] controls here listed for wallet creation, but level two and three does. So if you were looking [13:36.920 --> 13:40.780] at a compliant level one system, you would know that they may not, or may have done some things [13:40.780 --> 13:46.680] with this control, but depending on how they've done it, they can certify different levels, [13:46.680 --> 13:50.600] one, two, or three, based off of how those wallets were created. And for those of you who [13:50.600 --> 13:55.280] were here in the previous talk, where Mila went through the various algorithms that make up [13:55.280 --> 14:04.440] Bitcoin, that's denoted here, where Bitcoin is quantum safe as long as you are always using a [14:04.440 --> 14:14.540] brand new address. Now, you can still use Bitcoin while reusing an address and keeping to... [14:14.540 --> 14:20.460] pardon me. While you can still use Bitcoin safely while reusing an address, the ultra-paranoid [14:20.460 --> 14:24.900] people will always make sure they're always using a new address just to make sure that they're [14:24.900 --> 14:33.260] quantum safe. There is no known attack today that can reverse a private key from the public key. [14:33.260 --> 14:37.580] However, if you want to be paranoid, you should always be using unique addresses. And that's why [14:37.580 --> 14:45.250] that's a level three control. When we're talking about keys, we're also talking about the geographic [14:45.890 --> 14:51.430] distribution of the keys. Where do those keys live? Is it in single location, multiple locations? [14:51.430 --> 14:54.490] When we get into this, we're talking about things we're looking at business continuity [14:54.490 --> 15:00.770] and disaster recovery, or if a key is lost or access to a wallet is lost. Is it in another [15:00.770 --> 15:05.130] location that you can get access to and either get access to those funds or do what you need to do [15:05.130 --> 15:12.590] in those times? So we've got generated keys and we're generating them securely, but how are we [15:12.590 --> 15:19.350] storing them? So we've got different controls here for things like backup keys. One that people don't [15:19.350 --> 15:24.530] really think about is, are you storing your keys encrypted? So everybody might have their backup of [15:24.530 --> 15:29.150] their key in their safe or in their desk drawer, but when somebody gets access to it, do they have [15:29.150 --> 15:33.210] another step that they have to take to get access to that key material? Or do they just then have [15:33.210 --> 15:41.080] raw keys that they can take and start using at that point? We also look for things like, does [15:41.080 --> 15:46.740] the backup key have a tamper evidence seal? However you want to achieve that, that's fine. As long as [15:46.740 --> 15:51.380] there's some evidence to say this key has been accessed or somebody else has had access to this [15:51.380 --> 15:56.340] in the last time that I've had that. And as you can see, when we get to one to three, those controls [15:56.340 --> 16:01.660] get a little bit more paranoid with backing them up with access controls, even encrypting backup [16:01.660 --> 16:06.780] keys, which people don't think about. They always think about encrypting the primary key after they [16:06.780 --> 16:11.520] see the information on the previous slide, but they never think about their backups or, you know, [16:11.520 --> 16:17.960] different copies of those keys they have in other locations. Continuing on the life cycle of a key, [16:17.960 --> 16:22.700] we went through how the key was created and then how the key was stored. Let's jump into how the key [16:22.700 --> 16:29.960] is used. So there are a variety of controls in this section, including how many factors are [16:29.960 --> 16:36.280] required to access the key. Can anybody just get it? Or do I need to have a username and a password [16:36.280 --> 16:43.620] and maybe a 2FA code in order to use the key? Are the keys used in a trusted environment? Or are you [16:45.040 --> 16:51.880] signing something in a Starbucks off of an unsecure Wi-Fi? Who gets to use those keys? [16:51.880 --> 16:56.780] And what checks do you do on them? Whoever is going to be interacting with your keys has an opportunity [16:56.780 --> 17:02.680] to make a copy of the key and use it in an unauthorized way. So before you give them access [17:02.680 --> 17:08.760] to your key, what checks are you doing to make sure that you want them to have access to your [17:08.760 --> 17:14.980] keys? And are they even the right person? Maybe they started at your company with a fake name or [17:14.980 --> 17:19.640] something like that. So I mean, these are small checks, but they're definitely important before [17:19.640 --> 17:27.800] you give access to these people. A few more for key usage. Background checks. Do they have a [17:27.800 --> 17:35.120] history of credit risk? While their personal finances have nothing to do with your business, [17:35.120 --> 17:39.400] if they're constantly in debt and they're constantly having a difficulty [17:40.000 --> 17:46.240] making their own ends meet, they're more likely to find money another way. Whereas [17:47.180 --> 17:53.860] the opposite is true if they're not. Now when the key is used to sign something, what kind of [17:53.860 --> 17:58.100] double checks are you doing to make sure you're sending to the right destination address? [17:58.100 --> 18:00.360] And are you sending the right amount? [18:03.480 --> 18:11.180] If it's a multi-sig system, are those multiple keys brought together on a single device or are [18:11.180 --> 18:16.240] the multiple keys used independently on separate devices? There have been a number of hacks of a [18:16.240 --> 18:24.660] multi-sig system where a Trojan made its way onto the final signing system, the system where multiple [18:24.660 --> 18:30.040] separate keys from multiple separate key holders are brought together. That's not the safest way [18:30.040 --> 18:36.800] to do it. Making sure that each key is kept separate is important. And as part of every [18:36.800 --> 18:42.140] digital signature, I believe Mila also talked about this in her last talk, as part of every [18:42.140 --> 18:47.560] single digital signature, there is a random number that is used. How is that random number derived? [18:48.080 --> 18:53.460] There have been cases where the same number has been used for multiple signatures which can allow [18:53.460 --> 19:02.520] someone to recompute the original private key. And staying with keys, we're going to get into [19:02.520 --> 19:06.680] how they're granted and revoked because this is an important part of the process itself. [19:06.720 --> 19:14.620] So we have controls in place for is there actual grant and revocation procedures created? Who's [19:14.620 --> 19:19.800] knowledgeable on the staff with those procedures? Or does it just sit in a document repository [19:19.800 --> 19:24.300] somewhere that they've checked off the box saying this policy has been created but nobody ever looks [19:24.300 --> 19:29.960] at it, nobody ever uses it, and nobody knows how to enact it when the time comes. We also look for [19:29.960 --> 19:35.340] things like authenticated requests over authenticated communication channels. So this gets [19:35.340 --> 19:40.740] interesting because we get into the concept of strong authentication and making sure that you [19:40.740 --> 19:45.240] know who you're speaking with, verifying them over different ways, not just getting a Slack message [19:45.240 --> 19:51.200] or an SMS message and trusting that this person has said yes, sign this transaction and send 10,000 [19:51.200 --> 19:57.340] Bitcoin to this address, right? We're going to verify that before we do that. And then looking [19:57.340 --> 20:02.300] for things like audit trails with employee sign-offs for all of these actions. So not only [20:02.300 --> 20:06.780] are the steps being taken and are they being followed, but are we taking down audit trails [20:06.780 --> 20:10.620] so that if there is an issue, we can go back and find out where there was a problem or where [20:10.620 --> 20:16.920] something went wrong. This is one of my favorite ones as a security engineer, the key compromise [20:16.920 --> 20:24.560] protocol, KCP. So the shit hits the fan and we need to do something. We want to see that a key [20:25.160 --> 20:30.020] compromise protocol exists, number one. Have people thought about this? Have they built a system to [20:30.020 --> 20:35.660] take care of this or a policy or procedure? Do they have staff that are knowledgeable with key [20:35.660 --> 20:42.040] compromise policies? Are they comfortable running that type of procedure if they need to go in and [20:42.040 --> 20:47.620] revoke keys that control X amount of dollars or X amount of funds? And for those who don't know [20:47.620 --> 20:53.920] what we mean by a key compromise protocol, it's basically a script of what you would do the moment [20:53.920 --> 20:59.660] you believe maybe a key might be compromised. By spending the time to think about all this [20:59.660 --> 21:04.780] beforehand, when you're in a rush situation, you don't need to worry about making mistakes because [21:04.780 --> 21:08.940] you just follow the script. Step one, step two, step three, and now all the keys are properly [21:08.940 --> 21:15.880] replaced. Moving on, there are only a few more aspects and then we'll open up to questions. [21:16.000 --> 21:21.400] Security audits. The CCSS defines a couple of requirements for security audits, namely that they [21:21.400 --> 21:28.680] are done regularly. It's not really much more to say about this one. There are... [21:32.180 --> 21:35.980] One thing that we haven't really talked about that's important to see on this slide [21:35.980 --> 21:43.260] is the uncertified status. So you can see here in red, no proof of security for security audits. [21:43.360 --> 21:47.340] I think we all know of places that claim they're secure, but when it comes down to it and you want [21:47.340 --> 21:50.600] to see the audit information, there's nothing there, right? They've never done a pen test. They've never [21:50.600 --> 21:55.860] done vulnerability scans or code review. With that uncertified status, you could be level three [21:55.860 --> 22:00.060] across the board on everything else. And if you're uncertified on one of these controls, you're not [22:00.060 --> 22:04.180] going to be compliant with the CCSS because as Michael said, you're only as strong as your weakest [22:04.180 --> 22:14.420] link. And in this example, this would be the weakest link. Approaching the end now. The data [22:14.420 --> 22:20.740] sanitization policy. Keys have to be stored somewhere when they are in use, likely on a [22:20.740 --> 22:28.420] hard drive of some kind of a server, or maybe they're on a cold storage device, some laptop [22:28.420 --> 22:36.820] that has been air gapped. Having a data sanitization policy that details how you're [22:36.820 --> 22:42.020] going to scrub the data from those devices when those devices reach end of life is mandatory. [22:42.020 --> 22:47.820] Otherwise, anybody who finds your old laptop hard drive in a dumpster somewhere, they could, [22:47.820 --> 22:54.540] in theory, get your keys back. Yeah, this man loves dumpster diving. And it's also important [22:54.540 --> 23:01.000] to have an audit trail of what has been sanitized and when, although that is more of a paranoid [23:01.000 --> 23:08.800] level control. Next is proof of reserve. There are a variety of ways that companies implement [23:08.800 --> 23:16.260] proof of reserves, oftentimes just publishing a report saying, hey, here's all the crypto we have. [23:16.260 --> 23:26.360] The controls mostly mandate that there is some way to prove a control. However, the best way [23:26.360 --> 23:32.760] is when the blockchain itself can prove it for you. By publishing all the addresses that your [23:32.760 --> 23:37.800] system uses to the users of your system, now your users are able to independently validate that [23:37.800 --> 23:44.520] those coins really are there at those addresses. Instead of trusting the entity that just says, [23:44.520 --> 23:48.020] we have a thousand Bitcoin here. Oh, but no, we're not going to give you the specific [23:48.020 --> 23:51.560] addresses of where all those are held. It removes all trust. [23:52.600 --> 23:57.680] And if we look at level three, the question may come up of what happens with information systems [23:57.680 --> 24:02.920] that don't hold funds anymore? Non-custodial exchanges, which I happen to be a big fan of. [24:02.920 --> 24:07.900] In those instances, they would comply with level three because there's no funds stored. [24:07.900 --> 24:11.420] There's no need to actually list the proof of reserve because they're not holding anything [24:11.420 --> 24:20.140] on behalf of customers or systems at that point. And then we get into audit logging. So we've [24:20.140 --> 24:24.660] talked about keys. We've talked about key holders. We've talked about verifying identities and making [24:24.660 --> 24:30.120] sure people can be trusted and are following the proper policies and procedures. But we need to [24:30.120 --> 24:35.180] make sure that, again, audit logs exist for all these actions in the system. Level one, we're [24:35.180 --> 24:40.620] logging some actions. Level two, we're logging everything for user and admin controls. And the [24:40.620 --> 24:44.740] same for level three. So as you can see, some level two controls are good enough to meet level [24:44.740 --> 24:50.800] three requirements. Outside of a full audit trail existing for user and admin actions, I don't know [24:50.800 --> 24:56.840] what else you could add in there for audit logging to make it more secure. And then we also want to [24:56.840 --> 25:01.780] see backups of our audit logs. So it's great if you're running your server and everything's fine, [25:01.780 --> 25:06.160] but then somebody goes in and wipes it, or you have a disaster event. Are you keeping your logs [25:06.160 --> 25:12.460] offsite? Do you have BCDR policies and procedures in place, business continuity for audit logging [25:12.460 --> 25:20.560] information? So that is the CCSS in a nutshell. There are 36 individual controls that are spread [25:20.560 --> 25:28.500] across 10 different aspects or 10 different categories. And all of them need to be graded [25:28.500 --> 25:33.440] individually. And the lowest common denominator will be the overall rank of that information [25:33.440 --> 25:40.500] system. As far as using the CCSS, the standard is published online for free for anybody to use [25:41.280 --> 25:47.840] without need for royalties. And the source for the standard is published on GitHub. If you're [25:47.840 --> 25:54.060] interested in reading about it, I encourage you to visit cryptoconsortium.org. And if you are [25:54.060 --> 26:00.740] passionate about security, like Ron and I are, we encourage you to get involved. We have a handy [26:00.740 --> 26:08.520] empty matrix, just like that Acme checklist. You can grab that checklist off of the C4 website. [26:08.520 --> 26:12.900] And I encourage you to try to assess yourself. Think critically about each of the different [26:12.900 --> 26:19.380] controls and see where your system falls. What's great about measuring your system like this is [26:20.200 --> 26:24.960] once it's done, you'll see exactly where you have an opportunity to improve the security [26:24.960 --> 26:33.540] of your system. We are always looking for people to submit feedback on the standard, [26:33.540 --> 26:40.100] either posting comments on GitHub or posting issues or posting pull requests. If you feel [26:40.100 --> 26:45.820] that you could improve it, we'd love to hear from you. C4 is a volunteer run organization, [26:45.820 --> 26:51.600] and if you want to volunteer your time and your security knowledge, we'd be happy to take it. [26:52.480 --> 26:57.380] As well as becoming a part of an ever-growing compliance standard in cryptocurrency. [27:00.390 --> 27:07.110] Last thing I'll talk about is the upcoming Blockchain Training Conference. Now, [27:07.110 --> 27:13.190] the coupon code you see on screen will save you 10% off the ticket price. And if you visit the [27:13.190 --> 27:18.030] CoinDroids booth in the contest area, you can get another coupon code for another 10% off, [27:18.030 --> 27:23.330] giving you a combined 20% off of the ticket price. At the Blockchain Training Conference, [27:23.330 --> 27:29.970] this is the first time C4 is going to be having a full-day workshop on the CCSS to train you or [27:29.970 --> 27:36.130] anybody that you'd like to send on your behalf on how to use the CCSS in real-world scenarios. [27:36.130 --> 27:43.490] It's taught by Ron right here, who also wrote the CCSSA exam. The goal of this bootcamp is to [27:43.490 --> 27:49.290] prepare the next generation of auditors on using these standards to assess a system and to guide [27:49.290 --> 27:56.950] their clients on improving their security. With that, let's open it up to questions. I've got some [27:56.950 --> 28:03.930] swag for some good questions, if you have them. You, sir, had your first question. [28:09.030 --> 28:12.710] The question was, how do you detect that a key has become compromised [28:13.510 --> 28:18.310] or might be compromised? That's a great question. And there, unfortunately, is no [28:18.310 --> 28:23.130] silver bullet. Like everything in security, there is no silver bullet that can solve that. [28:23.870 --> 28:32.930] There are a variety of ways that you could try to detect things, such as canary payments or canary [28:32.930 --> 28:37.490] addresses, putting small amounts of funds on certain keys that are available on servers and [28:37.490 --> 28:41.830] watching for when those funds move. During your normal course of business, those funds should [28:41.830 --> 28:46.130] never move. But the moment that they have moved, it could indicate compromise of that system. [28:47.290 --> 28:56.450] Also, the key compromise protocol that we talked about doesn't only cover known compromise. It also [28:56.450 --> 29:03.550] covers suspected compromise. If one of the key holders suddenly becomes unavailable for 24 hours [29:03.550 --> 29:08.190] and all attempts of contacting them have failed, their family doesn't know where they are either, [29:08.190 --> 29:13.950] it's possible that they could have been kidnapped. It's possible that, God forbid, they [29:13.950 --> 29:21.150] may no longer be around. In any of these cases, if you suspect that either the key or the key [29:21.150 --> 29:26.250] holder may be compromised, the key compromise protocol should be enacted as if they were [29:26.250 --> 29:33.010] compromised either way. It's always better to proactively move all the funds to new keys when [29:33.010 --> 29:39.270] you think there might be a problem than to hope it doesn't work out. [29:45.850 --> 29:54.470] The question was, does the CCSS have a standard for detection? No, but because every information [29:54.470 --> 29:59.830] system is different, the way that you would detect an actual compromise or a possible compromise [29:59.830 --> 30:07.270] would be different for every standard. If you have a good way of writing an aspect that could [30:07.270 --> 30:11.930] cover that for a variety of different information systems, I'd love to add something like that to [30:11.930 --> 30:17.710] the CCSS if you want to visit GitHub and submit that. Do you want to take the next question, Ron? [30:29.210 --> 30:34.550] So the question was, when you're looking at reviewing things like the random number generator, [30:34.550 --> 30:41.350] the DRBG, the deterministic random bit generator, how far do you go when you're looking at that [30:41.350 --> 30:45.330] control? Are you looking at things like source code? And I think it really depends on the [30:45.330 --> 30:52.370] implementation. So there's a variety of ways to do entropy in RNG, where people could be rolling [30:52.370 --> 30:58.090] dice and cards and inputting that into a script and spitting out some keys based off of calculations. [30:58.130 --> 31:02.870] They could be using a hardware device that's measuring the difference in electronic current. [31:02.870 --> 31:07.970] So it really depends on the implementation. I think when you get into that aspect, you do look [31:07.970 --> 31:12.610] at how did you roll them? What did you use? Did you use your own code? Did you use something you [31:12.610 --> 31:16.970] pulled off GitHub? Did you use a device? And at that point, it's a lot easier to drill down and [31:16.970 --> 31:21.990] determine where does this fit level one, level two, level three, or uncertified. [31:22.810 --> 31:29.630] And to add to Ron's answer, the CCSS requires DRBGs to be compliant with a variety of [31:29.630 --> 31:39.270] well-known and globally accepted standards. Specifically, NIST800A. It's written on here [31:39.270 --> 31:51.150] somewhere. He'll pop it up. But if the DRBG is compliant with the NIST, there it is, SP890A, [31:52.030 --> 31:59.330] then it would be a compliant DRBG. If you're using, let's say, Electrum to generate your keys, [32:01.930 --> 32:06.670] the source code of Electrum should be looked at to make sure that it's not using its own method [32:06.670 --> 32:12.410] of random generation, and it is calling a well-known PRNG. And then it should also look [32:12.410 --> 32:17.370] at how that PRNG is being seeded. Once we know that Electrum is using a well-known PRNG that [32:17.370 --> 32:23.030] is compliant, then we know that that one would be certified. Does that answer your question? [32:23.330 --> 32:32.210] Perfect. I'm sorry, could you ask that question again? [32:45.090 --> 32:51.410] The comment was that even NIST-compliant DRBGs have been known to be compromised. And you know [32:51.410 --> 32:57.770] security is always evolving. As long as we're doing our best to be up-to-date with the current [32:57.770 --> 33:03.390] best practices, then we know that we're doing our best. But we can't protect against unknowns [33:03.390 --> 33:21.440] that haven't even been invented yet. Let's go with RedShirt. How useful is the CCSS to [33:21.440 --> 33:28.740] non-custodial wallets, was the question. It's a great question. So a non-custodial system, [33:28.740 --> 33:38.720] let's say a DEX, a decentralized exchange, the exchange itself doesn't store funds on their own. [33:38.960 --> 33:44.120] DEX is matchmake, someone who is selling one token and somebody who is selling another token. [33:44.120 --> 33:50.960] So the DEX itself actually can't be certified by the CCSS because that system doesn't actually [33:50.960 --> 33:56.900] store funds. Each user, each participant of the system would be required to safeguard their own [33:56.900 --> 34:03.980] keys for their own funds on that side. Does that answer your question? Perfect. Miss in the back. [34:20.600 --> 34:25.220] So the question was, and that was a long one, but please correct me if I get the question [34:26.180 --> 34:33.440] incorrect, but how would risk managers use the CCSS to, actually I'm sorry, [34:33.440 --> 34:52.710] could you repeat the question? Gotcha. So how does the CCSS map to other standards or other [34:53.330 --> 35:01.390] systems of control? My answer would be, again, that it is a separate set. Most of the existing [35:01.390 --> 35:07.970] standards that are out there relate to one aspect or another. For example, the PCI compliance [35:07.970 --> 35:13.130] relates to storing of credit card information, but only credit card information. HIPAA relates [35:13.130 --> 35:18.450] to storing of healthcare information. The CCSS is razor focused only on the storing of private [35:18.450 --> 35:24.750] keys. Now, because both PCI and HIPAA have been around for so long, it's common knowledge for [35:24.750 --> 35:30.930] board members to say, oh, are you HIPAA compliant? Yes. Are you PCI compliant? It's our hope that [35:30.930 --> 35:35.990] through the development of the standard and the regular curation of the standard, that being CCSS [35:35.990 --> 35:43.010] compliant tomorrow will be as common knowledge as being PCI compliant is today. And to just add [35:43.010 --> 35:47.130] on to that, I think for anybody that's trying to make a play to a board or anything like that, [35:47.130 --> 35:50.950] all you have to do is link them and show them all the different hacks and loss of funds and [35:50.950 --> 35:55.050] cryptocurrency information systems that have happened even within the past few months. [35:56.050 --> 35:59.990] They like dollar figures and showing them dollar figures and making it real world, [35:59.990 --> 36:04.770] I think always brings it full circle. And one other thing I'll add to that is [36:07.790 --> 36:13.410] a variety of exchanges already list their voluntary compliance with the CCSS standard [36:13.410 --> 36:18.870] if you dig into their frequently asked questions. So a lot of exchanges are already using this, [36:18.870 --> 36:28.350] and there have been a number of regulations from a few different jurisdictions that have [36:28.350 --> 36:36.610] already referenced the CCSS in the laws, most notably in Bermuda. They recently passed [36:37.870 --> 36:44.450] a... I don't know if it's an act or... I apologize, I'm not a lawyer, but it was referenced in their [36:45.910 --> 36:50.530] laws that any company that is going to be operating in the cryptocurrency space should [36:50.530 --> 36:55.970] be compliant with at least CCSS level one. Also in Wyoming, right here in the United States, [36:55.970 --> 37:01.790] the CCSS was referenced in the recent blockchain laws there as well. So the standard is already [37:01.790 --> 37:08.890] starting to be adopted by lawmakers worldwide. And anything that we can do to help these people [37:08.890 --> 37:15.450] who don't understand tech to at least get a nice little checkbox, I think it's a win for all of us. [37:16.950 --> 38:09.630] Mr. in the black shirt. So a summary of the question, please correct me if I get it wrong, [38:09.630 --> 38:15.510] is how do you actually ensure that people are using the standard, the thorough standard, [38:15.510 --> 38:23.610] and they're not just, I guess, making a bunch of check marks without doing it? And you know what? [38:23.770 --> 38:30.570] I don't know of any way that you can. If an auditor goes in and just issues a report and [38:30.570 --> 38:36.150] they sign their name on it and it says, hey, everything's perfect. If they want to put their [38:36.150 --> 38:41.650] reputation on the line to make a lie, there's nothing that I don't think anybody can do to [38:41.650 --> 38:48.850] stop that. Maybe having two independent auditors perform the same checks. And if you see any [38:48.850 --> 38:55.730] inconsistencies between the two, that might make some progress in doing that. But even still, [38:55.730 --> 39:01.190] just as easily as one person could lie on a report, two people could lie on a report. [39:01.190 --> 39:11.650] If you can think of any way to enforce, I guess, the integrity of these people's reputation, [39:11.650 --> 39:19.670] I'm all ears. I think too, it comes down to if a business says they're HIPAA compliant, [39:19.670 --> 39:22.970] right? And they've checked off all those boxes and then they have a breach and your medical data [39:22.970 --> 39:26.430] gets out there, everyone's going to look at that and say, well, you weren't actually HIPAA [39:26.430 --> 39:31.110] compliant, right? You weren't following those standards and procedures. You fleece the auditor, [39:31.110 --> 39:34.970] just check the box off to check the box off. And I think at that point, that's on the business, [39:34.970 --> 39:38.630] right? From a litigation standpoint and everything and a reputation standpoint. [39:38.850 --> 39:42.310] So we would hope that businesses wouldn't do that, but having the auditors in the pipeline [39:42.310 --> 39:46.430] definitely helps with the process to validate some of those controls and say, well, no, [39:46.430 --> 39:51.330] your KCP is two lines on a Word document. It's not an actual procedure that anybody can follow, [39:51.330 --> 39:52.970] you know, step A to Z. [39:54.790 --> 39:57.570] Any other questions? Gray shirt. [39:57.570 --> 40:09.030] Have third party audits been completed? Yes. I'm aware of at least three consulting firms [40:09.030 --> 40:15.330] that have used the CCSS when grading the security of their client's work. I only know of this [40:15.330 --> 40:26.130] because C4 was reached out to by these firms, just double checking some minutia in the standard to [40:26.130 --> 40:34.030] they're using it correctly. And now that C4 is planning on launching the auditor certification [40:34.690 --> 40:42.930] later this year, these auditors who are already doing this type of work to see if a system is [40:42.930 --> 40:48.750] compliant, these auditors can become certified and they'll be able to say that not only do I [40:48.750 --> 40:55.670] believe this to be compliant, I am bestowing the certification on that system. Right now, [40:55.670 --> 41:02.810] because it's an open system, the best anybody can say is, I believe I'm compliant with it, [41:02.810 --> 41:07.630] or I believe he is compliant with it. But no, there are no exchanges, there are no systems [41:07.630 --> 41:13.550] that are certified compliant. Once we have the auditors that are properly trained, and we know [41:13.550 --> 41:21.110] that they understand the standard thoroughly, their word will be their bond. Yeah. [41:26.370 --> 41:32.090] Sure, the Acme slide. Yeah, it's a little bit farther. [41:34.030 --> 41:36.350] Oh, that's doing the build. [41:39.450 --> 41:42.870] Patience. One more or two more. There we go. [41:46.430 --> 41:48.250] Oh, yeah, the 10 are listed here. [41:54.090 --> 42:03.280] Okay, some are proceeded where you have to like, where you have by asking. So, yeah, [42:03.280 --> 42:08.600] that's the way I mean, for few of those, you can have tools rather than you can put the [42:08.600 --> 42:12.680] evidence of the tools output and then you can get a compliance. [42:13.740 --> 42:18.240] Yep. Any other questions? [42:18.400 --> 42:24.380] Is there any plans to expand on the intent or the function of it being an audit [42:24.940 --> 42:32.440] focus to more of a qualitative assessment, maybe range of efficacy in each area as far as [42:32.440 --> 42:35.800] maturity levels, any plans for expanding in that way? [42:35.800 --> 42:40.560] So the question was, are there any plans to expand this from an auditor focused thing to [42:40.560 --> 42:47.860] more of a qualitative focused standard? It's my belief that in order for any auditor to be [42:47.860 --> 42:53.640] effective, they have to do a qualitative assessment. Sure, there are some quantitative [42:53.640 --> 42:58.260] pieces to it, making sure that this is done, enumerating how many keys are in the system. [42:58.260 --> 43:03.280] Some of those will be quantitative, but those numbers don't really mean anything unless you [43:03.280 --> 43:07.800] put them in context. Just because there's a multi-sig system that is three of five doesn't [43:07.800 --> 43:14.100] suddenly mean that it is good. Like the picture of the chain, it's everything around the ecosystem [43:14.100 --> 43:20.340] of those keys that make it a secure system. Auditors need to make sure that they look at [43:20.340 --> 43:25.860] all aspects of the information system, not just the quantitative part, in order to make [43:25.860 --> 43:52.560] an accurate assessment. Ajit? Depending on the level that you're going for, so some people may [43:52.560 --> 44:00.160] say we can never be level two or level three, or I think, let me see, in the instance where, [44:00.160 --> 44:03.840] yeah, so for level one, you do need to have backup keys, right? So we want to see that for [44:03.840 --> 44:09.700] BTDR. We want to protect it from environmental damage. And then we want that primary key to be [44:09.700 --> 44:14.980] stored with strong encryption across the board. Now, when you get into backup keys, we're starting [44:14.980 --> 44:20.060] to get one to the more paranoid levels of security, right? Really, really tight, secure systems, [44:20.060 --> 44:25.960] where, as Michael said, level two, we shouldn't see any loss of funds or anything like that. [44:26.820 --> 44:30.460] But at that point, you're starting to get to the paranoid level of security. Now, [44:30.460 --> 44:33.900] your question was about backup keys of the backup keys. [44:38.820 --> 44:47.840] Yes, only for level three. So every system that I've ever worked with, I always recommend that [44:47.840 --> 44:53.520] you do not encrypt the backup key, because of that exact problem. Where do you store the [44:53.520 --> 45:00.080] decryption key for the backups? However, there are some companies that feel more comfortable [45:00.080 --> 45:06.780] knowing that even their backups are encrypted. I would advise those people to make sure that those [45:07.620 --> 45:13.180] decryption keys are stored equally secure. But somebody said turtles all the way down. And [45:13.180 --> 45:17.600] I definitely think that that applies here, which is one of the reasons why I personally [45:19.360 --> 45:24.140] don't like systems that encrypt the backup keys. Because if the person who knows where that [45:24.140 --> 45:31.980] decryption key is, dies or passes away, how do the surviving operators of the system get that? [45:33.760 --> 45:39.480] I said earlier that I believe a system that is level two compliant, can never have the funds [45:39.480 --> 45:53.390] stolen, even if they are hacked. And I stick by that. Yes. The question is, how do you feel about [45:53.390 --> 45:57.190] social key recovery? Do you want to take this one or should I? What do you mean by social? [46:05.050 --> 46:11.890] Yes, so social key recovery involves sharding a key into, let's say, three or five. And then you [46:11.890 --> 46:16.910] give each of these five pieces to five people that you know and trust. If something ever happens to [46:16.910 --> 46:23.470] you, any three of these five friends or family members can get together to reconstitute the key. [46:24.110 --> 46:31.050] In my opinion, that's just a backup mechanism. Whether you you etch the key on steel and put it [46:31.050 --> 46:39.890] in a safe, or you shard the key and you divide it amongst key custodians, either way you're [46:39.890 --> 46:45.270] backing up the key. I definitely would think that that would be compliant with the CCSS. [46:48.520 --> 47:16.800] Yes, sir. The question was, at what quantity of funds would you recommend a certain level [47:16.800 --> 47:22.580] of compliance with the CCSS? And my answer would be, I can't answer that for you. Every business [47:22.580 --> 47:28.360] is different. Does $10 million represent a fraction of your daily volume? Or does $10 [47:28.360 --> 47:35.320] million represent the cumulative sum of years worth of work? To your business, $10 million [47:35.880 --> 47:41.420] could mean something totally different than to somebody else's business. My advice would be, [47:42.100 --> 47:46.000] take a look at your use case, take a look at the funds that need to be secured, [47:46.000 --> 47:51.620] and use your best judgment on how to secure that. Yeah, I don't think there's like X number to say [47:51.620 --> 47:54.840] at this value, you want to be doing business with a level two company or anything like that. It's [47:54.840 --> 47:58.700] all based more off of your own personal risk profile and what you're comfortable with. [48:00.560 --> 48:14.800] Yeah, I believe you could. Yeah, yeah. If you're doing proper development processes, [48:14.800 --> 48:17.960] and you're going through this checklist and checking off each of those boxes and getting [48:17.960 --> 48:22.220] into the controls in depth, three person team could definitely be level one compliant. They just [48:26.020 --> 48:29.100] so we have a level two. Yeah, that's for level two. And we're getting into things [48:29.100 --> 48:33.060] like multi multi signatures and stuff like that. To go back to your original question, [48:33.060 --> 48:38.040] with the 10 million, let's say you have X amount. And we're talking about cryptocurrency, right? So [48:38.040 --> 48:42.800] we're storing crypto on these information systems or processing crypto. 10 million today could be [48:42.800 --> 48:48.200] 100 million tomorrow. So if you're comfortable with X money on that at level one, you know, [48:48.200 --> 48:51.960] what's it going to be a level two when we're at the moon? [48:52.160 --> 48:57.960] Level one requires or doesn't have any requirement for multi sake. Level one is a secure system with [48:57.960 --> 49:05.600] single signatures. That would apply more to Ethereum style systems where there's only one [49:05.600 --> 49:15.400] key for that contract. Multi sake is level two and above. So you don't need to be level two. [49:15.400 --> 49:18.300] I'm sorry, you don't need to have multi sake in order to be compliant. You can absolutely be [49:18.300 --> 49:24.640] compliant with love level or with one key. That is all the time we have. If you do have any more [49:24.640 --> 49:30.140] questions, maybe we can walk and talk back to the rest of the conference area. But thank you very [49:30.140 --> 49:37.020] much, Coinbase for sponsoring this blockchain village. Thank you very much, Ajit and all the [49:37.020 --> 49:42.480] volunteers that work with you for putting this together. I think it's great that we have a [49:42.480 --> 49:48.200] blockchain focused village at DEF CON and I'm thrilled to be here. Thank you. Thank you, everybody.