The USB Keyboard Guard

The G DATA USB Keyboard Guard protects against the most common type of USB attack: USB devices that masquerade as keyboards. This behavior is known as Bad USB. If the system detects a new keyboard, access is initially blocked and a pop-up is displayed. You can then verify whether it is actually a keyboard and either permanently allow or block access.

The G DATA USB Keyboard Guard is currently available only for Windows systems.

Installation

You can download the G DATA USB Keyboard Guard from the following address: https://secure.gd/dl-int-usb?Download. After downloading, navigate to the location where the installation file was saved and follow the instructions below.

Installation guide

1

Double-click the installation file (usually "INT_GD_USB_KEYBOARD_GUARD.exe"). If the Windows User Account Control prompts you to allow to make changes to your device, confirm this by clicking Yes.

2

Select the language you want to use for the installation.

Select language

3

In the window that opens, select "Installation" and confirm by clicking Next >.

Choose installation

4

Accept the license agreement.

Accept license agreement

5

The installation process will now begin.

Installation process

6

At the end of the installation process, a message will appear informing you that all currently connected USB devices will be classified as trusted. When you restart in the next step, do not connect any additional USB devices unless you are absolutely certain that they are safe.

Notification

7

Complete the installation by restarting your computer. To do this, leave the "Restart now" checkbox selected and click Exit.

You can also restart later, but the installation will not be fully complete until after the restart.
Perform restart

8

After a successful restart, you will see a pop-up message about G DATA USB Keyboard Guard, which has its tray icon.

Pop up message
Tray icon

9

The installation is now complete, and the G DATA USB Keyboard Guard is ready to use.

Using the G DATA USB Keyboard Guard

When a new keyboard, or a device that acts as a keyboard, is connected, a Windows notification appears when you are using G DATA USB Keyboard Guard. This notification asks you whether you trust the new device.

USB device detected

Here, you have the option to block the device or allow the keyboard. If you allow the device, you must then enter a four-digit code as an additional security measure.

Allow device

Once you have entered the code, you can use the device as usual. The G DATA USB Keyboard Guard remembers the devices that have been authorized, so you only need to go through the authorization process once.

If you accidentally blocked a device, simply reconnect it. It will be recognized again, and you can authorize it. When needed, restart your computer if the device is not recognized immediately.
Block devices that were previously allowed

If you have enabled a keyboard but later decide you would rather disable it, you will need to make changes to the Windows Registry. Please only edit the Windows Registry if you are familiar with it! Incorrect changes to the Registry can cause Windows to become unstable.

Alternatively, you can uninstall the G DATA USB Keyboard Guard and then reinstall it. This is more time-consuming, but you do not need to be familiar with the Windows Registry.

1

Open the Windows Registry using the Registry Editor.

2

Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GDKeyboard Guard in the Registry.

Keyboard Guard Registry entry

3

Delete all entries that begin with “HID\VID,” as shown in the screenshot above.

4

Restart the computer. After restarting, the device will be detected again and will be blocked by default.

Installation and Configuration for System Administrators

The G DATA USB Keyboard Guard can be installed silently via a script, and the text used in the program can be customized.

Installation via script

Show

When calling the installation file, use the following parameters:

 /_QuietInstallation="true" /@SelectedLanguage="en" /_InstallAllRessources="true”

The installation path is C:\Programme (x86)\G DATA\USB KEYBOARD GUARD.

A quiet installation also requires a reboot of the affected system.

Customizing the displayed text

Show

You can customize specific sections of text in the program by inserting RTF files to individual text sections. To do this, create a file named config.ini. By default, G DATA USB Keyboard Guard looks for such a file in C:\Program Files (x86)\G DATA\USB KEYBOARD GUARD\config. Alternatively, you can specify any other folder by entering the full path as a string in config_dir in the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\G DATA\GD2NDKBB".

Create a configuration file with the following content and customize the file.

If you do not specify an absolute or relative path in the config.ini, the USB Keyboard Guard will load the RTF files from the config subfolder of the installation directory.
The paths and files in the configuration file shown are examples and must be adapted to suit your specific scenario.
[text]
warning_new_keyboard_detected = warning.rtf
hint_enter_code_top = top.rtf
hint_enter_code_bottom = bottom.rtf

[about_info_link]
destination = file://./index.htm

[link1]
text = Example text one
destination = http://sharepoint/info1.htm

[link2]
text = Example text two
destination = http://sharepoint/info2.htm
Variable Text area

warning_new_keyboard_detected

Keyboard text

hint_enter_code_top
hint_enter_code_bottom

Hint text

[about_info_link]

Link text

[link1(-X)]

This section of the config.ini file contains settings for links, if any are included in the RTF files linked in the [text] section. When editing an RTF file, you can enter links in the format <LINK>link1</LINK>. The USB Keyboard Guard then uses the link settings defined in the section of the same name in the config.ini file. You can choose any name you like, as long as the value in the RTF file matches the value in the config.ini file.

Uninstallation

If you want to uninstall G DATA USB Keyboard Guard, you have two options: double-click the installation file or use the Windows Control Panel.

Uninstalling using the installation file

1

Double-click the installation file (usually "INT_GD_USB_KEYBOARD_GUARD.exe"). If the Windows User Account Control prompts you to allow to make changes to your device, confirm this by clicking Yes.

2

In the window that appears, select Uninstall and click Next >.

Uninstallation start

3

Confirm the uninstallation by clicking Yes.

Uninstallation confirm

4

Complete the installation by restarting your computer. To do this, leave the "Restart now" checkbox selected and click Exit.

You can also restart later, but the uninstallation will not be fully complete until after the restart.
Uninstallation finished

5

After a successful restart, the G DATA USB Keyboard Guard is removed from your system.

Uninstalling via Windows Settings

1

Press the Windows key, type “Settings,” and open Windows Settings.

Windows Einstellungen

2

Select "Apps" and then "Installed Apps".

Apps choose

3

Find the entry "G DATA USB Keyboard Guard", click on …​ and select Uninstall.

choose Uninstallation

4

Confirm by clicking Uninstall. The uninstallation program will then open.

confirm Uninstallation

5

In the window that appears, select Uninstall and click Next >.

Uninstallation start

6

Confirm the uninstallation by clicking Yes.

Uninstallation confirm

7

Complete the installation by restarting your computer. To do this, leave the "Restart now" checkbox selected and click Exit.

You can also restart later, but the uninstallation will not be fully complete until after the restart.
Uninstallation finished

8

After a successful restart, the G DATA USB Keyboard Guard is removed from your system.