O.mg Cable
shop.hak5.org
shop.hak5.org
Yes, it would still spoof the apple Magic Keyboard or whatever, but you’d need to allow the keyboard to be a keyboard every time you connect it. If you plug in something that should definitely not be a keyboard, you can investigate the cable by swapping out with a known good cable.
something would need special treatment that would be an attack surface.
It's a defense against the OMG cable which attacks you when you connect known-good items. If Logitech or Apple peripherals are counterfeited it will provide less benefit.
Any legitimate input device will easily pass this check, while devices that pretend to be keyboards won't because they have no view of the screen.
Of course the attack here is then to replace the keyboard USB cable with the evil one.
Not everybody survives after telling unexpected or inconvenient truths to the monarch.