Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@diefarbe/lib
Advanced tools
This is a Node.JS library for interfacing with the DasKeyboard 5Q.
npm install
npm run-script build # builds the library
npm run-script poc-ts # builds and runs the POC
To prevent needing to run as root, you'll need to update your udev stuff.
Place this file at /etc/udev/rules.d/51-5q.rules
:
SUBSYSTEM=="input", GROUP="input", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="24f0", ATTRS{idProduct}=="2020", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="24f0", ATTRS{idProduct}=="2020", MODE="0666", GROUP="plugdev"
This will give the group plugdev
access to the keyboard.
Then reload your udev configuration with: sudo udevadm control --reload-rules
Then reconnect your keyboard.
In the POC you'll see a way to check the firmware version. Turns out these keyboards are shipping with versions all over the place.
Some early versions may not light up the allColors test properly, or may have bugs that make animations like the sparkleBatch test unrunnable.
Right now, for best results - we're supporting the latest firmware (7.3.253).
FAQs
NodeJS library for connecting to the DasKeyboard 5Q
The npm package @diefarbe/lib receives a total of 0 weekly downloads. As such, @diefarbe/lib popularity was classified as not popular.
We found that @diefarbe/lib demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.