All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] HID: add malicious HID device detection driver
@ 2026-04-04 13:37 Zubeyr Almaho
  2026-04-04 13:37 ` [PATCH v2 1/1] " Zubeyr Almaho
  2026-04-05  5:31 ` [PATCH v2 0/1] HID: add malicious HID device detection driver Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Zubeyr Almaho @ 2026-04-04 13:37 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Zubeyr Almaho, Benjamin Tissoires, linux-input, linux-kernel,
	security

Hi Jiri, Benjamin,

This series introduces hid-omg-detect, a passive HID monitor that scores
potentially malicious keyboard-like USB devices (BadUSB / O.MG style)
using:

- keystroke timing entropy,
- plug-and-type latency,
- USB descriptor fingerprinting.

When the configurable threshold is crossed, the module emits a warning
with a userspace mitigation hint (usbguard).

The driver does not block, delay, or modify HID input events.

Changes since v1:
- Replaced global list + mutex with per-device drvdata.
- Removed logging inside spinlock-held regions.
- Moved VID/PID lookup to probe() to avoid hot-path overhead.
- Switched logging to hid_{info,warn,err} helpers.
- Capped timing sample counter at MAX_TIMING_SAMPLES.
- Renamed file to hid-omg-detect.c for kernel naming conventions.

Thanks,
Zubeyr Almaho

---
 drivers/hid/hid-omg-detect.c | 435 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 435 insertions(+)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-09 10:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-04 13:37 [PATCH v2 0/1] HID: add malicious HID device detection driver Zubeyr Almaho
2026-04-04 13:37 ` [PATCH v2 1/1] " Zubeyr Almaho
2026-04-07  7:59   ` Benjamin Tissoires
2026-06-19  7:36     ` [RFC PATCH] HID: BPF: add keyboard behavioral anomaly detection krishgulati7
2026-06-19  7:45       ` sashiko-bot
2026-07-09 10:49       ` [RFC PATCH v2] " Krish Gulati
2026-04-05  5:31 ` [PATCH v2 0/1] HID: add malicious HID device detection driver Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.