
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.
Documentation of the protocol, and the JS API, is in https://github.com/mozilla/hawk/blob/main/API.md.
This was once hueniverse/hawk and relased as hawk.
Then, after the 7.0.10 release, it was moved to the hapijs/hawk repository and released as @hapi/hawk.
Hapi later de-supported the library, after releasing version 8.0.0.
It has since been moved to mozilla/hawk and is again released as hawk.
All of the intermediate versions are also relased as hawk.
Changes are represented in GitHub releases on this repository.
Mozilla maintains several Hawk implementations in different langauages, so it is likely to stay at Mozilla for some time.
This library is in "maintenance mode" -- no features will be added, and only security-related bugfixes will be applied.
The 'jsonwebtoken' package is used to sign and verify JSON Web Tokens (JWTs). It provides a way to securely transmit information between parties as a JSON object. Unlike Hawk, which focuses on message integrity and authentication, 'jsonwebtoken' is more about token-based authentication and authorization.
The 'oauth2-server' package is a complete, framework-agnostic implementation of the OAuth2 server specification. It provides tools for implementing OAuth2 authorization flows, which is a more comprehensive and flexible approach to authentication and authorization compared to Hawk's simpler message authentication.
The 'passport' package is a popular authentication middleware for Node.js. It supports a wide range of authentication strategies, including OAuth, OpenID, and JWT. While Hawk focuses on message authentication, 'passport' provides a more extensive set of tools for handling various authentication methods.
FAQs
HTTP Hawk Authentication Scheme
The npm package hawk receives a total of 1,038,885 weekly downloads. As such, hawk popularity was classified as popular.
We found that hawk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.