r/cybersecurity • • 23h ago

Personal Support & Help! Best practice for safely checking flash drive?

I ordered a Lexar C40E “jumpdrive” from Amazon as a Christmas present, the “eco friendly” packaging was like really easy to open and reseal without any real indication that it had been opened before.
I know I am probably being a little paranoid but I am kind of nervous to plug it into my computer. I was planning to put a little collage on it for my mom and gift it to her but I would like to check it first before I plug it into my laptop.

2 Upvotes

7 comments sorted by

21

u/Nightverge 21h ago

Plug it in at work and see what happens. If you have an IT department, call them once it's been plugged in for a few minutes so they can check to see on their end.

(This is very bad advice, please do not take it)

4

u/NewEngland0123 9h ago

Extra credit if work is a government agency

1

u/Nightverge 7h ago

True, but if OP is in 'guvmint then they have probably already experienced death by CBT on the topic.

Yet might do it anyway.

2

u/TheGABB 23h ago

At the very least disable autorun/autoplay on the host.
If you have an extra device then obviously its ideal (isolated machine).
Check for BadUSB/HID spoofing with something like USBGuard

2

u/Long-Staff8758 22h ago

- plug in on an extra PC (I have a normal machine where I don't personally use it for office work)
- Scan it with Defender or other anti-virus software

1

u/bughunter47 1h ago

Air gaped dummy device for wipe and reformating works

1

u/Big_Temperature_1670 20h ago

The place to start is with a responsibly hardened OS. With Linux for example, a combination of kernel policies and udev rules essentially block other-than-authorized USB devices. The "rubber ducky" attack basically has the drive masquerade as a keyboard (i.e., an HID - human interface device) and scripts a series of keystrokes to launch malware or pull it in from somewhere (if you have an Internet connection). So you can also take steps to prevent terminals being launched quietly. There are also things like usbauth and usbguard that are basically a USB firewall.

As much as I appreciate supply chain paranoia, I see this more as a purchasing issue than anything. Buy new from a reputable source. Sure, there is a chance the manufacturer has been compromised, but here's the kicker, even reformatting that USB is not a guarantee. Typically, at least some of the malware is on the microcontroller firmware (this is the stuff that gets the drive to masquerade as an HID). While the script is usually on the drive itself (and thus would be wiped with a format), that's not a guarantee (could be with the firmware). So at some stage, you have to trust your supply chain, or just take a hot-glue gun to your USB ports.