USB Lock Down Update
06.30.09
Goodness, its been two months since I last posted! Well, life sometimes does get in the way...
We (my ship) have just come into a program that scans the network for usb drivers and gives a report on when they were last used. Thinking I had nothing to worry about as I had written an ADM template and propagated it through group policy to disable the USBSTOR key, we ran the scan.
The results were different from what I had expected. We discovered a pattern of continual USB usage. Obviously, something was wrong. I pulled up one of the most recent USB uses and went to the computer. Here’s what happened-
When you plug a usb device into a computer for the first time, windows will install that device for you automatically. The system process does this in the background, changing that USBSTOR registry key from 4 (disabled) to 3 (enabled) in the process. This key will change back eventually as group policy trickles down, but the user will have a window to use that usb device and any other they plug in while the key is still at 3. Nefarious!
Fortunately, there is an easy way to fix this. You have to restrict permissions on the key, so that when windows attempts to install it, it is unable to do so. I went into my group policy management tool, and edited my group policy object in the following manner:
1) Computer configuration > windows settings > security settings >registry.
2) Right click the registry and select add key.
3) Add the key you need (in this case the USBSTOR key).
Set your permissions (in this case read only)
Set configure this key and replace existing permissions on all subkeys with inheritable permissions.
hit ok and do a gpupdate /force on the domain controllers.
This seems to have worked- when I try and install a brand new usb device on a domain computer, it get an access denied error (even as admin). Also, the scans haven’t showed any new activity in 5 days (since I implemented the registry permission restriction).
Everything appears to be working smoothly. Until the next crisis, of course.


