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.
resolve-symlinks
Advanced tools
npx resolve-symlinks
When you install package using npm/yarn locally (npm i ./path/to/package
) it actually links your package to .config/yarn/link/<package-name> first, and only then to your node_modules folder.
So, if you have 2 folders with locally installed packages with the same name in package.json, the first package you install will be linked to global directory, second one will use link from first package.
The following diagram might help understanding the situation:
Because of that your dev-servers might not work as expected (reload on safe) since your are saving files in one project, while the package is actually linked to other directory.
The whole source code is about 200 lines of code, when it runs it does the following things:
npm i
command. (can be changed later)That is it.
FAQs
Resolve issues with locally installed packages
The npm package resolve-symlinks receives a total of 1 weekly downloads. As such, resolve-symlinks popularity was classified as not popular.
We found that resolve-symlinks 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.