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.
# Get the latest release.
npm i cachu
Note - Need an introduction to v6? Here you go!
import { useCache } from 'cachu'
const cache = useCache({
maxAge: '10m', // 10 minutes, can be specified as number (in seconds) or readable string
...
})
// Add a new entry.
await cache.add('one', 'Hello World')
const entry = await cache.get('one') // 'Hello World'
maxAge
to set the maximum age for each record in the cache (defaults to 600s)maxAmount
to set the maximum size for the cache (defaults to 10000)autodelete
to delete overaged entries on adding/updating (disabled by default)add()
addMany()
get()
getMany()
update()
updateMany()
remove()
removeMany()
has()
size()
(get the cache size in bytes)keys()
values()
clear()
(delete all overaged entries manually)FAQs
👾 A simple key-value cache for Node.js.
The npm package cachu receives a total of 4 weekly downloads. As such, cachu popularity was classified as not popular.
We found that cachu 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.