
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
kuma creates lazy properties for Objects which get evaluated & cached the first time they are accessed. This is an easy way to delay going over the wire for an async value, or running an inline function!
const kuma = require("kuma");
let x = {};
kuma(x, "abc", "foo");
x.abc; // "foo" <- string has been cached
x.abc; // "foo" <- accessed the cached value
x.abc = "bar"; // <- cleared the cached value, & result
x.abc; // "bar" <- string has been cached
// Creating a lazy `Promise` via `fetch()`, re-executing this would clear a cached `Promise`
kuma(x, "github", function () {
return fetch("https://api.github.com/").then(function(res) {
return res.json();
});
});
// Access the property later; it'll be cached until `x.github` is overridden
x.github.then(function(data) {
console.log(data);
}, function (e) {
console.error(e.stack || e.message || e);
});
kuma supports AMD loaders (require.js, curl.js, etc.), node.js & npm (npm install kuma), or using a script tag.
Copyright (c) 2016 Jason Mulligan Licensed under the BSD-3 license.
FAQs
Lazy properties for Objects
We found that kuma 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.