Pretty sure ‘vulnerable’ was intended.
- 0 Posts
- 3 Comments
Joined 3 years ago
Cake day: June 21st, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
pastaq@lemmy.worldto
Technology@lemmy.world•Keychron announces first open-source firmware for gaming miceEnglish
9·19 hours agoBe careful with this. These udev rules usually grant uaccess to your entire keyboard. uaccess is explicitly disabled for keyboards by default because it presents the event device to all of userspace, which allows any unprivileged app to log all key presses. This includes any malicious scripts running in a browser. If you do want to set up these rules, use them only for the single session you’re setting up your device and don’t type any passwords with it active, or change them immediately after (you won’t be able to remove them without your sudo password).
For the same reason, stop using OpenRGB for devices that don’t have kernel drivers.

That’s great, just be sure your rules are specific enough for that device but didn’t rely on some randomness for detection. I.e. Matching on the current evdev or hidraw devnode is bad because it can shift with more devices being added, changing ports, or some randomness in enumeration speed. Instead, do an attribute walk on the devnode to find specific unique attributes for that node, such as VID + PID + subsystem + bInterfaceNunber should be unique. Things like names and phys patch aren’t guaranteed to be unique or consistent in different operating modes. You’ll also want to check the devnodes of the other interfaces to be sure they won’t match by doing a test.
The commands for those things are:
udevadm info -a /path/to/devnodeudevadm test /path/to/devnodeSure. While not technically necessary for some devices, they have pretty open blanket udev rules. This is because most keyboard devices require the use of hid reports directly to the device to make changes.
From their page:
Notice the complete lack of warning about any security issue from doing this.
If they wanted to be secure they could make a root level daemon that does all the hardware interfacing, and provide a dbus interface managed through polkit to allow making those changes from the userspace UI.