device-guard-go

module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT

README

Device Guard Go

Device Guard Go is a zero-dependency device security tool that protects your Linux system against unauthorized hardware access. It runs silently in the background with minimal resource consumption, instantly bringing USB, Network, and Bluetooth interfaces under control.

Features

  • It directly listens to the Linux kernel's uevent mechanism so as not to miss the moment USB and network devices are connected to the system.

  • It monitors BlueZ signals in real time to capture Bluetooth device movements.

  • The protection mechanism activates the moment a new device is connected to the system. The device is blocked until it is added to the safe list.

  • When a new device is detected, the user is asked for confirmation. If the user grants permission (allow), the device is added to the whitelist; if they deny it, the device's connection to the system is immediately severed.

  • It does not require any external third-party libraries or heavy dependencies. It uses only the Go standard library and native Linux APIs.

Installation

Make sure Go is installed on your system.

 git clone https://github.com/barisaydogdu/device-guard-go.git
 cd device-guard-go

Screenshots

screenshot

Tech Stack

  • Language: Go (Golang) v1.26.3
  • Core APIs: Linux Kernel Netlink (uevents), BlueZ D-Bus

Contributing

Contributions are always welcome!

Feel free to open an Issue to report bugs or suggest features, or submit a Pull Request directly with your improvements.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL