PCMag editors select and review products independently. If you buy through affiliate links, we may earn commissions, which help support our testing.

Programmer's USB Cable Can Kill Laptop If Machine is Yanked Away

The solution is designed to act as a kill switch if a thief ever tries to steal your laptop in a public place. The software engineer Michael Altfield published a blog post on how to create the USB 'kill cord' for only $20.

 & Michael Kan Principal Reporter

Our team tests, rates, and reviews more than 1,500 products each year to help you make better buying decisions and get more from technology.

Our Expert
LOOK INSIDE PC LABS HOW WE TEST
65 EXPERTS
43 YEARS
41,500+ REVIEWS

Imagine you're at a coffee shop, and then someone steals your laptop right when you're looking away. It's a rare, but scary scenario. And because our laptops contain so much sensitive information, it means the thief could have access to your entire digital life.

Device encryption provides one solution. But what happens if you've already logged in, and your laptop's lid is open? Well, a San Francisco-based computer programmer has come up with a potential solution. On Thursday, Michael Altfield published a blog post on how Linux laptop owners can build a $20 killswitch to automatically shut down or erase their machine if it's ever yanked away from them.

His solution, dubbed "BusKill," is actually pretty straightforward. On a Linux laptop, you can add a rule on the software's device manager to trigger an action anytime a USB drive is removed. The same rule, which is only a few lines of computer code, can also be calibrated to work on a specific USB stick.

BusKill

Altfield decided to apply the rule to a $4 USB drive he bought. Then he connected the drive to a one-meter long cable, which can attach to his belt. The whole setup can cost from $20 to $45 using off-the-shelf parts, and essentially creates a "kill cord" between you and your computer. In the event someone tries to steal the laptop, the connected USB drive will pop out, triggering the machine to activate the lock screen or shut down.

He's posted a video of his solution in action, which relies on a magnetic USB adaptor to let the kill cord easily disconnect from the machine without damaging the laptop or the cord.

"We do what we can to increase our OpSec (operational security) when using our laptop in public," Altfield wrote in his blog post. "But even then, there's always a risk that someone could just steal your laptop after you've authenticated."

Ironically, his solution may have been inspired by how federal agents arrested the convicted cybercriminal Ross Ulbricht, who ran the online black marketplace Silk Road. Federal agents had to come up with a way to grab his laptop while it remained open and logged in. So they created a diversion: While Ulbricht was with his laptop at a library, two federal agents posed as romantic partners pretending to have a verbal spat. This gave them an opening to grab the laptop while Ulbricht was distracted.

Altfield didn't immediately respond for comment. But theoretically, a user could also program BusKill to "self-destruct" a machine with a memory wipe. His blog post has instructions on creating the cord for both USB-Type A and USB-C Linux machines.

About Our Expert

Michael Kan

Michael Kan

Principal Reporter

My Experience

I've been a journalist for over 15 years. I got my start as a schools and cities reporter in Kansas City and joined PCMag in 2017, where I cover satellite internet services, cybersecurity, PC hardware, and more. I'm currently based in San Francisco, but previously spent over five years in China, covering the country's technology sector.

Since 2020, I've covered the launch and explosive growth of SpaceX's Starlink satellite internet service, writing 600+ stories on availability and feature launches, but also the regulatory battles over the expansion of satellite constellations, fights with rival providers like AST SpaceMobile and Amazon, and the effort to expand into satellite-based mobile service. I've combed through FCC filings for the latest news and driven to remote corners of California to test Starlink's cellular service.

I also cover cyber threats, from ransomware gangs to the emergence of AI-based malware. In 2024 and 2025, the FTC forced Avast to pay consumers $16.5 million for secretly harvesting and selling their personal information to third-party clients, as revealed in my joint investigation with Motherboard.

I also cover the PC graphics card market. Pandemic-era shortages led me to camp out in front of a Best Buy to get an RTX 3000. I'm now following how the AI-driven memory shortage is impacting the entire consumer electronics market. I'm always eager to learn more, so please jump in the comments with feedback and send me tips.

The Best Tech I've Had:

  • My first video game console: a Nintendo Famicom
  • I loved my Sega Saturn despite PlayStation's popularity.
  • The iPod Video I received as a gift in college
  • Xbox 360 FTW
  • The Galaxy Nexus was the first smartphone I was proud to own.
  • The PC desktop I built in 2013, which still works to this day.

Read full bio