Skip to content
Open access

Development of a Raspberry Pi-Based Secure USB Passthrough System to Mitigate Bad USB Keystroke-Injection Attacks

2026 · International journal of research and innovation in social science · 0 citations

TL;DR

A low-cost USB passthrough system that operates independently of host-side security software, using a Raspberry Pi 4 as an intermediary security layer between a keyboard and a host computer is developed.

Abstract

BadUSB attacks exploit the implicit trust that operating systems place in USB Human Interface Devices (HIDs), enabling a malicious peripheral to inject automated keystrokes and execute commands as if they originated from a legitimate user. This study develops a low-cost USB passthrough system that operates independently of host-side security software, using a Raspberry Pi 4 as an intermediary security layer between a keyboard and a host computer. The prototype combines VID/PID-based device identification, whitelist and blacklist controls, real-time keystroke-timing analysis, CAPTCHA-based human verification, input forwarding, and security-event logging. A Raspberry Pi Pico configured as a malicious HID was used in a preliminary, attack-driven functional evaluation comprising seven black-box test cases covering device enrolment, normal keyboard passthrough, resilience, malicious-keystroke detection, human verification, logging, and administrative functions. Of 18 predefined functional outcomes, 16 passed, one partially passed, and one failed. These outcomes demonstrate the functional feasibility of the prototype under the tested configuration but do not represent detection accuracy or general classification performance. The limited evaluation did not support the calculation of a confusion matrix, precision, recall, F1-score, or false-positive rate. The preliminary latency comparison indicated an additional average delay of 1.15 ms; however, the available experiment did not provide sufficient statistical evidence for broader performance interpretation. Broader repeated testing involving multiple users, devices, operating systems, attack patterns, and statistically rigorous latency measurements is required before operational deployment.

Read PDF

Similar papers

Review Aug 2026

TENET: Telegram Mini App (in)security

This work presents TENET, a purpose-built auditing tool whose design decisions are grounded in the structural properties of the secrets targeted and empirically validated against a ground-truth dataset, and proposes mitigation measures and best practices for both Telegram platform developers and third-party Mini App cr...

Andrea Ciccotelli, Federico Zappone, R. Di Pietro · 0 citations
Review Open access Sep 2026

Keyloggers: Modern Malware Implementations, Techniques, and Security Threats

This paper surveys keyloggers and provides a real-time coding demonstration to illustrate the working behind keylogging. The paper traces the evolution of keylogging technology and classifies the tools into four broad categories – hardware, software, remote and electromagnetic – with attack vectors and operational risk...

Arijit Das · 0 citations
Preprint Aug 2026

SSHafe: A Real-Time SSH Brute Force Attack Detection and Novel Credential Rotation Standard

The proposed novel password reset standard performs authentication and password update in a single cryptographically bound flow, eliminating the need for sessions, cookies, OTPs, or email-based verification, and mitigating phishing, session hijacking, CSRF, and replay attacks.

Aditya Mitra, Amar Kumar Mandal, Amaan Rais Shah et al. · 0 citations
Open access 2026

A Linux Kernel USB Proxy With Integrated Threat Detection

Universal Serial Bus (USB) devices are widely used due to their flexibility, but they also introduce security risks because they expose multiple interfaces that are implicitly trusted by the operating system. A representative example is BadUSB, in which modified device firmware injects malicious input while the device...

Mădălin Vasile, Mariana Mocanu · 0 citations
Open access Sep 2026

BehaviorGuard: A Host-Based Behavioral Ransomware Detection and Automated Containment System Using Wazuh SIEM and Microsoft Sysmon

Ransomware remains one of the most disruptive cyber threats facing organizations globally. Modern families including LockBit 3.0, ALPHV/BlackCat, Akira, and Cl0p employ polymorphic code, fileless execution, and living-off-the-land (LOLBin) techniques that defeat traditional signature-based defenses. BehaviorGuard is an...

Mohammad Arafath Uz Zaman Khan, Md. Kamrul Hasan · 0 citations
Conference Aug 2026

Security Analysis of IRC Server Design: Mapping Protocol Features to Attack Vectors Using the MITRE ATT&CK Framework

Internet Relay Chat (IRC) server development remains a cornerstone of computer networking education. However, these academic practices often prioritize functional concurrency over defensive design, leading to an accumulation of security vulnerabilities. This paper analyzes how functionality-first designs unconsciously...

Melisa Saritas, Yusuf Tahir Kaya, Malek Malkawi et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.