USB drives are safe when they are yours, bought from a trusted seller, encrypted, and used only on computers you trust. They become dangerous when the drive is unknown, shared carelessly, or unencrypted: it can carry malware, act as a fake keyboard in a BadUSB attack, or leak every file on it if lost or stolen.
Key takeaways
- Never plug in a USB drive you found or received unexpectedly — hand it to IT or security staff instead.
- Encrypt any drive that holds personal or work files, and keep a backup copy somewhere else.
- BadUSB devices look like ordinary flash drives but act as keyboards, so scanning files alone cannot catch them.
A USB drive is one of the simplest tools you own — and one of the easiest ways for an attacker to reach your computer. The drive itself is not the problem. The problem is what is on it, who else has touched it, and whether anyone could read it if you lost it.
What are the risks of USB drives?
USB drives carry four main risks: malware hidden in files, devices that pretend to be keyboards, data theft if the drive is lost, and files lost forever if the drive fails. Each one is preventable, but each one needs a different habit.
CISA warns that attackers use USB drives to infect computers with malware, steal information directly from a machine, and spread infections from one computer to the next. A drive that looks ordinary can do all three, which is why the agency's first rule is simple: do not plug an unknown drive into your computer.
The risks split into two groups. The first is the drive as storage: files on it may be infected, and files you copy onto it may be readable by anyone who finds it. The second is the drive as a device: the hardware itself may be tampered with, and your computer trusts USB hardware by default.
Loss is the most common risk by far. CISA notes that the most obvious danger is simply that small drives are easily lost or stolen, and if the data is not encrypted, anyone who has the drive can access all of it.
| Drive | Main risk | Safe to use? |
|---|---|---|
| Your own, encrypted | Drive failure only | Yes, with backups |
| Your own, unencrypted | Anyone can read lost files | Only for non-sensitive files |
| Shared or borrowed | Malware from other computers | Only after a full scan |
| Found or mailed to you | Malware or BadUSB device | No, never plug it in |
Is it safe to plug in a USB drive you found?
No. Never plug in a USB drive you found in a car park, lobby, airport, or office, even to identify its owner. Hand it to your IT team or to security staff at the location instead.
Curiosity is the attack. Researchers have repeatedly shown that a large share of people plug in drives they find, and attackers count on it. The drive may contain malware that runs when you open a file, or it may be a BadUSB device that starts typing commands the second it connects.
The same rule applies to drives that arrive by post. In January 2022 the FBI warned that the FIN7 crime group was mailing USB devices to US companies in the transportation, insurance, and defense industries, disguised as gifts from Amazon or as health guidance from the Department of Health and Human Services. Plugging one in launched a keyboard attack that downloaded ransomware, as BleepingComputer reported.
What is a BadUSB attack?
BadUSB is an attack in which the firmware inside a USB device is reprogrammed so the device pretends to be something else — usually a keyboard. Once plugged in, it types commands that download malware, change settings, or open a back door.
The research comes from Security Research Labs (SRLabs). In 2014, Karsten Nohl and Jakob Lell showed at Black Hat that the controller chips inside ordinary flash drives had no protection against reprogramming, and that a reprogrammed drive could emulate a keyboard, spoof a network card to redirect traffic, or load malware before the operating system even starts.
What makes BadUSB hard to defend against is that antivirus software cannot inspect USB firmware. As SRLabs put it, no effective defenses from USB attacks were known at the time, because malware scanners cannot access the firmware running on USB devices, as The Register reported.
That does not mean you are helpless. BadUSB needs physical access: someone must get a tampered device into your hands or your port. Refusing unknown devices, blocking unapproved USB hardware at work, and keeping your computer locked when you step away all cut off that path.
Can a USB drive give your computer a virus?
Yes, in two ways. Ordinary malware rides in the files on the drive and runs when you open them, while a tampered device can act immediately without you opening anything at all.
The file route is the older one. An infected computer copies malware onto every drive connected to it, and the next computer that opens those files gets infected too. This is how worms spread through offices and schools, and it is also how the Stuxnet worm reached isolated systems: infected drives carried it across the air gap.
Modern Windows no longer runs programs from a USB drive automatically, which closed the old AutoRun hole. But a booby-trapped document, shortcut, or installer still works if you double-click it. That is why scanning matters: right-click the drive and scan it before opening anything, especially if the drive has been used on another computer.
Your antivirus helps here, but only against the file route. A BadUSB device does not need to store a malicious file at all — it types the attack itself. If a window suddenly opens and text starts typing itself after you plug something in, unplug it immediately and disconnect from the network.
Are USB drives safe for storing important files?
USB drives are fine as a portable copy of important files, but they are a poor place for the only copy. Flash memory can fail without warning, and a small drive is easy to lose, drop, or leave in a pocket through the wash.
The safe pattern is the 3-2-1 rule in miniature: keep your files on your computer, back them up to the cloud or an external hard drive, and use the USB drive as the portable third copy. If the drive dies, you lose nothing that matters.
Encryption decides whether a lost drive is an inconvenience or a breach. An unencrypted drive with tax returns, client data, or medical records hands all of it to whoever finds it. An encrypted drive hands them nothing. CISA's guidance is direct: use passwords and encryption on your USB drive, and keep the information backed up in case the drive is lost, as CISA advises.
Also think about where the drive has been. A drive used on a shared or public computer may have picked up malware, so scan it before you copy files back to your own machine. And keep personal and work drives separate, as CISA recommends — never mix the two.
How do you use a USB drive safely?
Use only drives you bought yourself from a trusted seller, encrypt anything sensitive, scan drives that have touched other computers, and keep backups elsewhere. Those four habits cover almost all of the risk.
- Buy from trusted sellers. Cheap drives from unknown sellers may be counterfeit, with less capacity than advertised, or tampered with. Stick to known brands and reputable shops.
- Encrypt sensitive files. On Windows Pro, right-click the drive and turn on BitLocker To Go. On a Mac, right-click the drive in Finder and choose Encrypt. Use a strong password you do not reuse elsewhere.
- Scan before you open. When a drive has been used on another computer, right-click it and scan it with your antivirus before opening any file.
- Set AutoPlay to take no action. In Windows Settings, under Bluetooth and devices, set AutoPlay for removable drives to "Take no action" so nothing opens on its own.
- Eject properly. Always eject the drive before pulling it out. Yanking it mid-write corrupts files and shortens the drive's life.
- Keep work and personal drives apart. Do not plug a personal drive into a work computer, or a work drive into a home computer, unless your IT policy allows it.
- Back up what is on the drive. If the files matter, a copy should exist somewhere the drive is not.
If you use a drive at work, follow your employer's policy first. Many companies only allow approved, encrypted drives, and some block USB storage entirely. That is not paranoia — it is the same control the FBI's guidance points to for stopping mailed-device attacks. When you set an encryption password, make it long and unique — our free password generator can create one in seconds.
Should businesses block USB drives?
Most businesses should restrict USB storage rather than banning it outright: allow only approved, encrypted company drives, and block everything else. That stops both lost-drive leaks and BadUSB attacks from unknown devices.
Device control is built into the tools many companies already own. Microsoft Defender for Endpoint and Intune can allow USB storage only from specific hardware IDs, and similar controls exist in most endpoint protection products. Staff get the drives they need; unknown devices simply do not work.
The policy matters as much as the technology. Staff need to know what to do with a found drive, who to call about a suspicious package, and why personal drives do not belong on work computers. The FIN7 campaigns worked because someone, somewhere, plugged the drive in. Training that one decision is worth more than any scanner.
Small businesses without endpoint tools can still do the basics: buy a set of encrypted company drives, number them, keep a list of who holds which one, and tell everyone that found drives go to the owner or manager, never into a computer. Our small business cybersecurity checklist covers device controls alongside backups and updates.
What should you do if you plugged in a suspicious USB drive?
Unplug it right away, disconnect from the network, and do not open any files. Then scan the computer, change passwords you may have exposed, and tell your IT team — speed matters more than embarrassment.
- Unplug the drive and set it aside. Do not plug it into another computer to check it.
- Disconnect from Wi-Fi and ethernet so malware cannot call home or spread.
- Run a full antivirus scan and, if your IT team asks, leave the machine off until they can look at it.
- Change passwords you typed while the drive was connected, starting with email and banking, from a different device.
- Check for odd behavior: new programs, changed browser settings, or files you did not create.
- Report it. At work, tell IT immediately. If a package arrived by post, report it to the FBI's Internet Crime Complaint Center at ic3.gov, and keep the packaging.
If money or business data was involved, treat it as an incident, not a mishap. The FBI's FIN7 warnings show that one plugged-in drive can lead to ransomware across a whole network, as Dark Reading reported. Fast reporting gives your team — and your bank — the best chance to limit the damage.
The bottom line
Your own encrypted USB drive, bought from a trusted seller and used on computers you trust, is a safe and useful tool. The danger is not the technology — it is unknown drives, unencrypted files, and the habit of plugging things in before thinking.
Make the rule simple and stick to it: if you did not buy it, do not plug it in. Encrypt what matters, back it up somewhere else, and check your devices against our guide to knowing if your phone is hacked if anything ever feels off after connecting an unfamiliar device.
Frequently asked questions
Are USB drives safe to use?
Yes, if the drive is yours, bought from a trusted seller, and encrypted. The danger comes from unknown drives, drives used on untrusted computers, and unencrypted drives that can be lost or stolen with readable files on them.
Can a USB drive give my computer a virus?
Yes. A drive can carry malware in its files, and a tampered drive can act as a keyboard and type malicious commands the moment you plug it in. Keep your antivirus up to date, scan drives before opening files, and never plug in an unknown drive.
What is a BadUSB attack?
BadUSB is an attack where the firmware inside a USB device is reprogrammed so the device pretends to be something else, usually a keyboard. It then types commands that download malware or change settings. Antivirus software cannot inspect USB firmware, so it cannot reliably detect this.
Is it safe to plug in a USB drive I found?
No. Never plug a found USB drive into your computer to see what is on it or to find its owner. Give it to your IT team or to security staff at the location where you found it. Curiosity is exactly what these attacks rely on.
Should I encrypt my USB drive?
Yes, if it holds anything personal, financial, or work-related. Encryption means a lost or stolen drive is useless to whoever finds it. Windows Pro offers BitLocker To Go and macOS offers Finder encryption for removable drives.
Are USB drives safe for backups?
They work as one backup copy, but not as your only copy. Flash drives fail without warning and are easy to lose, so keep the same files in at least one other place, such as a cloud backup or an external hard drive.
Can a USB drive damage my computer?
Ordinary drives cannot, but rare purpose-built devices called USB killers send a power surge into the port. They are uncommon outside targeted attacks. The far more common harm is malware, data theft, or losing unencrypted files.
Are USB drives safe on a Mac?
Mostly, but not completely. Macs are less often targeted by USB malware, yet a device pretending to be a keyboard can still type commands on a Mac. The same rules apply: use only your own drives, encrypt them, and keep accessory permissions at their default.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against CISA guidance on USB drives, SRLabs BadUSB research as reported by The Register, and FBI warnings on FIN7 BadUSB campaigns.
How we write and fact-check →