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.
@cocalc/cdn
Advanced tools
Files that CoCalc uses that would be natural in various contexts to get from a CDN
This directory contains additional resources for at least the /index.html
and /app
page. Many of these were served directly from CDN's before. However, that introduces a dependency where CoCalc.com can't load unless all these random CDN's also work... and that is unacceptable for two reasons:
Run npm ci
to install the modules in the node_modules directory, as usual. The run npm run build
to update the dist/
subdirectory with all relevant data ready to be served via various webservers. The setup.py
script (that npm run build
uses) makes sure to include a version number in the path, because all files will be served with a long cache time.
IMPORTANT: we copy all the files from node_modules
to dist, rather than just making symlinks, because (1) the symlinks don't get published to npm anyways, and (2) the node_modules
folders would likely get hoisted away when we install elsewhere, thus breaking everything.
Other files in packages/assets
might not be used any more. At some point we can clean them up.
We have to run a postinstall script to create the versioned symlinks, since -- to be cross platform -- npm itself doesn't support symlinks.
FAQs
Files that CoCalc uses that would be natural in various contexts to get from a CDN
The npm package @cocalc/cdn receives a total of 67 weekly downloads. As such, @cocalc/cdn popularity was classified as not popular.
We found that @cocalc/cdn 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.