Read only USB stick trick
Last Updated: 2011-03-22 10:13:50 UTC
by Chris Mohan (Version: 1)
The sad demise of readily available, cheap USB sticks with a switch to flip the device to be read only has caused some problems when dealing with suspicious machines, especial when I’m off duty and I hear the dreaded words “Oow, you’re in IT – could you have a look at my computer quickly?”
Back in the good old days, I could pick them up at nearly all my favourite shops and the vendors gave them away by the bucket load, but alas, they seem to have all but disappeared.
CD/DVD or Blu-ray disks are great, but lugging around a harden CD case really does clash with some of my outfits and doesn’t always send out the right message, particularly at: romantic diners, standing at a checkouts or trying to order drinks at a bar. This is where a small USB key, fitting neatly in to a pocket, helps me blend in with the rest of humanly almost seamlessly. Almost.
The standard read/write USB keys fall prey to being infected and compromised the very second they are insert in to a machine, which, as we know is a bad thing.
Stuck with this dilemma, I stumbled upon a neat solution – Secure Digital (SD) Memory Cards.
SD Memory cards have a small lock switch on them, making them read only; they can reach up to a whooping 32GB, are only slightly more expensive than similar size USB drives and are common place (I can find them in the petrol stations, corner stores and on aeroplanes). Now add in a small SD reader, around the size of a normal USB drive, and this is perfect for incident response on an untrusted system in a pinch or when a full response kit isn’t viable.
With the size of SD memory cards, it means I can have my favourite recovery [1], incident handling and fun at -someone else’s - party [2] boot images each on their own SD card, hidden in a wallet, jacket lapel or hat band for ease of use. Producing them, seeming out of thin air, to fix a broken or infected machine amazes and astounds plus get brownie points at unexpected moments in life.
Another option for the uncluttered, nattily dressed Incident-Handler-around-town’s toolkit.
As always, if you have any better suggestions, insights or tips please feel free to comment.
[1] BartPE - http://www.nu2.nu/pebuilder/
[2] Backtrack - http://www.backtrack-linux.org/downloads/
Chris Mohan --- Internet Storm Center Handler on Duty
Comments
They are a little bit bulkier than most of your drives but I have never needed an extension to fit it to a USB slot. The rugged aluminum case and cap design do give me a little peace of mind as it rattles amongst my pocket change that it is not as likely to be damaged as previous drives have...
The IronKey drives do offer a great solution for protecting data on the drive from being destroyed but in this scenario do not offer the desired protection. When dealing with viruses, you need to be sure that the nasties can't be written to the drive and then on to the next computer...
With the varied range of host equipment I run into daily, that is too vague for me to feel comfortable with a storage device/medium I use often. I'm now using an 8gb Kangaru drive and it works as advertised.
http://www.amazon.com/SanDisk-Ultra-Plus-2GB-Card/dp/B000EWI8IK
@echo off
echo "Enter Size"
set /p len=
fsutil file createnew fillup %len%
PAUSE
Someone should put up an image of their emergency response USB up for other to take a look at and consider.
On the left side may be a write-protection notch. If this is present, the card cannot be written. If the notch is covered by a sliding write protection tab, or absent, then the card is writeable. Because the notch is detected only by the reader, the protection can be overridden if desired (and if supported by the reader). Not all devices support write protection, which is an optional feature of the SD standard.
This seems to be fairly clearly saying that the acknowledgement of the read-only mechanism is a function of the driver and/or the program reading the device.
www.imation.com/en-us/Imation-Products/USB-Flash-Drives--Accessories/Clip-Flash-Drive/.
I am not associated with Imation.
I use a thumb drive that I format after its been in a users computer. With the price of usb drives I am not worried about the wear on the drive.
http://www.fencepost.net/2010/03/usb-flash-drives-with-hardware-write-protection/
"SD Cards – Not Recommended
SD Cards, while they have a write-protect switch, are actually no good for this purpose because it’s not actually hardware write protection – at best the card reader sends a signal to the operating system that the drive should be treated as read-only. The write-protect switch on the cards is read by a sensor that’s part of the card reader, and the card reader then passes along to the operating system whether the card is read-only. According to the specification from http://www.sdcard.org/:
A proper, matched, switch on the socket side will indicate to the host that the card is write-protected or not. It is the responsibility of the host to protect the card. The position of the write protect switch is unknown to the internal circuitry of the card.
Basically this means that either a) cheap card readers that lack the sensor or b) operating systems or malware that don’t respect the “please don’t write to this disk” flag can write to the drive. While this may not be likely, it’s also not as secure as you might think based on the presence of that switch."
This site goes on to talk about
"Software Tricks – Last Resort"
I want an electromechanical switch which is inaccessible to the host.
We buy branded drives from http://www.promolocker.com/. Their "Government" line features such a switch. I've verified the switch electrically connects to the Write Protect pin on the flash memory controller chip.
I've also had RI Data's stuff recommended to me, but haven't tried it personally.
New Comments closed for all Diaries older than two(2) weeks
Please send your comments to our Contact Form

Diary Archives
SDHC support larger sizes, but aren't compatible with all but the latest readers. SD is much more common, and has been around for years and years.
A better fix may be a SD/SDHC card in an appropriate 'mini' card reader - as this gives you both compatibility and the read-only feature you're after.
Share and Enjoy,
Dom