In this episode, Luca talks about hacking happening in DeFi and what kind of hacking we can expect in Web3 in Travel, when it actually becomes a thing. Sponsor or donate via #NFT @ https://podcast.web3intravel.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Hello. I'm look at the G 0 and this is the web Tree in trouble podcast where you can learn about crypto blockchain and how the new internet will change travel. Today, we are going to talk about hacking in web Tree in trouble and by hacking, I mean, not hacking in a good sense. People driving code and trying to fix things by by breaking
them. But hacking in the sense of stealing. Basically, and actually there's two kinds of hacking in general, which is white white head hiking and blackhead hacking wear, the white hat. Hacking is somebody who Mine's vulnerabilities in the code and alerts the project saying, look, there's something dangerous new code, you have to fix it, and sometimes they get a bounty. So they get a reward for that. And then there's the block head
I think which is simply stealing money now. Do we have hacking a web to? Yes, we do have hacking web to, but because money doesn't work natively online. It's harder to steal. Deal. So, I can imagine any big trouble company, having a lot of money, let's say Adam on booking.com, how much money do they have in their bank accounts? A lot. Okay, how easy it is to steal that money, it is really hard because it's really hard by Design to move money out of a bank account.
If somebody, let's say finds a way to hack into the online banking of somebody holding a lot of money in booking.com, they can move the monitor. Old. But then, that sounds action will be reversed because the money stays in a system, which is the banking system, which is custodial, so they can reverse son's actions. They can censor transactions, Etc. And we crypto like to think about this selfie horrible.
You know, is not your money if the bank's money, but at the same time, we tend to under, appreciate how safe it is. Because if you have money, In your bank account, it's really hard to steal it. Now, of course things are not going very well in general, in the world and more and more people don't feel so comfortable with money in the bank, but that's another discussion. So if you are a company today and you have my million dollars in a bank or a million dollars in a wallet, you will be more worried about the wallet,
probably, because the wallet is a, is a bit harder to manage than a bank account, right? Why. Well, Is the bank account, is custodial. Somebody is custody in the money for you while. The wallet is self custodian. So you are casting your money for yourself. If we think, and I don't know if it is true but I always thought. So, as a kid Banks who are invented mostly to keep the money safe, right? People have money cash gold and they didn't want to keep it at
home because, you know, teams could come in and take the money. So they gave it to somebody who specialized in keeping this money safe and we had banking. Now, if this show that, this is the beginning of banking. Well, that's a good service. And, of course, back in became something else, and they started using this money paying your interesting and set excetera and whatever it is today, I don't know, but it's something different. Anyway, the need for somebody specialize in custody, your money was there hundreds of years ago, and it's still there
today. Now, with If do we are in a phase in which we think we give for granted that we should keep our money with ourselves and don't give it to any custodial service, which may be a good idea or a bad idea. According to the case I wouldn't make this general rule now I'm making this introduction to highlight. The fact that web treated a Works in a bit. Weird way. In the sense that all the money
is Either in wallets held by the projects in multisig safes. Like the nose is safe. I talked about recently. Now, it's rebranded as safe which is basically a few people, keeping the keys and moving the money in accordance with a certain number of signatures. And then in custodial services in custody services are Exchanges. Like you can keep your money on buying us or specifically goes
to the exchanges. We are which are kind of helping you keep the money safe. They have maybe one of the keys. They are not really Banks, they are kind of backup sets, etc, etc. So, but most of the money is in, in addresses and I didn't mention the one of the most important ones in smart contracts. So I mentioned this Mark on track, which is Safe safe is a is a set of smart contracts but that's a specific use case is
like we can help you. Keep your money safe, don't keep it alone in a wallet keep it together with other people. What I mean by smart contracts, here is for instance, an escrow contract where people pay, you know, like the guest pays the host or the hotel and the money stays in the contract until the guest arrives at the destination. This is one of Use cases which we probably will see in the future and there are some smart contracts already out there
doing that. Now, this is something you, the money is held in a smart contract. I think I talked about this, we are at episode 49, I can't remember everything I said, so you probably want neither. So does is no harm in repeating things. So that's something we don't have in web to, and in traditional Finance, / banking. In some smart contract, keeping the money. So some code keeping money in
itself and this code not being able to take any decision. I don't think I made this very clear deposit. Some our contracts do not make decisions, they only act when a transaction comes in. So, an escrow smart contract. May have a million dollars a billion dollars in it, and it's waiting for Transactions from maybe the guest address, which says, okay, you can release the money to the Google hosts.
So how can you get that money out? Well, it depends on the smart contract. There are smart contract. We allow you to take the money out, just the way that the one I just described maybe others are more flexible, they say, okay, if you are the owner of the contract and that would be the admin of the system, right? The owner of the contract. You have a withdrawal function, which you can click and you can withdraw the money to your own address or any address that's already opening.
Attack surface, right in the sense that maybe somebody is able to hack the part of the code and make the money, go to an address even if they are not the owner by when I say hacking the codomain, change the code, but give inputs which the code interprets in a different way than the developer told was possible and indeed actually is possible and they're able to steal the money now. Why am I even talking about hacking Being in web train travel when we don't really have
yet a web train travel industry. Well, first of all because we don't have a web tree job interview. So I have to talk about something but on the other hand, I think is good to be able to get ready for this and learn this. And we are lucky because trouble is not the first use case for crypto. Defy was actually Bitcoin was, but after Bitcoin, defy was so defies the first industry. So the finance is First industry, which is being affected.
And there are use cases for in with crypto and there is a lot of hacks. A lot of money is lost very often and we are talking about not a million dollars, not put two million dollars often is 20, 30 50, 70, 100 million dollars. It's a lot of money being stolen from those countries. I mean, a lot. There's a website I just found is crypto SEC. Dot info / D, Phi, Why I been hacks? Which says, as of today, there
are total of 104 defy exploit that have occurred with lost founds amounting to a total approximately three point six billion dollars on the time of these exports. And most of them, of course material, because the terrarium is the biggest chain and BMB, Etc. Funny funny statistic here is that there were 16 In 2020, because it was not much activity was defy. Basically, starting 62 2021 and 27 in 2022.
This seems to say that is going down and I would expect that because 2021. All right, no, maybe it's because it's a bear market and all the money is gone already probably or maybe because we are learning. So for sure, the industry is hard. Turning people writing smart contracts. Holding money are, of course, more careful now and you can write say, fur coat. If you are more careful, if you write it in a better way, if you're a better developer, if
you have by the processes, if you have better all Deeds, Etc. So let's see if this 27 exploits in 2022 are going to cover go over the 662 in 2021. Well, it's the 14th of October, probably not. So that's a good sign at the end about that. Let's just see some examples in on August 2nd, or a bridge called nomid bridge, where two
hundred and million dollars were stolen and just look in the ones, I know, Rara capita, plus, Faye protocol, 80 million. Let's see. Not. So lonely. That was famous. Running is the, the network of x infinity. The very successful plate to our game. They lost 625 million even if they were able to get some. So back later the wormo bridge in February 326 million dollars,
that was if I recollect correctly as Solana, Bridge bridges are very dangerous. We should talk about bridges. Sooner or later? Well, I guess it's enough. A lot of money is lost in the Phi. So who are the occurs? There's, let's say, let's start from the biggest occurs out there, which are probably North Koreans. There seemed to be, of course, we don't know this very well, but there seemed to be whole Industries or whole factories or whole, you know, big groups of
North. Koreans probably working for the government who are actively stealing money from Defy to, you know, Finance the country with over the country does launching missiles and stuff and you know you have a group of very clever and prepared and dedicated people who can easily hackable a contract, but they can easily hack it. Only if it's hackable, not all contracts are hackable. Of course, not all contracts are act even if they could because
this be the money into it. But yeah, okay, let's stay on who so North Korea's big, you know? State level organizations stealing money from defy, then well then there's your, you know, probably people who are expert, they are very good developers and they'd say, okay? And it's better to steal the money then actually build something and they still money. Yeah, some of them sometimes, write back and say, okay, I stole 100 Millions from you. Give me 20, don't go to the police and I gonna give you back
80 and this happens. Why does it happen because If you have say eat, you can't buy stuff, really, you want to exchange it for some stable coins first and then well you want to put in a credit card like a bonus card, spend it or you want to go through the banking system. Get cash, Etc! So because payments in crypto are not a thing yet, you're not paying in crypto, most of the times you need. If you have this crypto, you stole it. You need to bring it back to the field system, and when you go through the fear system, Goes
blockchains of transparent so they know this money will stall in. Yeah, you're going to have some problems in, you know, cashing out. It's not impossible. It's just hard. Then, as I was saying, you have white hackers, these are not looking to steal money, they just want to find these problems and get reward for that, and there's many of them. And then there's another category Which is less well known. And these are the very developers who've wrote this. Mar contract and left some vulnerability in it. To be able later if the occasion
arises, or if the need arises to get the money out of the contract, in this happens, more than we think. And I think the reason and I think, actually, the reason I can say this is because a lot of hacks happen when the markets crash now, why would people steal money when the market crashes? Well, if the market is good and the price is going up, everybody's making money, maybe you You are managing a project which is worth a lot of money
and then boom, it starts crashing, you know, talking scratch, 90 percent, 95, 95, 99 percent you go like, okay, I was rich and I'm getting poor very fast. Let me get the money out. Let me exchange it for some stable coins and then let me, you know, go go to the Fiat system and every time the buyer Market starts and there's crushes, you have also a lot of hacks. Another category of hackers are the smart contract Auditors.
So imagine you have a smart contract as a lot of money into it. And you go like, okay, we started this as a joke or like as a small project we started with ten thousand dollars and now this is worth fifty to fifty million dollars, guys. We have to Old it now. I hope this event does happen anymore. I hope people all these before, but in the past, it was for sure, like this and you go to an audit company, you say, we need you. To order the code, okay, it's fifty thousand dollars. Okay, here's the money we all reach anyway, right? And they all did the code and
whose only the code. Well, somebody working there, and imagine you're working at an auditing company and you're not very honest or, you know, you are not able to resist big, the amount of money you're sitting at this desk. You find a vulnerability which allows you to take out 50 million dollars. You going to think twice. Am I going to report this or am I going to exploit this? And sometimes people exploit? This it happens. Is human is normal. So while things are getting
better very slowly while defy hacks happens at the same time, even if you getting better because this is a space where people want to experiment very fast that there's, you know, first you have to see if it The thing is a bit like this, okay, I have an idea. Okay, develop it. Oh, good, it looks working. Oh my God is working. O is working very well. Oh, so it's so much money in the contract, or guys, did we really try the contract carefully? What not really? We didn't know if it was
working, right? Okay, let's go and load it and then you know what happens or or before they get audited, somebody finds the vulnerability. So when a contract as a lot of money into it, there's more eyes on it and somebody will find Problem. If there is a problem, that's how this industry is be working so far. Now when web train travel comes in, hopefully the standards are higher and it's harder to hack this more contracts but who knows maybe, you know,
especially if there's a lot of money from outside, which is deployed and is asking for quick returns. People are going to be pressure to develop quickly to grow quickly, you know, the whole startup World in web to was like this you know, grow quickly break things and see how it goes. But we have this new element of very liquid native money now which makes it very very dangerous. So what should you do if you decide to launch a web changeable project?
Well it's not easy to tell you what to do because yeah ideally you have the best developers so which are very expensive and then you have the money for Did before your product is even launched. And it may not even notice that you are a start-up. Maybe going to launch 10 different projects until one starts working gets some growth. Are you gonna audit all of them spending, you know, fifty thousand dollars, each maybe know you're gonna get the risk. Are you going to take that risk? So when it starts growing, you
should be fast enough to audit. Hoping the auditing companies is him healthy and they don't have any teeth in the midst. And then, you know, upgrade is Mark contract, upgrading meaning, creating new ones and closing or stopping the, the old ones, or emptying, the money from the old ones, or the touch in the front ends, whatever, you know, and, and that's not easy. So I'm expecting where train travel hacks. I don't see how this is not going to happen, especially so I
mentioned if there is VC money, so we see money, we grow weaker. Once we may see big corporations coming in and B Corporation don't know much, so they're going to hire consultants and companies. And yes, they have the cash but they do have their not natively blockchain developers. These companies, these are the see a big travel company. So they're going to pay somebody to do that and that does somebody want probably beat that focus on security and there's
all the money they want results to this. Concept, that money is very easy to steal in crypto is as not yet. Arrived to the, you know, crypto people. They don't know how this works. So this very concept am explaining to you as soon as long as this is not clear in the minds of people who take decisions and we going to have hacks. So maybe one day we're going to have a very big company in trouble or grades. A very big project with a lot of money in this Mark, on truck, and this gets hacked, and they
lose 300 million dollars. Then they're going to say, okay we have to take security seriously or say these web treating is just too dangerous. Who knows? But yeah, unfortunately I am expecting big hacks in webpage in trouble. I just don't see how this does not happen. So if you are a user, no not, you know, project Builder, how can you react to this information and just give you basically? Well, it's I talked about this in the past but one thing is
very important, first of all bridges are dangerous. So every time you bridge money from a chain of another, it's not safe. It's the less safe thing in crypto. Do they are bridges. The other thing. If your money is in a smartphone That make sure the contract is, as old as possible and as full of money as possible, because this is kind of what guarantees you a higher level of certainty. Today, there is not a single
mark on track. I would trust some developers could tell me, no, look, this country is very safe because it is very simple and the through the simpler the better and that's probably true. But how can you know if you're not technical Right. So assume always that somebody will try to steal that money and there are of the possibilities to do. So I haven't mentioned another kind of hack, which works by manipulating data, which is not
in the contract. So the contract doesn't have any vulnerability in itself, but it is reading data from third parties and if you manipulate that data, you can get a lot of money for for little money. so let me make an example, let's say that you have a smart contract, which sells you, and if these four thousand dollars, okay, because they connect to the price of hotels, And the hotel price is thousand dollars,
okay? And then somebody wants to steal those any of these they don't need to hack the contract. They have to find a way to manipulate the source where you're reading. The double tail is a thousand dollar. And if the manipulates to 100 while they can go to the contract and buy 10 pieces 10 and if these for the price of one and then they can sell it for a thousand dollars. So that's a very crude example, but is to show you that, these systems can be hacked, even if
the smart contract is safe, now, you can argue that this Mark contract by using dots service, which is normally called an oracle He's by itself upon safe, and it would agree with that. But in that case, you know, if the Oracle was not attacked, his bar contract would have worked. So saying that would be a smart contract without bags, which actually can be hacked anyway because it has external dependencies. So, let's say that, you know, web train travel starts picking
some some speed and there's more money into it and then we find it again can use Apps to imbibe and if the bookings or all the things we discussed in the past always assume we can lose that money don't ever feel like okay it's done now we are mature. Know that money can go that part of the money will go away due to hacks. Always assume that it's still very experimental and it's going to be spare experimental for a
few years yet. So it's easy to make money and easy. To lose money. One of the most respected voices in crypto is Andreas Antonopoulos. Iaea mentioned him a few times. And think. And he coined this term or this phrase, which is not your keys, not your coins. Actually, I think he initially said, not your keys, not your Bitcoin, but then it only this, this was a large to not your keys, not your coins. Meaning, if you don't have your
Bitcoin material, more, whatever in your wallet, And having a wallet means having the keys, they're not yours. If they aren't by neskowin base. If they are in any custodial service that don't belong to you, you may lose them, they may be hacked. They may be, they may shut down if you don't have them. So the only way to say I own coins is by holding the keys, not your keys, not your coins. And for a long time, I thought this was the end of the
discussion but then I realize that We have another the other side of the middle which to be fair Andreas mentioned is, is not saying if you keep the money in, your wallet is safe and if you keep it the money in your bank, it's not safe. It's not saying that, but maybe we listen too much to this as a simplification, like, not your kids, not your coins, which means your keys, your coins. And this is not true Yorkies. Often is not your coins because you are Them.
So, you lose the keys, or you get hacked. So when you go from a custodial service to unknown custodial service, which is basically our cash under the mattress, or your coin in a wallet, you become the custodian and then you are, you know, you are have the same risk that the bank has only that you're not prepared for those risk. Luckily you don't have all the money a bank has so you know, when people don't know it so they won't steal your money. But not your keys. Not your coins.
True, your keys, not your coins. Also true for a very large amount of people for everybody, I would say because everybody is at risk, but let's say the people who can manage their keys properly, know how to keep them safe. But the vast majority of people wouldn't be able to, you know, those people who still use very simple passwords and stuff like this, most people, most people so I came to the conclusion that unless somebody comes to crypto by E more herself and goes
through the learning project process and makes all the necessary effort and has the necessary knowledge and also capabilities. Some people are just in a bad in technology. I would not push people to come into this space at this stage because wallets are still too hard and I prefer to them to keep the money with a custodial. service then to keep it by themselves and losing it, which brings us to something we discussed before, we will
probably see, more and more wallets, which are hybrid Where you can manage the money in a safe way and can still interact with web tree. This is a discussed this before. So I'm not going to repeat it, but we will have to see something new in the wallet space. This day, the actual situation today is is not sustainable, and we are seeing it. The key word here is I think contract wallets or smart controllers or Wallet accounts
can't remember. Now, they were discussing these things in a few conferences, in a few species of Bogota of the def con going on right now. So we will see a lot of development in Google as. And when you start seeing that there are new kinds of wallets account obstruction wallet. There was another way they called it. Maybe maybe that means we are ready for Mass adoption. This is the biggest Locker right now the wallet. Yeah, but this is today apart from the wallet discussion.
We just had here and I say discussion, but I'm talking by myself, but I know you there listening. So it's a discussion even if you can order, apply, but you can reply to me later in a DM or even or whatever. So, it's potentially the potential discussion even if we forget voted for a moment and we go back to the hacking, even if we are going to go through through all these Atkins, It doesn't mean that we shouldn't go. It's it's a dangerous place to be is full of opportunities.
There are. Yes. You know, like in the Far West, there were Bandits bands of Bandits going around and going to Villages and shooting and stealing money. Same thing here, it doesn't mean you shouldn't have been there. The there were so many opportunities, so it's exactly the same thing. And I hope in this episode to have been able to tell you, and let me repeat this before we close that hacking happens at every level, especially on Smart contracts with a lot of money
into. It is getting better in a way because people are learning to write better code and be more careful and it's going to keep happening because we always going to have people who want to do things fast, we're going to see hacks, we're going to see. ER drops. We're going to see tokens going up tokens going down. We're going to see these things more, and more more, and more in trouble. We haven't seen much so far, that's why I'm very excited for the future. The next, please for me, or for those have been here for a few
years. We will see things which we have seen already only in the context of trouble. And I hope in this journey, we are doing together to be able to help you navigate maximizing, The Profit, the opportunity, and minimizing the risks. Alright, this is the end of today's episode. I really hope you enjoyed it for more insights on web tree. Follow me on Twitter at trip.
Look up the RIT LED. You see a and see you next time?
Most text written by AI is painful to read, and people stop reading as soon as they notice it. In this build-in-public episode I relaunch the blog of my AI travel agent project, and the agents write it. So the question...
The first build-in-public episode of Web3 in Travel. Instead of telling you what I've learned about AI, I build an AI travel agent on screen, unscripted, with Claude Code and Codex, and you watch every step, including...
We are in the middle of a bug apocalypse. With AI, finding serious software bugs has become fast and cheap, for attackers and defenders alike. In October a critical PHP bug made governments, ports and hospitals take...
Can a laptop do your company's AI work without sending a single byte outside? Luca De Giglio ran real travel-business tasks on a MacBook Pro with 48 GB of RAM, using the open-weight Qwen 3.8 27B model, and compared...
Most companies are still asking how to use AI. The next question is how to use it privately. When your team plugs Claude or ChatGPT into the company's documents, where does that data go, and what can the AI labs do with...