
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Run JXA code and get result.
Install with npm:
npm install @jxa/run
Requirement:
export declare function run<R>(jxaCodeFunction: (...args: any[]) => void, ...args: any[]): Promise<R>
Illustration of usage
const resultPromise = run(JSXFn, argumentsOfJSXFn);
JSXFn
: This function is run as JXA.
JSXFn
is serialized(toString
) and pass to JXA environment.argumentsOfJSXFn
explicitlyargumentsOfJSXFn
: An arguments of JSXFn
OK:
// OK
(async () => {
// `name` is "nodejs"
const result = await run(name => {
return "Hello there, " + name + "!"
}, "nodejs");
assert.strictEqual(result, "Hello there, nodejs!");
})();
NG:
// NG
(async () => {
const name = "nodejs"
const result = await run(name => {
return "Hello there, " + name + "!"; // can not access to `name` from JXA enviroment
});
assert.strictEqual(result, "Hello there, nodejs!");
})();
(async () => {
const result = await run(
// run this function as JXA code
() => {
return Application("System Events")
.currentUser()
.name()
}
);
assert.strictEqual(result, process.env.USER);
})();
See Releases page.
yarn test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu
FAQs
Run JXA code and get result.
The npm package @jxa/run receives a total of 2,049 weekly downloads. As such, @jxa/run popularity was classified as popular.
We found that @jxa/run 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.