
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@rei-network/utils
Advanced tools
[](https://www.npmjs.org/package/@rei-network/utils) 
Utils include the following classes:
Channel: Contains three implements
Channel: An asynchronous queue, order by the order in which the elements are pushedHChannel: An asynchronous queue, order by customizable heapPChannel: An asynchronous queue, order by element index(grow from 0) and index must be continuousCompress: Provide some functions for compressing and decompressing dataFunctionalMap and FunctionalSet: Key customizable map and setnpm install @rei-network/utils
const channel = new Channel<string>();
channel.push("123");
channel.push("456");
setTimeout(() => {
channel.push("789");
}, 1000);
setTimeout(() => {
channel.push("101112");
}, 2000);
setTimeout(() => {
channel.abort();
}, 3000);
(async () => {
for await (const data of channel.generator()) {
console.log("data:", data);
}
console.log("channel end");
})();
const bufferMap = new FunctionalMap<Buffer, string>((a: Buffer, b: Buffer) =>
a.compare(b)
);
bufferMap.set(Buffer.from("aaaaaa", "hex"), "aaaaaa");
console.log(bufferMap.get(Buffer.from("aaaaaa", "hex")) === "aaaaaa"); // true
FAQs
[](https://www.npmjs.org/package/@rei-network/utils) 
We found that @rei-network/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.