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.

Связанные статьи

Dramatic server room scene illustrating the SSHStalker Linux botnet infecting thousands of vulnerable servers via SSH exploits.
Изображение, созданное ИИ

Researchers discover SSHStalker botnet infecting Linux servers

Сообщено ИИ Изображение, созданное ИИ

Flare researchers have identified a new Linux botnet called SSHStalker that has compromised around 7,000 systems using outdated exploits and SSH scanning. The botnet employs IRC for command-and-control while maintaining dormant persistence without immediate malicious activities like DDoS or cryptomining. It targets legacy Linux kernels, highlighting risks in neglected infrastructure.

A recent article on Hackaday delves into the mechanics of Linux hotplug events, explaining how the system handles device connections and disconnections. Author Arcanenibble outlines the roles of netlink and udev in processing these events. The piece highlights the underlying protocols that enable seamless USB device integration.

Сообщено ИИ

Linux stable kernel maintainer Greg Kroah-Hartman has started using an AI-assisted fuzzing tool in a branch named 'clanker' to test the kernel codebase. The tool has already prompted fixes for vulnerabilities in subsystems like ksmbd and SMB. Patches from this effort now cover areas including USB, HID, WiFi, and networking.

Several Linux gaming projects have united to form the Open Gaming Collective, aiming to standardize the gaming experience on the open-source operating system. The group seeks to reduce duplicated efforts by centralizing development of key components like kernel patches and input frameworks. Founding members include Universal Blue's Bazzite, ASUS Linux, and PikaOS, with more expected to join.

Сообщено ИИ

A new patch has been proposed for the Linux kernel to enable toggling Virtual Terminal (VT) support during boot time. This change aims to provide more flexibility in kernel configuration without recompilation. The proposal was highlighted in a recent Phoronix article.

The open-source input device handling library Libinput has reached version 1.31. This update introduces configurable timeouts and support for faster three-finger swipes. The release comes from the Phoronix news site, highlighting improvements for Linux users.

Сообщено ИИ

A new patch set for the Linux kernel promises to enable proper display brightness control on Apple Mac devices, ending a long-standing frustration for users running the open-source OS on Apple hardware. Authored by Aditya Garg, the driver targets both Intel-based and Apple Silicon machines. This development builds on years of reverse-engineering efforts by the Asahi Linux project.

 

 

 

Этот сайт использует куки

Мы используем куки для анализа, чтобы улучшить наш сайт. Прочитайте нашу политику конфиденциальности для дополнительной информации.
Отклонить