Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@signalapp/windows-dummy-keystroke
Advanced tools
This package exports `sendDummyKeystroke()`, which will send a generic key down/up event on Windows.
This package exports sendDummyKeystroke()
, which will send a generic key down/up event on Windows.
This is a workaround for an issue with Windows Notifications. Normally you can call the native AllowSetForegroundWindow
method to permit another application to take foreground focus. But when an app is started from a Windows notification activation, this call fails with ERROR_ACCESS_DENIED
. One of a list of conditions has to be met for the call to succeed.
Sending a key press event satisfies this check and lets AllowSetForegroundWindow
succeed.
This is useful for letting a second instance of a program activate the original instance. In Electron, you would call this before calling requestSingleInstanceLock()
, as this can call AllowSetForegroundWindow
for the initial instance.
This workaround was used by Chromium to solve a foreground focus issue, and is adapted here for use with Node.
FAQs
This package exports `sendDummyKeystroke()`, which will send a generic key down/up event on Windows.
The npm package @signalapp/windows-dummy-keystroke receives a total of 4 weekly downloads. As such, @signalapp/windows-dummy-keystroke popularity was classified as not popular.
We found that @signalapp/windows-dummy-keystroke demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.