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.
npm i -g dujs
dujs .
╔═══════════════════════════════════════════════╤════════════╗
║ /home/chaksoft/tools/dujs │ 54.30 MiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/node_modules │ 54.09 MiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/.git │ 104 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/bin │ 8 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/lib │ 8 KiB. ║
╚═══════════════════════════════════════════════╧════════════╝
You can specify some options :
-d [depth=1]
: Search depthYou can specify the depth of the search for the du command.
dujs -d 2 .
will set the depth to 2.
Be aware that a big depth could make the command take a very long time.
-n
: Non human size displayTo avoid having a non-human size display (only displaying the number of kilobytes used), set the -n
flag.
-r
: Reverse sortingTo sort the directories by reversed order (lightest folders first), set the -r
flag.
dujs -r .
╔═══════════════════════════════════════════════╤════════════╗
║ /home/chaksoft/tools/dujs/bin │ 8 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/lib │ 8 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/.git │ 104 KiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs/node_modules │ 54.09 MiB. ║
╟───────────────────────────────────────────────┼────────────╢
║ /home/chaksoft/tools/dujs │ 54.34 MiB. ║
╚═══════════════════════════════════════════════╧════════════╝
-f
: Include all filesWrapping around the -a
flag of the du
command. Displays all the files that are scanned, respecting the depth property.
This software is licensed with the GPL-v3.0 license. See LICENSE file for further information.
FAQs
JS porting for DU command
The npm package dujs receives a total of 0 weekly downloads. As such, dujs popularity was classified as not popular.
We found that dujs 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’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.