USB drives in iBatyr Monitor can be completely blocked, set up for partial access (black and white lists) or opened for read-only. To configure access for USB drives, their ID is required.
The USB drive ID can be determined using the iBatyr Monitor web console or standard operating system tools.
USB drive ID in Windows agents
In the list of USB drive IDs, IDs starting with USB\… or with USBSTOR\… are possible.
To block USB drives on Windows agents, use an ID starting with USB\….
Determining ID using iBatyr Monitor
To get the ID of a connected USB drive via the iBatyr Monitor web console:
In the Designer, select the PC to which the drive is connected.
Select the Devices → Disk Type → Removable dimension.
In the window that opens, in the Devices section, select Device ID.
The list that appears shows the devices connected to the selected PC. Find the device whose ID starts with USB\….
Determining ID using standard Windows tools
Launch Device Manager.
In the Disk devices item, find the connected flash drive and open Properties.
On the Details tab, select the Parent property.
The Value window will display the flash drive ID (HardwareId).
Alternative:
Launch Device Manager.
Under USB Controllers, find USB Mass Storage Device (name may vary).
Open the Properties window.
On the Details tab, select the “Path to device instance” property
The value of this item is → USB device ID (HardwareId).
USB drive ID in Linux agents
The USB drive ID for Linux agents is sent as modalias:serial.
Determining ID using iBatyr Monitor
In the designer, select the PC to which the USB drive is connected.
In the Device dimension, select Device and search for the flash drive by its manufacturer name.
In the Devices section → Device IDs the IDs of all devices that are connected to the selected PC will be shown.
Select a device with an ID starting with usb:.
Determining ID using Linux
To get the modalias and serial of connected devices, use the commands:
find /sys -name modalias -print0 | xargs -0 cat | sort -u
sudo lsusb -v
Also modalias and serial can be viewed in the analogue of the “Device Manager” for Linux. It all depends on what shell you are using.
Note
Additional information about modalias can be read in the article Modalias strings - a practical way to map “ibatyr” to hardware
Blocking USB drives
Full blocking
You can block USB drives both for a specific computer and for a specific user. To do this, edit the computer configuration you are using (Control Panel → Computer Configuration) or create a new configuration for a specific user (Control Panel → User Configuration → New).
After that, go to the Devices settings and activate the Block USB storage option.
Partial blocking. Black and white lists
Black list - list of blocked devices. In this case, devices that are not on the black list can be connected to the computer.
White list - list of devices that are allowed to connect. However, devices that are not in the list cannot be connected.
Blacklist
To create a blacklist, that is, block specific USB drives or classes of USB devices:
Disable the Block USB storage devices option.
Edit the item Rules: Blocking → USB (Rules: Blocking USB class): specify the ID or class of devices to be blocked in the Block field.
When entering an ID (class), a search is used across all devices that connected to the agents. Devices can be found and added from the list.
Attention
“Rules: USB Class Blocking” is not used for Linux agents.
USB drives can also be combined into USB groups. To do this, in the Control Panel section → Devices, find the required devices and in the Marker field, specify the name of the group. Now this name can be used in the Rules: Blocking → USB groups section.
More information about Windows OS classes and subclasses can be found in the article Defined Class Codes.
Whitelist
Warning
All devices and device classes not whitelisted will be blocked.
To allow specific USB storage devices to be connected to your computer:
Define the device IDs you want to whitelist.
Select your configuration in Control Panel → Computer Configuration or create a new one in Control Panel → User Configuration depending on the lock type.
Go to Device settings.
Enter the IDs of the devices to be added in the Allow field.
Important!
Devices not added to the Allow rule will be blocked. Be sure to create a rule specifying the devices that cannot be blocked. White device classes rule. Add usb-hub, keyboards, mice, etc. to this rule.
IDs that need to be added to the White Classes rule:
usb:*ic09isc00* - leaves the usb-hub open. If you do not add this ID, all devices connected via USB will be blocked.
usb:*ic03isc* - leaves keyboards and mice open. Some keyboards and mice may have different modalias.
Note
For laptops, some devices are considered connected via USB: bluetooth, etc. These devices also need to be added to the White device classes rule. To do this, in the line usb:*ic03isc*, instead of “3”, indicate the value of your device. The symbol “*” in this case means any symbols depending on the place of installation.
Read only
To set connected USB devices to Read Only mode, edit the computer configuration being used or create a new configuration for the user.
In the USB Devices setting, enable the USB drives read-only option.
Attention
The Read Only mode does not allow you to whitelist devices for full access.