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.
Line is designed to work with CoffeeScript.
Here's an example:
line ->
fs.readdir 'my_dir', line.wait()
line (files) ->
fs.readFile "my_dir/#{files[0]}", 'utf8', line.wait('f1')
fs.readFile "my_dir/#{files[1]}", 'utf8', line.wait('f2')
fs.stat "my_dir/#{files[2]}", line.wait()
line (stats) ->
console.log('Contents of the first file:', @results.f1)
console.log('Contents of the second file:', @results.f2)
console.log('Result of fs.stat for the third file:', stats)
# If there is no line.wait() call, the callback will complete immediately
line.error (err) ->
console.log('Oh no! One of the callbacks showed an error!')
line.run ->
console.log('All the tasks completed without errors.')
FAQs
Control flow like a boss
We found that line 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.