A security researcher has revealed that some HP laptops have hidden software which can log everything typed on its keypads. More than 460 models have been affected, dating back to 2012, according to the list released by HP.

The discovery was made by researcher Michael Myng who found the keylogging code in the pre-installed Synaptics Touchpad software on HP laptops.

Keyloggers record every key that is pressed on a keyboard. This means HP laptop users are at risk of having their passwords, bank details, private communications and search history recorded without their knowledge. The keylogger is disabled by default but there’s risk it can be enabled by a hacker.

Keyboard app security gaffe exposes 31mn users’ data including passwords, web searches https://t.co/CJjBp8ouHopic.twitter.com/ng4tPC7V72 — RT (@RT_com) December 6, 2017

Myng, who is known online as "ZwClose," learned about the keylogger when he was examining the Synaptics Touchpad software to find out how to control the keyboard backlight. Myng has issued a software patch to remove the keylogger, and HP has released a driver update for affected laptops.

HP says neither the company nor Synaptics had access to the files, and that it was built into the Synaptics software to help debug errors.

"HP uses Synaptics' touchpads in some of its mobile PCs and has worked with Synaptics to provide fixes to their error for impacted HP systems, available via the security bulletin on HP.com," HP said. The company provided a list of models affected.

This is the second keylogger code found in HP laptops this year. In May, Swiss security firm Modzero discovered a keylogger built into the HP audio driver.

Also this year, the company was found to have installed spyware applications on Windows 10 computers. Following a November update, users began noting a HP TouchPoint Analytics Client was installed and uploading information to HP servers daily.