I'm about to distribute some relatively cheap promotional usb drives to some of my company's clients. I'm fairly confident the company I purchased them from wouldn't intentionally implant malware on the drives - but they were pretty cheap - how can I be sure that they do not have some sort of malware or rootkit secretly installed on them from the manufacturer?
You don't need anti-virus. Simply look at the contents of one of the drives. Are they empty? Fine, then you are ok. Pull random samples out and check them.
If you asked the vendor to put files on the drive, such as promotional materials for you company, then makes sure that the files match precisely.
Remember: do this from a machine with the latest patches. For example, you don't want to do this with a Windows machine with autorun enabled, or the virus will hop to your machine, infect it, then hide its files from you. A recent Mac or Linux machine will probably be safe.
Beware that USB drives can have multiple "partitions", one of which might appear as a CD-ROM drive. Check not just the one you expect, but these additional partitions as well.
All this assumes the device acts as a normal flash drive. Hackers can do something more nefarious, such as pretend to be a keyboard and inject keystrokes that log the hacker in. It's so unlikely that you don't have to worry about it, but if you do, then you'd have to hire an expert to test them.
Lastly, because of these security concerns, promotional USB drives are a very bad promotional items. Most Fortune 500 corporations and the military have rules dictating that such drives should be destroyed, and never plugged into a computer.
The simplest option is actually to set up a machine with a couple of antivirus/antimalware products on it, with no connectivity to other networks, and plug the devices in.
It is not foolproof by any means, but to get a deep assurance you would have to examine the driver files and that is likely to be time consuming and uneconomic. Depending on where you are, you may have a strong contract with the company that sold them to you, but even if not, if you find malware, you could offer them the option of providing you with clean ones or never getting your business again...
Edit: since this was written more sophisticated USB malware has appeared. There seems to be no perfect way to avoid USB malware. Use good security hygiene such as no plugging in unknown USB devices and not lending out a USB drive. In other words after using it to give a file to a colleague just tell them to keep it.
I have seen viruses spread via USB sticks in an lab environment. Windows computers can be set to automatically run software off a USB stick and there might be an autorun.inf file and an executible on the stick that you are concerned with.
What you want to do is quickly look at the USB stick with a computer that is safer than the PC's you are going to be using with the sticks later. You can use a Mac, Linux box, or a secured Windows PC with autorun disabled. The Mac method is easiest and Macs are pretty common.
Using a Mac: create a file on the desktop called autorun.inf. To do this open Terminal.app from the Utilities folder in the Applications folder. Type
cd ~/Desktop then
touch autorun.inf to create the file. Now type
sudo chmod 444 autorun.inf or
sudo chflags uchg autorun.inf or both. Now you have a locked file you are going to place on the USB sticks to resist or prevent spreading of viruses.
Plug in a USB stick. Only one icon should appear in the sidebar or on the desktop representing the stick. If you have multiple icons you have one partition probably holding autorunning software or possibly hidden, and since this is unexpected behavior go ahead and reformat the USB stick. I like Macs for this because they read every common format, can format to FAT/ExFAT for PC's to read, are immune to PC viruses, and they ignore autorun.inf.
If you want to browse the file structure on the stick you can. You expect nothing there and any existing folders or directories should raise a red flag. You can scan the stick with ClamAV or similar on the Mac if you have it. If everything looks OK then drag copy your autorun.inf file from the desktop to the USB stick icon. It just takes a moment and then eject it and move on to the next. This will work on a recent Mac regardless of the format of the USB stick, generally FAT or ExFAT. If there is an autorun.inf already there overwrite it (there shouldn't be one!) Finally, just drag copy autorun.inf to all the rest of the sticks if the first one doesn't look suspicious because now you are just preventing future infection.
Are they in original packaging? Based on the specs and general quality of the brand, are they "cheap" from a quality standpoint?
If the answer to the first question is "no" or if the answer to the second question is "yes," then it's probably not a good idea to give them away as gifts to people/businesses with whom you want to maintain a relationship. Giving a cheap gift will make you appear as though you don't value the relationship with the customer or associate. And liability goes way up if the gift is infected with malware, esp if it is not in original packaging.