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.
@orzelius/weathermodule
Advanced tools
npm i @orzelius/weathermodule
const { weatherApp } = require('@orzelius/weathermodule');
//Uncached verson
weatherApp.getData('York', 1)
.then(data => console.log(data))
.catch(err => {
throw err;
});
First parameter is the name of the city and the second one is optional index, if more than one city is returned.
const { weatherApp, DataCash } = require('@orzelius/weathermodule');
//Declare cache
const cachedWeatherApp = new DataCash(() => { return weatherApp.getData('York', 1) }, 0.05)
//Use cache
console.log(cachedWeatherApp.getData().then((data) => { console.log(!!data) }));
//Some timeouts to see it work
setTimeout(cachedWeatherApp.getData, 1000);
setTimeout(cachedWeatherApp.getData, 2000);
setTimeout(cachedWeatherApp.getData, 3000);
setTimeout(cachedWeatherApp.getData, 4000);
setTimeout(cachedWeatherApp.getData, 5000);
setTimeout(cachedWeatherApp.getData, 6000);
The 0.05 is cache ttl in minutes (3s in this case)
FAQs
Weather API library
The npm package @orzelius/weathermodule receives a total of 1 weekly downloads. As such, @orzelius/weathermodule popularity was classified as not popular.
We found that @orzelius/weathermodule 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.