
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Alleviate browser bugs for input events
The 'input' event is awesome. It's triggerred when an input is modified.
At least it's meant to. All browsers currently have some circumstances where they fail to trigger it. See here for a nice summary.
inputevent libraryThis library alleviates this by firing the missing 'input' events when needed.
load the library
call inputevent.install()
Iit correctly detects what needs to be patched for all browsers, including future versions that hopefully will fix their behavior
Instead of targetting particular versions of browser,
we listen for the first 'input' or 'change' event triggerred
for the problematic types of inputs.
If an 'input' event is received first, all is well.
Otherwise, we listen for future 'change' events and
trigger a corresponding 'input' event each time.
It's about 50 lines of code.
In browsers that we "fix", the 'input' event happens after the 'change' event
instead of before.
We make a best effort to distinguish between native events and those triggered by JS code.
We ignore non-native events completely, so if you trigger a 'change' event with JS code for a "fixed" type of input, we won't trigger an 'input' event. Thanks to incomplete support for event.isTrusted in Chrome / Safari / Opera, events that are triggeried via JS and not using jQuery may not be distinguished though.
Similarly, triggering a 'change' or an 'input' event with JS code (not using jQuery and with a browser not supporting isTrusted), before an actual user interaction happens, could fool the detection code into erroneously thinking that the browser needs (or doesn't need) "fixing".
FAQs
Alleviate browser bugs for input events
The npm package inputevent receives a total of 12 weekly downloads. As such, inputevent popularity was classified as not popular.
We found that inputevent 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.