
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.
reflect.ownkeys
Advanced tools
An ES2015 spec-compliant Reflect.ownKeys shim. Invoke its "shim" method to shim Reflect.ownKeys if it is unavailable or noncompliant.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec.
Most common usage:
var assert = require('assert');
var ownKeys = require('reflect.ownkeys');
var obj = { a: 1, b: 2, c: 3 };
var expected = ['a', 'b', 'c'];
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
// for environments with Symbol support
var sym = Symbol();
obj[sym] = 4;
obj.d = sym;
expected.push(sym, 'd');
}
assert.deepEqual(ownKeys(obj), expected);
if (!Reflect.ownKeys) {
ownKeys.shim();
}
assert.deepEqual(Reflect.ownKeys(obj), expected);
Simply clone the repo, npm install, and run npm test
FAQs
ES2015 spec-compliant shim for Reflect.ownKeys
The npm package reflect.ownkeys receives a total of 511,805 weekly downloads. As such, reflect.ownkeys popularity was classified as popular.
We found that reflect.ownkeys demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.