In this episode of The Van Wirdum Sjorsnado, Aaron and Sjors discuss the Erebus Attack. The episode is a follow-up from last week’s episode on Eclipse Attacks, a type of attack that isolates a Bitcoin node by occupying all of its connection slots to block the node from receiving any transactions. Erebus Attacks are Eclipse Attacks where an attacker essentially spoofs a whole part of the internet. Chapters 00:00:00 The Erebus attack 00:01:15 Eclipse attacks and IP diversity recap 00:03:24 Autonomous systems and internet bottlenecks 00:07:07 How Erebus eclipses a node 00:08:07 Mapping internet routes with RIPE 00:10:21 Compressing bottlenecks with ASMap 00:12:35 Using and auditing ASMap in Bitcoin Core 00:13:36 Stronger peer diversity and remaining limits Support the Show! Follow Bitcoin Magazine on Twitter @BitcoinMagazine Follow Aaron van Wirdum @AaronvanW Follow Sjors Provoost @provoost Music: Song Title: Segwit Sounds By: The NakamoTones Album: Citadel Music Produced by: Bitcoin Audio
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.
Aaron van WirdumLive from Utrecht, this is the van Wirdum Sjorsnado.
Sjors ProvoostHello.
Aaron van WirdumHey Sjors.
Sjors ProvoostWhat's up?
Aaron van WirdumWe got a market cap all-time high. Did you celebrate?
Sjors ProvoostNo, I did not because it's just dilution.
Aaron van WirdumWhat do you mean?
Sjors ProvoostI mean, somebody's making more Bitcoin. So it's fun that the market cap goes up, but it doesn't matter unless you...
Aaron van WirdumIt doesn't benefit you personally. That's the only thing you're concerned about.
Sjors ProvoostExactly. I'm very selfish.
Aaron van WirdumGot it. Sjors, we're making a follow-up episode this time.
Sjors ProvoostThat's right.
Aaron van WirdumI think this is our first follow-up episode.
Sjors ProvoostIt's very possible.
Aaron van WirdumPossibly.
Sjors ProvoostBut everything is connected.
Aaron van WirdumVery true. Last week, we discussed eclipse attacks. And this week, we're going to discuss another type of eclipse attack. Yeah. Last week, we discussed a paper by Ethan Heilman et al. And this week we're discussing a paper by...
Sjors ProvoostPeople whose name I unfortunately cannot pronounce, but from the University of Singapore, from Korea University, and from the Japan Advanced Institute of Science and Technology. Published quite a few years later than the previous paper.
Aaron van WirdumYeah, so what's the paper? What's the name of the paper? What's it called? What are we discussing exactly?
Sjors ProvoostWe are discussing the Erebus attack, or Erebus attack, or Erebus attack. I have no idea how to pronounce it.
Aaron van WirdumLet's recap eclipse attacks very briefly.
Sjors ProvoostYeah.
Aaron van WirdumYou go for it.
Sjors ProvoostSo if you're a node and you think you're talking to the rest of the Bitcoin network, it may actually be just a single entity that is pretending to be all the other nodes that you're talking to. And so that node is eclipsing your view of the Bitcoin network.
Aaron van WirdumYeah, so that node could potentially shield transactions or blocks from you, maybe even create fake blocks or blocks that are not included in the longest blockchain.
Sjors ProvoostExactly. Not fake blocks, but definitely blocks that are not in the longest chain. So you might think... You've seen something confirmed and then suddenly there's a reorg that you didn't know about.
Aaron van WirdumThat's fake in my book Sjors.
Sjors ProvoostWell, fake would be [unclear] signatures. Because you're still checking all the proof of work and all the rules.
Aaron van WirdumIn my book, it's fake, Sjors.
Sjors ProvoostOkay, and Bitcoin Cash Blocks are real?
Aaron van WirdumThese are very fake. Okay. So one of the solutions, so for those who want more details, just listen to our previous episode, the one we did last week. One of the solutions we discussed are like IP buckets, where you categorize other nodes in different buckets. with IPs that suggest they are behind different ISPs.
Sjors ProvoostRight, that's been in there from the beginning, these IP buckets, but that is one of the general defenses against Eclipse attacks. So you look at the four-digit, four-number IP address, and you look at the first two numbers, and usually you assume that's going to be different internet providers. So if you have some diversity there, that's good. And there's a bunch of other things that were done to make the original attacks more difficult.
Aaron van WirdumRight. So, but this paper, the one we're discussing this week, actually... introduced, proposed, I don't know what the right word is to use here.
Sjors ProvoostRevealed.
Aaron van WirdumRevealed a new type of Eclipse attack.
Sjors ProvoostThat's right. Basically one where you can fake a lot of those initial IP addresses rather than just one or two.
Aaron van WirdumRight. I think you described it as... with this eclipse attack because it is take two. You already described it in other words. You said this is like faking the internet.
Sjors ProvoostIt's like faking the internet or it's faking part of the internet.
Aaron van WirdumYou're faking part of the internet for one specific node.
Sjors ProvoostYes.
Aaron van WirdumWhat is the internet?
Sjors ProvoostWhat is the internet?
Aaron van WirdumI think to understand this attack we need to understand the internet.
Sjors ProvoostIt's a group of computers. It has an amazing potential.
Aaron van WirdumIt's going to be very big one day maybe.
Sjors ProvoostThe internet consists of building blocks and those are called autonomous systems. An autonomous system could be an internet provider, it could be Google. Usually it's one legal entity and it owns a whole bunch of IP addresses. And when you send something from one place on the internet to another place on the internet, the package goes from one autonomous system to the next autonomous system to the next autonomous systems from your provider to Google to some other place on the internet.
Aaron van WirdumRight. So if I am a node and I want to connect to a diverse part of the internet, I want to... How do I say this? I want to connect to nodes on diverse areas of the internet.
Sjors ProvoostYes.
Aaron van WirdumThen surely if I connect to nodes in different autonomous systems, then all my problems are solved.
Sjors ProvoostWell, that would definitely be a big improvement over just connecting to different IP prefixes, right? Because Amazon has a lot of them, but you're not really there yet. And that's what the faking the internet comes in. Because when your package goes from your autonomous system to the next autonomous system to the next one, You don't know what's happening after the first step. So the first autonomous system in line can actually fake everything behind it.
Aaron van WirdumRight. So it's one autonomous system could be like a bottleneck for a whole part of the internet behind it.
Sjors ProvoostCorrect.
Aaron van WirdumCan you give an example of this?
Sjors ProvoostYeah. So if we look at it geographically, it's a slight oversimplification. But if you're in Europe and you want to connect to New Zealand, then it's going to go through Australia. And so Australia can basically fake anything going to and coming from New Zealand. Not entirely true because I think there's another cable, but let's pretend there isn't.
Aaron van WirdumYeah, we're simplifying a bit. So there are bottlenecks.
Sjors ProvoostAnd we could say Indonesia could be faking everything that's happening in Australia and New Zealand.
Aaron van WirdumYeah. So let's say, for example, that I am a node. I'm still a node. And I want to connect to diverse parts of the internet. So I'm going to pick... Indonesia and Australia and New Zealand because they're very different parts of the internet. But then actually...
Sjors ProvoostActually, you might only be connected to some evil person in Indonesia that's fooling you.
Aaron van WirdumThat's acting as a bottleneck for the other parts and that's faking the other parts. So then I'm still susceptible to an eclipse attack by the Indonesian guy.
Sjors ProvoostYes. Well, of course, not some random Indonesian guy. It would have to be whoever is in control of the Indonesian internet.
Aaron van WirdumWhich in Indonesia is probably some random guy.
Sjors ProvoostIt's very possible.
Aaron van WirdumI may be insulting our Indonesian listeners now.
Sjors ProvoostIt's also important to understand that the internet isn't very geographical in that sense. So, for example, there's a cable company in the Netherlands called Ziggo. And if you look at how the internet is constructed from there, the Netherlands Ziggo and the UK Ziggo and the Austrian Ziggo are all behind the same thing called Aorta. whereas the Dutch KPN is not. So in a sense, Dutch and English and Austrian Ziggo customers are less diverse
Sjors Provoostthan Dutch and Dutch KPN and Ziggo customers that might be living right next to each other.
Aaron van WirdumRight. Interesting. so anyways I'm a node I think I'm being smart I'm connecting to different parts of the internet different autonomous systems but then actually I can still be tricked yeah sure how can we possibly know where all of these bottlenecks are
Sjors ProvoostWell, first of all, I think we should recap a little bit that how this attack would work because just faking it is not enough. You need to do the same thing as we explained in the previous episode. So you need to make sure that the person, the node you're attacking is only going to connect to parts of the internet that are behind you. But the nice thing is that rather than only giving it your IP address and IP addresses you control, you can give that victim node IP addresses from all over the world. So a much more diverse seeming. range of IP addresses. But the rest of the tech works the same. So you spam them, you wait for them to
Sjors Provoostconnect only to you. Yeah. To things that are behind you, quote unquote. And then maybe you reset them and if you can get them to crash, but, or you just wait.
Aaron van WirdumYeah. We took all of these precautions that we described last week, but then now our smart random Indonesian guy, attacker, he's aware of all of these solutions so he can still trick us.
Sjors ProvoostYeah. Because he can fake a much larger chunk of the internet this time. So then the question is that you asked us, what can we do about it?
Aaron van WirdumBottlenecks, where are they? How do we know?
Sjors ProvoostYeah. So the nice thing is there's no official map of the internet. But the internet is a very decentralized thing. Everybody kind of plugs in on their end of the world. But there are people who are trying to make these maps. And in particular, there's an organization called RIPE. Or I-P-E. I don't know how they prefer to be pronounced. And they coordinate the internet in Europe, Middle East, and the former Soviet Union.
Aaron van WirdumWho or what are? or what are they is it is like a non-profit or how should I think about this
Sjors ProvoostI think there's some sort of unofficial official internet owning non-profit I mean they're the internet people what do you mean by non-profit right there
Aaron van WirdumI don't know I'm just asking questions because I have no idea what RIPE is
Sjors ProvoostYeah, neither do I.
Aaron van WirdumOkay, internet people. They're making the map for us.
Sjors ProvoostExactly. So they do all sorts of useful things, and one of the projects they do is making maps. And basically the way they do that is they have a bunch of very large autonomous systems that are sort of connecting to lots of different providers all over the world, and they ask them to basically ping everything on the internet and construct. routing tables to that point. So they keep track of where the packages go and how they come back. Right. And then they publish that. Basically
Sjors Provoostevery month, there's like a giant file that you can download that says, okay, this is the way from me to this place. This is the way from me to this other place. And yeah, everybody can download that and play with that.
Aaron van WirdumSo it's like an unofficial roadmap for the internet, which they're making.
Sjors ProvoostExactly.
Aaron van WirdumWhich has got colorful lines and map of the world. And is that how I should see it?
Sjors ProvoostYeah, exactly. But it's not a complete map, right? It's just a map from those vantage points. So from like 20 different places, you can see thousands of other different places.
Aaron van WirdumSo like Europe and Eurasia, is that what you mentioned?
Sjors ProvoostWell, again, it's not...
Aaron van WirdumOr they're making it for the entire world. What are these [unclear] places?
Sjors ProvoostThis organization works for Europe and et cetera, but they're doing this for the whole world. So they are mapping from South America and from Australia and from Singapore and from the Netherlands and from all these places.
Aaron van WirdumRight. So this is a big map. This is like a couple gigabytes.
Sjors ProvoostYes.
Aaron van WirdumSo... You start your Bitcoin node and you download a couple of gigabytes.
Sjors ProvoostRight, because we like downloading gigabytes and then you process it. No. Thankfully, there is another project actually can download this map for you called asmap-rs done by Gleb Naumenko and someone whose first name I don't know called Rybarczyk. And what they do is two things. One, they download this map, and the other is they process the map. Because now you have all these routes on the internet, but the question you really want to ask is, where are the shadows, or where are the bottlenecks, put a different way.
Sjors ProvoostAnd so what it does is it looks at all the lines from A to B, and it says, okay, if there's a line from A to B to C, and there's a line from E to B to C, then you say, well, all lines go to C, they all go to B. Or in the example we gave before, all routes to New Zealand all go through Indonesia. So what we're going to do is we're going to consider that as if it is Indonesia. So it's a way to compress the internet, basically. You just hide
Aaron van WirdumRight, yeah. So RIPE made this map, and then Gleb Naumenko and Mr. Rybarczyk, they mapped out the bottlenecks.
Sjors ProvoostCorrect.
Aaron van WirdumWhich is not 4 gigabytes, which is a much smaller file.
Sjors ProvoostYeah, I think they compressed it down to 8 gig—8 megabytes.
Aaron van WirdumRight. And do they update this frequently? Because you mentioned RIPE publish a new map every month or so. Is this also something that's being updated?
Sjors ProvoostWell, and even that's somewhat decentralized because RIPE is pointing to 10 different, or I think 16 different organizations that are producing maps in the same format. at whatever frequency they choose to.
Aaron van WirdumI see.
Sjors ProvoostSome of them do it every month. Some of them haven't done it in 10 years.
Aaron van WirdumRight. And are Gleb Naumenko and Mr. Rybarczyk also updating their bottleneck?
Sjors ProvoostNo, they're doing nothing because they published code that you can run.
Aaron van WirdumOh, I see.
Sjors ProvoostYeah.
Aaron van WirdumOh, they made software that maps out the bottlenecks.
Sjors ProvoostExactly.
Aaron van WirdumI see.
Sjors ProvoostThat just downloads those files, whatever the most recent version is, and processes it.
Aaron van WirdumRight.
Sjors ProvoostAnd then there's another script written by Pieter Wuille, sipa, and it takes that map. and it compresses it down to one megabyte using some sort of bitmap magical compression.
Aaron van WirdumRight. And that's included into Bitcoin Core?
Sjors ProvoostWell, no. Bitcoin Core can use it, but it is not included. It's one of those things where Bitcoin Core makes an improvement but doesn't completely finish it because they want people to try it out. So the idea is in the future to include it in Bitcoin Core if there are no objections and problems with it.
Aaron van WirdumOkay, wait. So what's included now exactly?
Sjors ProvoostRight now, Bitcoin Core... it can use this file if you give it to it.
Aaron van WirdumOkay, so you got to separately use that software that Gleb Naumenko and Mr. Rybarczyk wrote?
Sjors ProvoostAnd the software that sipa wrote? Yes, to download and process it. And it's just like two commands. But the idea is, of course, that eventually that'll be in Bitcoin Core. You don't have to do anything. It'll just work. But you can use that software to check that the thing that is in Bitcoin Core is not a lie. Because you don't want the Bitcoin Core developers to lie about what the internet looks like. So a problem is auditability. So can you, given those original files, reproduce the same thing? Can everybody reproduce the same thing?
Aaron van WirdumRight. Okay, now we've done this. implemented this we've included this in our version of Bitcoin Core
Sjors Provoostyep and and basically what that changes is the way the buckets are organized
Aaron van Wirdumokay
Sjors Provoostso we talked about buckets right we you look at an IP address and you take the first two numbers and you try to make it you try to make sure that buckets all have different of these prefixes and the only difference is now you do that with these autonomous systems but not just with the autonomous systems but with the ones that we've said only Indonesia rather than We don't consider Indonesia, Australia, and New Zealand separate. We only consider Indonesia, and we keep that diverse. So you have a diverse set of things that are not behind something else.
Aaron van WirdumYes, so this makes even this evil Indonesian random... genius, unable to launch eclipse attacks on us because we're connecting to different parts of the internet behind different bottlenecks.
Sjors ProvoostI would not say unable, but at least it's another pain.
Aaron van WirdumWe're making his life harder and harder.
Sjors ProvoostYes, we are. But we're not making it impossible. And for that, I think you would need an even more sophisticated map of the internet and making sure that your eight buckets are not still behind. Your eight connections are still not, you know, behind the same thing.
Aaron van WirdumRight. So what's this solution called?
Sjors ProvoostASMap.
Aaron van WirdumAnd this was included in the last version of Bitcoin Core.
Sjors ProvoostYeah, the ability to use a map has been included in the last version. And I guess in some future, it'll just work.
Aaron van WirdumAnd it's still a work in progress. It's being developed further and further.
Sjors ProvoostI mean, you know, sipa is very busy with Taproot and stuff. So I'm not sure about the progress, but yeah.
Aaron van Wirdumsipa can work on several things at once.
Sjors ProvoostHe can.
Aaron van WirdumAnd probably literally at once, I mean, with like several laptops and doing it all.
Sjors ProvoostAnd his clones.
Aaron van WirdumYes.
Sjors ProvoostExactly. But everybody can contribute on that stuff.
Aaron van WirdumRight.
Sjors ProvoostAnd we're contributing by explaining it.
Aaron van WirdumThat's being generous.
Sjors ProvoostI like to be generous to myself.
Aaron van WirdumOkay. Well, it's clear to me.
Sjors ProvoostOkay. Excellent.
Aaron van WirdumDid this cover... The paper by the Singaporean Japanese researchers.
Sjors ProvoostYeah, I think so. Because they said it was hard to solve and it's been solved.
Aaron van WirdumNice.
Sjors ProvoostAll right. So thank you for listening to the van Wirdum Sjorsnado.
Aaron and Sjors discuss Bitcoin Core 32.1 and its updated security disclosure policy in this live conference recording, followed by audience questions. Links Bitcoin Core 32.1 release announcement and release notes...
Aaron and Sjors discuss the COLDCARD hack: the bug itself, how it could have happened, and some reflections on having had Coinkite as a sponsor. Note: If you’re using a COLDCARD and still haven’t moved your funds to a...
The COLDCARD hardware wallet has a critical vulnerability. If you are using the COLDCARD to store bitcoin, move them to a secure location as soon as you can. More information:...
Aaron and Sjors discuss what’s new in Bitcoin Core 31. Chapters 00:00:00 Episode 100 and Core 31 00:02:41 Cluster Mempool 00:10:45 Package Relay and Fee Selection 00:18:59 Private Broadcast over Tor 00:24:03 ASMAP and...