How to disable USB stricks and limit access to USB storage devices on windows systems

Sunday, 11 March 20120 comments


USB storage - a possible security risk?

Decent IT administrators secure their networks behind firewalls. They install mail filters on their SMTP servers and deploy anti-virus software on all client workstations. But securing the network is not sufficient -- what happens if the users bring their own USB memory sticks and connect them to the computers at their office? A 1 Gb USB stick can sometimes hold an entire company's vital data. Within minutes or even seconds an employee has all the files they need in order to start up their own business and take all the customers with them. Alternatively, what happens if a careless user accidentally compromises the network with an infected USB stick?


What does Microsoft have to say about it?

If you, the administrator, want to establish a minimum level of security, it is absolutely necessary to control which users can connect USB memory sticks to a computer. Unfortunately, a default Windows XP or Windows 2000 installation comes with no limitations on who is able to install and use USB storage media. Microsoft knowledge base article 823732 contains instructions on how to disable USB storage access for a certain group of users; however, the article only distinguishes between whether or not a USB storage device has been installed on a particular computer. Furthermore, the instructions are limited to a stand-alone computer. According to the general rule of thumb "If it's tedious, there is a better way", I try to avoid techniques that force me to repeat certain tasks for each computer that I manage. That's what group policy objects (GPO) are for.

Suggestions?

Mark Heitbrink describes how to disable USB storage devices entirely on all or some computers in the network. He employs an ADM template in a group policy object that disables the USB storage driver (USBSTOR). The ADM template simply sets the registry valueHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\Start to 4 (Disable). But his technique has a serious drawback. It only works if the USB storage driver is already installed. If it has not yet been installed, Windows' plug & play subsystem automatically resets the Start value to 3 (Manual) when it installs USBSTOR after a USB storage device is plugged in for the first time. In that case, USBSTOR remains enabled until the GPO is re-applied, usually at the next reboot. If the storage device is plugged in during that reboot, it will still be available because the USBSTOR driver is started before any GPOs are processed.

The Howto!

If we combine Mark Heitbrink's approach with the one outlined in knowledge base article 823732, we get a more reliable solution. Firstly, we need to prevent USBSTOR from being installed unless the currently logged on user is allowed to use USB storage. We do that by restricting access toUSBSTOR.INF and USBSTORE.PNF in a GPO such that PNP can't automatically install the driver. This is possible because when PNP installs a driver, the installation is performed using the priviledges of the currently logged on user. Secondly, we need to make sure that USBSTOR is not started when a USB storage device is plugged in. For that we use Mark's ADM template. The only minor drawback of my solution is that users with access to USB storage need to manually start USBSTOR before connecting USB storage devices.
<!--[if !supportLists]-->1.   <!--[endif]-->In Active Directory Users and Computers, open an existing GPO or create a new one and open it. Use the security settings of that GPO to specify which computers it affects.
<!--[if !supportLists]-->2.   <!--[endif]-->In that GPO, go to Computer Configuration – Windows Settings – Security Settings – File System and create a new entry (right-click File System and select Add File). Specify the location of USBSTOR.INF (usually SystemRoot%\Inf\USBSTOR.INF)
<!--[if !supportLists]-->3.   <!--[endif]-->Change the security settings of the new entry. The security settings that you specify here will be enforced on the USBSTOR.INF of every computer to which the GPO is applied. This process is not additive, which means that the previous security settings ofUSBSTOR.INF will be overwritten by the ones given in the GPO. It is therefore recommended to grant full control to SYSTEM and local administrators. But unlike in the default security settings of USBSTOR.INF, you should not grant any priviledges to Everybody. You do not need to explicitly deny access – just omit an entry for Everybody. Optionally, you can grant read access to a certain group. Members of this group will be able to use USB storage.
<!--[if !supportLists]-->4.   <!--[endif]-->Repeat the above two steps for USBSTOR.PNF.
<!--[if !supportLists]-->5.   <!--[endif]-->Download USBSTOR.ADM.
<!--[if !supportLists]-->6.   <!--[endif]-->Back in the GPO, right-click Administrative Templates under Computer Configuration and select Add/Remove Templates. Click Add and browse to the location of USBSTOR.ADM. Close the dialog.
<!--[if !supportLists]-->7.   <!--[endif]-->You should now have an additional entry called Services and Drivers in Administrative Templates. Click on it. If it is empty, select View from the menu and uncheck Show Policies Only. Click back on Services and Drivers in Administrative Templates. It should now show the USB Storage policy. Double click it, select Enabled and pick Disabled from the Startup Type drop down. Again, the policy must be enabled wheras Startup Type must be Disabled.
<!--[if !supportLists]-->8.   <!--[endif]-->Close the dialog as well as the GPO and boot/reboot one of your workstations. Make sure no USB strorage device is connected to that computer. Log on with administrative privileges and check the permissions of USBSTOR.INF and USBSTOR.PNF. Check the value of the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\Start. It should be 4. It is also ok if the UsbStor key doesn't exist at all.
<!--[if !supportLists]-->9.   <!--[endif]-->On the same workstation, log off and back on as a user that should not have access to USB storage. Connect a USB memory stick or a similar device. Nothing should happen. Remove the memory stick.
<!--[if !supportLists]-->10.                <!--[endif]-->Log on as a user that should have access to USB storage and execute net start usbstorin a command shell or at Start – Run before connecting the memory stick. The memory stick should initialized and mapped to a drive letter. If USBSTOR fails to start, it's probably because this is the first time a memory stick is plugged into the workstation in which case USBSTOR is not yet installed. Nevertheless, the memory stick should be initialized and mapped correctly but you need to reboot in order to reapply the administrative template such that USBSTOR is disabled again. Alternatively, you can disable it manually by downloading and double clicking USBSTOR.REG as well as executing net stop usbstor.
<!--[if !supportLists]-->11.                <!--[endif]-->Instruct the users with access to USB storage that they need to execute net start usbstor before they can connect a USB storage device.
Attachment
Size
530 bytes
258 bytes


Source : http://diaryproducts.net/
Courtesy :  http://sapost.blogspot.in/
Share this article :

Labels

/Accountant (4) /DA (3) /Exam (3) /I.tax (1) /Interest Calculator (4) /IPo (2) /Leave (1) /ORDERS (1) /PM Gr-1 (8) /PM Gr.-1 (1) /Rail Reservation (1) /Railway (1) /tv (1) /Update-2 (1) /Update-3 (1) ACCOUNT PBS/PACS (1) Accountant/question Paper (1) ADHAR(UID) (3) Admit card/PM Grade1 (2) ALLOWANCES (2) Allowances.Empoly News (1) ANSWER KEY (1) BANKING (1) BOOK FOR DEPARTMENTAL EXA (3) BROADBAND (1) BSNL (1) budget (2) CCBridge Vrs.6.0 (2) CGHS Health Tips Staffs and Welfare (3) Clear Log Files........ (1) COMPUTER AND HARDWARE (10) Computer Guidlines (5) Cricket (1) Current Afairs (1) Customer care news (8) DB - Analyzer (19) Departmental New (1) Departmental News (71) DEPARTMENTAL ORDER (4) Do software (1) Dop News /RMS (1) Dop News pension (1) Dte Order/Tfr.and Posting (1) e Services (3) e services Meghdoot7 (3) ECS SOFTWARE (1) eMO (3) eMO ResetRegistration (1) Employees News (53) Employees News/Education (2) Empolyment News (8) ePayment (1) EVENT (1) Exam/Result (21) F (1) GDS (1) General Issue (2) General Knowledge (12) General Knowledge/cheque (1) Gold coins (3) GPF (3) Hardware/security Tips (1) HCL compaint (1) Health Tips (2) IMO (1) Income tax (2) Interest Calculator (2) INTERNATIONAL ARTICLS WEB (1) Internet tips (2) INTRES (2) IPO (2) IPO SOLVED PAPER (1) IPO/ASPOs (15) IPS Web (1) latest software (6) Leave Rule (2) LGO PAPER (2) Mail (1) Meghdoot 7.0 (4) Mobile Tip (4) MODEL PAPER (37) MODEL PAPER/IPO (19) MODEL PAPER/PM GR-1 (21) MOF_Rat (1) Money Gram IMTS (1) Negative list (1) NEW (1) New Pension Scheme (2) NEWS (41) News Railway (6) News Tax (1) News Tchnology (1) News:-Increament (1) NPS (5) oder/DA (5) operating (1) Order (3) OTHERS (35) PA/SA (6) Pass Book Printer (1) Pension staffs and welfare (2) PLI and RPLI (7) PM Gr.-1 (1) Point of Sale (6) POST BANK OF INDIA (3) POSTAL ABBREVIATIONS (1) POSTAL HISTORY (1) Postal Information (4) Postal Insurance (1) Postal News (1) Postman (1) Postman Module (1) Postmaster (2) Postmaster Cadre (7) PS Group/question Paper (1) Qestion Paper/2012 (1) QUESTION PAPER2011 (1) QUESTION PAPER2012 (1) R LIST (1) R-Net (2) Recovery tips SQL (5) Recruitment PA/SA Form (3) Result (5) Result/IPO (2) Rulling and low (2) sanchay post (22) SAVING BANK (27) SB ORDER (8) SBCO (5) security Tips (1) Server/Backup (2) SERVICE TAX (1) Solve Paper PM-1 (3) Solve Paper PS GR B (1) SPEED NET (14) SPEED POST/ORDER (4) SQL (7) Staffs and Welfare (7) Study Materials (8) SUB ACCOUNT (3) syllabus /pmgr1 (1) SYLLABUS FOR PA/SA (1) TDS (2) Tech News (6) Tech tips and Tricks (13) TOOL (6) Treasury (1) Trouble shooting (1) Union News (6) Update/Sanchay Post (15) upsc (1) Window Server (1) Windows (4) Windows Tips (4) Windows xp (1) Workfow............ (1) WUMT POs (1)
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. PURNEAHPO - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger