Good morning, thanks for coming out. I was gonna say at 10, but at this point it's like 10.20. Sorry. My name is Phillip Martin. I am the CISO at Coinbase. I've been at Coinbase about three years. Yes, and apparently I am too tall for the microphone. That's fine. What we're going to talk about today is a follow-on to a blog post we released yesterday. We're going to talk about an attack from what I think is one of the most dangerous attacker groups in cryptocurrency today. The attack specifically targeted cryptocurrency companies, around about 20 different companies, including us. It leveraged two different Firefox ODAs in the execution of the attack, as well as a really extensive social engineering phase that we'll get into as well. We're going to spend the next 50 or so minutes, until you kick me out of here, breaking down the attack, how it went down, lessons we learned from it, indicators we took from it, what we know about the attacker, and whatever questions you guys have at the end. My expectation is I'm probably going to get more than normal amount of questions at the end of this, so I'm going to try to leave at least 10, hopefully 15 minutes. And if there's not that many questions, I'm going to talk some more. So, ask questions. Let's talk about that. That's me. I do things. I've done things other places. We don't need to dwell on that. So, it's like I told you, we're going to start sort of breaking down the attack. I'll give you a high level overview of sort of the way I'm breaking it down in terms of phases. I doubt, I'll just caveat this, I'm going to say it later too. Well, I'm going to break this down in terms of phases of the attack. I doubt the attacker thought of it the same way, and I doubt it happened like that in terms of the actual timeline. But I'm chunking it up so we can talk about each piece discreetly. So, the timeline makes it look like it all happened one after the other. I doubt that's actually true in the real world. We'll talk about our detection strategy, why and how we detected it, lessons learned, a little bit about the attacker. So, let's get into it. So, that's the quick overview. The super high level discussion of this, thanks for reminding me to put my phone on silent, is that an attacker group, it's known in non-English reporting, because there's been some reporting in Polish and Japanese on this group, that they call Hide7, we track them as Crypto3, so the third in our serialization of actors. Put together a list of about 200 people, all for the most part in crypto. Sent out a really elaborate social engineering scheme that was involved with Cambridge and a couple of academic prizes that they award. And like I said, we'll go into that in depth. They winnowed that list of 200 down to about five that they actually wanted to exploit. They delivered a Firefox Oday, two Firefox Odays to those five, which then delivered a two-stage malware setup, that went through this traditional sort of recon pillage with Phase 2 being a more full-featured RAT. We think this is the same actor that breached CoinJek. We think this actor has been active in Asia and Eastern Europe for quite a while. This actor has dropped over the course of their lifetime that we can see, which goes back to about 2016. We think this attacker has dropped about six Odays of various quality. So obviously well-funded, well-organized, they know their shit. So let's break this down a little bit. I was going to do a really fancy setup. I'm going to fade everything else out and make the one bright. If you ever try to make opaque squares in Google Sheets or Google Slides, I'm so sorry for you because it is such a pain in the ass. So Phase 1 recon, this is the phase we know the least about in terms of what the attacker did and what they were looking for. We know that they put together a list of about 200 people in the initial target set. We know it was concentrated in America and India. It was a little bit of targeting in APAC too. We know for the majority of the targets, they were right. They were involved in crypto. There were a few where they were just dead wrong and there had literally nothing to do with cryptocurrency. They seemed more interested in IT infrastructure, security, engineering for obvious access reasons. But were willing to take any foothold they can get based on sort of actions that they took later. What do we not know? We have no idea how they sourced their data. Zero at all. The email addresses they're using are personal email addresses. They weren't really using much in the way of corporate email addresses. Like I said, they got the list right. My suspicion is they're using classical OSINT techniques. They were looking at names in news reports, things like that. Using that to then develop further information about it and specifically dig up personal email addresses to bypass corporate controls. But we don't actually know that for sure. We don't know how long this recon phase lasted. We don't know if they were just sitting on a portfolio of people that they wanted to breach or if they got it all together. We don't know if I might have phase one and two switched. They may have acquired the ODA before they put the list together. We just don't know exactly how that played out because this is the phase we have the least visibility into. So next phase, weaponization. And this is a really, really rich topic area. And some really, really interesting pieces here. Exploitation. This is a pretty rich topic area. I've lumped into this sort of both the exploit dev as well as what I call the infrastructure prep that the attacker did. And we'll go through sort of both of those things. So there were two ODAs leveraged in this attack. CB201911707 and CB2019708. They're both Firefox exploits. One is essentially a JIT exploit and the other is a sandbox escape. I feel like I'm stepping on a cable here. From Firefox, the net result of the two is a zero user interaction ODA in Firefox. Pretty awesome. So 707 was a simultaneous discovery by a researcher at Project Zero named Samuel Gross. And the attacker, whoever the attacker acquired this exploit from. Samuel has a really good write-up on Twitter about what the difference is between his approach, between the way they discovered it and the result in exploit that they wrote and what the attacker wrote. The TLDR of that is that we think that the attacker found it a very, very different way than Google did. Google found that via fuzzing. The attacker probably found it as a variant of another existing ODA, CB20199810, which was disclosed in April of this year. So based on the similarities in those two types of bugs, what we think was happening was the attacker was looking for that same pattern bug. Or potentially just a straight variant of 9810 and ran across this bug as well at about the same time. The second bug is actually way more interesting. So 11708 was a novel discovery by the attacker. Never before seen a sandbox escape in Firefox. While the underlying mechanism that was used in the attack has actually been in Firefox for years, the specific way this attacker chose to trigger it had only been possible since May 12th. So what does that imply? That implies the attackers had about a two-week discovery to weaponization cycle, which is insane. If you've ever tried to write an exploit for something as complicated as a browser on a platform like Mac, two weeks is just crazy fast to be able to get that out the door. And we know this because we saw the attacker starting to set up infra, setting up registering domains, things like that. On about May 28th is when we think the attacker started to set up infra. Because they're setting up infra, we're assuming that means they had the ODA, or at least they were almost done with the ODA. Otherwise, why go to the effort if you don't know what you're going to do with it? Sorry, I'm going a little bit faster than I'd planned to because we're a little bit tight on time. Right, so the Cambridge side of stuff is really interesting too. So the attackers gained access to two accounts at the Cambridge University, professor's accounts. Well, a little bit more on that a little bit later. Two accounts, two email accounts, legit Cambridge domains. And they used those email addresses or those accounts in both the phishing. So we'll see examples of this later where they were sending from legit Cambridge University accounts. As well as to host pieces of the actual exploit pages themselves. They didn't host the ODA on Cambridge. That was in a separate domain, but they hosted all the lure pages, everything else. One of the things that Cambridge does for people that have accounts is you can, you know, the old school home directory, right? Tilde username right after the top level domain. They make that available when you have an account. So the attackers leverage that as part of the overall social engineering process. You'll see some of the links they used when we talk about the phishing. But it really, really, really improved their ability to fool their targets quite thoroughly. We don't know a ton about the Cambridge side of this equation. We don't know how long the attackers were in. We don't know if they used it for other attacks. We don't know if the accounts they used were actual user accounts or they were just completely fake. We've done a fair bit of background on this. The LinkedIn profiles we think are fake. So they backed these accounts with LinkedIn profiles and other data. There's no other results for these names. We think it's probably the attacker had enough access to create these users, but we don't know either way. So the delivery is my favorite phase. It's my favorite phase because the level of effort we saw from these attackers on the social engineering side was, in my experience, extraordinary. We'll see this in a second. The attackers took on average 10 days to two weeks with the victims. From the first contact all the way through a non-malicious phase of social engineering until they winnowed down the list and figured out, do we care enough about you to give you a zero day? Until they finally actually delivered at the FAR. And that took about 10 days to two weeks. Because they were responding on normal human timelines. They weren't doing automated responders or cut and paste stuff. It felt, looking at the email threads, it felt normal. It felt like a human. It felt like an academic responding back and forth. So let's take a look at that and what that looked like. So this is what the initial outreach email was. There were two versions of this. So this one references the Adam Smith Prize, which is an economics prize that Cambridge awards to, I think it's postdocs, I believe, on an annual basis. And it's specifically focused on economics. A couple of things to note about this. I'll use this example because it's better colored. That link you see right there, number one, note that it's going to this user's home page or home directory, not a top-level Cambridge site. Two, that link is entirely benign. There's not a malicious bone in that link's body or in the resulting web pages. Nothing. It is a pure copy of the Adam Smith Prize page that you can find on Cambridge. Pure copy, nothing changed about it. The second phase, so you respond back, you say, like, great, this is amazing, I'm going to do this, this is so cool. Well, first I'll show you the Adam Smith Prize variant. So different name, same pattern. So you follow back up, say, great, I would love to do this, sounds amazing, thank you so much for reaching out. And you get something like this back. Great, so thanks so much for your reply. There were a few variants of this that we saw. But basically, if you reach back and said, like, yep, this is awesome. I love math because reasons. They said this. If you responded back and said, like, hey, I'm in marketing, dude, like, why are you emailing me this? They ceased contact immediately. Really, any reply other than, yes, this is right down my alley, this is amazing, the attacker ceased contact immediately and just moved on. And keep in mind, of course, up to now, if you were a normal user and you said this, like, there's nothing suspicious here. This is an email from a Cambridge University account referencing a Cambridge page. The most suspicious thing is, I wonder how they got my name. So far, so good in terms of OPSEC with these attackers. So a few days after that, what you would get is this. You would get the... In some cases, there were a few more back and forths based on, like, specific questions and answers. The attackers, like, engaged wonderfully. You'll note throughout this entire thing, good grammar, good writing. Like, they're using reasonable punctuation. This is not what you expect on a normal sort of, like, low or even mid-quality phishing. So this is the actual exploitation, is where it starts. So that link there, that's malicious. That link is the link that hosts the... that sort of does the final checks and hosts the actual ODA or links to it, at least. Like I said, so from tip to tail, from this to that, 10 days to two weeks for most recipients. So really, really high effort, very high quality, like, nothing super weird about this. So at this point, they're saying, like, OK, these are the specific projects we want you to review. View it, log in. This goes to... that link is actually copied again from Cambridge University's actual website. It's their IDP login page that the attackers stole. And at that point, once we click there, we start to talk about exploitation. Right. So there's two small changes to that, to the website that the attackers made. Number one, they included this, right, which is just saying, if you're back, if you're using Firefox on Mac, you're good to go. The bit about if you're using anything that's not a Mac, we think is... While we looked, when we saw this code, we looked and said, do they have more exploits? Are they exploiting, like, other shit too? That'd be really cool. We don't think so. We think there was only one exploit. We think that that was more around OPSEC than it was around target selection. So that a person who visited on Windows, right, is going to see nothing really weird. The username password won't work because there's nothing hooked into the form on the back end. But it's like, oh, that's weird. I wonder what happened, right? As opposed to, if you're on Mac and you're not on Firefox, what you get is this. Oh, so sorry, your browser's not supported. Please install Firefox and continue, right? And almost to a person, every person who actually went and installed Firefox and passed this step, said some variation of, oh, I just assumed it was a weird academic thing, right? It's a university. Universities do weird shit all the time, right? It's almost to the person. That's what folks said. So you go ahead and do that and you visit the site. And then this is the second thing they changed. They injected that script at the very, very bottom. That's the actual exploit code. Well, that's the reference to the file that contains the actual exploit code. We're not releasing the ODAE yet until more and more users get on upgraded versions of Firefox and users are slow at patching. So analytics-fit is an attacker-controlled domain. This one was registered on the 28th of May, so right before the campaign started. It does nothing but host this JavaScript file. It wasn't involved in C2. It wasn't involved in anything else. It's just nothing but host this. Let's see. So, sort of, I'm lumping together for the exploitation installation C2. So you visited that. Your browser was exploited. It was a nice, clean exploitation. We didn't observe much in the way of crashes. It seemed quite stable. What happened is your browser would shell out to curl. It would download stage 1. So stage 1 was a variant of the NetWire family. While it is technically a full-fledged RAT, the attackers seem to use it for mostly recon, basic pillaging, and then deciding if they care enough to send stage 2 down the wire. Stage 2 is a variant of Mox. The attacker seems to use this as a full-fledged RAT. We see activity indicative of hands-on keyboard. So at this point, we're not talking automated exploitation. We're seeing somebody somewhere behind a computer telling this thing what to do. One of the difficulties as we advance out of this and into sort of actions on target is that it took us about... So we got our alerts essentially here. So when the ODAT landed and the shell to curl happened, we started getting paged by our alerting systems. So the attacker was only active in a place where we could see them for about 20 minutes, tip-to-tail, in this incident. So they didn't have a lot of time to do post-exploitation activities where we could see them. Pluses and minuses there. We have had some access to other systems where the attacker was present longer. But we don't have real-time EDR-style logs from those. We have sort of dead-box forensics from those things. So we don't really know everything we would hope to know about what the attacker was doing after the initial breach. But we do know a few things. Number one, we know that they went after browser-stored credentials, including session tokens. They pivoted, interestingly enough, they pivoted from the endpoint into the cloud. We saw several times, right? So from the endpoint, stealing session tokens, stealing credentials, using that to go into email accounts, online file storage, other cloud-based services was a thing. Which the attacker particularly seemed to like. We saw a bunch of other weird stuff on a few endpoints. Like applications that the user didn't recognize that were suddenly installed after the attacker showed up. But again, dead-box forensics, it's really hard for us to start talking about intent and what the attacker was actually trying to do with that. There is a fair bit of Japanese language reporting on these attackers. So we released a blog post earlier yesterday about this as well. It references this. The... I'm going to forget the name. But the Japanese search, basically, published a really in-depth write-up that goes much more in-depth into some of the techniques that these actors are using. And really starts... it's one of the ways where you're sort of assessing these are linked actors, is all the similarities we saw in the TTPs there. I feel like I'm stepping on something that's like half broken, which is why this is happening. So let's talk about the attacker a little bit. Number one, based on open source reporting, we think they've been active since about 2016. We think... in fact, we know they're not covered as a named group by any of the threat intelligence companies that we've talked to. Some cover them as unknown or unattributed groups in some ways, but no one has sort of named coverage of this group. We think this is the same firm that breached Coincheck. So the Japanese language reporting I was referring to was specifically talking about the Coincheck breach. Overlaps include the use of academic emails as phishing, the same malware, the same kind of lures and patterns in how they were reaching out to users. We think this group, lastly, has dropped at least half a dozen ODAs since 2016. Which, when you think about it, is actually quite a few ODAs in the last three years. This Firefox ODA was by far the most interesting of them. The rest were like ODAs in RAR or things like that, that were much harder to operationalize. We think this is the most interesting ODA we've seen evidence of them dropping. But what this says to me, and this is why I said it at the very beginning, I think this is the most dangerous attacker group in crypto today. Is a well-funded, organized, the skill sets we saw displayed in that exploitation chain. That's not someone somewhere alone, right? That's a small group between the social engineering and the infra and the ODAs and patching it all together. That's a small group. My guess, looking at the code, looking at how it's structured, looking at the short development timeline on the ODAs, is that they bought the ODAs. I don't think they developed them. I could be very wrong on that. I'd say that's like low confidence statement. But because that cycle was so fast and because when you look at the code, it's nice, it's modular. It was done by somebody who's, I think, used to building these things before. That makes me suspect that we're dealing with a brokered ODA as opposed to an internally developed ODA. But if that's true, that means, and these guys have done six ODAs in the last three years. That's a very well resourced organization to spend that money for those capabilities. So very, very scary attacker group. And not well tracked. So response. So shock. We did not leverage magic cyber AI to detect this attack. There were no blockchains involved in this attack and detection of this attack. Nor was there any machine learning. This attack was detected with essentially behavioral rules. That just shouldn't happen. It turns out Firefox should not be shelling out to curl. It turns out that files probably shouldn't be executing from temp. It turns out unknown or in this case unsigned processes shouldn't be touching .SSH, .AWS, .GNUPG. Shouldn't be touching the keychain. These are behavioral alerts that literally any of us can write. The other reason we detected this is because we're fanatical about visibility. We treat endpoints that don't have security tooling like endpoints that have unpatched major vulnerabilities. We focus heavily on 100% deployment of our visibility infrastructure. And that, I think, pays dividends broadly. The other reason, so that's why we detected it. That's how we detected it. The reason it was a 20-minute to containment incident for us is because we're fanatical about practice. So the thing I tell the team all the time is if you can't do it drunk at 3 a.m. on Christmas morning, you can't do it. Flat out. We don't practice it like that, although there have been some proposals. But seriously, this means playbooks. This means practicing. This means knowing your tools. This means finding the edge cases, finding the bugs in practice before you find the bugs in reality. I was in the military for about a decade, and the saying we had was the more you bleed in practice, the less you bleed in war. Same concept here. The more problems and bugs and just things you find in practice, the fewer you're going to find when it actually counts. And it's 3 a.m. on Christmas morning, and you're drunk. Because that's not when you want to find bugs. The last thing, and really, this is more on the lessons learned side, is that if anyone in cryptocurrency was laboring under the impression that an ODA is not actually in your threat model. And I will upfront say for most organizations, ODA is probably not in the threat model. If you're in cryptocurrency, ODAs are in your threat model. If you're not already planning for it, you should be today. And you should already have been. And this means, right, when you're talking about ODAs, we're talking about layered defenses. We're talking about consistency. We're talking about high quality execution, playbooks, practice, making sure that you know what to do and can do it at a moment's notice. Or you can do it when someone's on vacation, or we can do it when two people are on vacation, right? Without calling that person on the beach in Hawaii and saying, hey, can you respond to an incident? Because no one is at their best responding to an incident on the beach in Hawaii. I promise you. A couple of other things I'll highlight. And I think I blasted through this, and I'm going to not delay the rest of the stuff too much. A couple of things I will highlight is interesting here. The use of personal email was particularly interesting as what the attacker targeted. The intent was clearly to bypass controls on corporate email. Great, that makes sense. The consequence, though, was that we saw several cases where targeted individuals fell prey and downloaded everything and compromised their personal endpoints in addition to potentially corporate endpoints. From a corporate incident response perspective, this is a big problem for me. Not only do I lack visibility on those endpoints, it's not always totally clear that the user even is going to know that they're compromised. And for most people, not everyone has great hygiene about separating work from private life. Even if they do, that kind of access can be leveraged in follow-on phishing campaigns that will be much more effective as they're coming from these personal, well-known email addresses as opposed to something else. So that, I think, is an interesting thing. Again, we talk about this in red teaming a lot. An actual red team can't go target your personal life. An actual attacker probably prefers to. Because of a lack of controls. With that, I'm going to leave about 10 minutes for questions. I hope it's been useful. What I've tried to do, tried to leave you guys with, is sort of a view into this actor. They are an actor to watch. Go read the blog post. Reference the reporting. If you can read Japanese, that's even better. If not, I'm sure it's going to get translated at some point soon. If you're in cryptocurrency, you should be looking at this actor. Just a few notes on practice, practice, practice. I think security is about execution. More than anything else. With that, I'm happy to have your questions and thank you all for your attention. And sorry for the AV issues. Go ahead. Maybe I missed it, but I don't think you said the name of the group or one of the names associated with it. I think I said it at the very beginning. It's HYD7. H-Y-D-S-E, the word seven. That's what the Japanese reporting calls it. We track it as... We don't use the fancy names. We use just numbers. We track it as Crypto3. Which one? H-Y-D-S-E-V-E-N. Yeah. What's up? Yep. No, it was not. There was almost no use of obfuscation, at least on the JavaScript's guide. In these attacks. Which is nice, because then we're able to do things like look at the structure of the JavaScript and draw conclusions or at least form opinions on that stuff. Yep. Yep. Yep. No, it is not. So the question was, you said that they were looking for in-browser tokens. Obviously, it's very popular these days to have browser-deferred stored session tokens, either your application delegates or others in OAuth 2. Is there any indication that this is a generalized attack that's basically getting at all cloud inputs or targeting? How do you mean generalized attack? So I would say it's part of their... Yeah. Oh, yeah, yeah. So just to clarify, we saw no evidence of them going after the blockchain-specific accounts. It was all about email, file storage. It was all about that stuff. Yeah. So this is clearly part of their post-exploitation TTPs. Like, this is just part of their playbook, would be my guess. Yes. I mean, they only delivered this ODA to like five people, just to be clear, right? They started with 200. They wintered it down in the emails, and they only pick about five to deliver the ODA link to. This was not mass exploitation. This was highly targeted. They were not after your wallet. They were after my wallet, quite frankly, in the context of Coinbase. Let's turn that question around. If they were after MetaMask, would they have bought it? I don't know enough about how MetaMask stores data, but my guess is yes. Okay. Sir? Were these points only used by Coinbase or MetaMask? No. So it was a broad swath of cryptocurrency companies. So about 20 different companies were involved among the 200 people. We have relatively limited visibility into some of this stuff. So we know they threw them at at least one of our users. We know they threw them at other users, not at Coinbase as well. Sir, two factors in place. Is it what they do really good for you? No, absolutely not. So because they're looking at browser token theft, right? So they're not stealing your credentials. They're stealing your session token. So you've already logged in. Even if two factors in place, it depends on your two factor. And what exactly you're using. So this isn't credential phishing. This isn't something where they're trying to impersonate you per se. They're on your system. They can steal your session tokens. They can steal your cookies. They can impersonate you in that way. But even more than that, they're more than likely, had we let this intrusion continue, what we would have seen was internal network pivoting and seeking out internal systems documentation, like fairly standard post-exploitation stuff for a group like that. Sir? How long have they been funded? I don't know. We think there are open source attacks we can attribute back to them back to 2016 or so. We think they did the coin check breach in this attack. My guess is if they bought that Oday, they spent between half a million dollars and a million dollars on that, depending on lots of factors. But like I said, this group is, I think, under-researched and there's not enough light on them really for me to be able to say. Sir? So, I mean, A, when this happened, we went public with it immediately. Shared the hashes, shared some of the IPs. And we... Look, I'm not Mandiant, I'm not CrowdStrike. I make no money from having private threat intelligence, right? I derive all my benefit from sharing this intelligence as widely as humanly possible. So, hence this, basically. And hence the work we do directly with other cryptocurrency organizations. Yeah. Sir? Yeah. Well, in this attack, I don't believe... I don't believe they made any money on this attack, although I could be wrong. There may have been other organizations that lost funds to them in some way or shape or form. So, in this attack, they... Again, this is my guess. I'm guessing they spent between half a million and a million dollars putting this act together. So, this was a loss to them. But if they were the ones who did the coin check breach, they got away with about... I think it was 500 million dollars in NEM. The sum of which they were actually able to convert and take with them. They've been active in cryptocurrency so long that my assumption is they're essentially self-funding at this point. And the million dollars they lost here was like, we took a swing, we failed. We'll do it next time. Yes? Can you share any details about your run book after you got the alert? How did you respond to it, especially when there's so many potential things where session tokens could have been stolen? Yeah. So, fortunately, the attack was highly targeted. It ended up on one endpoint, right? So that we were able to, A, go... The general shape of that is we went broad and then deep. We said, okay, here are the indicators. Here's the malware. Here's the hashes. Here's the IPs. Is this present anywhere else in our entire ecosystem? No. Outstanding. Let's take a much deeper look at this. So we were able then to pull the endpoint logs and say, okay, what files did these processes touch? Which is how we can gain certainty on what they were getting access to before we quarantined the machine. And then based on that, we said, okay, they probably got these things. We don't know if they exfiltrated the data or not before we quarantined. So let's just roll all those creds and move on from there. We were also able, thanks to some quick action from the incident response team, this is how we pulled the Oday code directly from the site. Before they knew we were responding, we had detected it and were responding. We were able to set up a pre-existing analysis VM infrastructure with Burp sitting in front of all the connections. Go pretend to get exploited, just like the same user is clicking on it from another device, basically. And it happily tried to re-exploit us. And we snagged the Zero Day from there. And then reported it to Firefox. Actually, I forgot to give Firefox a shout out. They were incredibly, incredibly great in this entire process. They got the first Oday patched the next day. The second Oday was patched the same week. The first one they'd already been working on a fix on. The second one, they went from never before hearing of this thing to shipping a patch in under a week. Very, very impressive. They were a joy to work with. Sir? Yeah, we're going to share the slides later. And then, of course, we have Ripple and us happy to share whatever else you want to hear afterwards. Yep. All right. I actually don't want to share that, quite frankly. So, we do use an MSP for Tier 1. We also do independent detection on that same data feed for stuff that we feel is more targeted to us. Maybe last question. Or no? Outstanding. Thank you all very much.