WEBVTT

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:13.240
My name is Rod Soto and I am here with Victor Phan from Radiant Chain.

00:13.240 --> 00:15.260
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:35.720
Some of the companies I work for, Akamai, Canon, Toshiba, Splunk, and one that is quite related to the crypto scene, Prolexic.

00:35.960 --> 00:38.300
I was actually part of the team that protected Mt.

00:38.300 --> 00:39.040
Goth.

00:39.360 --> 00:40.120
Remember Mt.

00:40.120 --> 00:40.800
Goth?

00:41.120 --> 00:42.820
They were a pain in the ass.

00:43.620 --> 00:48.660
If you actually go on Twitter, you'll see how they would tweet like, we're down because of Prolexic.

00:48.940 --> 00:53.680
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.260
So what we're going to talk today is about smart security, smart contract security.

01:11.260 --> 01:21.120
And I'm just going to go quick on an introduction on some of the blockchain security aspects, which obviously this is what this village is.

01:21.120 --> 01:27.540
This is an effort to bring security into the blockchain scene.

01:27.540 --> 01:30.460
And it's a good effort.

01:30.660 --> 01:31.460
Do you want to...

01:32.220 --> 01:33.920
Just a quick intro of myself.

01:33.920 --> 01:34.880
I am Victor Fang.

01:34.880 --> 01:40.320
So I used to work at FireMendian and the company I founded last year.

01:40.320 --> 01:41.280
Oh, who's from Mendian?

01:41.880 --> 01:42.660
Oh, cool.

01:42.660 --> 01:43.500
Hey, we should talk.

01:43.500 --> 01:44.160
Okay.

01:44.200 --> 01:47.560
And by the way, that's my face, as you realize.

01:47.560 --> 01:53.520
And so we graduated from the UC Berkeley, the Blockchain Accelerator.

01:53.520 --> 01:58.500
And yeah, it's very proud to be here presenting, sharing some of our research.

01:59.000 --> 01:59.760
All right.

01:59.760 --> 02:03.120
So we're a little short, so I may go a little faster than this.

02:03.120 --> 02:15.480
Some background on the blockchain, basically implemented around, effectively implemented around 2008, believed to be immutable, public ledger.

02:15.480 --> 02:19.920
It's like a DV technology that you can check, it's exposed, it's public.

02:21.300 --> 02:23.500
Full tolerant for the most part.

02:23.500 --> 02:25.880
It has been popularized by cryptocurrencies.

02:26.460 --> 02:34.760
There are some interesting implementations right now on financial video games, web video content, social media.

02:35.020 --> 02:37.100
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:47.740
It was close to 12,000 yesterday.

02:48.920 --> 02:51.740
And according to John McAfee, we hit 500,000.

02:51.740 --> 02:53.520
I hope he's right, at least on that.

02:53.940 --> 02:57.460
I know John, by the way.

03:00.600 --> 03:07.680
Obviously, we have a development of blockchain frameworks.

03:08.300 --> 03:16.520
And I would say the second most popular is Ethereum, and it's highly traded.

03:17.220 --> 03:22.220
And with Ethereum, the concept of a smart contract was introduced.

03:22.520 --> 03:25.260
So what is a smart contract?

03:25.260 --> 03:30.900
A smart contract is basically a framework that facilitates negotiation without the need of third parties.

03:31.280 --> 03:40.860
So what this does is aims to reduce transaction costs and enforces the contract under the blockchain framework.

03:41.620 --> 03:45.200
The transactions are trackable and irreversible.

03:45.200 --> 03:58.540
And I put that in quotation marks because we're going to see some sort of an example of how this irreversible, sort of like a flexible term, has been implemented in several cryptocurrencies, including blockchain and Ethereum.

03:58.660 --> 04:04.200
The most popular standard right now is ERC20.

04:04.540 --> 04:10.640
So at one point, you saw a bunch of people selling you the framework to create a new cryptocurrency.

04:10.640 --> 04:19.760
Basically what it is, they copy the Ethereum blockchain, use ERC20, and then they'll sell it to you for $250,000.

04:19.840 --> 04:22.680
So you just had to name a new currency.

04:24.060 --> 04:27.960
As we all know, at this point, smart contracts can be exploited.

04:27.960 --> 04:32.200
So we had BAO, that was $3.6 million of either.

04:33.040 --> 04:41.340
And the amount of losses was so huge that it was basically easier to hard fork, continue with that.

04:41.340 --> 04:45.240
So that's an example of how smart contracts can be hacked.

04:45.240 --> 04:53.020
And today, you're going to see actual examples of how that happens and how to audit smart contracts.

04:54.200 --> 04:56.500
They are a powerful tool.

04:56.820 --> 05:08.400
And in my opinion, the smart contract is the bridge that can enable blockchain to widespread in many other areas.

05:08.400 --> 05:13.160
I think it's important to see blockchain, it's just not only crypto.

05:13.160 --> 05:15.280
Crypto has driven it.

05:15.280 --> 05:28.840
But there are other areas that we can definitely implement this and doesn't have to scare the banks and the powers that be, which is usually my opinion why crypto has been held back.

05:28.940 --> 05:44.420
And among other reasons, but basically, things such as the smart contracts and several new standards will help to advance the cost of implementing blockchain technologies.

05:45.460 --> 05:55.220
And we can use smart contracts for, like I said before, we can use it for records, supply chain, digital identities, mortgage, insurance.

05:56.740 --> 06:01.360
So here's one of the main problems of the blockchain scene, right?

06:01.360 --> 06:11.520
So which is the hacking history is displayed with fraud, fraudsters, and people that, for some reason, can explain mysterious hacks.

06:12.060 --> 06:15.340
So we have some of the relevant hacks here, the Mt.

06:15.340 --> 06:16.440
Gox one.

06:17.120 --> 06:18.860
Again, I had experience with Mt.

06:18.860 --> 06:21.820
Gox, because we protected Mt.

06:21.820 --> 06:22.380
Gox.

06:22.380 --> 06:22.680
And Mt.

06:22.680 --> 06:25.620
Gox was basically a trading site for cards.

06:25.620 --> 06:28.360
And then they turn it into a cryptocurrency exchange.

06:28.360 --> 06:31.880
And they will get hit all the time with DDoS, all the time.

06:31.880 --> 06:37.660
So in case you wonder if we knew how the Bitcoins were lost, we didn't.

06:37.660 --> 06:41.280
Because we were only protecting the actual perimeter.

06:41.400 --> 06:48.480
So basically, they will get a lot of UDP floods, or TCP floods, or even Layer 7 attacks.

06:48.480 --> 06:51.540
So basically, we protected their perimeter.

06:51.940 --> 06:56.640
They lost 750 BTC.

06:56.640 --> 06:59.480
Then we had the DAO, which I just talked about.

06:59.600 --> 07:02.300
It's around $50 million in Ether.

07:02.300 --> 07:06.980
Then we had a coin check hack in 2018, $130 million.

07:06.980 --> 07:16.840
And then we have some of the exchanges that were compromised around the world, $1.5 billion in losses.

07:17.020 --> 07:21.960
So here's a number that I want you to see before you see this number.

07:21.960 --> 07:32.420
It's 2019, you have compromises at Binance, Cryptopia, DragonX, GateHub, BitDom and CoinMana.

07:32.520 --> 07:35.380
And here's a number that is very shocking.

07:36.700 --> 07:45.200
Around $1,800 in average were stolen per minute in 2018.

07:45.200 --> 07:54.000
If that is not enough to drive a security industry within the blockchain, I don't know what else it is.

07:54.000 --> 07:54.900
Right?

07:54.900 --> 08:01.100
So that was the average, $1,800 per minute stolen in cryptocurrency.

08:01.840 --> 08:12.980
So before I switch it to Victor, one of our messages is we had to come up with security standards.

08:13.340 --> 08:16.640
Openness and exposure does not mean security.

08:17.020 --> 08:21.100
The fact that you can see it and it's out there somehow.

08:21.100 --> 08:25.940
And I remember this from the beginning, from 2009, 2010.

08:26.000 --> 08:31.680
We believe that basically by having the ledger exposed and seeing what everybody was doing and then protecting

08:35.180 --> 08:40.700
the identities by just looking at anonymized addresses was going to be enough.

08:40.700 --> 08:51.460
And we had this libertarian dream of eliminating fiat and self-regulating by basically being open and transparent.

08:51.460 --> 08:53.680
We now know that's not possible.

08:53.820 --> 08:56.860
I mean, if that number doesn't prove it, I don't know what else.

08:57.580 --> 09:04.960
It's hard to balance at times, basically, the anonymity with the transaction levels.

09:05.240 --> 09:07.900
So at one point there will be a regulation.

09:07.900 --> 09:15.520
I know many people would not like to hear that, yes, we had to come up with standards and eventually regulation.

09:17.420 --> 09:29.320
And then sometimes when we put all our X into one basket, we just saw an example, a major exchange was attacked and breached.

09:29.320 --> 09:30.660
They got in.

09:30.820 --> 09:32.920
Hopefully nothing else happened.

09:33.000 --> 09:34.880
But my coins are there.

09:35.920 --> 09:39.660
So I'm looking at this and I'm thinking, oh, wait, my coins are there.

09:39.660 --> 09:41.620
If they got to my wallet, that's it.

09:42.140 --> 09:48.560
So when we put our stuff at one exchange, then this is sort of like a single point of attack.

09:48.560 --> 09:59.180
And one of the points that Victor's going to touch on, how these attacks have affected a majority of sites, including exchanges.

09:59.320 --> 10:10.100
And of course, the cryptocurrency, because of the regulated environment and the level of anonymity is solved by organized crime in Asian states.

10:10.320 --> 10:16.860
So I'm not sure if you heard about the whole wave of ransomware that's happening, at least in Florida.

10:17.260 --> 10:20.800
I mean, one city is OK, two cities, three cities, four cities.

10:20.980 --> 10:29.420
I mean, at one point you had to wonder, are they targeting all the schools, all these municipalities, low budget, outdated systems?

10:29.580 --> 10:32.060
And then where is the payment being sought?

10:32.060 --> 10:32.960
It's cryptocurrency.

10:32.960 --> 10:33.400
It's hard.

10:33.400 --> 10:35.340
Then they go and launder it.

10:35.340 --> 10:37.820
And that's another point that he's going to touch on.

10:38.600 --> 10:41.580
Smart contracts with flaws are immutable.

10:41.640 --> 10:48.720
And once they're deployed in the blockchain, well, the immutability helps the exploitability.

10:48.880 --> 10:52.400
And that's one of the things that he's going to touch on today.

10:52.620 --> 11:01.040
So again, before I pass it to Victor, we need to come up with some Infosec standards, just like we apply.

11:01.040 --> 11:05.900
We have PCI, we have SOX, many of all these standards.

11:05.900 --> 11:14.900
A compliance is sometimes not worth much, but at least it's an attempt to get somewhere instead of just thinking, no, this by itself will regulate.

11:15.460 --> 11:19.860
So here's something that may happen to you.

11:20.240 --> 11:25.760
So we have some adult site that got spanked.

11:26.060 --> 11:36.360
And I bring this up because they didn't audit the smart contract and they lost almost $40,000 in one day.

11:36.700 --> 11:40.740
So with that, I'm going to bring it to Victor.

11:43.180 --> 11:44.280
Thank you.

11:44.460 --> 11:45.360
Thank you.

11:45.360 --> 11:55.780
And yeah, right before this talk, I had a chance to talk to two very smart gentlemen, also from San Francisco, me and Phil.

11:55.780 --> 11:58.140
I asked them, have you heard about blockchain APD?

11:58.140 --> 11:59.020
They said, what?

11:59.020 --> 12:00.580
There's an APD on blockchain?

12:00.580 --> 12:03.920
I'm very proud to be here sharing something new today.

12:04.140 --> 12:10.640
So, and this is the original title was how to pound smart contract and make $4 million in weeks.

12:10.640 --> 12:13.000
To give a feeling, how much money is it?

12:13.000 --> 12:14.540
That's about $4 million.

12:15.100 --> 12:17.740
But we're not talking about cash, okay?

12:17.740 --> 12:19.880
We're talking about exeriums.

12:19.880 --> 12:23.260
It's also like a silver of the cryptos, okay?

12:23.560 --> 12:30.140
And this is the latest MIT tech review article on blockchain security.

12:30.140 --> 12:31.600
The title is sort of sad, right?

12:31.600 --> 12:35.540
Once held as unhackable, blockchains are now getting hacked, right?

12:35.540 --> 12:39.340
And it's very proud that our company HAI was mentioned three times.

12:39.920 --> 12:43.140
And so APD, how many of you heard about APD?

12:43.680 --> 12:44.620
That's great.

12:44.620 --> 12:45.960
Right place, guys.

12:45.960 --> 12:50.840
And just a little bit warning, I have some source code here and the slides.

12:50.840 --> 12:56.700
So for those of you who like smart contract or JavaScript, there's a puzzle there for you, okay?

12:56.700 --> 12:58.280
So what's APD, right?

12:58.280 --> 13:10.100
It's basically the worst nightmare of cybersecurity and the definition, stealthy and continuous computer hacking process orchestrated by person targeting a specific entities, okay?

13:10.100 --> 13:17.500
And I'm very proud that we work as part of the team that are mainly fine, mainly who are defining all these APD groups.

13:17.500 --> 13:25.600
And I will also contribute some of the research, how to use machine learning to actually detect those, like PowerShell in APD32.

13:26.000 --> 13:28.580
Okay, let's talk about the target, okay?

13:29.740 --> 13:32.380
How many of you heard about FOMO3D?

13:33.000 --> 13:35.040
Okay, what does FOMO mean?

13:35.540 --> 13:36.100
Fear of missing out.

13:36.100 --> 13:37.320
Fear of missing out, exactly.

13:37.320 --> 13:39.040
So you guys are not missing out today.

13:39.040 --> 13:40.780
I'm talking about something serious.

13:40.780 --> 13:48.720
This guy's $10 million worth of crypto assets sitting there, it's a website, it looks funny, but the money is real, okay?

13:48.720 --> 13:50.200
How do you play this?

13:50.220 --> 13:55.960
It's basically like a Ponzi scheme game, but people just play it, okay?

13:56.000 --> 14:05.540
And the nice thing about it is, okay, this Ponzi scheme game is actually a piece of code executed on the blockchain, so there's no centralized governance and all that, okay?

14:05.540 --> 14:11.060
Everything is mandated by a piece of code, 2,000 lines only, okay?

14:11.200 --> 14:12.060
And how you play, right?

14:12.060 --> 14:25.420
So you buy the key, and by the way, there's a screenshot of how I participate in this, you buy a key there, so the last guy who bought the key, when the clock hits zero, he will win the jackpot, which is usually millions of dollars, worth of Ethereum,

14:25.420 --> 14:26.080
okay?

14:26.080 --> 14:36.880
And the developers, right, the very smart developers at FOMO3D, right, they actually, to increase the interactivity, right, they add a little lottery mechanism.

14:37.260 --> 14:48.820
Whenever you participate, you buy a key, you have a small chance of winning a lottery, otherwise, this game, if you think about it, right, just simulate it, when the clock goes to zero, what's going to happen?

14:48.820 --> 14:52.380
When the clock almost hits zero, what's going to happen?

14:53.220 --> 15:05.240
Yeah, exactly, right, so this game should never stop, right, theoretically, right, if it operates right, but, well, it actually stopped, so, but that's not something we're going to talk about.

15:05.240 --> 15:14.120
I'm going to talk about how the blockchain APT hacker group would identify, actually, how they exploit that lottery bug.

15:14.120 --> 15:16.460
Okay, here's a piece of code.

15:16.800 --> 15:27.580
So, actually, yeah, it's pretty hard to see, so there's really, like, the first section of the code, okay, and it's actually a function called isHuman.

15:27.580 --> 15:28.900
What does that do?

15:30.140 --> 15:33.260
Why do you put this human function in a smart contract?

15:34.880 --> 15:38.940
Yeah, make sure it's a human interacting that.

15:39.200 --> 15:54.260
Unfortunately, it's written by human, a bug, and then that can lead to the second, which is that airdrop, a random airdrop, and it says, do we have a winner in the comment?

15:54.360 --> 15:56.040
And what does that function do?

15:57.060 --> 16:04.220
Generating a random number, right, and that's the piece of code, and again, it's all transparent.

16:04.220 --> 16:13.060
It's sitting there on the blockchain, right there, and how much time would it take to run all those whole bunch of addition hashes on your computer?

16:13.680 --> 16:14.920
Take a guess.

16:15.700 --> 16:16.660
What?

16:17.240 --> 16:18.800
How many milliseconds?

16:20.080 --> 16:23.440
Usually, like, 15 milliseconds or so, right?

16:23.440 --> 16:27.380
But for those of you, it's Xenium, right?

16:27.380 --> 16:29.460
How long does it take to set our transaction?

16:30.460 --> 16:33.620
Usually, like, 10 seconds and stuff like that.

16:33.800 --> 16:35.620
So keep that numbers in mind, okay?

16:35.620 --> 16:39.920
So if you are going to exploit stuff like this, what you can do, right?

16:39.920 --> 16:40.400
Yeah, hold it.

16:40.400 --> 16:42.220
I think you got the answer already.

16:42.580 --> 16:46.560
But now, yeah, again, $10 million on this 2,000 lines of code.

16:47.260 --> 16:54.320
Okay, so based on our research, right, we actually kind of detected the lucky hackers, okay?

16:54.320 --> 17:01.080
They only contributed to, like, half of the only 10% of the transactions, okay?

17:01.080 --> 17:04.640
But this guy took half of the entire airdrop pool.

17:05.800 --> 17:07.560
Super lucky, right?

17:08.980 --> 17:12.280
Yeah, this should actually be here in casinos.

17:12.300 --> 17:17.880
And if you look deeper, right, into the exact transaction, that's another nice thing that Rob mentioned about, right?

17:17.880 --> 17:24.800
All the transaction, no matter good or bad, right, is recorded in the ledger on the public blockchain.

17:24.900 --> 17:28.460
And this is the exact transaction, one of the many, right?

17:28.880 --> 17:34.260
And yeah, just look at, I mean, it's kind of, there's a lot of, like, sub-function calls, smart contract calls out there.

17:34.260 --> 17:42.800
But really, this function, right, this transaction recorded, like, 0.1 is in, and how much they get out of it?

17:42.800 --> 17:45.080
0.19, right?

17:45.080 --> 17:48.460
So they get, they make 90% of ROI, okay?

17:48.460 --> 17:53.520
And this is, again, one of the many transactions they're doing, okay?

17:53.940 --> 17:56.020
And just to demystify, right?

17:56.020 --> 17:59.880
So actually using our engines and all that, right?

17:59.880 --> 18:03.700
So the target is on the top, okay?

18:03.700 --> 18:08.960
That $10 million asset sitting right there, big target, everybody can see it.

18:09.080 --> 18:13.320
And the guy, there's a little guy down there, we call it a captain.

18:13.700 --> 18:16.120
I want to showcase why we call it a captain.

18:16.120 --> 18:26.720
And then in the middle of them, right, there's about, like, 50,000 smart contracts or addresses that are interacting with that guy.

18:26.960 --> 18:29.700
Okay, just think, remember the code I just showed you?

18:29.700 --> 18:31.500
What's the problem with this?

18:32.160 --> 18:34.780
If you see a graph like that, what's the problem?

18:35.580 --> 18:38.580
Connected to the source code I just showed you.

18:41.180 --> 18:43.320
You remember the first function, right?

18:43.320 --> 18:44.360
Yeah, I'm sorry.

18:44.780 --> 18:48.300
All bots, yes.

18:48.300 --> 18:53.980
So that actually means that his human function was bypassed, totally.

18:54.120 --> 18:58.880
And that's why this guy can launch a huge campaign of bots to actually interact with that.

18:58.880 --> 19:03.300
And each of them gonna win, okay?

19:03.340 --> 19:20.920
Because what this guy ended up doing is, they took that piece of code, right, that random number generator, it's transparent there, they simulate it in their smart contract, and they only play with this poor little target up there when they are going to win,

19:20.920 --> 19:22.680
when they know they're going to win.

19:23.160 --> 19:27.620
That's why they're always hitting, like, 90% profits, right?

19:28.220 --> 19:35.700
And when we look at it, like, last August, right, this guy already made, like, $150,000 sitting there in their wallet.

19:36.720 --> 19:45.680
And, yeah, and advanced persistence threat, right, in terms of advance, what happened to this guy when they run the transaction?

19:46.300 --> 19:47.820
Self-destruct.

19:48.460 --> 19:52.560
So they don't leave any bytecode on the blockchain.

19:53.040 --> 19:55.740
So, but the transaction will still be there.

19:55.740 --> 20:03.200
But the bytecode that they use to attack that smart contract is removed, self-destruct.

20:03.200 --> 20:04.240
And why is that?

20:04.240 --> 20:05.340
Why do you do that?

20:07.100 --> 20:10.680
You don't want to share your profit with some other hackers, right?

20:12.220 --> 20:19.300
And, yeah, and so this is what led to our, like, definition of blockchain APT, right?

20:19.300 --> 20:23.180
So it's basically a very similar tactics and all that, right?

20:23.180 --> 20:26.360
So very similar to what Mendian has been defining, right?

20:26.360 --> 20:38.320
The only difference is now this whole attack hacker group actually is running on decentralized world, which is actually, in our mind, is actually harder to defend than even cloud security.

20:38.320 --> 20:48.760
This whole thing, you don't even know where, which miner, in which country is running that smart contract bytecode to verify and then reach the consensus.

20:49.880 --> 20:59.160
And to give you the full visual, right, this is all the millions of addresses being interacting with that little guy sitting there, the $10 million target.

20:59.340 --> 21:14.600
And to prove that we actually know this, some of the address, we have highlighted some of the address, and this guy sitting in the middle, right, is the target and the captain and all that sitting there, that actually only converged to five addresses,

21:14.600 --> 21:16.100
wallets, the real wallets.

21:16.100 --> 21:21.560
But this guy launched hundreds of thousands of smart contracts to drain money from the pool.

21:22.000 --> 21:23.220
Is that the end?

21:23.340 --> 21:24.620
Of course not.

21:25.180 --> 21:32.160
We actually found there's very funny app in China that is actually a copycat of Formos 3D.

21:32.160 --> 21:34.380
And it runs on Android, by the way.

21:34.660 --> 21:38.540
And see the pool they're showing is like, what, 100,000 externum?

21:38.540 --> 21:39.440
That's a lot of money.

21:39.440 --> 21:45.000
And this guy actually ranked the top five, the app, in the externum last summer.

21:45.140 --> 21:50.840
And this guy also has $9 million of jackpot pool, right?

21:51.040 --> 21:57.600
And yeah, when we look at it, right, it's actually like very similar byte codes.

21:58.000 --> 22:03.740
And including the bugs, they just copy everything from the Formos 3D.

22:03.740 --> 22:13.220
The only thing that probably changed is the dividend, the account that received the dividends, the developers account.

22:13.220 --> 22:15.160
That's probably the only thing that changed, right?

22:15.160 --> 22:17.900
You don't want to send money to the Formos 3D team.

22:17.900 --> 22:19.640
You want to take the money, right?

22:19.640 --> 22:23.980
But they just take everything because Formos 3D is basically open source.

22:23.980 --> 22:25.520
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.400
And so the Qt chain, let's talk, let's dig a little bit deeper into what's going on here, right?

22:38.400 --> 22:44.340
So to recap, I mean, some of you may have already taken the Mendian training or whatever, APT training, right?

22:44.340 --> 22:46.780
This is the attack life cycle, right?

22:46.780 --> 22:54.120
Usually initial compromise, establish full hold and prevarious escalation, right?

22:54.120 --> 22:58.500
Internal recon, complete them and then move laterally, right?

22:58.500 --> 23:03.480
And then maintain presence until they hit the jackpot, complete the mission.

23:03.520 --> 23:05.720
And just to highlight a little bit, right?

23:05.720 --> 23:09.600
Most of the APT, what's the goal of most of the APT attack?

23:09.600 --> 23:11.180
Is to?

23:12.480 --> 23:14.100
Yeah, no, that's it.

23:14.100 --> 23:15.520
All hackers want to do that.

23:15.520 --> 23:17.020
But what exactly is that?

23:17.020 --> 23:19.760
What was the step before that?

23:21.820 --> 23:24.640
Probably steal data, right?

23:24.640 --> 23:26.020
Steal data, right?

23:26.160 --> 23:26.800
Breaches.

23:26.800 --> 23:28.960
That's like why these guys are so patient, right?

23:29.000 --> 23:35.740
The average time that they can stay in the enterprise without detecting is like, what, 200 days?

23:36.020 --> 23:37.300
Yeah, what's the latest number?

23:37.300 --> 23:40.380
We have a Mendian guy on the audience.

23:40.460 --> 23:42.500
Is that 150 days now?

23:42.500 --> 23:43.680
The rest during the days?

23:43.920 --> 23:46.720
Have you read the latest M-chain report?

23:48.260 --> 23:50.280
All right, let me send a copy to you.

23:51.120 --> 23:56.340
So anyways, so but this blockchain ABD Q-chain, right?

23:56.340 --> 24:00.580
It's actually a very similar kind of Q-chain, right?

24:00.580 --> 24:01.860
So similar steps.

24:01.860 --> 24:04.100
The only difference is the actual tactics, right?

24:04.100 --> 24:04.860
Now, again, right?

24:04.860 --> 24:06.960
You are not targeting the enterprise.

24:06.960 --> 24:09.800
You are not targeting a cloud security vendor, right?

24:09.800 --> 24:16.260
You are targeting something that is a clear target sitting there in the decentralized blockchain, right?

24:16.260 --> 24:21.360
So usually they do a recon using like Web3, the Web3.js, right?

24:21.360 --> 24:23.260
To kind of scan what's going on there, right?

24:23.260 --> 24:25.960
And then when they found the vulnerability, right?

24:25.960 --> 24:32.420
This actually, we have the entire life cycle of that, those, that captains and those few accounts, right?

24:32.420 --> 24:34.760
So actually, they're super hardworking.

24:34.760 --> 24:40.720
They actually have been doing like days and nights and trying to exploit that smart contract, right?

24:40.760 --> 24:45.720
And then when they found a bug, found a vulnerability like that one, it's a random number generator problem, right?

24:45.720 --> 24:48.460
And then there's a is human function can be bypassed, right?

24:48.460 --> 24:55.420
When they figure out those, they start building weaponized smart contract that can interact with it, right?

24:55.420 --> 25:04.680
And then they're actually like that smart contract I told you, that transaction, actually that transaction interact with 10 other smart contracts, right?

25:04.680 --> 25:06.740
Like a vault and all that, right?

25:06.740 --> 25:10.340
And then they start probing, right?

25:10.340 --> 25:13.440
What are the interacting smart contract, right?

25:13.440 --> 25:15.880
And then they try to exploit those.

25:15.880 --> 25:18.920
It's actually quite easy to find a vault, right?

25:18.920 --> 25:21.740
There's a vault taking money in, right?

25:21.740 --> 25:27.280
Of course, you don't want to put your hot wallet or the dApp smart contract storing that much money.

25:27.280 --> 25:30.060
You probably want to move money into the vault, right?

25:30.120 --> 25:35.980
And then, yeah, and then when they found it, right, they're going to launch those automatic bug armies, right?

25:35.980 --> 25:43.600
To kind of drain money in an automatic way, not like by a human running the script, right?

25:43.600 --> 25:49.580
And at the end, like we just showed you, this guy actually made $2 million from the foremost 3D.

25:49.700 --> 25:52.540
And then they make another $2 million from the copycat.

25:52.540 --> 25:53.340
Let's keep going.

25:53.340 --> 25:57.620
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:09.060
That smart contract launched in July last year, okay?

26:09.220 --> 26:11.160
And what's the first box about?

26:12.380 --> 26:13.900
There's three red boxes there.

26:13.900 --> 26:15.560
What's the first box about?

26:15.660 --> 26:17.300
The recon, exactly.

26:17.300 --> 26:18.340
Yeah, he's listening.

26:19.540 --> 26:20.320
That's great.

26:20.320 --> 26:21.580
I'll give you a sticker.

26:22.540 --> 26:24.500
And what happened in the middle?

26:26.560 --> 26:28.400
Yeah, he found it, man.

26:28.400 --> 26:35.720
He found it, and then now he weaponized all the bug armies and launched like 100,000 smart contracts to actually hack it.

26:35.720 --> 26:41.060
And that's probably one of the reasons that why the entire Xenium was jammed, okay?

26:41.060 --> 26:46.040
This guy paid a lot of money, but they make a lot more profit out of it.

26:46.040 --> 26:47.620
And then why did they stop?

26:50.200 --> 26:51.820
Why did they stop at the end?

26:55.180 --> 26:55.720
What?

26:56.920 --> 27:02.420
Because the money is gone, they drain it.

27:02.420 --> 27:05.660
It's gone, right?

27:05.660 --> 27:09.540
And to kind of like summarize a little bit, right?

27:09.540 --> 27:13.200
So yeah, I mean, really, this is a very tough game in the blockchain.

27:13.200 --> 27:17.280
Blockchain security is opening up a new dimension of complexity, right?

27:17.280 --> 27:23.860
So in our mind, right, three internal themes for this emerging blockchain security industry.

27:23.960 --> 27:25.600
First one is the transaction, right?

27:25.600 --> 27:29.040
How we dig into all this massive number of transactions?

27:29.040 --> 27:32.580
How do we identify those suspicious accounts?

27:32.580 --> 27:34.100
How do we find out the tactics?

27:34.100 --> 27:37.200
How do they attack the smart contract and all that, right?

27:37.200 --> 27:39.960
Based on the transaction sitting on the ledger.

27:40.280 --> 27:45.600
Another angle is the cold security, right?

27:45.640 --> 27:54.100
So you're putting that piece of smart contract, which is a piece of like a source code, a JavaScript like kind of source code, like Ethereum.

27:54.380 --> 28:01.880
And yeah, but that one is actually operating on a totally open and transparent platform, right?

28:01.880 --> 28:07.700
And if you have a vulnerability in that smart contract, I just told you what's the consequence, right?

28:07.700 --> 28:12.100
And each of those are representation of crypto assets.

28:12.100 --> 28:13.880
They're money in those, right?

28:13.880 --> 28:21.820
They're not like a dump of a database in the hospitals and all that, right?

28:21.820 --> 28:25.740
So those you're dealing with directly currencies, okay?

28:25.740 --> 28:28.700
And the next one is infrastructure security.

28:28.800 --> 28:31.980
The blockchain right now, like Bitcoin, how old is Bitcoin?

28:32.380 --> 28:33.280
How old?

28:33.720 --> 28:35.200
10 years, exactly.

28:35.200 --> 28:36.620
How old is Ethereum?

28:37.460 --> 28:39.380
Only four years, right?

28:39.620 --> 28:42.300
And it takes the internet, right?

28:42.300 --> 28:49.740
About 20 or 30 years to evolve, to get to the maturity that we're seeing today.

28:49.740 --> 28:55.840
But again, you're still seeing this entire cybersecurity industry, right?

28:55.840 --> 28:58.620
So the hacker never stop innovating, right?

28:58.620 --> 29:04.660
And so in terms of the blockchain, infrastructure is still very early, right?

29:04.660 --> 29:10.460
So there's a lot of opportunities there that we can put our talents into this field, right?

29:10.460 --> 29:12.960
To make it grow and make it more secure.

29:15.160 --> 29:18.320
And yeah, some of our latest research, right?

29:18.320 --> 29:23.740
We feel like we need more transparency into all these different blockchain ecosystem.

29:23.740 --> 29:32.740
Now we have those Bitcoin, Ethereum, EOS, Trunks and all that, but like this research you just published in Coindesk, right?

29:32.880 --> 29:37.520
Actually, half of the EOS accounts are actually run, operated by bots.

29:37.520 --> 29:39.980
And they look like this, okay?

29:39.980 --> 29:41.260
Could that be a human?

29:41.260 --> 29:42.880
No, right?

29:42.880 --> 29:47.300
And there's economics reasons behind those, right?

29:47.820 --> 29:53.760
And yeah, so I mean, we are publishing a book, right?

29:53.760 --> 29:58.820
So we're in the process of publishing a book on the blockchain apps.

29:58.900 --> 30:03.240
I'm contributing a chapter on smart contract security and best practice, right?

30:03.240 --> 30:05.900
So we are talking to the publisher house, right?

30:05.900 --> 30:10.780
We want to make this chapter, at least this chapter, free on our website.

30:10.800 --> 30:13.180
So yeah, so follow our Twitter.

30:13.180 --> 30:14.800
It's going to go out this year, right?

30:14.800 --> 30:19.540
So yeah, to get your free copy of the chapter and we're hiring.

30:19.820 --> 30:23.200
So yeah, that's the end of the show and questions.

30:28.130 --> 30:29.330
Yeah, go ahead.

30:39.120 --> 30:41.180
When do they know when they win?

30:41.180 --> 30:44.640
When they receive their money, they know they win.

30:45.040 --> 30:45.920
Simple.

30:46.400 --> 30:47.660
And it's money.

30:47.760 --> 30:52.220
It's not a piece of data that you have to spend more effort on dark web to sell it.

30:52.220 --> 30:53.620
You are getting the crypto.

30:54.120 --> 30:55.180
Yeah, go ahead.

30:55.180 --> 30:57.120
So I had a question regarding the attack.

30:57.900 --> 31:02.980
I'm guessing that the attack is not based on, it's based on the lottery part as well, right?

31:03.960 --> 31:05.020
And this is only one of them.

31:05.020 --> 31:07.360
Yes, but there's another one targeting on the jackpot.

31:07.360 --> 31:08.580
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.300
Is that the part of the game where it's like, so there's two parts of the game.

31:15.300 --> 31:21.360
The first part is that if you're the last person standing, you get the jackpot, but there's also this other lottery system where... Yeah, and this is the airdrop.

31:21.360 --> 31:23.560
The one we're talking about is the airdrop mechanism .

31:24.120 --> 31:27.500
So whenever you buy a ticket, you have a small chance.

31:27.500 --> 31:29.780
It's one out of 1,000 or less than that.

31:29.780 --> 31:31.980
Then you can win a small chance.

31:32.080 --> 31:34.680
You win a proportion of that.

31:34.680 --> 31:36.640
Like this guy was making 90%, right?

31:36.640 --> 31:37.640
But it varies.

31:37.900 --> 31:41.640
So that's the vulnerability this hacker group exploited.

31:41.660 --> 31:42.120
Oh, I see.

31:42.120 --> 31:45.560
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:50.500
Exactly .

31:50.940 --> 31:53.040
And isn't this a smart idea?

31:53.040 --> 31:56.060
They only play with the casino when they know they're going to win.

31:56.500 --> 31:57.800
Will you do that here?

31:59.640 --> 32:02.040
I don't think you'll last long playing.

32:02.360 --> 32:03.220
You just keep playing.

32:03.220 --> 32:05.280
Yeah, you may be blacklisted if you do it here.

32:05.300 --> 32:05.400
Yeah .

32:05.660 --> 32:06.620
This is a quick one.

32:06.620 --> 32:13.160
So this seed that was part of that airdrop, was that something that was set by the XR contract?

32:13.860 --> 32:14.600
Yes.

32:15.160 --> 32:16.080
It's right here.

32:16.080 --> 32:16.940
It's right here.

32:16.940 --> 32:19.100
That 15 lines of code.

32:19.100 --> 32:22.560
That defines exactly how we will win the lottery.

32:22.600 --> 32:25.980
And that's why people love smart contracts.

32:26.100 --> 32:29.040
Because the house is open to you.

32:29.280 --> 32:30.220
It's transparent.

32:30.220 --> 32:34.920
All the policy, how they dispute their funds, is written in a smart contract.

32:35.180 --> 32:36.420
Isn't that amazing?

32:36.840 --> 32:38.600
It's totally transparent.

32:38.600 --> 32:39.300
Yeah, go ahead.

32:39.300 --> 32:41.600
It seems like this would have been easy to detect.

32:41.600 --> 32:42.540
There was nobody watching.

32:42.540 --> 32:44.720
It happened over the course of weeks.

32:45.940 --> 32:47.040
Actually , yes.

32:47.240 --> 32:49.500
But we're the first one detecting those.

32:49.500 --> 32:52.480
So you see that timeline that we find out.

32:52.480 --> 32:56.560
We actually start watching them when they start experimenting.

32:56.620 --> 33:00.480
It took them actually two weeks to figure out their vulnerabilities.

33:00.780 --> 33:02.460
About two weeks.

33:02.640 --> 33:04.120
So it was noticed.

33:04.120 --> 33:05.860
Why wasn't some action taken?

33:05.860 --> 33:06.740
Aha.

33:06.920 --> 33:08.420
That's what you talk about.

33:08.420 --> 33:12.400
In Xerion, there's literally no way.

33:12.400 --> 33:21.060
I mean, it's very hard to change your bytecode unless you do those upgradables and whatever, those fancy stuff.

33:21.480 --> 33:25.720
But that's exactly why people trust Xerion and those blockchains.

33:25.720 --> 33:31.160
Because that piece of code is your promise to the public, right?

33:31.160 --> 33:33.460
All your logic is recorded there.

33:33.460 --> 33:35.820
You're not supposed to change it.

33:36.080 --> 33:39.780
That's the immutability of the blockchain smart contract.

33:41.160 --> 33:44.000
But then there's a new version of it.

33:44.000 --> 33:46.980
You can actually upgrade the bytecode and all that.

33:46.980 --> 33:51.580
But actually that brings in a new attack surface, if you think about it.

33:51.580 --> 33:52.880
This problem comes.

33:52.880 --> 33:55.400
And that's why we feel like this field is fascinating.

33:55.580 --> 33:57.000
It's always evolving.

33:57.000 --> 33:57.900
Yeah?

34:01.140 --> 34:02.140
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:16.160
Like, our field is nascent, and we kind of suck at it.

34:16.160 --> 34:26.820
How do we... I mean, is there work in software engineering or in the application of blockchain to create proof systems or provably correct code?

34:27.080 --> 34:28.840
If we're going to do smart contract...

34:31.140 --> 34:34.480
Yeah, so actually, yeah, that's part of the mission we're doing.

34:34.480 --> 34:41.940
We have a free smart contract auditing sandbox out there that all developers can just go and submit their code there and run it.

34:41.940 --> 34:44.940
We're going to scan for about 30 vulnerabilities.

34:44.940 --> 34:46.700
That's already known, right?

34:46.700 --> 34:59.280
But your question actually touches a very good point of what's going on in this blockchain, emerging blockchain security, because literally, there's no standard, like you just mentioned, there's no standard.

34:59.320 --> 35:03.240
So right now, Nchain Air is actively participating in OWASP.

35:03.240 --> 35:10.660
So we're adding, we're helping the company defining the blockchain standards and all that, right?

35:10.660 --> 35:13.460
I mean, and this is going to be a community effort, right?

35:13.460 --> 35:15.900
We love this technology, it's totally transparent.

35:15.900 --> 35:23.340
We feel like this is going to be the future of all the software that you're going to like, like public facing kind of software, right?

35:23.340 --> 35:30.140
You have to put your source code and all that in a decentralized and totally trustable platform.

35:30.140 --> 35:33.100
But now we are suffering from those vulnerabilities.

35:33.100 --> 35:35.900
Some of them are in the source code they write, right?

35:35.900 --> 35:41.460
Because they don't have the right auditing code and like we have in this software industry, right?

35:41.460 --> 35:44.540
The other one is the infrastructure, right?

35:44.540 --> 35:46.240
It's super immature.

35:46.240 --> 35:55.000
Like one of the vulnerability we found last year in EOS blockchain was actually called the callback or the rollback vulnerability.

35:55.300 --> 36:07.160
That means if you know how the EOS supernodes are dealing with the transaction producing the blocks, you can actually exploit that to make sure your transaction won't be recorded in the blockchain.

36:07.520 --> 36:09.360
But they fixed it in December.

36:09.360 --> 36:10.020
They're very quick.

36:10.020 --> 36:11.240
They fixed it in two weeks.

36:11.240 --> 36:16.020
But I mean, that is kind of like a zero day for EOS blockchain, right?

36:16.020 --> 36:18.720
But yeah, it takes a community effort, right?

36:18.720 --> 36:21.220
And this is a very new field, right?

36:21.320 --> 36:24.920
It awaits a lot of standards and bodies and all that.

36:24.920 --> 36:27.580
And the good news is like, as you guys are following, right?

36:27.680 --> 36:29.440
Like JP Morgan Chase, right?

36:29.440 --> 36:32.740
They have those stable coins rolling out in February.

36:32.860 --> 36:36.000
Facebook Libra, they are launching a new blockchain, right?

36:36.000 --> 36:37.720
The Libra blockchain, right?

36:37.720 --> 36:43.860
So when these big guys from the internet industry or the banking, right, they come in, they're going to help this industry grow.

36:43.860 --> 36:47.240
But right now, it's like still very premature.

36:47.360 --> 36:51.280
That means a lot of opportunities, right?

36:51.640 --> 36:52.840
Yeah.

36:52.840 --> 36:54.080
Very quick point for you.

36:54.080 --> 37:00.010
There are companies that will do things like Ocam to do that.

37:01.490 --> 37:03.330
Yeah, question for you.

37:03.330 --> 37:07.490
You mentioned JPMC, you mentioned Facebook, whatever.

37:08.250 --> 37:18.630
One of the common features with them and everybody else running things that are not bullshit Ponzi scheme games on the internet is that they have trust structures, governance and off-chain components.

37:18.630 --> 37:27.370
So what do you see in leaping out to old-fashioned governance, key shares and backroom boards versus actually trying to solve this problem?

37:27.990 --> 37:36.090
Yeah, so really, his question is about what do we think about this emerging enterprise blockchain, right?

37:36.090 --> 37:41.330
Like the stuff I just talked about, JP Morgan Chase and Fidelity and Facebook, right?

37:41.330 --> 37:43.070
They are launching their chain.

37:43.390 --> 37:48.410
Most blockchain is probably falling to the private blockchain or the consortium blockchain.

37:48.490 --> 37:51.550
It's not totally open to everybody.

37:51.550 --> 38:00.490
Like the JPMorgan Chase blockchain, they're only open to the banks that interact with the inside the JPMorgan Chase banking ecosystem, right?

38:00.490 --> 38:05.710
So that's actually, if you think about it, isn't that like the intranet?

38:06.370 --> 38:07.690
Isn't it?

38:07.710 --> 38:08.890
2000, right?

38:08.890 --> 38:09.510
Isn't that?

38:09.510 --> 38:10.610
But that's just our take, right?

38:10.610 --> 38:22.090
I mean, with that consortium blockchain, yeah, definitely it's more secure because you have a much smaller risk exposure than the stuff we're talking about here, right?

38:22.090 --> 38:28.650
But I mean, I feel like, yeah, I mean, eventually this should be an open system, right?

38:28.650 --> 38:29.630
So that's our take.

38:29.630 --> 38:31.670
I think about the intranet and internet, right?

38:31.670 --> 38:35.050
At the end, nobody's using intranet, right?

38:35.210 --> 38:41.450
Maybe only a few of you may remember the term, if you are as old as me, but yeah, that's what we believe.

38:45.460 --> 38:46.680
Any other questions?

38:48.780 --> 38:49.140
All right.

38:49.140 --> 38:50.020
Thank you very much.

38:50.040 --> 38:50.660
Thank you.

