Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
global-mouse-events
Advanced tools
Global mouse events listener for Node.js (Windows only). Based off of sentialx/mouse-hooks and coldKey1/mouse-hooks.
npm i global-mouse-events
Import the module and register for the mouse events you'd like to listen to.
mouseup
/ mousedown
— Fires when a mouse button is pressed / released.
Returns:
mousemove
— Fires when the mouse cursor is moved.
Returns:
mousewheel
— Fires when the mouse wheel is scrolled. Some trackpads may not fire this event unless "Scroll inactive windows when I hover over them" is disabled in the Windows settings.
Returns:
const mouseEvents = require("global-mouse-events");
mouseEvents.on("mouseup", event => {
console.log(event); // { x: 2962, y: 483, button: 1 }
});
mouseEvents.on("mousedown", event => {
console.log(event); // { x: 2962, y: 483, button: 1 }
});
mouseEvents.on("mousemove", event => {
console.log(event); // { x: 2962, y: 482 }
});
mouseEvents.on("mousewheel", event => {
console.log(event); // { x: 2962, y: 483, delta: -1, axis: 0 }
});
pauseMouseEvents
— Pauses all mouse events.resumeMouseEvents
— Resumes all mouse events.getPaused
— Returns the paused state as a boolean.FAQs
Global mouse events listener for Node.js (Windows only)
We found that global-mouse-events demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.