
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
@convertdigital/gamma-cookie
Advanced tools
This package acts as a utility to provide functionality with getting, and setting cookies.
gamma-cookie is a JavaScript utility that provides as a fast and efficient way to get and set browser cookies.
const COOKIE_NAME = "recently_viewed";
const COOKIE_SKUS_NAME = "recently_viewed_skus";
const EXPIRE_TIME = 60 * 60 * 24 * 7; // set cookie expire time to 7 days
const MAX_LIMIT = 10;
const setRecentlyProducts = (handle) => {
let recentlyViewed = getRecentlyProducts();
// Remove current product if it exists
recentlyViewed = recentlyViewed.filter((i) => i !== handle);
// Push new product to start of list
recentlyViewed.unshift(handle);
const newCookieValue = recentlyViewed.slice(0, MAX_LIMIT).join("|");
setCookie(COOKIE_NAME, newCookieValue, { expires: EXPIRE_TIME });
};
const getRecentlyProducts = () => {
const cookieValue = getCookie(COOKIE_NAME) || "";
return cookieValue.length ? cookieValue.split("|") : [];
};
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
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.