mirror of
https://github.com/joleuger/vuinputd.git
synced 2026-11-05 01:17:20 +00:00
[GH-ISSUE #2] [FEATURE] Implement Input Sanitization for Forbidden Key Combinations #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
joleuger/vuinputd#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @joleuger on GitHub (Jan 1, 2026).
Original GitHub issue: https://github.com/joleuger/vuinputd/issues/2
Context & Motivation
Direct access to
/dev/uinputallows application software to inject input events into the kernel. If a malicious or compromised application (even within a sandbox) gains access to a virtual device, it can abuse low-level kernel shortcuts.Specifically, the following attack vectors exist:
Ctrl+Alt+Fnallows an attacker to switch the active Virtual Terminal, potentially accessing an unsecuredgettylogin prompt or disrupting the user's graphical session.Alt+SysRq+<command>allows an attacker to trigger low-level kernel commands (e.g., reboot, kill all processes, dump memory), which bypasses all userspace security controls.To harden the system,
vuinputdmust act as a firewall, filtering these specific sequences before writing events to the kernel.Technical Architecture
The sanitization logic will be implemented in the cuse write method of
vuinputdbefore thewrite()syscall to/dev/uinput.Ctrl, Left/RightAlt).Ctrl+Altare held, drop anyF1throughF12key press events.Altis held, drop theSysRq(PrintScreen) key press event.