So the first announcement we have to make is that we are running CTF challenges and those challenges actually started yesterday because we are doing a workshop but for some reason nobody really wanted to do anything interactive in the workshop and that means that the challenges are all three still unsolved. Those are smart contracts on the Ethereum mainnet. So if you look at those and this is actually a little bit funny because somebody tried to solve the challenge but in the process of doing so he failed and he added even more ether to the contract so now you can win a little bit more. And this was his second attempt which also failed. So if you are quick enough you can win a total of 1.5 ether which should be around. $300 worth. And you find this here on this GitHub repository. I hope you can read it. It's smashing smart contracts workshop or just Google for it. All right. Start. So we are going to talk about automated exploitations of smart contracts on the Ethereum block chain. We are both from consensus. I'm chief hacking officer or whatever that means at MythX and Daniel is an auditor and researcher at consensus diligence who do security audits and it for smart contracts. Uh so normally we uh help developers to create more secure smart contracts but we also do some offensive research because we want to stay on top of our game. Uh there's a lot of other people who contributed in some way to this talk uh and the code we are going to show so we are going to show 4 tools today, 3 of which are um introduced for the first time. Uh and there were a lot of contributors involved so all of this is open source. Uh the MythX core team, uh the consensus diligence guys, uh um Samsung who is a very famous researcher who contributed some of his uh bot research and the Ethereum security community in general which is small but really awesome. So uh what we are going to cover is uh first of all symbolic execution for automatically detecting bugs in EVM bytecode and we are going to focus on instances of bugs where uh the attacker steals ETH, now ETH is the native currency of the Ethereum blockchain from other contracts. So the goal is always to increase your own balance in some way. Uh we are then going to show how to automate these exploits and uh basically write a simple code. Uh we are going to show how to automate these exploits and uh we are going to show how to exploit people who are using these tools by tricking them into sending you ETH because they don't know what they're doing. And then on the next level we are going to show you how to exploit people who exploit people who use these tools. So it's kind of a A very brief intro to Ethereum. Ethereum is a blockchain network and it's a distributed state machine so you have this so called world state and there's a huge network of nodes and they all agree on the same state which includes account balances. So the state includes accounts and every account has a balance and each time a transaction gets accepted into the blockchain this changes the state in some way. So it might decrease one accounts balance and increase another accounts balance. And the network is permissionless, anybody can send transactions but they have to follow the consensus rules of the blockchain. So what makes Ethereum different from blockchain? Well, the blockchain is a blockchain that is a different from bitcoin is that you have a lot more flexibility of how transactions can change the blockchain so you can deploy small immutable programs called smart contracts which are basically chunks of bytecode written in a simple stack based language. What's special about them first of all is they are immutable so once a smart contract is deployed to the chain chain and you have consensus that this smart contract exists, it can never ever be changed. So it's much more like a real world contract where you have a set of rules that everybody agrees to adhere to than like an app that you can update any time later. From the view of symbolic execution, there are a couple of things that are interesting. First of all, executing instruction on the Ethereum blockchain costs gas which is paid in Ethereum's native currency, Ether. And that's a spam protection because computation is expensive because every node in the system needs to run the same code, right? And that means that in a single transaction you can only do a limited amount of computation which is good for symbolic and analysis because it mitigates state space explosions. So there's only a limited amount of states you have to look up. But on the other hand, the world state can be mutated over subsequent transactions. So you can basically split up your computation into little chunks and that makes symbolic execution challenging again because you run into the traditional problems of state space explosion and so on. So brief primer on symbolic execution. Here you'll see a very simple smart contract that's written in Solidity which is the most popular language at the moment. And the smart contract represents a cat. It has one function. And this function either extends the cat's life or it kills the cat. And there's a very interesting instruction in Solidity called Self-Destruct. What this instruction does is...uh...so it was originally called suicide. But essentially the contract is going to kill itself, it's going to delete its own code. And free its storage. And send its remaining balance to an arbitrary address that you specify here. In this case it's the zero address. stress. So if you look at this program, there are two outcomes that can happen, right? If this boolean variable is true, then grand survival is false. Ah, sorry, is true. And the cat will not be killed. We will reach a normal stop state. But on the other hand, if it's set to false, we will reach the self-destruct instructions. So these are the two possibilities that can happen. So what we do in symbolic execution now is that we, ah, every time we reach a conditional jump, we follow down both paths and we annotate each edge on, ah, so if you look at this as a, ah, control flow graph, we annotate each edge with the path constraints implied posed by the jump condition, right? So we can say that, ah, if the first function argument is true, and this is actually looks a bit complicated because that's what the solidity compiler produces, but it ends up meaning if it's true, then the cat survives. If it's false, the cat dies. And so you could think about the cat being in both states simultaneously. And what that allows us to do now is, ah, we can ask if you want to reach the state where the cat dies, what are the input variables we have to supply to the program? And we can do that by passing this, ah, path formula, ah, or this proposition to an SMT solver. Ah, we use set three in Mithril, for example. And this will give us the correct input values that we need to send. Ah, and this, ah, propositions can be arbitrarily complex, right? So we can look at very complex programs that have many input variables, but we will always get the correct result. So I'm not going to go into much more detail, um, because we actually practiced this talk a couple of days ago and it turned out to, ah, take about three hours to do everything. So we need to cut, ah, things down a bit. But if you're interested, you can go to the website and find out more about this. So, ah, I'm not going to out to, ah, take about three hours to do everything. So we need to cut, ah, things done a bit. But if you're interested, ah, if you want to there's a good execution by my, ah, ah, a good summary by my colleague Joran talking about symbolic execution and then there's a paper I wrote last year called Smashing Smart Contracts that goes into a lot of detail. Ah, I can also recommend, ah, this paper Knowing at Ethereum. And there's a lot of other stuff you can just find on Google. We'll have a few more references at the end of the talk. Right, so our symbolic execution tool is called Mithril and it's designed with simplicity in mind. So, ah, if you want to use it, you can install it with Python 3 and you can then either analyze solidity code files or contract addresses at either the main net or a test net or, ah, whatever you like. And I'm going to show you a very brief demo of what it looks like. So, this is a killable smart contract and it has a kill function that, ah, calls self-destruct. And there's one prerequisite that we have to fulfill. So you need to be in the map of allowed addresses that are allowed to kill the contract. Right, so you have to call a sequence of transactions. The first one is set allowed to set, ah, this mapping to true and then you need to set kill. And, so, this might look like a very simple demo, but that's actually something that happened in practice. So, ah, I think in 2017, ah, there was a hack of the parity wallet library that, ah, in principle was very similar. So, there was an initialization function that was exposed and, ah, by calling that function, you could kill the contract. And this led to, I think, ah, 150 million dollars being vaporized, basically. So, they are not stuck in this contract forever. Nobody can ever access those ether again. So, I'm just going to show you a small video of how Myth will, so you run, ah, Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So, you run Myth Analyze. So right? So if you call set allowed and in this case dead beef, dead beef, dead beef represents the attacker's address you would replace it with your own address. Uh in the second transaction you call kill to kill the contract and then you can see that this first argument specifies where the remaining ether should be sent and that's also the attacker. Dead beef, dead beef. So if you just replace this with your own address you will get the ether out of that contract. So that was a very simple example but uh Mithril can also solve more complex stuff that that goes deeper into into the contracts and so if you get started in Ethereum security uh a very good idea is to check out uh CTFs and check out the other challenges and some of the best are EtherNOT uh done by open Zeppelin, capture the ether by Steve Marks and the blockchain CTF by security innovation and I just pulled a couple of examples to show how our tool can uh solve this challenges out of the box. So if you look at this code here uh you can see that this is a little bit more evolved than the other one. Uh we have a withdrawal function that withdraws the contract's balance to the ether and we have a contribute function where somebody can contribute a little bit of ether and then uh some mappings will be set and you will be added to uh uh this mapping here and then there's a fallback function. Fallback function means a function with no name that gets called when none of the functions matches and this may overwrite the owner with your address. And there's several ways of how you could exploit this but there's one way that is most profitable right? You send the least amount of ether for the most output and Mithril can compute that for you. So I will not show the video now I will just tell you what you have to consider when running Mithril here. So the first thing is that this um vulnerability is three transactions deep. And by default myth will only symbolically execute two transactions. And so the thing is in symbolic execution the state of space that you need to investigate grows exponentially. So the more you set here the longer the analysis will take and for like more real life complex contracts that can be quite a while up to many hours or even days. Um so the default is two and if you run it with uh with the default you will not discover anything here. So here you would have to set three transactions and an execution timeout if you want that will abort the execution uh if it goes over the timeout because you might not be willing to wait a couple of days for a result. So what you get here again is the correct transaction sequence to maximize your profit, maximize your profit. And what you do is you contribute exactly one way which is the very smallest uh denomination of ether. It's basically a like a billionth ether so and then you call callback with one way and then you call withdraw and this will give you the whole contract balance. Alright? So the next one. So I briefly mentioned the state space explosion program. So look at this contract here. There's uh a lot of functions with dependencies on each other and so what Mithril does it uh executes smart contract code in iterations and once you find a valid stop state it will that use as a starting state for the next transaction. So you can see that the space of states to explore grows uh very fast and for something like this that use uh needs six or seven transactions it can be quite a while. And a couple of ways that we use to um address this problem uh the main way is pruning algorithms. So what we're trying to do is to figure out which paths are actually relevant to explore. That means for instance uh if you ex execute a transaction and the machine state at the beginning is completely identical to at the end like if you execute a pure function or a view then you can safely discard that state because running another round of symbolic execution will not get you any new results. Uh you can also do reachability checks so at each basic block we can check whether the constraints can actually fulfilled or not. This also gives us a nice speed up. And the probably most common way to do this is to do a little bit of a test. The most advanced thing we do is uh to look at dependencies in between transactions. So once we execute the first transactions we build a map of state reads and writes and as soon as we come to the second transactions uh we have some rules uh that allow us to discard a lot of the paths that we encounter. Uh for instance if there was a state variable that's modified in the previous access somewhere along that path uh we know we need to execute the path because we might be discovering new pieces of code or new behavior but uh if none of these things is fulfilled we can just not execute the path. Just to show you um how this looks like so this is a state space code graph of a typical three transaction execution and you can see execution here starts at address zero uh and as we get further down we will reach uh several stops and one of these for example is here. Okay sorry for that. So uh if you look at this space here you can see that we have a lot of basic block here you will see that uh execution starts from uh program counter address zero again and and then you get this tree of exponentially growing states. And that's not a good thing because it makes uh execution really slow. Okay so let's see what we can do with this. So with pruning enabled you can see we can reduce the number of states quite considerably. Uh in the example I showed you before it's down by 60 to the power of a hundred percent. So if we run some benchmarks on uh the SWC the smart contract weakness registry and we got speedups that compound over time with number of transactions uh as you reach less stop states it's uh really gets quite fast but that doesn't mean that it doesn't still grow exponentially. So we're still looking at a lot of other things we can do including um uh uh uh uh uh uh uh uh uh uh uh parallelization. So obviously we could use uh more than one core to run the analysis uh state merging which is one of the techniques called uh used by MentiCore uh and function summaries. So that means uh instead of executing functions over and over again uh you create summaries by uh by looking at the constraints exposed on memory and storage by each functions and just run uh reusing those instead of uh re-executing the code. And uh yeah this creates more complex server queries but also speeds up execution and reduce number of states you have to look at. So we're already I'm a little bit over time so I will very quickly show you a demo of Scrooge McEtherface which is the next tool. So I'm going to show you a demo of Scrooge McEtherface. So what this tool does is uh it creates the exploit transactions uh creates a and it just sends them to the blockchain. And it gives you uh interactive CLI where you can tamper around with the transactions a bit uh so this is Ganache which is a local test node you can see here you have several test accounts and the attackers account is the second one here. It starts with a hundred ETH. So I'm not gonna deploy to this test blockchain uh version of wallet library which is actually the library I mentioned that was exploited in real life before. And I'm gonna give it a little bit of balance, five ETH. So you can see uh it was created and the balance was deducted from the creator account. Now I'm gonna set up Scrooge with the config you need to connect to my local node. And so now it's, this is really really script kitty friendly. So the only parameter it's gonna give you is the code. So I'm gonna give it a name. So the code that it takes is an Ethereum address. It will automatically detect the exploit. So in this case you can see the contract can be killed by anyone and what you have to do is uh send this exact sequence of transactions. And you now get a class interface that you can interact with. Uh you get a list of rates and each rate is represents an attack. And this rates have steps that you can uh either first manipulate or execute one by one. And uh yeah so call function one with this argument, call function two with another argument. And then you simply call execute. So transactions have been sent. And it actually also checks if your attack was successful. And if your balance has increased. And in that case it gives you a Boolean true back. So you can see the attacker now has gained five ETH. Which is uh um a thousand dollars. I think at the moment. Right. So that's our tool. Let me see. Okay. So now you can see that full screen. Demo. So now that you have this tool you could imagine it would be very easy to use it and steal stuff. But unfortunately the Ethereum mainnet is a very tough environment and it's not all that easy. So uh if you naively use these tools there will be uh a lot of people uh out to exploit you. One of them is a front running bots. So a lot of people are trying to actually monitor the mainnet for exploits being executed. And uh Daniel is going to talk about that a bit. And they will try to preempt you and steal your exploit and execute it faster than you. And actually make your exploit fail. And then there are also fake exploitable contracts called honeypots. That for example might know that our tools have some false positives. And they might make it look like they are vulnerable. But if you actually execute the attack they won't. And they will just require you to send a bit of ether and then make your attack fail. And yeah. It's super dangerous. So go ahead to over to. Okay. So uh once again I'm Daniel Luca. You can find me online at CleanUnicorn. Uh I kind of felt like I have to be a white hack with CleanUnicorn. Dirty unicorn was taken. But anyway I'm Daniel Luca. I'm going to show you the first one is Carl. It's purpose is to um mass scan the Ethereum network and find vulnerable contracts. It will generate like uh local reports that you can reuse then. And the second one is Theo. It's more specific because after you find a vulnerable contract you will actually um find a way to uh it will actually enable you to exploit that contract. So um so I'm Carl, it does mass continuous recon. So that means that it watches the blockchain all the time. So you can start it. It will scan all blocks. It will scan all transactions and see if any of the transactions generate new contracts on the blockchain. And if they do that, it pulls up the code. It pulls up the state and finds ‑‑ and tries to find if it's ‑‑ tries to find out if it's vulnerable. It uses for that because it's written in Python. You can use the method libraries directly. It does exploit generation and it also does exploit validation because sometimes there are vulnerable false positives, but it has a way to reduce the number of false positives. So this is how, like, the main ‑‑ the core of Carl. It uses, as I said, it uses the method libraries. So you can do this yourself. If you know a bit of Python, you can import libraries, start up the method disassembler. You point it to an Ethereum node and then you tell it to load from the address the contract address. So that means it knows who to scan. And then you start the method analyzer. It has some parameters that you can play with. For example, the timeout, the number of transactions, what ‑‑ modules to test. So, for example, the default modules that I'm using is stealing Ether and self-destructing contracts. You can create others. And there are already others available in Mithril. And it generates a report something like this. So, for example, with this report, we have unprotected Ether withdrawal. So there is the smart contract ID, problem ID is like 105. I always forget this thing. So the severity is high because you can extract Ether. And then it tells you some other information like what's the contract address. But you kind of already know that because you were scanning for it. The estimated gas usage. And the text description just so you have an idea of what you can do with it. At the end of that, you can see the transaction sequence. So what transactions you need to send in order to get Ether out of that contract. So it makes it really, really easy for you. The problem sometimes is that you find a transaction sequence, but it's kind of hard to make sure that that indeed works. As I said, sometimes there are false positives. It helps if you know assembler, if the source code is available, if you have all of that available. But if you don't, even then, it's still kind of hard. So there, Carl already has implemented a technique to help you validate the exploit. So it uses, it still uses Ganesh. So just a small intro. Ganesh is a local Ethereum development node. And it just generates a local network for you. Nobody else can connect to it. But it behaves exactly the same as the Ethereum network. So that means that you can simulate all of the transactions. But it's not going to do that. So let's take a look at some of the transactions and see if that works. So how it actually does is that it forks the main blockchain. And it sends the transactions to that. But when people usually hear forks, it's something like there is contentious forks. Like people are fighting. There are two communities and they want to develop the network in two different directions. Something that one feature would be the best, other thing that would be the worst. And then it sends it to another incompatible feature would be the best. So what usually happens with forks is that the community splits into two. And then you have two different networks. If you know, for example, bitcoin and bitcoin cash, or Ethereum and Ethereum classic, these are two very popular examples. But what I actually use is like the technical part of forking the blockchain. So in this example, on the top part, you see the real blockchain. And you see the real blockchain. And let's say that Carl identified that in block 100, there is a contract that was deployed. And then I need to make sure that this actually works. So what I what Carl does is that it starts Ganesh. And then it creates a different future for that blockchain. So for example, block 101 is local. It's only on my machine. The top one is real. And the bottom one is local. So then in block 101, it's only on my machine. The top one is real. And the bottom one is local. So then in block 101, I can add my own transactions and see in the next block if indeed I exploited that contract. So this is pretty safe because you're not sending the transactions to the main net. You can actually see if you did a good job and exploited the contract. And nobody else can see the transactions. And nobody could front run you. And nobody could do anything to you. So I have a demo of Carl. . So in this example, I start Carl. I point it to Infura main net, which is a public Ethereum node anybody can use. And I also ask it to start from a specific block. I do that because I already deployed a block, a contract there and I know it's vulnerable. Otherwise most of the times you wouldn't see anything. . , I enable sandboxing, which is the forking technique which creates the local blockchain and tests the exploit-generated. And I also enable the output to the folder just so in the future I can have a list of files with the exploits available. So it's scanning this block. It found a contract. It finds one issue. But it's also firing the sandbox tester. So it's trying to figure out how to use the sandbox. And it's also trying to figure out how to use the sandbox. in this case, it's quite fast. You can see that you have an initial balance of 100 and you have a final balance of 101.1. So that means the exploit is valid and you could use this and exploit the contract. This contract, I think it still exists on the main net and nobody is actually exploiting it, so I'm super sad about that. So what curl does next is that it takes the next block, it checks the contract and scans everything. So it goes through all of the blocks. And you could just leave this overnight and come back in the morning and see if you found some vulnerable contract. So the next tool is Theo. Theo picks up where contract is displayed. And the first thing you do is you do a open-resource search. When left off. So Carl just generates a list of contracts, but Theo can actually exploit them. So it is kind of an exploitation framework because it helps you do some kind of recon. You can check some things on the main net. You can run the exploit. And we also have some features that are front running, back running or sandwiching transactions, and I'm going to go into detail about that. But first you need to understand what the mempool is. So miners exist on the main net and they have a list of local transactions that were not added to the block yet. That means that these transactions, if they will be added to the block, they will actually start to exist. They will actually happen. Before that they are not real. They are pending transactions. So now, we won't cover too much of the mempool, but I guess I'll show you the following . I'll So this miner has a list of a few transactions and then they receive from the network a new transaction so that means that they will add it to their mempool list. What actually happens in the network is that you have all of these miners, people who want to send transactions to the network send to one random or less random node and then everybody sends the transactions among each other. In the end they all kind of have the same mempool but not exactly. But the idea is for everybody to have as many transactions as possible just to have them mined. The cool thing is that you don't need any permission to be part of the network so if you look in the bottom part you can see a hacker who can listen to the mempool and see what transactions will happen on the network but were not mined yet. Another important part is transaction ordering. So the main thing is that you have to have a lot of transactions. The miners, every time they find a block, they get a reward. So they get some ether. But they also get some fee. Each transaction has a fee attached to it and when they add the transaction to the block, they also get that fee. So they are incentivized to add as many transactions as possible and to have the transactions as profitable as possible for them. So the transaction fee is calculated by gas and gas price. Um... The gas part is for each instruction, there is a number of gas added so you need to pay for complicated computation. For example, if you do some cryptography, if you do some square operations, you will pay more than compared to a simple addition or a simple subtraction. So you have gas times gas price and the gas price is set by the sender if they want their transaction to happen faster, they will have a bigger gas price otherwise they will have a lower gas price. So when the miner creates the list to add the transactions in the block, they will usually sort the transactions descendingly by gas price. And they will add as many as possible until they fill up the block. So in this case, we can see that the first transaction added has gas price 5,000, the second one is 2,000. The third one is 2,000 and so on and so on. So front running happens, like the idea of front running is that you have an information about what somebody is going to do. In this case, you see what the mempool has in there but didn't happen yet and you raise them and you do that action first. So in this case, the hacker can see a transaction. They see that a specific contract is called. The gas price of that transaction is 5,000. A specific method is called. And once they do that, once they see that, they can add their own transaction. So in order to front run, the easiest way is to just take the transaction, add one to the gas price. So that means that the miners by sorting descendingly the transactions by gas price, yours will be ahead of theirs. So I have an example, but first I need to go with you through the contract. So we have a contract with two methods. These are the two important methods in this example. You can claim ownership. But the important part of claim ownership, so this transaction does two things. It accepts 0.1 ether and you need to send that. And if the contract was not claimed by anyone, it will make you the player of the contract. The second transaction checks if you are the player of the contract. And if indeed you are, they send you all of the ether available in the contract. The cool thing is that if you're the first to do this, you will become the player. But if you are the second, you just add more ether to the contract. So that's the first step. So I can show you a demo, and you can what we did is that we made a honeypot after this. And this is how it works. So in this screen, I have a local get node, which is the official ethereum implementation. So it's just mining. It's just creating blocks at the moment. And in this screen, I have a local ID. It's a web ID that people can use to deploy contracts and test contracts. So I already have this contract deployed. It has, I think, 10 ether attached to it. And it needs 0.1 ether from the attacker to claim all of those 10 ether. Okay. So now I start Theo. Okay. So I provide Theo the account's private key, because Theo needs to have an account in order to send transactions. So he needs to be able to sign transactions and send them to the network. And then I also need to provide the contract. What it does now, it uses the Mither libraries, it scans the contract, and it finds the exploit path. You can also add your own transactions. So it found a vulnerable path. It's very similar to what Carl does, to what Scrooge does. So let's say, for example, Scrooge is trying to exploit this contract. So what I do now is that I just extract the first exploit. And I start front running. So what it does now, it's just scanning the mempool for new transactions. So it just looks at the mempool. It queries the ethereum node every second or so. And it sees. It checks. It checks if any interesting specific transaction is added to the mempool that will be added in the next block. If that happens, we will see what it does. So now I'm simulating the attacker or Scrooge. So I'm changing to 0xFFC. This is the attacker or the script kitty. He needs to add 0.1 ether. He needs to call claim ownership. So he's trying to extract that ether. He's trying to become the owner or the player of the contract. And what immediately happens is that Theo sees that transaction. And it adds its own transaction. It increases the gas price just to make sure that Theo's transaction will happen before the script kitty's. The script kitty will also try to retrieve the ether out of the contract. Theo also identifies that. And it's sending its own transaction. And hopefully, at the end, we will have ‑‑ we will see more ether in our account. So Theo's account is 0x1DF, the one that we see now. It's 110 ether. So it successfully exploited that script kitty. Okay. So this was all. All done locally. And then we thought, what if it actually works in the wild? And we had to test it. And what we see here is that we deployed a very similar honeypot. And this is the victim's transaction. About an hour later, somebody tried to exploit the honeypot. We also added this contract source code to make it easier for them to exploit. They didn't know that something was up. And they added ‑‑ they sent a transaction with ‑‑ okay. It was a very high gas price. I think they were trying to make sure that their transaction will get picked up really quickly. And so in this case, you have 261.12 Gui. And the nonce and the position in the block is 1. And Theo's transaction was 261.13 Gui, which is like the minimum necessary to front run the transaction. And the nonce was zeros. And because we're ‑‑ like, everything starts at zero, it was just before the attacker's transaction. So that means that they became the owner, and they also got the attacker's ether. So there are cases when this actually works. You have to deploy your own honeypots, and you have to design them in a specific way to make them vulnerable for front running. In our case. It also helped if we shared the source code. And a very interesting example that might have a bigger impact is with decentralized exchanges. So a decentralized exchange is something like a normal exchange, but it exists on the blockchain. So what you can do is that you can sandwich other people's transactions. So for example, you see that they will buy something. You buy just before they do, and you sell immediately after they bought. So you just ‑‑ you earn some money by doing almost nothing. So you can do this. You can do this. And there are some cases where it fails. It's kind of hard to see what a transaction does if they use a proxy contract. So they use an app in between them and the contract that they're going to exploit. It's impossible to front run if the miner is the attacker, and they add their own transaction. So that means that they don't need to add the transaction to the mempool first. Sometimes the Ethereum client decides to be unresponsive. But there are ways to defend against Theo. So you can create a contract yourself and make sure that at the end of the contract you have more Ether than what you initially started with. And if you know that, you can also create the honeypot in order to not be ‑‑ to beat this, too. So there's a lot of where ‑‑ yeah. You can fight a lot on the Ethereum network. And this is just, like, there are a lot of layers. So what I really want is that ‑‑ I think we need more hackers. I think there are not enough people who are hacking on the Ethereum network. I might regret this, but at the moment I feel like we need more of you guys to exploit the network and find more problems and just have fun. So ‑‑ We have links, some links here. So this is ‑‑ these are all the tools. They're all open‑sourced. Maybe one important thing to say is that all of the Ether that we stole from the people, we gave it back. And I think that's it. We are open for questions. I know there aren't microphones, but we can ‑‑ we are available immediately after this. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you.