Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
an experimental lovely frame
yarn add menhera
import Menhera from "menehra";
const test = ({ _val }) => console.log(_val);
const testFn = ({ _val }) => console.log(_val());
const testEach = ({ _val }) => {
typeof _val === "function" && testFn({ _val });
typeof _val !== "function" && test({ _val });
};
const testRoot = ({ _val }) => {
for (let [key, val] of Object.entries(_val)) {
testEach({ _val: val });
}
};
const _ = new Menhera({
_hooks: {
foo: {
bar: {
foo1: {
bar1: {
$: testEach,
_: testRoot,
test,
testFn
}
}
}
}
},
foo: {
bar: {
foo1: {
bar1: {
test: "foo bar",
testFn: () => "foo bar"
}
}
}
}
});
const _ = new Menhera({
_hooks: {
foo: {
bar: {
$({ _key, _val }) {
console.log(`${_key}: ${JSON.stringify(_val)}`);
}
}
}
}
});
_.$set({
foo: {
bar: {
String: "123456",
Boolean: false,
Number: 123,
Array: [1, 2, 3],
Object: {
1: 1,
2: 2,
3: 3
},
Function: ({ tar }) => val => val + 1
}
}
});
_.$use(
_.$get({
foo: {
bar: {
String: "",
Boolean: ({ tar }) => !tar,
Number: ({ tar }) => tar + 123333,
Array: ({ tar }) => [...tar, ...[4, 5, 6]],
Object: ({ tar }) => ({ ...tar, ...{ 4: 4, 5: 5, 6: 6 } }),
Function: ({ tar }) => tar(123455)
}
}
})
);
FAQs
an experimental lovely framework
The npm package menhera receives a total of 7 weekly downloads. As such, menhera popularity was classified as not popular.
We found that menhera demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.