
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.
Tạo file .env
USER_AGENT=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
COOKIE=
SELF_FACEBOOK_ID=
index.ts
import { listen, UserConnectOptions } from 'azsa'
import config from './config'
import log from './utils/log'
const { userData } = config
if (!(userData.userAgent && userData.cookie && userData.selfFacebookID)) {
log('error', 'Invalid user data.', JSON.stringify(userData))
process.exit()
}
const User: UserConnectOptions = {
userAgent: userData.userAgent,
cookie: userData.cookie,
selfFacebookID: parseInt(userData.selfFacebookID, 10),
}
listen(User, (message, Api) => {
log('info', message.text)
})
message props| Event Type | Field | Description |
|---|
FAQs
New Unoffical Facebook API
We found that azsa 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.