[00:00.000 --> 00:06.420] Okay, so good morning and thank you for coming to, taking your time to come and see us today. [00:06.420 --> 00:15.260] My name is Rod Soto and I am here with Victor Phan from Radiant Chain. I'm a security researcher. [00:16.880 --> 00:21.180] I co-founded Hack Miami and the Pacific Hackers on the West Coast. [00:21.580 --> 00:26.840] Some of the companies I work for, Akamai, [00:27.360 --> 00:35.720] Canon, Toshiba, Splunk, and one that is quite related to the crypto scene, Prolexic. [00:35.960 --> 00:42.100] I was actually part of the team that protected Mt. Goth. Remember Mt. Goth? They were a pain in the [00:42.100 --> 00:47.400] ass. If you actually go on Twitter, you'll see how they would tweet like, we're down because [00:47.400 --> 00:53.680] of Prolexic. Like, they weren't an easy client and we don't know what happened afterwards. [00:53.680 --> 01:04.100] But I come from the crypto, like 2009, 2010, we were actually buying whoppers for 20 bitcoins. [01:04.640 --> 01:11.760] So what we're going to talk today is about smart security, smart contract security. And I'm just [01:11.760 --> 01:19.380] going to go quick on an introduction on some of the blockchain security aspects, which obviously [01:19.380 --> 01:25.000] this is what this village is. This is an effort to bring security into the blockchain [01:26.780 --> 01:31.460] scene. And it's a good effort. Do you want to... [01:32.220 --> 01:39.100] Just a quick intro of myself. I am Victor Fang. So I used to work at FireMendian and the company [01:39.100 --> 01:44.700] I founded last year. Oh, who's from Mendian? Oh, cool. Hey, we should talk. Okay. And by the way, [01:44.700 --> 01:52.460] that's my face, as you realize. And so we graduated from the UC Berkeley, the Blockchain [01:52.460 --> 01:58.500] Accelerator. And yeah, it's very proud to be here presenting, sharing some of our research. [01:59.000 --> 02:04.000] All right. So we're a little short, so I may go a little faster than this. Some background [02:04.000 --> 02:11.760] on the blockchain, basically implemented around, effectively implemented around 2008, [02:12.420 --> 02:18.020] believed to be immutable, public ledger. It's like a DV technology that you can check, [02:18.020 --> 02:24.880] it's exposed, it's public. Full tolerant for the most part. It has been popularized by [02:24.880 --> 02:30.420] cryptocurrencies. There are some interesting implementations right now on financial video [02:30.420 --> 02:37.100] games, web video content, social media. And some countries are actually doing it in agriculture. [02:38.000 --> 02:44.000] The most successful of all the cryptocurrencies, and you can check it right now, is obviously VTC. [02:44.420 --> 02:52.360] It was close to 12,000 yesterday. And according to John McAfee, we hit 500,000. I hope he's right, [02:52.360 --> 03:04.820] at least on that. I know John, by the way. Obviously, we have a development of blockchain [03:06.440 --> 03:16.520] frameworks. And I would say the second most popular is Ethereum, and it's highly traded. [03:17.220 --> 03:25.340] And with Ethereum, the concept of a smart contract was introduced. So what is a smart contract? A [03:25.340 --> 03:29.840] smart contract is basically a framework that facilitates negotiation without the need of [03:29.840 --> 03:38.420] third parties. So what this does is aims to reduce transaction costs and enforces the contract [03:38.920 --> 03:45.680] under the blockchain framework. The transactions are trackable and irreversible. And I put that [03:45.680 --> 03:50.080] in quotation marks because we're going to see some sort of an example of how this irreversible, [03:50.080 --> 03:56.480] sort of like a flexible term, has been implemented in several cryptocurrencies, including [03:56.480 --> 04:06.520] blockchain and Ethereum. The most popular standard right now is ERC20. So at one point, [04:06.520 --> 04:10.640] you saw a bunch of people selling you the framework to create a new cryptocurrency. [04:10.640 --> 04:18.020] Basically what it is, they copy the Ethereum blockchain, use ERC20, and then they'll sell [04:18.020 --> 04:26.180] it to you for $250,000. So you just had to name a new currency. As we all know, at this point, [04:26.180 --> 04:32.200] smart contracts can be exploited. So we had BAO, that was $3.6 million of either. [04:33.040 --> 04:39.840] And the amount of losses was so huge that it was basically easier to hard fork, [04:39.840 --> 04:45.840] continue with that. So that's an example of how smart contracts can be hacked. And today, [04:45.840 --> 04:53.020] you're going to see actual examples of how that happens and how to audit smart contracts. [04:54.200 --> 05:03.700] They are a powerful tool. And in my opinion, the smart contract is the bridge that can enable [05:03.700 --> 05:11.920] blockchain to widespread in many other areas. I think it's important to see blockchain, [05:11.920 --> 05:17.860] it's just not only crypto. Crypto has driven it. But there are other areas that we can definitely [05:17.860 --> 05:25.440] implement this and doesn't have to scare the banks and the powers that be, which is usually [05:25.440 --> 05:33.260] my opinion why crypto has been held back. And among other reasons, but basically, [05:33.600 --> 05:42.160] things such as the smart contracts and several new standards will help to advance the cost of [05:42.160 --> 05:49.600] implementing blockchain technologies. And we can use smart contracts for, like I said before, [05:49.600 --> 05:55.220] we can use it for records, supply chain, digital identities, mortgage, insurance. [05:56.740 --> 06:02.140] So here's one of the main problems of the blockchain scene, right? So which is the [06:02.140 --> 06:09.460] hacking history is displayed with fraud, fraudsters, and people that, for some reason, [06:09.460 --> 06:16.440] can explain mysterious hacks. So we have some of the relevant hacks here, the Mt. Gox one. [06:17.120 --> 06:23.780] Again, I had experience with Mt. Gox, because we protected Mt. Gox. And Mt. Gox was basically [06:24.020 --> 06:28.980] a trading site for cards. And then they turn it into a cryptocurrency exchange. And they will get [06:28.980 --> 06:36.260] hit all the time with DDoS, all the time. So in case you wonder if we knew how the Bitcoins were [06:36.260 --> 06:42.940] lost, we didn't. Because we were only protecting the actual perimeter. So basically, they will get [06:43.040 --> 06:50.500] a lot of UDP floods, or TCP floods, or even Layer 7 attacks. So basically, we protected their [06:50.500 --> 07:00.820] perimeter. They lost 750 BTC. Then we had the DAO, which I just talked about. It's around $50 [07:00.820 --> 07:08.300] million in Ether. Then we had a coin check hack in 2018, $130 million. And then we have some of [07:08.300 --> 07:18.620] the exchanges that were compromised around the world, $1.5 billion in losses. So here's a number [07:18.620 --> 07:27.060] that I want you to see before you see this number. It's 2019, you have compromises at Binance, [07:27.060 --> 07:35.380] Cryptopia, DragonX, GateHub, BitDom and CoinMana. And here's a number that is very shocking. [07:36.700 --> 07:41.160] Around $1,800 in average were stolen per minute [07:43.380 --> 07:48.180] in 2018. If that is not enough to drive a security [07:50.340 --> 07:54.000] industry within the blockchain, I don't know what else it is. [07:54.000 --> 08:01.100] Right? So that was the average, $1,800 per minute stolen in cryptocurrency. [08:01.840 --> 08:11.760] So before I switch it to Victor, one of our messages is we had to come up with security [08:11.760 --> 08:19.060] standards. Openness and exposure does not mean security. The fact that you can see it and it's [08:19.060 --> 08:27.420] out there somehow. And I remember this from the beginning, from 2009, 2010. We believe that [08:27.420 --> 08:31.680] basically by having the ledger exposed and seeing what everybody was doing and then protecting [08:35.180 --> 08:42.000] the identities by just looking at anonymized addresses was going to be enough. And we had [08:42.000 --> 08:50.800] this libertarian dream of eliminating fiat and self-regulating by basically being open and [08:50.800 --> 08:55.640] transparent. We now know that's not possible. I mean, if that number doesn't prove it, I don't [08:55.640 --> 09:03.700] know what else. It's hard to balance at times, basically, the anonymity with the transaction [09:03.700 --> 09:11.120] levels. So at one point there will be a regulation. I know many people would not like to hear that, [09:11.580 --> 09:15.520] yes, we had to come up with standards and eventually regulation. [09:17.420 --> 09:26.080] And then sometimes when we put all our X into one basket, we just saw an example, a major [09:26.660 --> 09:34.000] exchange was attacked and breached. They got in. Hopefully nothing else happened. But my coins are [09:34.000 --> 09:40.300] there. So I'm looking at this and I'm thinking, oh, wait, my coins are there. If they got to my [09:40.300 --> 09:47.580] wallet, that's it. So when we put our stuff at one exchange, then this is sort of like a single [09:47.580 --> 09:54.320] point of attack. And one of the points that Victor's going to touch on, how these attacks [09:54.320 --> 10:00.940] have affected a majority of sites, including exchanges. And of course, the cryptocurrency, [10:00.940 --> 10:08.600] because of the regulated environment and the level of anonymity is solved by organized crime [10:08.600 --> 10:15.700] in Asian states. So I'm not sure if you heard about the whole wave of ransomware that's happening, [10:15.700 --> 10:21.100] at least in Florida. I mean, one city is OK, two cities, three cities, four cities. I mean, [10:21.100 --> 10:26.840] at one point you had to wonder, are they targeting all the schools, all these municipalities, [10:26.840 --> 10:32.960] low budget, outdated systems? And then where is the payment being sought? It's cryptocurrency. [10:32.960 --> 10:37.820] It's hard. Then they go and launder it. And that's another point that he's going to touch on. [10:38.600 --> 10:44.520] Smart contracts with flaws are immutable. And once they're deployed in the blockchain, well, [10:44.520 --> 10:50.840] the immutability helps the exploitability. And that's one of the things that he's going to [10:50.840 --> 10:58.880] touch on today. So again, before I pass it to Victor, we need to come up with some [10:58.880 --> 11:05.900] Infosec standards, just like we apply. We have PCI, we have SOX, many of all these standards. [11:05.900 --> 11:11.140] A compliance is sometimes not worth much, but at least it's an attempt to get somewhere [11:11.140 --> 11:19.020] instead of just thinking, no, this by itself will regulate. So here's something that may happen to [11:19.020 --> 11:29.020] you. So we have some adult site that got spanked. And I bring this up because they didn't audit [11:29.020 --> 11:39.780] the smart contract and they lost almost $40,000 in one day. So with that, I'm going to bring it [11:39.780 --> 11:49.800] to Victor. Thank you. Thank you. And yeah, right before this talk, I had a chance to talk to two [11:49.800 --> 11:57.180] very smart gentlemen, also from San Francisco, me and Phil. I asked them, have you heard about [11:57.180 --> 12:02.460] blockchain APD? They said, what? There's an APD on blockchain? I'm very proud to be here sharing [12:02.460 --> 12:08.380] something new today. So, and this is the original title was how to pound smart contract and make [12:08.380 --> 12:14.540] $4 million in weeks. To give a feeling, how much money is it? That's about $4 million. [12:15.100 --> 12:21.220] But we're not talking about cash, okay? We're talking about exeriums. It's also like a silver [12:21.220 --> 12:30.140] of the cryptos, okay? And this is the latest MIT tech review article on blockchain security. [12:30.140 --> 12:35.020] The title is sort of sad, right? Once held as unhackable, blockchains are now getting hacked, [12:35.020 --> 12:39.340] right? And it's very proud that our company HAI was mentioned three times. [12:39.920 --> 12:46.640] And so APD, how many of you heard about APD? That's great. Right place, guys. And just a little [12:46.640 --> 12:52.040] bit warning, I have some source code here and the slides. So for those of you who like [12:52.040 --> 12:58.400] smart contract or JavaScript, there's a puzzle there for you, okay? So what's APD, right? It's [12:58.400 --> 13:03.480] basically the worst nightmare of cybersecurity and the definition, stealthy and continuous [13:03.480 --> 13:10.100] computer hacking process orchestrated by person targeting a specific entities, okay? [13:10.100 --> 13:16.060] And I'm very proud that we work as part of the team that are mainly fine, mainly who are defining [13:16.060 --> 13:21.380] all these APD groups. And I will also contribute some of the research, how to use machine learning [13:21.380 --> 13:28.580] to actually detect those, like PowerShell in APD32. Okay, let's talk about the target, okay? [13:29.740 --> 13:35.040] How many of you heard about FOMO3D? Okay, what does FOMO mean? [13:35.540 --> 13:36.100] Fear of missing out. [13:36.100 --> 13:39.620] Fear of missing out, exactly. So you guys are not missing out today. I'm talking about [13:39.620 --> 13:44.940] something serious. This guy's $10 million worth of crypto assets sitting there, [13:44.940 --> 13:50.900] it's a website, it looks funny, but the money is real, okay? How do you play this? It's basically [13:50.900 --> 13:57.920] like a Ponzi scheme game, but people just play it, okay? And the nice thing about it is, okay, [13:57.920 --> 14:03.780] this Ponzi scheme game is actually a piece of code executed on the blockchain, so there's no [14:03.780 --> 14:08.940] centralized governance and all that, okay? Everything is mandated by a piece of code, [14:08.940 --> 14:13.240] 2,000 lines only, okay? And how you play, right? So you buy the key, and by the way, [14:13.240 --> 14:18.800] there's a screenshot of how I participate in this, you buy a key there, so the last guy who bought [14:18.800 --> 14:24.500] the key, when the clock hits zero, he will win the jackpot, which is usually millions of dollars, [14:24.500 --> 14:30.200] worth of Ethereum, okay? And the developers, right, the very smart developers at FOMO3D, [14:30.200 --> 14:35.760] right, they actually, to increase the interactivity, right, they add a little lottery [14:35.760 --> 14:41.920] mechanism. Whenever you participate, you buy a key, you have a small chance of winning a lottery, [14:41.920 --> 14:47.940] otherwise, this game, if you think about it, right, just simulate it, when the clock goes to zero, [14:47.940 --> 14:52.380] what's going to happen? When the clock almost hits zero, what's going to happen? [14:53.220 --> 14:59.740] Yeah, exactly, right, so this game should never stop, right, theoretically, right, if it [14:59.740 --> 15:04.800] operates right, but, well, it actually stopped, so, but that's not something we're going to talk [15:04.800 --> 15:10.840] about. I'm going to talk about how the blockchain APT hacker group would identify, actually, how [15:10.840 --> 15:19.400] they exploit that lottery bug. Okay, here's a piece of code. So, actually, yeah, it's pretty [15:19.400 --> 15:26.320] hard to see, so there's really, like, the first section of the code, okay, and it's actually a [15:26.320 --> 15:33.260] function called isHuman. What does that do? Why do you put this human function in a smart contract? [15:34.880 --> 15:41.180] Yeah, make sure it's a human interacting that. Unfortunately, it's written by human, [15:41.360 --> 15:49.180] a bug, and then that can lead to the second, which is that airdrop, a random airdrop, [15:49.180 --> 15:56.040] and it says, do we have a winner in the comment? And what does that function do? [15:57.060 --> 16:02.760] Generating a random number, right, and that's the piece of code, and again, [16:02.760 --> 16:07.820] it's all transparent. It's sitting there on the blockchain, right there, and how much time [16:07.820 --> 16:14.920] would it take to run all those whole bunch of addition hashes on your computer? Take a guess. [16:15.700 --> 16:26.020] What? How many milliseconds? Usually, like, 15 milliseconds or so, right? But for those of you, [16:26.020 --> 16:32.520] it's Xenium, right? How long does it take to set our transaction? Usually, like, 10 seconds and [16:32.520 --> 16:38.460] stuff like that. So keep that numbers in mind, okay? So if you are going to exploit stuff like [16:38.460 --> 16:43.400] this, what you can do, right? Yeah, hold it. I think you got the answer already. But now, yeah, [16:43.400 --> 16:50.620] again, $10 million on this 2,000 lines of code. Okay, so based on our research, right, we actually [16:50.620 --> 16:58.080] kind of detected the lucky hackers, okay? They only contributed to, like, half of the only 10% [16:58.700 --> 17:04.640] of the transactions, okay? But this guy took half of the entire airdrop pool. [17:05.800 --> 17:13.500] Super lucky, right? Yeah, this should actually be here in casinos. And if you look deeper, [17:13.500 --> 17:18.120] right, into the exact transaction, that's another nice thing that Rob mentioned about, right? All [17:18.120 --> 17:24.800] the transaction, no matter good or bad, right, is recorded in the ledger on the public blockchain. [17:24.900 --> 17:30.420] And this is the exact transaction, one of the many, right? And yeah, just look at, I mean, [17:30.420 --> 17:34.840] it's kind of, there's a lot of, like, sub-function calls, smart contract calls out there. But really, [17:35.460 --> 17:42.800] this function, right, this transaction recorded, like, 0.1 is in, and how much they get out of it? [17:42.800 --> 17:50.180] 0.19, right? So they get, they make 90% of ROI, okay? And this is, again, one of the many [17:51.000 --> 17:57.900] transactions they're doing, okay? And just to demystify, right? So actually using our [17:58.420 --> 18:06.120] engines and all that, right? So the target is on the top, okay? That $10 million asset sitting [18:06.120 --> 18:11.240] right there, big target, everybody can see it. And the guy, there's a little guy down there, [18:11.240 --> 18:17.820] we call it a captain. I want to showcase why we call it a captain. And then in the middle of them, [18:17.820 --> 18:24.980] right, there's about, like, 50,000 smart contracts or addresses that are interacting [18:24.980 --> 18:31.500] with that guy. Okay, just think, remember the code I just showed you? What's the problem with this? [18:32.160 --> 18:38.580] If you see a graph like that, what's the problem? Connected to the source code I just showed you. [18:41.180 --> 18:44.360] You remember the first function, right? Yeah, I'm sorry. [18:44.780 --> 18:54.420] All bots, yes. So that actually means that his human function was bypassed, totally. And that's [18:54.420 --> 18:59.860] why this guy can launch a huge campaign of bots to actually interact with that. And each of them [19:00.660 --> 19:09.880] gonna win, okay? Because what this guy ended up doing is, they took that piece of code, [19:09.880 --> 19:14.160] right, that random number generator, it's transparent there, they simulate it in their [19:14.160 --> 19:20.920] smart contract, and they only play with this poor little target up there when they are going to win, [19:20.920 --> 19:27.620] when they know they're going to win. That's why they're always hitting, like, 90% profits, right? [19:28.220 --> 19:34.640] And when we look at it, like, last August, right, this guy already made, like, $150,000 sitting there [19:34.640 --> 19:41.600] in their wallet. And, yeah, and advanced persistence threat, right, in terms of advance, [19:41.600 --> 19:50.300] what happened to this guy when they run the transaction? Self-destruct. So they don't leave [19:50.300 --> 19:57.100] any bytecode on the blockchain. So, but the transaction will still be there. But the bytecode [19:57.100 --> 20:04.240] that they use to attack that smart contract is removed, self-destruct. And why is that? [20:04.240 --> 20:10.680] Why do you do that? You don't want to share your profit with some other hackers, right? [20:12.220 --> 20:20.260] And, yeah, and so this is what led to our, like, definition of blockchain APT, right? So it's [20:20.260 --> 20:25.220] basically a very similar tactics and all that, right? So very similar to what Mendian has been [20:25.220 --> 20:31.520] defining, right? The only difference is now this whole attack hacker group actually is running on [20:31.520 --> 20:36.960] decentralized world, which is actually, in our mind, is actually harder to defend than even [20:36.960 --> 20:42.640] cloud security. This whole thing, you don't even know where, which miner, in which country is [20:42.640 --> 20:51.140] running that smart contract bytecode to verify and then reach the consensus. And to give you the [20:51.140 --> 20:56.900] full visual, right, this is all the millions of addresses being interacting with that little guy [20:56.900 --> 21:02.480] sitting there, the $10 million target. And to prove that we actually know this, [21:02.480 --> 21:06.620] some of the address, we have highlighted some of the address, and this guy sitting in the middle, [21:06.620 --> 21:12.520] right, is the target and the captain and all that sitting there, that actually only converged to [21:12.520 --> 21:19.160] five addresses, wallets, the real wallets. But this guy launched hundreds of thousands of smart [21:19.160 --> 21:26.240] contracts to drain money from the pool. Is that the end? Of course not. We actually found there's [21:26.240 --> 21:33.460] very funny app in China that is actually a copycat of Formos 3D. And it runs on Android, [21:33.460 --> 21:39.180] by the way. And see the pool they're showing is like, what, 100,000 externum? That's a lot of [21:39.180 --> 21:45.000] money. And this guy actually ranked the top five, the app, in the externum last summer. [21:45.140 --> 21:53.700] And this guy also has $9 million of jackpot pool, right? And yeah, when we look at it, right, [21:53.700 --> 22:01.760] it's actually like very similar byte codes. And including the bugs, they just copy everything [22:01.760 --> 22:10.420] from the Formos 3D. The only thing that probably changed is the dividend, the account that received [22:10.420 --> 22:15.160] the dividends, the developers account. That's probably the only thing that changed, right? [22:15.160 --> 22:19.640] You don't want to send money to the Formos 3D team. You want to take the money, right? [22:19.640 --> 22:25.520] But they just take everything because Formos 3D is basically open source. It's on GitHub, right? [22:26.100 --> 22:31.600] And yeah, so it doesn't, the hackers never sleep, especially in the blockchain world. [22:32.420 --> 22:38.080] And so the Qt chain, let's talk, let's dig a little bit deeper into what's going on here, [22:38.080 --> 22:43.040] right? So to recap, I mean, some of you may have already taken the Mendian training or whatever, [22:43.040 --> 22:49.740] APT training, right? This is the attack life cycle, right? Usually initial compromise, [22:49.740 --> 22:56.640] establish full hold and prevarious escalation, right? Internal recon, complete them and then [22:56.640 --> 23:03.480] move laterally, right? And then maintain presence until they hit the jackpot, complete the mission. [23:03.520 --> 23:09.600] And just to highlight a little bit, right? Most of the APT, what's the goal of most of the APT attack? [23:09.600 --> 23:17.520] Is to? Yeah, no, that's it. All hackers want to do that. But what exactly is that? What was the [23:17.520 --> 23:27.440] step before that? Probably steal data, right? Steal data, right? Breaches. That's like why [23:27.440 --> 23:33.640] these guys are so patient, right? The average time that they can stay in the enterprise without [23:33.640 --> 23:39.580] detecting is like, what, 200 days? Yeah, what's the latest number? We have a Mendian guy on the [23:39.580 --> 23:46.720] audience. Is that 150 days now? The rest during the days? Have you read the latest M-chain report? [23:48.260 --> 23:56.600] All right, let me send a copy to you. So anyways, so but this blockchain ABD Q-chain, right? It's [23:56.600 --> 24:03.040] actually a very similar kind of Q-chain, right? So similar steps. The only difference is the [24:03.040 --> 24:07.340] actual tactics, right? Now, again, right? You are not targeting the enterprise. You are not [24:07.340 --> 24:12.920] targeting a cloud security vendor, right? You are targeting something that is a clear target [24:12.920 --> 24:18.700] sitting there in the decentralized blockchain, right? So usually they do a recon using like [24:18.700 --> 24:24.140] Web3, the Web3.js, right? To kind of scan what's going on there, right? And then when they found [24:24.140 --> 24:30.140] the vulnerability, right? This actually, we have the entire life cycle of that, those, [24:30.140 --> 24:34.920] that captains and those few accounts, right? So actually, they're super hardworking. They [24:34.920 --> 24:40.720] actually have been doing like days and nights and trying to exploit that smart contract, right? [24:40.760 --> 24:44.020] And then when they found a bug, found a vulnerability like that one, it's a random [24:44.020 --> 24:48.580] number generator problem, right? And then there's a is human function can be bypassed, right? When [24:48.580 --> 24:54.340] they figure out those, they start building weaponized smart contract that can interact [24:54.340 --> 24:59.620] with it, right? And then they're actually like that smart contract I told you, that transaction, [24:59.620 --> 25:06.220] actually that transaction interact with 10 other smart contracts, right? Like a vault and all that, [25:06.220 --> 25:13.440] right? And then they start probing, right? What are the interacting smart contract, right? [25:13.440 --> 25:19.660] And then they try to exploit those. It's actually quite easy to find a vault, right? There's a vault [25:19.660 --> 25:25.820] taking money in, right? Of course, you don't want to put your hot wallet or the dApp smart contract [25:25.820 --> 25:30.060] storing that much money. You probably want to move money into the vault, right? [25:30.120 --> 25:33.480] And then, yeah, and then when they found it, right, they're going to launch those [25:34.080 --> 25:41.740] automatic bug armies, right? To kind of drain money in an automatic way, not like by a human [25:42.340 --> 25:46.680] running the script, right? And at the end, like we just showed you, this guy actually made [25:46.680 --> 25:52.540] $2 million from the foremost 3D. And then they make another $2 million from the copycat. [25:52.540 --> 25:57.620] Let's keep going. This guy make a few million dollars from each of those smart contracts. [25:58.180 --> 26:04.980] And that's actually, they sold the persistencies of this APD hacker group, right? [26:05.040 --> 26:11.160] That smart contract launched in July last year, okay? And what's the first box about? [26:12.380 --> 26:15.560] There's three red boxes there. What's the first box about? [26:15.660 --> 26:21.580] The recon, exactly. Yeah, he's listening. That's great. I'll give you a sticker. [26:22.540 --> 26:30.500] And what happened in the middle? Yeah, he found it, man. He found it, and then now he weaponized [26:30.500 --> 26:36.080] all the bug armies and launched like 100,000 smart contracts to actually hack it. And that's [26:36.080 --> 26:42.440] probably one of the reasons that why the entire Xenium was jammed, okay? This guy paid a lot of [26:42.440 --> 26:51.260] money, but they make a lot more profit out of it. And then why did they stop? Why did they stop at [26:51.260 --> 27:08.120] the end? What? Because the money is gone, they drain it. It's gone, right? And to kind of like [27:08.120 --> 27:13.200] summarize a little bit, right? So yeah, I mean, really, this is a very tough game in the blockchain. [27:13.200 --> 27:18.440] Blockchain security is opening up a new dimension of complexity, right? So in our mind, right, [27:18.440 --> 27:25.480] three internal themes for this emerging blockchain security industry. First one is the transaction, [27:25.480 --> 27:31.540] right? How we dig into all this massive number of transactions? How do we identify those suspicious [27:31.540 --> 27:37.200] accounts? How do we find out the tactics? How do they attack the smart contract and all that, right? [27:37.200 --> 27:45.920] Based on the transaction sitting on the ledger. Another angle is the cold security, right? So [27:45.920 --> 27:51.900] you're putting that piece of smart contract, which is a piece of like a source code, a JavaScript [27:51.900 --> 27:58.980] like kind of source code, like Ethereum. And yeah, but that one is actually operating on a totally [27:58.980 --> 28:05.380] open and transparent platform, right? And if you have a vulnerability in that smart contract, I [28:05.380 --> 28:12.100] just told you what's the consequence, right? And each of those are representation of crypto assets. [28:12.100 --> 28:21.600] They're money in those, right? They're not like a dump of a database in the hospitals and all that, [28:21.600 --> 28:27.400] right? So those you're dealing with directly currencies, okay? And the next one is infrastructure [28:27.400 --> 28:35.200] security. The blockchain right now, like Bitcoin, how old is Bitcoin? How old? 10 years, exactly. [28:35.200 --> 28:44.340] How old is Ethereum? Only four years, right? And it takes the internet, right? About 20 or 30 years [28:44.340 --> 28:52.260] to evolve, to get to the maturity that we're seeing today. But again, you're still seeing this [28:52.260 --> 29:00.080] entire cybersecurity industry, right? So the hacker never stop innovating, right? And so in terms of [29:00.080 --> 29:06.700] the blockchain, infrastructure is still very early, right? So there's a lot of opportunities [29:06.700 --> 29:12.960] there that we can put our talents into this field, right? To make it grow and make it more secure. [29:15.160 --> 29:21.820] And yeah, some of our latest research, right? We feel like we need more transparency into all [29:21.820 --> 29:27.860] these different blockchain ecosystem. Now we have those Bitcoin, Ethereum, EOS, Trunks and all that, [29:27.860 --> 29:34.460] but like this research you just published in Coindesk, right? Actually, half of the EOS [29:34.460 --> 29:41.260] accounts are actually run, operated by bots. And they look like this, okay? Could that be a human? [29:41.260 --> 29:52.040] No, right? And there's economics reasons behind those, right? And yeah, so I mean, we are [29:52.040 --> 29:57.640] publishing a book, right? So we're in the process of publishing a book on the blockchain [29:58.160 --> 30:03.420] apps. I'm contributing a chapter on smart contract security and best practice, right? So [30:03.420 --> 30:09.020] we are talking to the publisher house, right? We want to make this chapter, at least this chapter, [30:09.020 --> 30:14.800] free on our website. So yeah, so follow our Twitter. It's going to go out this year, right? [30:14.800 --> 30:21.840] So yeah, to get your free copy of the chapter and we're hiring. So yeah, that's the end of the show [30:21.840 --> 30:29.330] and questions. Yeah, go ahead. [30:39.120 --> 30:44.640] When do they know when they win? When they receive their money, they know they win. [30:45.040 --> 30:49.800] Simple. And it's money. It's not a piece of data that you have to [30:49.800 --> 30:55.180] spend more effort on dark web to sell it. You are getting the crypto. Yeah, go ahead. [30:55.180 --> 31:00.440] So I had a question regarding the attack. I'm guessing that the attack is not based on, [31:00.440 --> 31:05.260] it's based on the lottery part as well, right? And this is only one of them. Yes, [31:05.260 --> 31:08.580] but there's another one targeting on the jackpot. That's another research. [31:08.680 --> 31:12.060] But this one we're talking about is... The only airdrop, yeah, the lottery, exactly. [31:12.060 --> 31:15.920] Is that the part of the game where it's like, so there's two parts of the game. The first part is [31:15.920 --> 31:19.220] that if you're the last person standing, you get the jackpot, but there's also this other lottery [31:19.220 --> 31:23.080] system where... Yeah, and this is the airdrop. The one we're talking about is the airdrop [31:23.080 --> 31:28.860] mechanism. So whenever you buy a ticket, you have a small chance. It's one out of 1,000 or [31:28.860 --> 31:35.420] less than that. Then you can win a small chance. You win a proportion of that. Like this guy was [31:35.420 --> 31:41.640] making 90%, right? But it varies. So that's the vulnerability this hacker group exploited. [31:41.660 --> 31:45.560] Oh, I see. So the fact that he basically took the random generated seed... [31:45.560 --> 31:46.100] Yes. [31:46.100 --> 31:50.080] And then calculated and made sure it was matching the same one as the same one. [31:50.080 --> 31:55.400] Exactly. And isn't this a smart idea? They only play with the casino when they know they're going [31:55.400 --> 31:57.800] to win. Will you do that here? [31:59.640 --> 32:02.040] I don't think you'll last long playing. [32:02.360 --> 32:05.280] You just keep playing. Yeah, you may be blacklisted if you do it here. [32:05.300 --> 32:05.400] Yeah. [32:05.660 --> 32:09.460] This is a quick one. So this seed that was part of that airdrop, [32:09.460 --> 32:13.160] was that something that was set by the XR contract? [32:13.860 --> 32:14.600] Yes. [32:15.160 --> 32:21.140] It's right here. It's right here. That 15 lines of code. That defines exactly how we [32:21.140 --> 32:27.600] will win the lottery. And that's why people love smart contracts. Because the house is [32:27.600 --> 32:33.120] open to you. It's transparent. All the policy, how they dispute their funds, [32:33.120 --> 32:39.300] is written in a smart contract. Isn't that amazing? It's totally transparent. Yeah, go ahead. [32:39.300 --> 32:42.540] It seems like this would have been easy to detect. There was nobody watching. [32:42.540 --> 32:44.720] It happened over the course of weeks. [32:45.940 --> 32:52.480] Actually, yes. But we're the first one detecting those. So you see that timeline that we find out. [32:52.480 --> 32:57.540] We actually start watching them when they start experimenting. It took them actually [32:57.540 --> 33:02.460] two weeks to figure out their vulnerabilities. About two weeks. [33:02.640 --> 33:05.860] So it was noticed. Why wasn't some action taken? [33:05.860 --> 33:13.440] Aha. That's what you talk about. In Xerion, there's literally no way. I mean, it's very hard [33:13.440 --> 33:21.060] to change your bytecode unless you do those upgradables and whatever, those fancy stuff. [33:21.480 --> 33:27.040] But that's exactly why people trust Xerion and those blockchains. Because that piece of code [33:27.620 --> 33:34.500] is your promise to the public, right? All your logic is recorded there. You're not supposed to [33:35.060 --> 33:39.780] change it. That's the immutability of the blockchain smart contract. [33:41.160 --> 33:46.980] But then there's a new version of it. You can actually upgrade the bytecode and all that. [33:46.980 --> 33:52.880] But actually that brings in a new attack surface, if you think about it. This problem comes. [33:52.880 --> 33:57.000] And that's why we feel like this field is fascinating. It's always evolving. [33:57.000 --> 34:02.140] Yeah? Yeah? [34:02.140 --> 34:04.880] Well, this is like a bigger problem in software engineering. [34:05.000 --> 34:10.120] Even off the blockchain, the code we write every day is inherently vulnerable. [34:10.120 --> 34:18.900] Like, our field is nascent, and we kind of suck at it. How do we... I mean, is there work [34:18.900 --> 34:25.480] in software engineering or in the application of blockchain to create proof systems or provably [34:25.480 --> 34:28.840] correct code? If we're going to do smart contract... [34:31.140 --> 34:35.400] Yeah, so actually, yeah, that's part of the mission we're doing. We have a free smart [34:35.400 --> 34:41.260] contract auditing sandbox out there that all developers can just go and submit their code [34:41.260 --> 34:46.180] there and run it. We're going to scan for about 30 vulnerabilities. That's already known, [34:46.180 --> 34:52.100] right? But your question actually touches a very good point of what's going on in this [34:52.100 --> 34:57.320] blockchain, emerging blockchain security, because literally, there's no standard, [34:57.320 --> 35:01.800] like you just mentioned, there's no standard. So right now, Nchain Air is actively participating [35:01.800 --> 35:09.340] in OWASP. So we're adding, we're helping the company defining the blockchain standards and [35:09.340 --> 35:14.620] all that, right? I mean, and this is going to be a community effort, right? We love this technology, [35:14.620 --> 35:19.160] it's totally transparent. We feel like this is going to be the future of all the software [35:19.160 --> 35:24.340] that you're going to like, like public facing kind of software, right? You have to put your [35:24.340 --> 35:30.920] source code and all that in a decentralized and totally trustable platform. But now we are [35:30.920 --> 35:35.900] suffering from those vulnerabilities. Some of them are in the source code they write, right? [35:35.900 --> 35:41.300] Because they don't have the right auditing code and like we have in this software industry, [35:41.300 --> 35:46.980] right? The other one is the infrastructure, right? It's super immature. Like one of the [35:46.980 --> 35:53.020] vulnerability we found last year in EOS blockchain was actually called the callback or the rollback [35:54.040 --> 35:59.720] vulnerability. That means if you know how the EOS supernodes are dealing with the transaction [35:59.720 --> 36:04.880] producing the blocks, you can actually exploit that to make sure your transaction won't be [36:04.880 --> 36:10.480] recorded in the blockchain. But they fixed it in December. They're very quick. They fixed it [36:10.480 --> 36:16.960] in two weeks. But I mean, that is kind of like a zero day for EOS blockchain, right? But yeah, [36:16.960 --> 36:22.880] it takes a community effort, right? And this is a very new field, right? It awaits a lot of [36:22.880 --> 36:27.580] standards and bodies and all that. And the good news is like, as you guys are following, right? [36:27.680 --> 36:33.280] Like JP Morgan Chase, right? They have those stable coins rolling out in February. Facebook [36:33.280 --> 36:38.640] Libra, they are launching a new blockchain, right? The Libra blockchain, right? So when these big [36:38.640 --> 36:42.780] guys from the internet industry or the banking, right, they come in, they're going to help this [36:42.780 --> 36:49.640] industry grow. But right now, it's like still very premature. That means a lot of opportunities, [36:50.170 --> 36:52.840] right? Yeah. [36:52.840 --> 37:00.010] Very quick point for you. There are companies that will do things like Ocam to do that. [37:01.490 --> 37:07.490] Yeah, question for you. You mentioned JPMC, you mentioned Facebook, whatever. [37:08.250 --> 37:11.330] One of the common features with them and everybody else running things that are not [37:11.330 --> 37:17.350] bullshit Ponzi scheme games on the internet is that they have trust structures, governance and [37:17.350 --> 37:23.110] off-chain components. So what do you see in leaping out to old-fashioned governance, [37:23.110 --> 37:27.370] key shares and backroom boards versus actually trying to solve this problem? [37:27.990 --> 37:35.030] Yeah, so really, his question is about what do we think about this emerging enterprise [37:35.030 --> 37:41.170] blockchain, right? Like the stuff I just talked about, JP Morgan Chase and Fidelity and Facebook, [37:41.170 --> 37:46.210] right? They are launching their chain. Most blockchain is probably falling to the private [37:46.210 --> 37:52.550] blockchain or the consortium blockchain. It's not totally open to everybody. Like the JPMorgan Chase [37:52.550 --> 37:58.350] blockchain, they're only open to the banks that interact with the inside the JPMorgan Chase [37:58.350 --> 38:05.710] banking ecosystem, right? So that's actually, if you think about it, isn't that like the intranet? [38:06.370 --> 38:11.190] Isn't it? 2000, right? Isn't that? But that's just our take, right? I mean, [38:11.190 --> 38:15.330] with that consortium blockchain, yeah, definitely it's more secure because you have [38:15.930 --> 38:22.090] a much smaller risk exposure than the stuff we're talking about here, right? [38:22.090 --> 38:29.150] But I mean, I feel like, yeah, I mean, eventually this should be an open system, right? So that's [38:29.150 --> 38:34.430] our take. I think about the intranet and internet, right? At the end, nobody's using intranet, [38:34.430 --> 38:40.450] right? Maybe only a few of you may remember the term, if you are as old as me, but yeah, [38:40.450 --> 38:50.660] that's what we believe. Any other questions? All right. Thank you very much. Thank you.