
Research
Malicious npm Package Brand-Squats TanStack to Exfiltrate Environment Variables
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.
cache-driver-cache
Advanced tools
npm install cache cache-driver-cache --save
This section is if you're adding this driver to your package. It also assumes you're using TypeScript.
import { Cache } from "cache-driver"
export class MyAwesomeClass {
private cache: Cache|null = null;
constructor(cache?: Cache) {
if (cache) {
this.cache = cache;
}
}
public someMethod() {
if (this.cache !== null) {
this.cache.save("sessionId", "somerandomstring", 2);
}
}
}
This is assuming you're using MyAwesomeClass from above as well as TypeScript.
This also assumes you're using the cache package.
import { CacheAdapter } from "cache-driver-cache"
let awesome = new MyAwesomeClass(new CacheAdapater());
FAQs
A cache package adapter for cache-driver
We found that cache-driver-cache 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
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.

Research
Compromised SAP CAP npm packages download and execute unverified binaries, creating urgent supply chain risk for affected developers and CI/CD environments.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.