
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
Simple robust cookie library
class to determine matching qualities of a cookie
It turns input into a Cookie (singleton if given a Cookie),
the request_domain argument is used to default the domain if it is not explicit in the cookie string,
the request_path argument is used to set the path if it is not explicit in a cookie String.
Explicit domains/paths will cascade, implied domains/paths must exactly match (see http://en.wikipedia.org/wiki/HTTP_cookie#Domain_and_Pat).
String toString() - the set-cookie: string for this cookieString toValueString() - the cookie: string for this cookieCookie parse(cookiestr, request_domain, request_path) - parses the string onto this cookie or a new one if called directlyBoolean matches(access_info) - returns true if the access_info allows retrieval of this cookieBoolean collidesWith(cookie) - returns true if the cookies cannot exist in the same space (domain and path match)class to hold numerous cookies from multiple domains correctly
Cookie setCookie(cookie, request_domain, request_path) - modify (or add if not already-existing) a cookie to the jarCookie[] setCookies(cookiestr_or_list, request_domain, request_path) - modify (or add if not already-existing) a large number of cookies to the jarCookie getCookie(cookie_name,access_info) - get a cookie with the name and access_info matchingCookie[] getCookies(access_info) - grab all cookies matching this access_infoTough-cookie is another popular npm package for handling cookies in Node.js. It offers a robust API for cookie manipulation and parsing, including asynchronous cookie storage, which cookiejar does not support. Tough-cookie is often preferred for more complex cookie handling tasks.
The 'cookie' npm package is simpler and more lightweight compared to cookiejar. It focuses primarily on parsing and serializing cookie headers, without the additional management features like a cookie jar. This makes it suitable for applications that require minimal cookie handling capabilities.
FAQs
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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.