Provided is a method of securing a Universal Serial Bus (USB) keyboard. According to the method, a keyboard security operation is performed at a host controller driver level, which is one level lower than a USB hub driver level. Thus, it is possible to rapidly and effectively prevent a malicious program from leaking information input from a keyboard that is in communication with a main frame and transfers data via a USB.