Linux kernel patch proposes detecting malicious USB devices

A developer has submitted a patch to the Linux kernel mailing list for a new driver that monitors USB keyboard-like devices for suspicious activity. The hid-omg-detect module scores devices based on typing patterns and other signals without interfering with normal input. If a device appears malicious, it issues a warning recommending the use of USBGuard for blocking.

Zubeyr Almaho proposed the hid-omg-detect driver, which passively observes Human Interface Device (HID) inputs from USB devices resembling keyboards. Submitted as the second revision, the patch addresses prior feedback on state management and logging practices from the initial version. Kernel maintainers will decide if it gets merged into the Linux kernel codebase, according to the proposal on the mailing list, as covered by Phoronix. The driver evaluates devices using three key metrics: keystroke timing entropy, the delay between plugging in and starting to type, and fingerprinting of USB descriptors. Legitimate human typing differs markedly from automated keystroke injection by malicious hardware. Upon exceeding a configurable score threshold, the module logs a kernel warning and suggests employing the userspace tool USBGuard for enforcement, without altering or delaying any input events. The patch targets threats like BadUSB, disclosed in 2014, where USB devices reprogram their firmware to mimic keyboards and execute payloads such as opening terminals or downloading malware. Another example is the O.MG Cable, which conceals a implant in a standard-looking USB cable to inject keystrokes, log data, spoof identifiers, and enable remote WiFi control. Proponents note that these attacks persist and evolve despite reduced media attention.

Verwandte Artikel

NVIDIA engineer Sasha Levin has proposed a new mechanism for the Linux kernel that would let administrators quickly disable flawed functions on live systems. The patch, called killswitch, aims to mitigate privilege escalation risks without waiting for full fixes. It remains under review on the Linux Kernel Mailing List.

Von KI berichtet

Linux kernel maintainer Greg Kroah-Hartman presented a new Rust type at RustWeek 2026 that could prevent most security vulnerabilities. The approach focuses on handling untrusted data from userspace and hardware. It builds on existing Rust safety features already in the kernel.

Researchers have identified a high-severity flaw in the Linux kernel that can allow untrusted users to gain root access. The issue stems from one incorrect character in the code.

Von KI berichtet

A single misplaced exclamation point in the Linux kernel introduced a use-after-free bug that allows unprivileged users to gain root access. The flaw, tracked as CVE-2026-23111, resides in the nf_tables subsystem used for packet filtering. It was fixed in February and backported to major distributions.

Diese Website verwendet Cookies

Wir verwenden Cookies für Analysen, um unsere Website zu verbessern. Lesen Sie unsere Datenschutzrichtlinie für weitere Informationen.
Ablehnen