03 /
DuckyFence
Security engineer — personal build · Mar — Apr 2026
A defence against USB sticks that pretend to be keyboards — it recognises non-human typing and locks the machine in under half a second.
SecurityAI engineering
There's a classic hacking device that looks like a USB stick but tells the computer it's a keyboard — then types a malicious payload faster than any human could react. The operating system just believes it. My answer: treat typing rhythm itself as the security signal. A machine-learning classifier watches keystroke timing, and the instant the pattern isn't human, all input is blocked and the screen locks behind a randomised challenge.
- Detects automated keystroke injection in under 500 milliseconds — before a payload finishes
- Machine-learning classifier (Random Forest) trained on behavioural typing-rhythm features
- Runs silently in the Windows system tray; on detection, blocks all input and locks the screen
<500ms
detection latency
100%
of input blocked on alert
Python · scikit-learn · Windows internals · USB/HID