An end user plugs in a USB keyboard purchased from an unverified online marketplace, and the computer immediately begins executing automated command-line instructions without user intervention. What type of hardware threat has occurred?
The device enumerates as a trusted USB human interface device but firmware emulates keystrokes, injecting commands the operating system treats as legitimate keyboard input. This is keystroke injection via a compromised HID device, executing without user interaction.
Why this answer
A USB keyboard that immediately executes automated command-line instructions is a classic keystroke injection attack, where the device presents itself as a Human Interface Device (HID) and sends pre-programmed keystrokes to the host. This is often achieved with devices like the USB Rubber Ducky, which emulate a keyboard and can execute scripts at high speed. The correct answer is a keystroke injection attack using a compromised HID device.
Exam trap
FORTINET-NSE123 often tests the confusion between keystroke injection and other hardware threats, such as logic bombs or RAM scraping, by describing a device that acts as a keyboard but performs malicious actions.
How to eliminate wrong answers
Option B is wrong because a DDoS attack involves overwhelming a target with traffic from multiple sources, which is not what a keyboard firmware does; a keyboard cannot generate network-level floods. Option C is wrong because a hardware logic bomb typically refers to malicious code that triggers under specific conditions, and it does not physically destroy the motherboard upon boot; physical destruction is not a standard logic bomb behavior. Option D is wrong because RAM scraping involves reading volatile memory to extract sensitive data, not executing command-line instructions; a keyboard cannot directly read RAM contents.