
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
Run JXA code and get the result
JXA is JavaScript for Automation on macOS. Requires macOS 10.10 or later.
npm install run-jxa
Use a function:
import {runJxa} from 'run-jxa';
const result = await runJxa((unicorn, horse) => {
// This is run in the JXA engine
return `I love ${unicorn} & ${horse}`;
}, ['🦄', '🐴']);
console.log(result);
//=> 'I love 🦄 & 🐴'
Or a string:
import {runJxa} from 'run-jxa';
const result = await runJxa(`
const [unicorn, horse] = args;
return \`I love \${unicorn} & \${horse}\`;
`, ['🦄', '🐴']);
console.log(result);
//=> 'I love 🦄 & 🐴'
Cancel a long-running script:
import {runJxa} from 'run-jxa';
const controller = new AbortController();
// Cancel after 5 seconds
setTimeout(() => {
controller.abort();
}, 5000);
try {
const result = await runJxa(() => {
// Some potentially long-running operation
const app = Application('Finder');
return app.windows.length;
}, undefined, {signal: controller.signal});
console.log(result);
} catch (error) {
if (error.name === 'AbortError') {
console.log('Script was cancelled');
}
}
Returns a Promise for the value returned from input.
Returns the value returned from input.
Type: Function | string
If a function, it's stringified and passed to JXA. It should be pure, meaning it doesn't access anything outside its body.
If a string, you can access the specified arguments with args array. Use the arguments parameter rather than template interpolation so you don't have to do escaping.
You can console.log inside input. It will be forwarded to stdout. Useful for debugging.
Note: The JXA context is completely synchronous, so asynchronous functions like setTimeout are not available.
Type: unknown[]
Arguments to pass to the JXA context.
Items should be serializable (JSON.stringify'able).
Type: object
Type: AbortSignal
An AbortSignal that can be used to cancel the JXA execution.
Only supported by the async runJxa() function, not the sync version.
FAQs
Run JXAcode and get the result
The npm package run-jxa receives a total of 15,310 weekly downloads. As such, run-jxa popularity was classified as popular.
We found that run-jxa demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.