DET-161 · human · confidence Medium

Unexpected Keyboard or Mouse Device

Alert when a new input device appears on a computer, since small hardware remote-control boxes pretend to be a keyboard and mouse.

IP-KVM devices and USB injection tools present themselves to a computer as a standard keyboard and mouse. No software has to be installed on the target, so a normal agent will not see it. The only visible clue is a new HID device on the USB bus.

Collect device connection events with vendor and product IDs, and alert on new input devices on machines where peripherals seldom change. Two keyboards at once, or a device plugged in off-hours when nobody was at the desk, are stronger. Compare to badge logs and the approved peripheral list.

Data sources
EDR device control eventsWindows Kernel-PnP eventsLinux udev logsmacOS Unified Log
Platforms
WindowsmacOSLinux

Logic

usb_connect | where device_class == "HID" and (vid,pid) NOT IN (approved_peripherals) | join asset_role on host where role in ("server","high_value") | table _time, host, vid, pid, product_string

False positives

People bring their own mice, headsets with buttons and docks. Baseline per device group.

Catches 3 techniques