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.
😴🙅
Prevent your laptop from sleeping. (macOS only for now.)
const {WakeLock} = require('wake-lock')
const lock = new WakeLock("Reticulating splines")
// ... reticulate the splines, which process must not be interrupted ...
lock.release()
new WakeLock(reasonForLocking, {type: "idle" | "display"})
Creates a new wake lock which will prevent the machine from going to sleep due to idle detection until the lock is released. Forced sleep, e.g. from closing the laptop's lid or a low battery emergency, will not be prevented. Multiple wake locks are allowed: the machine will stay awake until all wake locks are released.
reasonForLocking
String - a descriptive string used by the system whenever
it needs to tell the user why the system is not sleeping. For example, "Mail
Compacting Mailboxes" would be a useful string.options
Object (optional)
type
"idle" | "display" - if "display" is specified, display sleep will
be prevented. If "idle" is specified (the default), the display will sleep
but the machine will stay awake while the lock is held.WakeLock.release()
Releases a wake lock, allowing the machine to sleep. Calling this function on a lock that has already been released will throw an error.
FAQs
keep your computer awake
We found that wake-lock 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
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.