Short answer: never plug in a USB drive you found or were given unexpectedly, because it may carry malware or be a disguised device that types commands into your computer. For your own drives, encrypt anything sensitive, scan drives that have been used on other computers, keep AutoRun disabled, and prefer secure cloud sharing over passing USB sticks around. Businesses should consider blocking unknown USB storage entirely.
USB drives seem old-fashioned, but they remain a real attack route. Studies such as a widely cited University of Illinois experiment found that many people plug in USB drives they find lying around. In 2022 the FBI warned that a criminal group mailed USB devices to US businesses, disguised as gifts or official packages, which installed ransomware when plugged in.

The main risks
| Risk | How it works |
|---|---|
| Malware on the drive | Files disguised as documents or shortcuts run malicious code when opened |
| Malicious USB devices (“BadUSB”) | A device that looks like a flash drive identifies itself as a keyboard and types commands in seconds |
| Hardware attacks | Rare “USB killer” devices damage hardware with an electrical surge |
| Data loss | Small drives are easily lost or stolen with unencrypted data |
| Malware spread | An infected computer copies malware onto every drive connected to it |
| Charging cable attacks | Modified cables or public charging ports that attempt data access (rare in practice) |
Found or unexpected USB drives
A dropped USB stick in a car park, a branded drive arriving by post or a “free gift” at a trade show could be a lure. Attackers sometimes label them “Payroll” or “Confidential” to tempt curiosity.
- Do not plug it in, not even to find the owner.
- At work, hand it to IT or security.
- At home, discard it or hand it to the venue where you found it.
- Be wary of unsolicited USB devices sent by post, even with official-looking letters.
Safe habits for your own drives
- Encrypt sensitive data. On Windows Pro, use BitLocker To Go (right-click the drive > Turn on BitLocker). On Mac, right-click the drive in Finder and choose Encrypt, or format it with an encrypted file system in Disk Utility. Hardware-encrypted drives with a keypad are another option.
- Scan drives that have been used on other computers before opening files. Microsoft Defender scans removable drives on access; you can also right-click and choose Scan.
- Show file extensions so a file called
report.pdf.exeor a shortcut named like a folder stands out. - Do not run programs from a USB drive unless you put them there.
- Label and track drives containing important data, and wipe them when no longer needed.
- Back up data stored only on a USB stick; flash drives fail without warning.
Settings that reduce USB risk
- AutoRun/AutoPlay: modern Windows no longer runs programs automatically from USB drives, but you can set AutoPlay to “Take no action” in Settings > Bluetooth & devices > AutoPlay.
- Mac accessory security: Apple silicon Macs ask before allowing new accessories to connect; keep the default “Ask for new accessories”.
- Phones: choose “Charge only” when connecting to unknown computers, and use your own charger rather than public USB ports where possible.
For businesses
- Use device control (in Microsoft Defender for Endpoint, Intune or other endpoint tools) to block unknown USB storage, or allow only company-approved encrypted drives.
- Require encryption for any removable media containing personal or confidential data.
- Train staff about found-drive and mailed-device attacks.
- Provide secure file-sharing alternatives so staff do not need USB drives.
Safely wiping a USB drive
Deleting files or quick-formatting does not fully erase data on most drives. For drives you plan to give away, use the manufacturer’s secure erase tool, perform a full format, or simply encrypt the drive first so leftover data is unreadable. For highly sensitive data, physically destroying the drive is the safest option. See disposing of old devices safely.

Frequently asked questions
Can a USB drive infect my computer just by plugging it in?
A normal drive usually needs you to open a file. A malicious device posing as a keyboard can act immediately, which is why unknown devices should never be connected.
Are USB drives safe on a Mac?
Macs are less targeted by USB malware, but keyboard-emulating devices and phishing files can still work. The same rules apply.
Is “juice jacking” at public chargers a real risk?
Authorities including the FCC and FBI have advised caution, though confirmed real-world cases are rare. Using your own charger or a power bank removes the risk.
Should I encrypt every USB drive?
Encrypt any drive holding personal, financial or work data. Drives used only for music or public files do not need it.
Related: remove malware from a Windows PC, send sensitive files securely.



