Skip to content

Request #706

Open
Open

Description

@Pablo-Sama

I'm not really sure if what I'm about to ask is even possible. I'm just asking to see if it can be done or not.
So I am trying to test some newly bought USBs that I got from a questionable website. I'm able to see all the USB in because of "https://github.com/gunchev/usbguard_gui".
So my plan was to test the USB in an isolated virtual machine.
By plugging in the USB in have it automatically blocked by USBGuard.
Using the USBGuard_GUI to get the USB ID and add it to the VMs XML file.
Run the VM and temp Allowe the USB so the VM takes it without the host doning anything more than enumerating the USB.

My request is, is there a way to add a setting to USB guard like pass through device?

So, you would have reject, allow, block, and then pass through, which basically acts like a tunnel to the gust. The host can't access the device, and the device can't access the host, but when the VM comes online, it knows to auto-pass through to the VM.

I understand that what I'm saying might sound simple, but in reality, it might be impossible, but if I don't ask I won't know.

Activity

  1. onyks-os commented on Nov 27, 2026

    @onyks-os

    Not an answer to the pass-through request itself, which would need support in USBGuard, but it might help with the workflow you describe: I maintain a small GTK interface for USBGuard, https://github.com/onyks-os/USBGuardGUI. It shows each device's details, including the vendor:product ID you need for the VM's XML, and it can allow a blocked device for the current session only, without writing a rule. Hope it's useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions