If you plug a USB drive into Microsoft Windows, in many cases it will try to do things “for you” with the drive. Not a great idea. There could be malware lurking on that USB drive.

There are a couple of things you can do to help mitigate the issue. These tips assume Windows 11.

Turn off Autoplay

  • Open Settings. Press Windows + I to open the Settings app.
  • Go to Bluetooth & devices. In the left sidebar, click on “Bluetooth & devices.”
  • Select Autoplay. Scroll down and click on “Autoplay.”
  • Turn Off Autoplay. You’ll see a toggle switch labeled “Use Autoplay for all media and devices.” Turn this off.

This will turn it off completely. You can, if you want, make individual settings for different types of devices.

Deny Execute Access (Pro or Enterprise versions of Windows 11)

  • Open Group Policy Editor. Press Windows + R, type gpedit.msc, and press Enter.
  • Navigate to the Removable Storage Access Policies. Go to Computer Configuration > Administrative Templates > System > Removable Storage Access.
  • Modify Policies. You can enable the policy “Removable Disks: Deny execute access” to prevent execution from removable drives.
  • Apply and Reboot.

Note, there are some cases where you may want to execute scripts or programs from a removable drive. If that’s the case, you may not want to do this, or make a note of it so you can re-enable if needed.

  • @JusticeForPorygon
    link
    562 months ago

    Uhhh… Shouldn’t you just not plug random shit into your computer?

    • BoozillaOPM
      link
      English
      212 months ago

      Think of it as a seatbelt. You don’t plan on crashing your car, but shit happens. It’s even possible a brand new USB drive from a “reputable” company could have something on it.

    • @Treczoks
      link
      152 months ago

      You forgot the lack of mental capacity in the average windows victim.

    • @Tujio
      link
      112 months ago

      It’s surprising how many people will plug in a random USB drive that they find. Apparently that’s how the CIA got the Stuxnet virus into Iran’s system and nerfed their centrifuges back in the day.

    • @RustyNova
      link
      4
      edit-2
      2 months ago

      Usb killer: you guys do things with the computer?

    • anar
      link
      fedilink
      12 months ago

      Yeah but maybe someone else does it