
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
An event based, Global Keyboard and Mouse listener.
Tested on Windows 7, but should work on Linux and Mac OS X as well (untested).
Node didn't have any global keyboard and mouse listener available at the time.
GKM depends on JNativeHook, which runs on Java. Thus you will need to have a JVM available and more importantly, java availble on your PATH.
In the lib folder, you will find gkm.jar, which source you can find at https://github.com/tomzx/gkm-java.
You will also find JNativeHook.jar, which source you can find at https://github.com/kwhat/jnativehook.
Install gkm via node.js package manager:
npm install gkm --save
Then require the package in your code:
var gkm = require('gkm');
// Listen to all key events (pressed, released, typed)
gkm.events.on('key.*', function(data) {
console.log(this.event + ' ' + data);
});
// Listen to all mouse events (click, pressed, released, moved, dragged)
gkm.events.on('mouse.*', function(data) {
console.log(this.event + ' ' + data);
});
The code is licensed under the MIT license (http://opensource.org/licenses/MIT). See license.txt.
FAQs
Global Keyboard and Mouse listener
We found that gkm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.