You'll Never Trust Another USB Cable After Hearing This š Darknet Diaries | Ep. 161: MG
Jack Rhysider
0:00 JACK: Hey, hey, itās Jack, host of the show.
0:03 I am feeling good.
0:04 I am feeling healthy, strong, fit.
0:06 Iām in the game.
0:07 So, Iām coming at you with a second episode this month.
0:11 Letās go!
0:11 Defcon is coming up in a few weeks.
0:13 Iāll be there.
0:14 I wouldn't miss it.
0:15 You know me.
0:16 If you donāt know, itās the premiere hacking conference in Vegas,
0:20 and I love going because every year something crazy happens.
0:24 You donāt always know what itāll be,
0:26 but you know something is going down somewhere.
0:28 Like, maybe someone will drop a zero-day live on stage,
0:30 which will suddenly make us all panic and call home; shut everything down!
0:34 Or maybe the FBI breaks into someoneās hotel room
0:37 and arrests someone who theyāve been chasing for a decade.
0:40 Or maybe someone gives a talk that makes history.
0:43 <!--more--> I mean, Julian Assange once gave a talk
0:46 at the Chaos Computer Camp in Germany to announce WikiLeaks.
0:50 Lots of people come to drop big ideas at hacker conferences,
0:53 and if thereās a talk that makes history, I want to be there for that moment.
0:57 I want to be in the room where it happens.
0:59 Anyway, Iām not planning any party or anything this year.
1:02 Iāll just be floating around all over the place,
1:05 but check my Discord or Twitter for live updates on where Iāll be, though.
1:10 If you see me, please say hi, because I love meeting you.
1:13 Itās your energy that gives me the fuel to fly this thing to the moon.
1:17 Oh, and if you donāt know what I look like, I wear a big,
1:20 black hat, and I cover my face entirely with a bandana.
1:24 I look like a bandit.
1:27 Alright, I promise Iāll bring you back some stories.
1:32 (INTRO): [INTRO MUSIC] These are true stories
1:33 from the dark side of the internet.
1:38 Iām Jack Rhysider.
1:44 This is Darknet Diaries.
1:51 [INTRO MUSIC ENDS] JACK: I guess weāre gonna call you MG in this.
1:59 Is that what you want to be known as, is MG?
2:01 MG: Perfect, yeah.
2:02 JACK: Yeah, I like MG 'cause I didnātā I neverā I didnāt
2:06 know for the longest time if it was milligram or⦠MG: Itās great.
2:10 JACK: Megagram.
2:10 MG: Itās so many things it could be.
2:13 JACK: That initial mystery I think is what intrigued me about MG.
2:16 He had this raw type of energy to him.
2:19 Heās always building.
2:20 He goes hard on hacking.
2:22 Heās always in the zone, and he seems like heās part of the counter-culture.
2:26 Heās probably got stories, right?
2:27 People kept telling me, you should get MG on the show.
2:30 So, here we are.
2:31 Color me intrigued.
2:32 He tells me MG is just his initials,
2:34 and he started using that name when he signed up for Twitter back in 2008.
2:38 His Twitter name is _MG_.
2:40 Nice and simple.
2:41 MG: I grew up in Wisconsin.
2:42 Both of my parents were in medicine,
2:43 and I guess a big thing that I learned growing
2:48 up with them is you can pretty much DIY anything.
2:52 Also, DIY-ing stuff is a great way of having control,
2:56 stretching the value of what you have, and things like that.
3:01 So, they designed and built their house from the ground up,
3:05 like, every aspect of that.
3:07 This was while they were working full-time in medicine and, of course,
3:12 raising me and my sister.
3:13 I think the house started around when I was in first grade, roughly.
3:17 So, I was just constantly around raw materials,
3:22 DIY, tools everywhere⦠JACK: Yeah.
3:25 Yeah, but didnāt you get into magic also when you were young?
3:29 MG: Oh, I mean, what kid didnāt, right?
3:31 But, no, once I got into roughly middle school,
3:34 I got into magic, sleight of hand, deception, and all that cool stuff.
3:40 I also got into trouble doing that.
3:43 I brought a prop cigarette to school,
3:45 got suspended for not taking it seriously enough⦠JACK:
3:48 You took a cigarette to school,
3:50 a fake cigarette, and they suspended you over it?
3:52 MG: Yes, they did.
3:53 I mean, it wasā thereās even more to that story.
3:56 So, yeah, it wasnāt really believable.
3:57 One, a littleā it looked like the tip was glowing,
4:00 and you blow on it and some talc powder comes out.
4:02 It makes a nice cloud.
4:03 So, it was kinda believable.
4:04 The teacherā like, whoa, what is this?
4:06 So, they confiscated it.
4:07 But then they were holding it and some of the talc
4:10 came out of it and they were like, oh, white powder.
4:12 Uh-oh.
4:13 So, they called the cops, had them drug-test it.
4:16 [Music] My buddy at the time decided to say,
4:19 thatās not even how youād smoke cocaine.
4:21 Did not help the situation at all.
4:24 But yeah, I think we both got suspended,
4:28 and mine was specifically for not taking the situation seriously enough.
4:33 It was kind of the start of my conflicts with authority.
4:39 Weāll just leave it at that.
4:42 JACK: As MG grew up, he got influenced by his parents being
4:46 in medicine and was gravitating towards biology.
4:49 But the seductiveness of computers
4:51 and technology would ultimately change his direction.
4:53 MG: I was really into biology until Quake.
4:56 Quake came out, and that changed everything for me about computers.
5:00 You had to learn how they work to play Quake, especially multiplayer.
5:04 First of all, you donāt just run an app on your machine.
5:09 Back then, you're at least rebooting the Windows machine up into DOS mode.
5:13 Oh, you want to connect with people?
5:15 Cool; you're gonna have to learn how your modem
5:18 works and dial-up works and peer-to-peer connections work,
5:20 and all these other things, and eventually that would migrate into modifying
5:24 the game environment to play Team Fortress,
5:28 kind of a modification to Quake itself.
5:31 Then you got multiplayer lobbies and all this other stuff starts happening.
5:36 Itās like, wait a second, the computer does all these things.
5:39 You can mess around with this.
5:41 You can start breaking stuff.
5:43 They weren't checking client-side content,
5:45 so you could modify player skins to be way bigger or have
5:50 an XYZ axis sticking way farther out than the actual player was,
5:54 so you could see them coming around corners.
5:56 You can add a fluorescent coloring to the skin
5:58 to make them stand out in the dark.
6:00 Thatās really cool to me.
6:02 JACK: Oh, thatās brilliant.
6:03 So, if you make the enemy model extra big,
6:07 then you can see them coming and giveā you have the big advantage over.
6:13 Thatās amazing that you thought of that.
6:15 MG: Right?
6:16 Or the skins of the walls and stuff like that, you
6:19 can set them to partial transparency and see through those walls.
6:23 JACK: Most video game players at some point wished they had a faster computer.
6:28 So, a lot of gamers get into overclocking.
6:30 They force their computer to run faster than itās designed for.
6:33 But when you overclock your CPU, you run the risk of your CPU overheating,
6:38 and it can get really hot and melt,
6:40 which means you need to have a better cooling system.
6:42 Water cooling is a pretty effective way to cool your CPU,
6:46 but it requires all this extra hardware.
6:48 You need tubes and reservoirs and pumps.
6:50 But when MG heard that people were putting tubes and pumps
6:53 inside their computers to cool them better, he was in.
6:56 [Music] That sounded great.
6:57 MG: You get a pond pump, you get a heater core from a car,
7:01 you go on McMaster-Carrā first of all,
7:03 you learn what McMaster-Carr is, and you're like,
7:05 whoa, I can just buy chunks of metal pre-cut?
7:08 Awesome.
7:09 Iām gonna drill these out in my basement and plug
7:12 them and create all these water channels inside the blocks,
7:15 strap that the processor and the graphics card,
7:18 just start cooling everything down in the computer.
7:21 It just kinda escalates and you're likeā that was actually
7:25 a really good example of merging non-traditional computer skills with computers.
7:30 Itās like, okay, we're gonna merge shop class here or auto skills.
7:34 When you'reā you've got this liquid moving through a multi-metal loop,
7:38 you're gonna get corrosion unless you understand the chemistry
7:41 of how to block that with some additives.
7:43 So, lots of really cool stuff to just pick up and learn.
7:46 JACK: Man, Iām the same way.
7:48 I truly believe that getting hands-on experience is the best way to learn.
7:51 For me, when I was young,
7:53 that was looking for cheap or free computers to just play around
7:57 with like a sand box and build without the fear of breaking them.
8:00 Having a playground to try out random things was very helpful to me.
8:04 Like, what happens if you donāt put RAM in the computer?
8:08 Are the fans actually needed?
8:09 What happens if you disconnect the hard drive mid-boot up or take
8:12 out a thumb drive while you're trying to write to it?
8:15 What if you try to delete all the files?
8:17 I wanted to see all those things,
8:19 and I tried them all because this is the stuff that was interesting to me,
8:23 and I wasnāt finding it in textbooks.
8:24 It vastly brought in my understanding of how all this operates.
8:28 [Music] MGās first IT job was at a help desk fixing peopleās PC problems,
8:34 but one of his buddies moved out to San
8:36 Francisco and started working on the 10,000-Year Clock.
8:39 Itās a fascinating project that simply asks,
8:41 can we build a clock thatāll last for ten thousand years?
8:45 Clocks live a long time without an issue.
8:47 Surely that can't be that hard.
8:49 But when you lean into the problem, it starts to get really tricky.
8:52 First, it raises the questions; wait,
8:54 are humans even gonna be here in ten thousand years?
8:57 Thatās not a given.
8:58 So, if you're gonna build a clock thatās gonna last that long,
9:01 it kinda needs to function all on its own without humans around to help it.
9:04 So, where does it get its power from?
9:05 Thatās an interesting challenge by itself.
9:07 But then you think about the pieces and parts that it has to be made of.
9:12 Everything must have extreme longevity.
9:14 Like, itās gotta be entirely made of metals or ceramics.
9:17 Plastics or rubber is just gonna wear out too easily.
9:20 MG got fascinated with this idea and decided to join his buddy
9:24 out in San Francisco to see what was going on with that project,
9:27 and immediately he was amazed at the DIY culture out there.
9:31 He met people from Burning Man who were creating art for artās sake.
9:35 He visited the Maker Faire, which is a really cool place where
9:38 people show off their projects that they're building.
9:41 Itās so inventive and clever and inspiring.
9:43 It was like everyone around him there
9:45 was big into building things themselves or tackling
9:47 really interesting problems or just had a really unique way of seeing the world.
9:52 MG found his new home.
9:53 MG: The 3D-printed gun movement, that added a new layer to the whole thing.
9:58 Letās see, that was Defense Distributed.
10:00 I think it was 2013 where they started showing off the first 3D-printed guns
10:06 that wereā there was a whole community that was working on these at the time.
10:10 But Defense Distributed showed these off to the world
10:14 and with so much bravado that it was impossible to miss.
10:18 So, everybody took note.
10:19 It had this interesting tone to it and this message that I was picking up,
10:24 which is creation can also be power in politics.
10:29 Like, you can't take something back once you put it out into the world.
10:34 So, you've gotta be thoughtful on how you do it,
10:37 but also, you can't take it back.
10:39 Nobody can take it and make it go away.
10:43 Thatā regardless of what you think about that specific topic,
10:47 just the larger power and political nature of it was just fascinating to me.
10:52 JACK: Yeah, that was an interesting time.
10:54 The US government has always tried to regulate guns by acting as a gatekeeper,
10:57 controlling who can sell them, trade them, or move them across state lines.
11:01 Thatās where most of the laws live, not at the moment that the gun is used,
11:06 but it regulates the system that makes it and delivers it.
11:10 But the 3D-printed guns changed all that.
11:12 It didnāt need to be bought or sold or registered or traced.
11:16 It didnāt pass through any other traditional checkpoints.
11:19 Suddenly, most of the regulations became powerless because you could
11:24 just print one at home and no one would ever know.
11:28 That kind of knowledge fascinated MG.
11:31 There are certain technologies that once released
11:34 changed the power dynamics of the world.
11:37 It changes whoās in control.
11:39 New types of technology allow you to completely sidestep outside the system
11:45 that was supposed to be there to control and shape you.
11:49 Yeah, that sort of thing intrigued him.
11:51 MG: That was also around the same time as Bitcoin was taking off,
11:54 and I was also into that.
11:55 I really like it at the time and the concept
11:58 of it to just changing and decentralizing power.
12:01 It was really sticking with me.
12:03 So, this was also at the same time that the Snowden leaks happened.
12:08 I didnāt know at the time what it would be,
12:11 but I justā I really wanted to participate in that type of creation, right?
12:16 I didnāt know what it was.
12:18 So, I would join some of these groups and just kinda help them.
12:21 Like, hey, I do IT; maybe I could help with some of your stuff.
12:24 Or, I do security; let me help you.
12:26 You can kinda see how the artist works, right?
12:28 Thatās kinda where I was at for a while.
12:31 JACK: So, you worked at Defense Distributed?
12:33 MG: Letās just say volunteered.
12:35 JACK: Another thing that sort of shocked the world was the ANT catalog,
12:39 which came out in 2008.
12:40 This was some leaked NSA documents which showed
12:43 different types of devices and technology that the NSA
12:46 had in its possession and could use for missions if you were in the NSA.
12:50 MG: Yeah.
12:51 So, the ANT catalog, this was commonly mis-attributed to Snowden.
12:55 I believe officially itās just another leaker around that time.
12:59 But the NSA ANT catalog had this catalog of all this cool espionage tooling;
13:06 hardware, software, just so many cool things.
13:10 If you ever saw the back of a magazine with the spy
13:13 catalog stuff back there with disappearing ink and whatever it may be,
13:18 this was that just with an entire budget.
13:21 So, one of the things in there was a malicious cable called the Cottonmouth.
13:26 It had multiple layers of PCBs inside there.
13:29 It looked really big and chunky, really complicated to make,
13:33 but it also costā you had to have at least a million dollars
13:38 to afford for this and for the NSA customer population of their own department.
13:43 But yeah, you had to have a million dollars just to get fifty cables.
13:49 So, thatās twenty grand each.
13:51 It was just cool seeing all of these things.
13:55 JACK: Okay, so this Cottonmouth cable that the leaked NSA docs showed was wild.
13:59 It looked like a regular USB cable, but somehow it had the ability to install
14:04 a Trojan horse on a computer wirelessly.
14:06 So, if your enemy plugs in this cable to their computer,
14:10 you could somehow get into that cable and infect their computer with malware.
14:14 Now, for most of us at the time,
14:17 we were blown away by the technology in this catalog.
14:20 How was it possible for a USB cable to function both
14:23 as a regular USB cable but also have the ability to infect a computer?
14:28 We were all wondering how it was possible,
14:30 but MG was actually trying to figure it out.
14:33 [Music] He was tinkering with hardware, building 3D projects,
14:35 helping out at the Maker Faire, and building random things.
14:39 Around 2017, he got an idea.
14:41 Thereās this device called a USB Rubber Ducky,
14:44 which looks like a USB thumb drive, but when you plug it into a computer,
14:49 itāll automatically run a script that could infect your computer with malware.
14:53 Basically, the Rubber Ducky was already terrifying,
14:55 but MG wondered how he could make it even worse, and thought,
15:00 what if he took the USB Rubber Ducky thumb drive
15:03 and made it explode when you put it in a computer?
15:07 MG: I kinda spent a while making exactly that.
15:10 JACK: An exploding thumb drive.
15:12 MG: Yes.
15:13 So, Iām a big Nine Inch Nails fan, so naturally I called this Mr.
15:20 Self Destruct.
15:21 So, theā why this is important here is because
15:25 thereās not much space in a USB Rubber Ducky.
15:29 Itās all PCB and components.
15:30 So, I needed to figure out how to make space inside
15:34 of a thumb drive while retaining Ducky functionality to an extent.
15:37 I had a really limited version of it.
15:40 So, I shrunk it down to I think what was ultimately
15:45 an 8x12 millimeter PCB with a couple really limited components on it,
15:50 just enough to run a tiny payload that can
15:53 maybe open up a browser to a specific site, right?
15:56 Good enough.
15:56 Then, it could also trigger an electronic detonator to then fire a firecracker
16:04 or something like that and have a bunch of confetti in there.
16:10 I was doing this all with the idea of this is gonna
16:12 be just art Iām gonna present to the world in a video form,
16:15 and, hey, everyone can just look at it, right?
16:18 So, the payload wasā you'd plug it into the computer;
16:21 it opens up the browser, goes to a video of a Jack-in-the-Box animation.
16:26 Jack-in-the-Box is cranking the box for a awkwardly
16:29 long amount of time to build up tension, and then the explosion happens.
16:36 Confetti goes everywhere.
16:38 Pop.
16:39 That was great.
16:41 JACK: Such a ridiculous project, but I love it.
16:43 MG: Since thatās happened,
16:46 thereās been evidence of exploding thumb drives shipped to journalists
16:51 and stuff like that that had RDX in it.
16:54 That wouldā yeah, that would do a lot of damage, and itās exactly why I did not
17:00 productize that despite many people asking for it.
17:03 JACK: I mean, yeah, I was just thinking of the Hezbollah pagers at this point.
17:06 MG: Uh-huh.
17:07 JACK: Did those people see your presentation
17:09 somewhere and be like, oh, thatās great?
17:11 MG: Oh god, I hope not.
17:12 JACK: So, heās tinkering around
17:14 with these USB drives that will physically self-destruct,
17:18 and his buddy is like, hey, you should take those things to Defcon.
17:20 MG: I think it was around 2013.
17:22 I finally made my first Defcon before wantingā
17:25 I had been wanting to go for years, but 2013 was the first time.
17:28 Thatās where I linked up with a long-time online buddy, YTCracker, Bryce,
17:33 and he kinda just introduced me to more
17:37 stuff and showed me around the security space.
17:40 It was very helpful for me at the time just learning and meeting more people.
17:46 Yes; so, at Defcon I would absolutely make
17:49 little devices that were just highly-custom one-offs or two-offs,
17:55 maybe five-offs to people who wanted a custom thing.
17:59 You had to know me, andā yeah, back-alley deals at Defcon.
18:04 JACK: Oh man, the back-alley deals at Defcon are always very interesting to me.
18:09 The first time I went to Defcon,
18:11 someone told me I should try to find and buy some rainbow tables.
18:14 This is a list of hashes and passwords.
18:16 You could download it back then,
18:18 but it was a lot easier to just get it on a stack of CDs if you knew someone.
18:22 The point of it is that it makes cracking passwords a lot faster.
18:25 So, I went to Defcon and I started asking vendors,
18:28 hey, do you have any rainbow tables for sale?
18:31 They all said, no.
18:32 What?
18:32 LOL.
18:33 Then eventually someone was like, hey, you said you wanted some rainbow tables?
18:36 I was like, yeah.
18:37 He said, you should go ask Paul.
18:39 Iām like, who the hell is Paul?
18:41 He showed me where Paul hangs out, and it turned out to be Paul Asadoorian.
18:44 When I met him, I asked him, hey, do you have any rainbow tables?
18:47 Heās like, oh, I just ran out.
18:49 I was like, oh, man.
18:49 Heās like, I brought a bunch last year for Defcon,
18:52 but there wasnāt many people who really wanted them,
18:54 so I only brought a few leftovers this year and just ended up giving them away.
18:58 So, that hunt to find secret stuff at Defcon is real and itās exciting,
19:02 and Iāve been properly blown away at some
19:04 of the secret things Iāve seen people bring to Defcon.
19:08 So, MG fell in love with Defcon.
19:10 These people were just like him, building cool stuff,
19:13 subverting the gates of power, and using technology to reinvent new things.
19:17 A lot of people at Defcon are building just for the fun of it.
19:21 The endless curiosity cannot be tamed in some people,
19:24 and it sparked a whole lot of new energy and ideas for MG.
19:29 Around that time, the whole world was shrinking at a rapid rate.
19:33 Like, for the longest time, we only had USB type A cables,
19:36 the big wide ones that it takes you three tries to plug in, right?
19:40 But then suddenly those shrank and then we
19:43 got mini USB cables and then micro USB cables.
19:46 Computers used to be big and clunky, right?
19:48 Desktops, of course, but even small laptops;
19:50 you couldn't fit those in your pocket.
19:52 But then the iPhone came out and you had a whole computer in your pocket.
19:55 This brought forth a whole bunch of smaller
19:57 computers like BeagleBoards and Gumstix and Raspberry Piās,
20:00 tiny computers that you could fit
20:03 into your pocket but were also pretty powerful.
20:06 So, while the NSAās version of this malicious cable costs them $20,000 to make,
20:12 with all the miniaturization of electronics hitting the market,
20:16 MG was wondering if it was feasible
20:19 to build one himself for a far cheaper price.
20:22 MG: [Music] Yeah, exactly, right?
20:25 The miniaturization of microcontrollers and other
20:28 things like that certainly opened
20:30 some doors for me in which I could experiment and play.
20:34 You know, itās actually important to mention right around
20:37 this time is also when I met Darren Kitchen from Hak5.
20:40 JACK: Darren Kitchen was already making malicious
20:42 devices like the Rubber Ducky and Wi-Fi Pineapple,
20:45 and was also making YouTube videos to a channel
20:48 called Hak5 to teach people how to hack.
20:50 MG: First of all, what a Rubber Ducky isā it does keystroke injection.
20:53 What that means is it emulates a keyboard
20:55 and will very rapidly type those keystrokes.
20:58 So, I think the Duckyās doing 150, 200 keystrokes a second.
21:05 So, anything I could do at your keyboard, the Ducky can do for me.
21:12 Great for IT sysadminā IT sysadmin automation,
21:16 but also, you know, maybe some nefarious stuff, too.
21:20 If you donāt care about speed, payload size,
21:24 you donāt care about all of these nice product aspects,
21:28 you can totally compromise and get something barely
21:32 usable in return for making it much smaller.
21:35 Thatās effectively what I did.
21:37 I compromised on a lot of things.
21:40 Even some basic electrical safety things I ended up compromising there.
21:43 Like, hang on; this thingās gonna blow up.
21:45 Whatās it matter, right?
21:46 So⦠JACK: To make his exploding thumb drive,
21:48 he basically had to make a smaller version of the Rubber Ducky,
21:51 and this gave him an idea.
21:53 What can you do with a super-tiny keyboard connected to a computer?
21:58 So, he decided to make his first malicious USB cable.
22:02 MG: Itās identical to the Mr.
22:05 Self Destruct except it didnāt explode and it was inside of a cable instead.
22:10 So, basically to put a payload onto this, you
22:13 had to have physical access to the cable.
22:16 You program it, and itās gonna delay however long you
22:20 tell it before running the payload after it gets plugged in.
22:23 Like, the end, right?
22:24 JACK: Basically, imagine what someone could do
22:27 if they had access to your keyboard.
22:29 Thatās what this cable did.
22:31 It acted like a pre-programmed keyboard.
22:33 If you plugged it in, whatever it was programmed to type, it would type.
22:37 MG: So, you could do some basic keystroke injection attacks,
22:41 whichā open a browser, open a reverse shell.
22:44 You can do a lot of stuff.
22:47 But it wasnāt this tool I knew it could be.
22:51 JACK: He was posting about this online and stuff, making a handful of them,
22:54 and selling them in the corners of rooms in Defcon.
22:57 But the first version was lacking features and really buggy.
23:00 From his visits to Defcon, he met a guy named Fuzzyknob who got
23:04 MG a job red-teaming for a Fortune 500 company,
23:08 which was MGās first cybersecurity job specifically
23:11 hacking into places to test their security.
23:13 How cool is that?
23:14 But while he was at work doing his red-team stuff,
23:16 [music] he just kept thinking about, how can he make this little device better?
23:20 MG: So, obviously the next step is, well, what could that product actually be?
23:26 The next time I had a vacation,
23:28 which was actually in-between jobsā so I hadā I think it was six
23:33 weeks between my first red-team job and when I was leaving an IT role.
23:39 So, six weeks in-between.
23:40 Iām like, you know what?
23:42 I have not figured out how to design PCBs yet, so Iām gonna get a mill.
23:46 JACK: PCB is printed circuit board.
23:48 Itās typically a green board inside an electronics
23:51 device that has the capacitors and resistors, and they're soldered onto it.
23:54 A mill is a way to create one of those PCBs yourself,
23:58 making the traces and drilling holes for the components.
24:01 So, he spent six weeks learning how to design PCBs and created them on his mill.
24:05 MG: The cool thing about a mill is that you get rapid iteration.
24:11 So, with software, you can just change some code, save it, hit Compile.
24:16 Seconds later, you can test.
24:17 But when it comes to a PCB, itās usually weeks.
24:21 You gotta design it, send it off to a fab,
24:24 wait for it to come back, then you assemble the components on it,
24:27 and then you test it and debug it before you can
24:30 even get a change you want to make to test it over.
24:35 But with a mill, you can do some primitive stuff.
24:37 I can't get super-advanced here,
24:39 but you can test some basic things toā you do it in the span of a few hours,
24:44 and make a revision, kick it out again, and just maybe go through two,
24:49 three revisions in a day, easily, depending on how complex it is.
24:52 That allowed me to level up really quickly.
24:55 JACK: So, he spent a lot of time in his home
24:57 lab trying to jam more features into this cable of his.
25:00 But one thing bugged him about this cable;
25:02 you have to physically take control of it to program what keys it will type.
25:06 It would be way better if you could plug the cable
25:10 into your target and then tell it what to type remotely.
25:13 So, he was fiddling around,
25:15 trying to figure out how to give this thing an antenna or something,
25:20 maybe Wi-Fi, in the smallest way possible.
25:23 MG: The Wi-Fi radio allowed it to connect to networks or you,
25:27 with a phone, to connect to it.
25:30 There was no need to get access to the cable
25:33 to update a payload on it or to trigger a payload.
25:38 So, that changed the entire value of this, being able
25:43 to dynamically change what it did while it was in play.
25:47 JACK: Yeah, so instead of blindly hoping your cable is
25:49 typing the right keystrokes that you pre-programmed it to do,
25:52 now with Wi-Fi, when this cable connects to a computer,
25:55 itās almost like it turns into a wireless keyboard.
25:58 Whatever you type on your phone,
26:00 those keystrokes would show up on the computer it was
26:02 plugged into, but it didnāt look like a keyboard, of course.
26:05 [Music] It looked like a regular USB cable
26:07 that you typically have hanging off your computer anyway.
26:10 This made it a very spooky cable.
26:13 Suddenly, USB cables were no longer safe.
26:16 This malicious cable was starting to finally look promising.
26:20 The first version didnāt have a lot of functionality,
26:22 but this one, this oneās starting to look sharp.
26:25 So, he came up with a name for this cable, the O.MG cable.
26:30 It works for so many reasons,
26:31 but since his initials are MG, then O.MG is a nice fit.
26:35 MG: That took off.
26:36 Then Defcon was coming up, August 2019.
26:39 Iām like, okay, this is getting a lot of traction.
26:42 So, by August I wanted to have some of these things to actually sell.
26:47 Now, I was making them still from the ground up in my kitchen, basically.
26:53 It took me eight hours per cable, on average,
26:57 to make these, and the components were so fiddly
27:01 and tiny that fifty percent of them were failures.
27:04 I would throw out fifty percent.
27:06 That turned intoā if you do the math
27:09 on that, that is sixteen hours of work per viable cable.
27:12 Really not scalable, but you know what?
27:14 I just wanted as many as I could for Defcon, right?
27:16 So, I just focused entirely on this in my free
27:20 time while still doing my red-team role full-time.
27:23 JACK: You have to think, heās trying to fit a microcontroller inside a USB
27:27 cable so that nobody thinks thereās a microcontroller in it.
27:31 Heās working with incredibly small components,
27:33 soldering under a microscope, sometimes with exposed silicon,
27:36 with almost no room for error or it won't fit in there.
27:40 So, he makes as many as he can and brings them all to Defcon to sell.
27:43 Heās leveled up from the back-alley deals by this point,
27:46 and Darren from Hak5 was letting him sell them out of the Hak5 booth.
27:50 MG: They sold out.
27:51 Everybody wanted them.
27:52 JACK: They sold out fast.
27:53 So, Darren was like, why didnāt you bring more?
27:55 MG was like, because they take forever to make.
27:58 So, Darren started teaching MG about mass-producing electronics.
28:01 MG: Okay, letās learn how to do manufacturing.
28:05 Find somebody who can do certain steps.
28:07 So, we got one personā one factory who creates the raw PCB,
28:13 another factory who assembles the components, solders the components to the PCB,
28:18 and another factory who integrates those PCBs into a cable.
28:22 Even at that point, there was still plenty
28:24 that I had to do after receiving them; final assembly,
28:27 putting the hoods on, gluing the hoods on, running QA, calibrating them,
28:33 runningā putting firmware on them, packing them,
28:36 shipping them off to theā all that stuff.
28:39 But anyway, doing any of this outsourcing would have been a huge help for me,
28:43 and thatās what the goal is.
28:45 So, it took about five months of back and forth,
28:48 teaching the shop how to do what I needed.
28:51 So, I get the first batch.
28:53 This was the tail end of 2019.
28:55 [Music] I finished the assembly.
28:57 I do some basic tests.
28:58 I flash them, pack them,
28:59 and I send them off to the Hak5 warehouse in likeā I think it was January 1,
29:04 2020; start the online sales.
29:05 This is where I quickly learned it was going to take
29:09 a lot more work to have a manufacturer do what I needed.
29:14 Customers started having issues, and it was all over the board.
29:18 There was no obvious pattern.
29:20 So, I had to do a lot of investigating
29:22 to discover what was really going on here.
29:24 Just really weird problems.
29:26 It was probably an upstream manufacturing problem,
29:30 but I couldn't think about the upstream manufacturing.
29:35 I had mostly-finished product currently in hand,
29:40 and if I couldn't sell that, that was a gigantic loss, like financial loss.
29:46 Like, mortgage-the-house-level loss that was a little bit scary.
29:52 There were enough issues happening with customers that I just decided
29:57 to pause the sales and figure out what was going on.
30:00 JACK: He analyzed the cables coming back from the factory and found
30:04 that on the power supply inside the cable was a tiny, microscopic crack,
30:08 and to his horror, it was on over half the cables,
30:12 which meant his first batch of cablesā half of them had to be thrown out.
30:18 A huge financial loss for him.
30:19 He had to teach the manufacturer how to test for quality at every stage
30:24 of the build process in order to find exactly where the cracks were coming from.
30:28 He discovered at some point the manufacturer would throw all the finished
30:31 components into a bag to give to the next build stage,
30:34 and when they were getting all jostled around
30:35 in the bag is when the cracks would show up.
30:38 Typically, that may not be a problem, but since heās working with such small
30:41 components where silicon is exposed in some areas,
30:44 then it was damaging the circuitry.
30:46 So, he got that fixed and was back on track,
30:48 and he was back to selling the O.MG cables
30:50 to whoever wanted them online through the Hak5 shop.
30:54 These cables look amazing.
30:56 They look exactly like a normal USB cable,
30:58 one that you would charge your phone with, and you
31:01 would never be able to tell that itās a malicious one.
31:04 Itās supposed to be stealthy like that.
31:06 MG: One of my manufacturers lost an entire box of cables.
31:10 Could not account for it.
31:12 So, the way the cables are configured, they're not very useful, luckily.
31:18 They're not hot, so to say,
31:20 but thereās a good chance that this box just got shipped
31:24 to one of their customers who was expecting totally normal USB cables.
31:27 So, there is absolutely a chance that there
31:30 are some O.MG cables just floating out there.
31:33 I forget what the exact number is; like a hundred or so, which is kinda scary.
31:37 JACK: MG strikes me as someone who just
31:40 obsesses over making his cable better and better,
31:42 and itās amazing how heās constantly improving the manufacturing process
31:46 and the functionality and the build quality of the whole thing.
31:50 MG: For the first several years, I wasnāt trying to focus on profit here.
31:54 I was justā every dollar that we ended up getting that turned intoā be product,
31:58 Iād put it right back into improvements, R&D, because it was a passion project.
32:04 I mean, it still is, right?
32:07 But that just allowed me to focus on so many trivial things.
32:11 The cable clips themselvesā so, people would routinely lose their cables,
32:16 so we started creating these fluorescent clips that we
32:21 would include with the cables to prevent that, right?
32:22 You can take them off if you donāt want it or just keep it on, whatever.
32:27 But this wasā Iāll make this one short,
32:30 but itās another example of scale in a hilarious way.
32:33 Itās so simple.
32:34 So, Iām 3D-printing all of these little clips, these fluorescent clips,
32:39 and they're great when you got a few of them,
32:42 but when you got a hundred or a thousand in a bag, they start getting tangled.
32:46 So, thatās really annoying to pull out
32:49 tangled clips when you're trying to pack envelopes.
32:52 So, I redid the design.
32:53 Okay, now Iāve got tangle-free clips, you know,
32:56 and now we got the woven cables that are more snag-less and things like that.
33:00 How can I speed it up so I can get a bed
33:04 of 600 clips in a single 3D-printed bed without it cascading and falling apart?
33:09 How can I improve the labeling process
33:12 from a hand-held labeller to an automated-machine-done labeller?
33:17 It probably doesn't make financial sense to do it,
33:20 but itās fun to automate and obsess.
33:23 So, yeah, point being,
33:25 I have the opportunity of obsessing at the sacrifice of profit.
33:32 JACK: Now, over time, his cables have gone through many revisions,
33:35 a lot of feature upgrades, too.
33:37 So, if you were to buy an O.MG cable today, hereās what it can do.
33:40 MG: It comes in all types of different forms,
33:44 whether itās got a USB-A or USB-C active end.
33:47 In the passive end itāll have Lightning micro USB-C,
33:51 usually meant to emulate the aesthetics of exactly
33:55 the common cables that are out there.
33:58 It acts exactly like a normal USB data cable, right?
34:02 But itās got an implant inside,
34:05 as you can probably deduce by now, and that thing stays dormant.
34:10 But an attacker can remotely connect to it via Wi-Fi nearby,
34:14 or they can have the cable connect out
34:16 over the internet to a server you control anywhere.
34:19 It can also do some autonomous things like geofencing and triggering
34:23 things automatically based on wireless networks it does or doesn't see, right?
34:28 Okay, cool, but what does that do?
34:30 So, you get a whole web UI on a full or a laptop,
34:33 whatever it is, that gives you full control over this cable.
34:37 We already talked about keystroke injection payloads, emulating a keyboard.
34:41 We cranked up the speed at which these things
34:46 can run to nearly a thousand keystrokes a second,
34:49 added some mouse injection as well,
34:51 so you can navigate a mouse around the screen, click on stuff,
34:55 expanded the capacity of these things to store hundreds
34:58 of individual payloads if you want or just really giant payloads.
35:01 The name of the game is always just flexibility.
35:03 So, if you want one giant payload or two hundred tiny ones, cool.
35:07 You can do that for your need.
35:09 We added USB key-logging a while back.
35:11 So, if you deploy a cable between a keyboard and a desktop or a laptop,
35:16 which happens a whole lot in corporate spaces,
35:19 you can log those keystrokes if itās a full-speed keyboard.
35:23 Most recently we added kind of a novel communication link.
35:27 So, we're calling it HIDX StealthLink.
35:30 What it does isā imagine a network interface
35:34 that looks like a keyboard to the host.
35:36 So, it says, I am a keyboard,
35:37 and it looks like a keyboard if you open up Device Manager,
35:40 but itās got a bidirectional raw data link.
35:43 So, if you've ever used Netcat or something like
35:46 that to create little tunnels for data, same concept.
35:49 So, you can have a remote shell running
35:52 on the target thatās on a completely air-gapped machine.
35:55 It doesn't even have a network interface.
35:58 So, very cool.
35:59 I had also mentioned a lot of these other
36:02 types of features like the ability to run self-destruct,
36:04 the ability to do geofencing.
36:06 The self-destruct specifically is to wipe the data.
36:10 So, if you've got some proprietary malware on there you donāt want to be found,
36:16 if it gets lost, we can help wipe that.
36:18 If you got keylogs on there with sensitive data, like, I don't know,
36:22 passwords or whatever it may be, cool, we can wipe that.
36:26 You can also disable the cable so that it just stops acting like a cable,
36:31 and hopefully thatāll encourage your target to throw
36:33 the cable away and get it out of play.
36:35 Thatās kinda just a high level of all the different things it can do.
36:39 JACK: Yeah, this thing is pretty scary,
36:41 and itās one of those things that now that you
36:44 know a normal-looking USB cable can be an evil thing,
36:48 it makes you distrustful of all USB cables.
36:51 Like, if you see a random USB cable sitting around,
36:55 it might be some sort of trap that someone left for you,
36:59 hoping that you'll plug it into your computer
37:01 so that they can get into your computer.
37:03 Iāve got it in my hand here and Iām
37:05 looking at it compared to another cable I have, and it is identical.
37:10 Itās crazy how⦠MG: Nice.
37:12 Which one is it?
37:13 JACK: iPhone one, Lightning.
37:14 MG: C to Lightning or A to Lightning?
37:16 JACK: C to Lightning.
37:17 MG: Oh, so, funny story about that one;
37:19 if you hold up the Cā type C ends and look at the white hoods,
37:23 I delayed that cable byā I think it was a couple
37:28 months because it was 0.3 millimeters longer than the actual thing.
37:33 So, I was just like, oh, man, it matters.
37:37 It didn't really matter, but at the same time,
37:40 the guy who does the front-end work for us is blind.
37:44 He was a customer originally when we released the keylogger
37:48 edition of the cable, and he came to me.
37:51 Heās like, dude, Iāve gotā Iām feeling these two cables side by side,
37:55 and I cannot tell the difference.
37:57 So, that was amazing to me.
37:59 JACK: Yeah, itās just remarkable.
38:01 Going back to the ANT catalog and Cottonmouth,
38:05 I wonder if the NSA has bought a thousand of these to be like, oh,
38:12 this is so much cheaper than the $20,000 per unit we have,
38:16 and it has way better features,
38:17 and we donāt have to run the R&D and all that sort of thing.
38:21 You have any idea?
38:22 MG: I mean, Iāve heard some whispers that I probably shouldn't talk about,
38:24 but Iāll say this, is that thereās many reasons why that could occur,
38:29 which, I mean, sure, price pointā yeah, absolutely.
38:33 Maybe ease of use.
38:35 I can't really speak to what the product
38:38 experience is of their stuff, but I can suspect.
38:42 But hereās another thing, is deniability.
38:44 If you found a Cottonmouth cable, you're gonna know where that came from, right?
38:50 Or especially if you're certain intelligence services,
38:53 you're gonna have a good idea of who made this highly-custom hardware.
38:56 But if you're seeing something off the shelf,
38:59 thereās some deniability in there for NSA as an example, right?
39:04 Like, I don't know where that came from.
39:06 Thatās just a off-the-shelf O.MG cable, right?
39:08 So, I would imagineā yeah,
39:11 I have certainly talked with numerous people who are in that space
39:17 whether directly or kinda third parties employed by them to do
39:22 tests and stuff like that where these are absolutely in a whole
39:27 lot of those types of environments for various needs whether itās testing,
39:32 third-party assessments like red-teaming, stuff like that.
39:35 Iāve talked to police departments,
39:36 stuff like that, who are using it for all kinds of different needs.
39:40 JACK: Yeah, but again,
39:43 itās that interesting aspect of circumventing things, right?
39:49 MG: Yeah.
39:50 JACK: So, before, Cottonmouth was only available
39:53 to US intelligence agencies and maybe Five Eyes.
39:57 But now the O.MG cable is available to the world,
40:02 so all of NSAās adversaries also have
40:06 this, and that is interesting that itāsā the technology
40:12 isn't only in one personās hands now
40:14 but that thereās a level playing field of like, nope, weāve got that, too.
40:17 MG: Yep.
40:18 I mean, at the same time, I think it should be.
40:21 Like, if I could have made that the way I did,
40:25 I feel like others can make that, and therefore it was just a matter of time.
40:31 Whether or not we heard about it in public was probably the only question there.
40:36 JACK: Thatās an interesting way to look at it, right?
40:39 It used to be that only an exclusive group of people
40:43 could get their hands on such a thing, and now anyone can.
40:48 Yeah, thatās scary that this thing could be anywhere now,
40:52 but maybe the bigger danger here isn't when
40:55 the cable went public but when it was kept secret,
40:59 when the only ones who had it were shadows,
41:02 people who didnāt want you to know they had it,
41:05 people who didnāt want you to know this existed,
41:08 people who didnāt have to follow the law.
41:11 I mean, compare it to smallpox.
41:13 For centuries, people died of smallpox, and we had no idea why.
41:17 But then we discovered what it was and we learned how to contain it,
41:21 and then we learned how to fight it, and then we learned how to defeat it.
41:25 But in that process, we learned how to weaponize it,
41:28 and thatās the double-edged sword of knowledge.
41:30 We're in danger without it, but we're dangerous with it.
41:35 We're gonna take an ad break here, but stay with us because when we come back,
41:41 MGās gonna tell us stories about how this cable is used in the wild.
41:45 So, over the years, people have shared stories
41:48 with MG about how they're using his cable,
41:50 and have asked for some really interesting feature requests.
41:53 One story he was told was from someone whoās a red-teamer for the DoD,
41:58 the Department of Defense.
41:59 That is, his job was to try to hack
42:02 into the US governmentās networks to test their security.
42:04 MG: This team posed as an Xfinity tech via e-mail and phone.
42:10 So, they got a legit comcast.net
42:13 account which literally every Comcast customer gets,
42:17 but you got username@comcast.net.
42:20 They're just like, you know what?
42:21 We can pretend to be a Comcast employee with that, and I bet itāll pass.
42:25 It did.
42:26 So, after some back and forth with this target, they set up an appointment.
42:31 They found some Comcast/Xfinity clothing at a thrift store,
42:36 stuff like a hat and jacket.
42:38 They did some OSINT, found some fake IDs, printed those out.
42:42 They show up.
42:44 [Music] They say, hey, we only need access to the MPOE.
42:50 MPOE is main point of entry.
42:52 So, thatās where theyā the line comes into the building,
42:55 typically the basement or something like that.
42:58 Tends to be a lower-security area compared to the server room.
43:03 So, they're given access,
43:05 and they install a small device that allows them to remotely disrupt that line,
43:12 the main line of the ISP, in the future.
43:15 So, they leave, they wait a few weeks,
43:18 let everything kinda just settle, and then they start causing disruptions.
43:23 They return on site.
43:25 They ask to look at the MPOE first,
43:28 which lets them reclaim that remote device that they had planted.
43:32 They say, ah, itās not fixed.
43:34 I see you're having issues,
43:36 but we're gonna need to find the other end of this cable.
43:39 Where does this go?
43:40 They knew thatās gonna be going up to the server room, typically.
43:44 So, they brought them up.
43:46 They brought two supposed Xfinity techs up.
43:49 There was a camera in the server room.
43:53 So, they had two techs;
43:55 one tech would strategically block the camera with their back
43:59 each time the other needed to deploy a piece of hardware.
44:04 So, at first they deployed two different malicious network devices,
44:08 two different types of things,
44:10 but then they see a server with a monitor and a keyboard hooked up,
44:14 and then thereās a USB cable hanging off of it.
44:16 I think it was an ADA micro.
44:18 It seemed to be for charging a wireless mouse, right?
44:21 There was a wireless mouse nearby.
44:23 It was just like, dude, that is the perfect spot for an O.MG cable.
44:27 I think we got a perfect match in the kit.
44:30 So, they pull it out.
44:31 They noticed, oh, this cable even has a very distinct scratch on it.
44:34 Iām gonna scratch this cable, make it look perfect, right?
44:37 They were obsessed with the details.
44:39 The cable is already configured to connect to their guest
44:43 Wi-Fi and then call back to a C2 server.
44:46 They wait for an offsite teammate to confirm that the cableās
44:49 now connected not only to that, but back to their C2 server.
44:53 That means they got full remote connection from anywhere.
44:57 They were left unattended in this room for a little bit,
45:00 so they call the target back.
45:02 They're like, hey, I think the internetās fixed.
45:05 Can you check it out?
45:06 They use that same server that they were eyeballing toā oh yeah,
45:10 it looks like the internetās good,
45:11 which gave them a little bit more insight into whatās running on that server.
45:16 They leave and kinda start their initial work.
45:19 Theyāve got these tools in play.
45:21 Now, within a day, the target knew something was up.
45:24 They found at least one of those malicious network devices which
45:28 immediately led them to the next network device that was in there.
45:32 It got cleaned out.
45:33 Everything is fine.
45:34 JACK: What was the malicious network device?
45:36 Itās not the O.MG cable.
45:37 Itās⦠MG: Itās not, yeah.
45:39 Itās other hardware that is not as physically stealth.
45:42 JACK: Oh, okay.
45:43 So, they left it there as dropboxes, kinda thing.
45:46 MG: Yeah⦠JACK: Okay, gotcha.
45:47 MG: ā¦something like a dropbox.
45:49 It was slightly disguised, but itās visibly there.
45:52 Itās like a new thing.
45:54 So, they picked up on that, and immediatelyā okay, we got aā thereās an issue.
45:59 We donāt know how this got here; sweep the room,
46:00 cleared out⦠JACK: Okay, and this is kind of how pen tests go.
46:03 MG: Yeah.
46:03 JACK: Itās like, letās go at stages, right?
46:06 Letās first see if we can be super stealthy,
46:09 and then if we didnāt catch us, weāll be a little bit more sloppy⦠MG: Exactly.
46:12 JACK: ā¦and then if they donāt catch us,
46:14 weāll be overtly breaking rules, and if they still donāt catch us,
46:17 then they've got a lot to explain,
46:18 and we could try stealing company cars or something,
46:20 and whatās the next step, right?
46:22 So⦠MG: 100%.
46:22 JACK: ā¦Iāve heard these stories before,
46:23 and it sounds like thatās what they were doing.
46:25 Like, we're gonna put a super-stealthy thing in, a medium-stealthy,
46:28 and a very obviousā this thing shouldn't be here.
46:30 MG: Yeah, but the funny thing is they did
46:33 a whole remediation sweep and they didnāt catch the O.MG cable.
46:36 Itās stillā it was still in play afterā like,
46:41 hey, red alarm; something happened here.
46:44 Sweep it.
46:45 We found two malicious devices.
46:47 But the thing is the cable was dormant.
46:50 It hadn't run anything.
46:51 It was just sitting there connecting to their guest Wi-Fi, waiting.
46:56 So⦠JACK: Yeah.
46:57 I mean, what would have triggered the other device discoveries?
47:00 Were they doing stuff?
47:01 MG: Yeah, they were more active,
47:03 so definitely go lookingā but, you know, it depends.
47:06 What would you assume if you're like, oh, thereās malicious hardware in here?
47:10 What level of sweep do you need to do
47:13 to that room and how thorough does it have to be?
47:16 But, hey, the O.MG cable survives an active sweep.
47:19 So, the server had some constraints that made things a little bit difficult,
47:24 which was probably why they were a little less thorough,
47:28 which was, a) they had some EDR in their endpoint
47:32 detection-and-response tooling that would have
47:35 detected any form of malware persistence.
47:38 So, they can run a payload on this and deploy
47:42 some malware that would just live until the server rebooted.
47:46 Also, the entire OS was just completely wiped about once a week.
47:50 So, even if you did have persistence, thatās still getting wiped.
47:55 Thatās a pretty locked-down environment, right?
47:58 But since they had a cable attached physically at all times,
48:02 that was the persistence.
48:03 So, anytime they lost the malware connection,
48:05 they would just rerun that payload.
48:08 Boom, they're back in.
48:09 Theyād change the payload over the times,
48:13 but ultimately this allowed them to run and just work
48:18 completely undetected for what turned into a six-month period of time.
48:23 The only reason the exercise ended was because
48:25 theyā the contract came to an end and they
48:29 needed to wrap things up to explain the full
48:32 processes and procedures they were using for the op.
48:35 JACK: Is this kind of what you were hoping toā like,
48:38 this is exactly the story that I was wanting someone
48:40 to do this with, is stick it in a place,
48:43 have it be there forever, you can get in there whenever you want,
48:46 have the remote persistence, trigger payloads, get into systems,
48:50 and no oneās gonna detect you forever?
48:51 Thatās gotta be exactly what you were hoping, right?
48:54 MG: Oh, absolutely.
48:55 There was just so many likeā oh, yes,
48:56 you used a lot of the features to just really push
49:00 this, and it makes me happy 'cause itāsā are we doing Rickrolls?
49:04 Are we really pushing the boundaries and improving environments
49:07 and just doing some really cool James Bond shit?
49:12 Yeah, thatāsā I love that.
49:15 JACK: [Music] Because MG has brought this cable into the world,
49:18 heās met some very interesting people from all
49:20 around the world and heard some wild stories.
49:23 Like, there was this one person who was telling him
49:25 how he used the cable to get into an air-gapped computer.
49:28 That is, thereās no way possible to hack into it from outside.
49:32 The reason why the computer was air-gapped is
49:35 because it was part of a digital forensics lab
49:38 that was collecting evidence and looking at computers without
49:40 the risk of any of that data getting out.
49:43 MG: This group was hired to audit an entire security policy,
49:47 including the physical security of the building.
49:50 So, they monitor 24/7 with a whole bunch of cameras
49:54 at all sides of this building that they had deployed,
49:58 and it was really hard when there were guards present just constantly, 24/7.
50:03 Everything was fully access-controlled.
50:06 It was all logged.
50:08 It was all audited.
50:09 How are they gonna do this?
50:12 Of course, the goal was getā to gain
50:15 access to that evidence computer which was air-gapped.
50:19 Had access to that large SAN for storage via network.
50:24 After a whole bunch of discussion, they decided, you know what?
50:27 We're gonna use an O.MG cable.
50:29 JACK: Their first idea was to submit a hard
50:32 drive that needed to be forensically analyzed by that computer,
50:35 but then throw an O.MG cable in the package,
50:38 and hopefully the tech opens it up and pulls out the cable and says,
50:42 oh, Iāll use this to plug something in.
50:45 But they thought, no, that might not work.
50:47 They probably have their own USB cables in the lab,
50:49 and they're not gonna use the one in our package.
50:52 So, they decided to get a USB external hard drive.
50:55 You know, the ones where thereās a hard drive
50:57 with the little USB pigtail coming off of it,
50:58 and you just plug it in your computer and you can see it as an external drive.
51:02 Well, they cut that little USB pigtail off and then snipped off
51:05 the end of the O.MG cable and soldered it onto this hard drive,
51:09 because the O.MG cable only has one active end,
51:12 and the other endā it really isn't needed for anything.
51:14 So, they just took the end with all the functionality and stuck it
51:17 into this hard drive so that when the forensic tech opened it up,
51:21 they would have no choice but to plug in this USB hard drive into the computer.
51:25 MG: Now itās integrated to that drive,
51:26 and the drive looks like a totally normal drive.
51:29 Itās the cable of that drive that suddenly is the problem, and it stays dormant.
51:34 So, yeah, put all these different payloads on there in advance.
51:38 The most important note; they ran a boot payā so,
51:41 a boot payload on this thing is it runā on an O.MG cable,
51:45 it runs every single time the cable powers on, so when you plug it in, right?
51:49 So, they include a geofence that would check to make sure itās in bounds.
51:54 Itās like, itās at this evidence computer,
51:57 whichā they were given some insider info on this one to make it safe.
52:00 They're like, okay, hereās the network that you should use to keep this in play,
52:05 basic checks to ensure it only ran on that evidence system,
52:10 so, something an actual adversary wouldn't do,
52:12 but when you're a third party trying to keep everything safe,
52:16 you do a little extra.
52:18 So, they placed the hard drive in an envelope with theā letās just
52:22 say required labeling that they were able
52:25 to find via some public record requests.
52:27 Say, hey, this is probably what this envelope
52:30 should look like to make it believable.
52:33 So, they turned it in at the front desk via a courier
52:37 service which was totally not a courier service; it was them.
52:40 They advised, hey, this is for an active thing.
52:44 Itās needed for legal discovery.
52:46 Probably need it soon.
52:48 Done, right?
52:49 Now, the drive sat for two weeks unplugged, just waiting, right?
52:53 But then it got plugged in, and once it was,
52:57 they got a notification that kinda detected when it would come up,
53:01 and they left it plugged in for six days to do a full image of this drive.
53:06 So, they had intentionally kinda downgraded the speed to USB
53:09 2.0 to get a USB 2.0 connection on a four-terabyte drive.
53:13 So, they were imaging this thing for six days,
53:17 which means six days they had an O.MG cable plugged into the evidence computer.
53:21 Now, they could have set up a bunch of automated
53:24 payloads and stuff like this, but for damage control,
53:26 they decided to keep an active human in the loop for this whole thing.
53:30 So, when it got plugged in, they got the alert.
53:33 They returned and accessed the cable from basically
53:36 the lobby or the parking lot, right?
53:39 One payload allowed them to create and modify files
53:43 on both the local system and, more importantly, the SAN.
53:47 Thatās where all the evidence is, right?
53:50 You can manipulate the evidence.
53:51 They have just proven that.
53:53 Evidence is supposed to be just pure and untouched.
53:56 Then they noticed thatā okay, yeah,
53:59 obviously the SANā you need a network to connect to it,
54:03 so it was connected via Ethernet from this machine.
54:05 But they learned that while the evidence machine was
54:09 supposed to be air-gapped, it was only by DNS.
54:12 So, instead of doing a domain name connection out,
54:17 you just connect out via IP address, and suddenly, hey, itās working.
54:22 You can connect out to the internet by just going direct via IP.
54:27 Boom.
54:27 Now they got the ability to exfil evidence
54:32 from the storage device out over the internet.
54:37 I think you can immediately assume some
54:41 terrible scenarios where thatās a big problem.
54:45 JACK: How prolific is this cable?
54:48 How many companies out there are using it?
54:51 MG: One day Iāll probably find a way to disclose that, but basically,
54:57 I don't know many places that donāt have one.
55:02 JACK: What?
55:04 MG: Yeah, itāsā Iām continually amazed.
55:07 I learn about new places that I didnāt even know exist.
55:11 Like, wait; a) you exist.
55:13 Thatās crazy.
55:14 B) You have my stuff?
55:16 What?
55:17 Okay, cool.
55:18 Itās a wild ride going fromā Iām
55:21 just making something that I thought was borderline
55:23 art in my kitchen to all of these types of stories I am telling you.
55:29 Itās a little hard to digest sometimes,
55:31 but at the same time, Iām trying to take it very seriously.
55:34 JACK: Yeah, but I mean, Hak5 or even your own website could be used
55:40 by these companies if you do know which ones.
55:44 MG: Oh, I mean, yeah, I think that would be bad form.
55:46 Thereās a lot of companies that probably donāt want that info out there.
55:49 I think haveā I will list the media that itās
55:53 been seen on, like Nat Geo and stuff like that.
55:57 I just saw the O.MG cable in a Netflix episode, apparently, of a zero-day.
56:02 They're talkā I think it was Robert De
56:04 Niro talking about the O.MG cable on screen,
56:07 and I think Jesse Plemonsā face was in there.
56:10 Iām like, dude, what?
56:11 Thatās wild.
56:12 JACK: Okay, so, Hak5 is who sells these things.
56:17 Is there anyone they donāt sell to?
56:20 MG: Yeah, soā absolutely.
56:22 They have a couple ways to think about this, and Iām gonna
56:27 just generalize it here a little bit to make it easier to understand.
56:30 But basically you can kinda think of three categories of countries,
56:34 first being countries who are explicitly allowed.
56:38 You could kinda think of those as friendly NATO countries and Five Eyes, right?
56:44 Then the second category would be countries who are explicitly disallowed.
56:49 So, think sanctioned countries like Iran and North Korea.
56:54 But then you got this third categoryā is
56:57 countries who are on neither of those lists.
57:00 So, if the goal was to make as much money as possible,
57:05 you'd be selling to that third group.
57:07 But if you're trying to do more than the legal minimum,
57:11 you might avoid selling to that third group,
57:14 especially if you're operating in a space
57:16 that many people perceive to be a gray area.
57:19 Even if itās not a gray area, perception still matters.
57:22 But Hak5 only sells explicitly to the allowed
57:26 countries and skips over that third group.
57:30 Itās a voluntary decision on their end,
57:33 but itās also a factor of kinda having to be
57:36 more diligent when you have tools that are more capable.
57:40 So, toys versus professional tools kinda steps up the level of attention
57:46 to following the rules and going a little bit over the minimums, right?
57:53 JACK: Those rules fascinate me.
57:55 Itās really export controls that the US government has set
57:58 up where certain electronics can't be sent to certain countries.
58:04 The classic one that just came to mind 'cause of recent
58:09 events was theā DeepSeek surprised us all with their AI ability.
58:14 MG: Yes.
58:14 JACK: Then it turns out that they had tens of thousands of Nvidia cards,
58:19 which I believe is against the export control rules.
58:24 Nvidia is not allowed to send tens of thousands of these cards to China.
58:29 So, itās just like, well, how come Nvidia didnāt get shut down or fined
58:34 or slapped on the wrist by the US government⦠MG: Right?
58:36 JACK: ā¦for selling so many of these?
58:38 At some point they gotta be like, okay, we need more, we need more.
58:42 Okay, who are you distributing this to?
58:44 Oh, donāt ask.
58:45 Okay, so, I don't know, I just wonder if theseā the export control rules even
58:50 matter or if they have teeth or if anyone follows them,
58:54 'cause honestly, Iāve filled out forms
58:56 before and sometimes itās just a checkbox;
58:59 do you live in any of these countries?
59:01 No.
59:02 Okay, good, weāll send it to you, then.
59:04 MG: Right?
59:04 I think the Nvidia oneās a pretty good example.
59:08 I don't think all of their products are export-controlled.
59:12 So, this probably goes back to the capabilities
59:15 and the toys versus the upper-end stuff,
59:18 and can you do good or bad things with them?
59:23 Almost dual-use kinda territory.
59:24 Ultimately any restriction,
59:26 kind of as what you were getting at, can be bypassed.
59:30 But introducing any degree of friction generally is
59:34 good if you're trying to stop a certain activity.
59:38 Perfect controls are hard.
59:39 Itās a balancing game much like almost all security defense is, right?
59:44 We often get that wrong in the security industry.
59:46 Itās like, oh, itās not perfect, so itās not worth doing.
59:49 Itās like, not necessarily.
59:50 Speed bumps help to some measurable degree in a large scale.
59:56 But itās worth reminding; again,
59:57 Hak5 is the only entity I sell to, butā and as much
1:00:01 as I love not having to worry about it for my own stuff,
1:00:05 I absolutely love supply chains in general,
1:00:08 especially when you look at them from the offensive security mindset.
1:00:12 So, Iām totally with you in terms of being fascinated.
1:00:15 I think that stuff gets way too little attention, and if you focus on it,
1:00:20 you can wield crazy amounts of power if you understand it.
1:00:24 So, yeah.
1:00:25 JACK: Okay, so you've told us a few stories of your cable being used for good.
1:00:30 Do you know any instances of it being used for bad?
1:00:33 Does anyone tell you about those stories?
1:00:35 MG: So, I don't know of any stories specifically for my stuff,
1:00:39 but Hak5 actually had a semi-recent example that is super
1:00:43 applicable here with their Wi-Fi Pineapple and the Russian GRU.
1:00:48 So, letāsā what was this?
1:00:52 So, the Wi-Fi Pineapple, itās specifically designed not to be perfect.
1:00:56 This is for doing security pen tests, right, not for evading.
1:01:00 Thatās the product design.
1:01:01 So, simple things like MAC address randomization are omitted.
1:01:05 What else?
1:01:06 Thereās a certain way it sends management frames that could make it
1:01:12 harder to fingerprint if they modified how that works, but they donāt.
1:01:15 Itās intentional, 'cause the product is meant to enable pen testers
1:01:19 to do Wi-Fi audits where they've got permission not to evade the detections.
1:01:25 So, anyway, late 2018,
1:01:27 Russian GRUs caught in Brussels targeting, I believe, UN facilities,
1:01:32 rightā not the place if you were making
1:01:35 this that you kinda want to see your stuff showing up.
1:01:37 But the Wi-Fi Pineapple was being used in the trunk of a car,
1:01:42 and that explicit choice to not make the device super
1:01:45 stealthy definitely helped law enforcement track this down and figure
1:01:49 out what was going on probably a lot faster
1:01:52 than if they made other choices in their product design.
1:01:55 JACK: Well, Iām surprised thereās not
1:01:58 more malicious intent stories, becauseā you know,
1:02:02 I just go to the grocery store today
1:02:04 and the cash registerā I could see the back of it.
1:02:08 I can plug something into the back if I wanted,
1:02:11 and there are so many other restaurants
1:02:14 and stuff where Iāve seen a computer exposed.
1:02:15 At the bankā I was at the bank, and the back of their computer was easily there,
1:02:19 thatā I could just pull a cable out of my backpack,
1:02:22 shove it in, and they wouldn't know.
1:02:24 Iām surprised thereās not just stories of people
1:02:27 using this to rob grocery stores and banks.
1:02:30 MG: I mean, thereā behind the scenes, and I don't think a lot of people see it,
1:02:35 I put a lot of work into just gaming
1:02:38 out all of the potential risks to minimize that.
1:02:43 Itās not perfect.
1:02:44 Itās totally possible that bad things will eventually happen.
1:02:47 There will be a news story.
1:02:49 But I think over the last five to six years itās been sold,
1:02:53 I personally cannot point to any news stories where a bad thing happened,
1:02:58 whereas if you compare it against other peer
1:03:00 devicesā letās just say thatā in the field,
1:03:03 I think thereās quite a bit more news stories just comparatively,
1:03:06 if we're taking a sampling.
1:03:08 So, that track record Iām just very happy with so far.
1:03:12 JACK: I mean, you canā I assume that people
1:03:16 are buying this and using it for malicious intent.
1:03:20 I mean, you self-described the thing as a malicious cable, right?
1:03:23 So, we can assume that people are gonna do bad things with it.
1:03:28 But I worry about your liability here because
1:03:34 if you're saying I have a malicious thing, this thing is very dangerous,
1:03:40 you could do this and this and this with it, and someoneās like, great,
1:03:44 Iām gonna go do that with itā but it says
1:03:46 hereā I have the package in front of me and it
1:03:49 says do not use this unless itās on a network
1:03:53 that you areā have permission to use and such like that.
1:03:56 I wonder if thatās enough to make you
1:03:59 not liable for people actually using this maliciously.
1:04:02 MG: Yeah, so⦠JACK: āCause,
1:04:04 the thing is is that you've got people who are malware creators out there,
1:04:08 botnet creators; they donāt unleash it to the world.
1:04:11 They donāt spread it.
1:04:12 They donāt infect people.
1:04:13 They just make it, and then they're the ones who are going to jail for this.
1:04:17 MG: Yeah.
1:04:18 Thereās definitely some differences there,
1:04:20 but just, is that legal message enough?
1:04:23 Absolutely not.
1:04:23 Not for me.
1:04:24 When you're in the gray areas, you can't just do the minimum.
1:04:29 Itās also important to point out that legal is not the same thing as ethical,
1:04:34 which is, again, why itās not enough for me.
1:04:37 Product design, like I mentioned,
1:04:39 detectable defaults, they're not legally required,
1:04:41 but I think they're critical in terms of reducing harm.
1:04:46 Community managementā like not just dropping a tool
1:04:48 and then letting the Lord of the Flies happen, for instance, right?
1:04:52 We're talking about a lot of nuances.
1:04:54 You and I right now are talking about a lot of nuances
1:04:58 that a lot of people haven't spent the time thinking about.
1:05:01 So, I think itās good to try and share those nuances
1:05:04 and just generally keep things from going
1:05:07 off the rails within those communities, 'cause this, again, helps the outcomes.
1:05:11 Itās sort of like open source.
1:05:13 A lot of people will just drop code and call it done,
1:05:16 but it takes a lot more work, in my opinion, to do it responsibly.
1:05:20 You gottaā real open source is code that you've cleaned up,
1:05:24 that you've maintained, and the community around it has maintained, too.
1:05:27 It takes work and effort.
1:05:29 But itās also important thatā this isn't just about self-preservation,
1:05:35 which is kinda the topic here.
1:05:37 Itās about community preservation as well, which is really important.
1:05:42 So, one entity just being too reckless is
1:05:45 basically all it takes to ruin it for everybody,
1:05:47 and thereās tons of examples of that type of thing happening.
1:05:51 Obviously if my goal was to push the limits of the law,
1:05:54 then sure, my answers would be different.
1:05:56 But my goal is to push the limits within security.
1:05:59 I guess thatā I want to keep focusing on that, and thatās why I spend tons
1:06:06 of time thinking about all the ways I can
1:06:08 reduce harm and risk in all the other areas.
1:06:11 This cable started off as just a one-off,
1:06:14 a proof of concept, but it moved over time into large manufacturing,
1:06:19 sales, and the way I think about the risks
1:06:23 has evolved along the way right alongside that.
1:06:26 JACK: Yeah.
1:06:27 So, you talk about supporting the community;
1:06:30 I assume thatās the ethical hackers, the white hats of the world⦠MG: Yep.
1:06:35 JACK: ā¦that have permission.
1:06:36 MG: Yeah.
1:06:38 JACK: And thatās great that thatās
1:06:40 your intent to help improve security for networks,
1:06:44 to help people test it ethically, but that intent, I think,
1:06:50 doesā is what matters in the eyes of the law and a lot of situations.
1:06:57 You just told us that you've sold these things
1:07:00 in the back alleys of Defcon and dark corners.
1:07:04 Defcon in general is a place that has malicious actors and criminals.
1:07:10 Weāve seen people get arrested there and such like that.
1:07:14 So, I wonder if thereās any sort ofā if thatās proof enough just to be like,
1:07:20 no, this guy sells it at Defcon; of course heās got malicious intent.
1:07:23 Thereās no way heās doing itā like, he would be selling it at a legit
1:07:27 conference thatās just all about securing and not hacking.
1:07:31 This is a hacker conference.
1:07:33 Thereās just something there thatā and not just that; thereāsā
1:07:39 people might come to you and theyād be like,
1:07:41 hey, I want this feature, and you're like, oh,
1:07:43 thatās a good idea, and you add that feature.
1:07:46 Maybe thatā you judge them first and be like,
1:07:50 wait, hold on, who do you work for?
1:07:52 Do you have permission?
1:07:53 Or do you hear people be like, man,
1:07:55 I keep plugging it into the bank and the bank keeps popping me.
1:07:58 I need a feature to be more stealthy.
1:08:00 Then you're like, wait, hold on, Iām not gonna help you.
1:08:03 Thereās gotta be this world of who you actually do business
1:08:06 with and who you donāt or who you help and who you donāt,
1:08:09 because, again, that intent matters.
1:08:11 If thereās a criminal coming to you and saying, hey,
1:08:14 I need this for criminal reasons, do youā what do you do there?
1:08:18 Because thatās where the intent comes in, right?
1:08:21 MG: Yeah, so, helping could be, again, anything, right?
1:08:25 It could be operational advice for running an op,
1:08:28 it could be feature changes or additions.
1:08:30 It could even be custom hardware.
1:08:31 Iāve been offered thirty grand for a cable,
1:08:33 and I have turned it down because itās like, hey, this could risk the future.
1:08:39 But thereās also other things.
1:08:42 People will come in, theyāll haveā they're clearly not in the space
1:08:48 of information security and they're trying to do some spouseware stuff.
1:08:51 Iām like, as soon as I get a hint of that, itās like, immediately no.
1:08:54 Also, what you're doing, I just have tons of issue with.
1:08:59 You need to redirect this.
1:09:01 Spend your money on couples therapy or something.
1:09:04 This cable is not a marital aid.
1:09:07 JACK: Well, yeah, see?
1:09:08 This is what I imagine, right?
1:09:10 So, thereās these privacy phones of the world,
1:09:13 and they specifically wanted to help criminals, right?
1:09:16 So⦠MG: Yes.
1:09:16 JACK: ā¦they would enterā they would get them
1:09:19 in the hands of drug dealers and such and say,
1:09:22 what can we do to make these phones more private?
1:09:25 What features do you want?
1:09:26 Thatās what made the people who made the privacy phones go to prison.
1:09:30 We have phones that are secure, even the iPhone, right?
1:09:33 Itās secure to some degree, and you donāt see the Apple team going
1:09:37 to prison because they're making things private or secure.
1:09:40 But itās the fact that theyā those other privacy
1:09:43 phone creators were doing things to work with criminals.
1:09:49 So, I imagine some, I don't know, street hacker gang being like, alright, MG,
1:09:54 we got all these cables but we need it to be one step better here.
1:09:55 We need you to put this in.
1:09:57 I just imagine this world where people
1:09:59 are approaching you and you've gotta be like,
1:10:02 sorry, I will probably go to jail if I help you, so, no.
1:10:06 MG: Again, kinda like as you were pointing out there,
1:10:09 I don't do this for just anyone.
1:10:10 I get to know who they are, who Iām giving custom help to.
1:10:15 Actually, so, the operational stories Iām
1:10:17 sharing with you were from those relationships.
1:10:19 Ultimately, you need to do some due diligence,
1:10:22 kinda like you were saying; contact the entity being targeted,
1:10:25 verify a contract for offensive work is
1:10:28 in place with the other person asking for help,
1:10:31 simply verifying the identity of the entity
1:10:34 asking for help to ensure they're legit,
1:10:36 definitely not just offering it up to anybody.
1:10:40 I have turned down very large offers of cash
1:10:47 because it wasnāt exactly where I wanted it to be.
1:10:55 (Outro): [Outro music] A huge thank you to MG
1:10:57 for coming on the show and sharing these stories with us.
1:10:59 You can find more about him by visiting his website, which is o.mg.lol.
1:11:04 This episode was created by me, your pseudo-mama, Jack Rhysider.
1:11:08 Our editor is the last jpeg, Tristan Ledger,
1:11:10 mixing by Proximity Sound, intro music by the mysterious Breakmaster Cylinder.
1:11:14 Sometimes I feel like the biggest cybersecurity
1:11:17 threat to myself is my future self,
1:11:19 that version of me who forgets to update software
1:11:22 or reuses a password or falls for a phishing e-mail.
1:11:25 So, to stay safe, I started locking myself out of my own accounts.
1:11:29 Letās just say future me and past me now officially hate each other.
1:11:45 This is Darknet Diaries.