A USB Rubber Ducky is a programmable device that can present itself to a computer as a keyboard. It can type a prepared sequence very quickly. That is different from an ordinary USB flash drive containing files you choose to open, and it is why an unknown USB device can be risky even if you never open a document.
Updated : Corrected the keyboard-versus-storage explanation, removed claims of automatic full control, and added practical protection and incident steps.

How does a Rubber Ducky work?
Computers accept input from USB keyboards. A keystroke-injection device uses that route to send key presses, potentially opening windows, entering text, or starting actions in the signed-in session. Hak5’s official Rubber Ducky documentation describes the tool and its legitimate automation and security-testing uses.
The outcome depends on the device’s program, the operating system, the active window, timing, and the user’s permissions. Plugging one in does not automatically bypass a locked screen, encryption, administrator approval, or every security control.
| Device or technique | Main role | Important limit |
|---|---|---|
| Ordinary flash drive | Stores files | Files and software on it can still be unsafe |
| Rubber Ducky in keyboard mode | Sends programmed keystrokes | Actions depend on the computer’s state and permissions |
| Hardware keylogger | Captures keyboard input in a suitable setup | This is a different function; keyboard injection alone does not record every key you type |
What is a Rubber Ducky used for?
IT staff and security testers can use one for approved demonstrations, repeatable input tasks, and checks of physical-access controls. A malicious person could use similar hardware to try to run unwanted commands on an unattended computer.
Possible harm includes changing settings, starting unwanted software, or accessing files the signed-in user can reach. These are possible results of a successful sequence, not guaranteed features triggered by power alone. Do not test an unknown device on a work or personal computer to find out what it does.
Can it also work as an actual USB drive?
Capabilities depend on the model and configured mode. Some models support storage as well as keyboard functions; others behave differently. A device appearing in a file manager is therefore not proof that storage is its only function.
Likewise, a normal-looking case, familiar logo, or small size cannot show whether a device is safe. High CPU use is not a dependable way to spot keyboard injection, which can happen quickly.
How to reduce the risk
- Use USB devices you know and trust. Give found drives to the appropriate lost-property or IT team.
- Lock your computer when leaving it. Keep shared computers and their ports under suitable physical control.
- Use a standard user account for everyday work. Avoid approving unexpected administrator prompts.
- Keep security tools and the operating system updated. Antivirus can help with later malicious actions, but it should not be your only control.
- At work, ask IT about device controls. A storage-only restriction may not cover a device acting as a keyboard.
What if you plugged in a suspicious USB device?
Disconnect it and stop using it. If commands appeared or files opened unexpectedly, tell your IT team and follow its incident process. On a personal computer, review the activity with trusted security support. If account details may have been exposed, change those passwords from a separate trusted device.
For wider home-device protection, see our home camera security checklist. USB controls and network security address different routes into your devices; neither replaces the other.