Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
openfin-adapter
Advanced tools
Allows the use of the Hadouken API from node.js.
$ npm install -S hadouken-js-adapter
Connecting to an already running runtime
const { connect, Identity } = require("hadouken-js-adapter");
async function launchApp() {
const fin = await connect({
address: "ws://localhost:9696",
uuid: "my-uuid-123"
});
const version = await fin.System.getVersion();
console.log("Connected to Hadouken version", version);
await fin.Application.start({
name: "adapter-test-app",
url: 'http://hadouken.io/',
uuid: "adapter-test-app",
autoShow: true,
nonPersistent : true
});
}
launchApp().then(() => {
console.log("success");
}).catch((err) => {
console.log("Error trying to connect,", err.message);
console.log(err.stack);
});
Launching a runtime and connecting
const { connect, Identity } = require("hadouken-js-adapter");
async function launchApp() {
const fin = await connect({
uuid: "my-uuid-123",
runtime: {
version: 'stable'
}
});
const version = await fin.System.getVersion();
console.log("Connected to Hadouken version", version);
await fin.Application.start({
name: "adapter-test-app",
url: 'http://hadouken.io/',
uuid: "adapter-test-app",
autoShow: true,
nonPersistent : true
});
}
launchApp().then(() => {
console.log("success");
}).catch((err) => {
console.log("Error trying to connect,", err.message);
console.log(err.stack);
});
Note that either an address or a runtime object with version are required to connect
In order to configure system policies, the js adapter respects the following group policy settings when set as environment variables on Mac and Linux:
npm run build
npm test -- --ver=alpha
Only executing tests that pattern match "Application"
npm test -- --ver=alpha --grep="Application"
Executing tests that do not pattern match "System"
npm test -- --ver=alpha --invert --grep="System"
npm test -- --ver=alpha --build-core --core=~/core
or without specifying the core path (core will be cloned from GH into core
directory):
npm test -- --ver=alpha --build-core
To start the read-eval-print loop:
npm run repl -- --ver=alpha
We use JSDoc for documentation and generating the documentation will require our custom JSDoc template. Use the following commands to execute the docs task:
git submodule init
git submodule update
npm run doc
git checkout -b feature/fooBar
)git commit -am 'Add some fooBar'
)git push origin feature/fooBar
)NOTE: Commits and pull requests to FINOS repositories will only be accepted from those contributors with an active, executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active Corporate Contribution License Agreement (CCLA) executed with FINOS. Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS Clabot tool. Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.
Need an ICLA? Unsure if you are covered under an existing CCLA? Email help@finos.org
The code in this repository is distributed under the Apache License, Version 2.0
However, if you run this code, it may call on the OpenFin RVM or OpenFin Runtime, which are covered by OpenFin's Developer, Community, and Enterprise licenses. You can learn more about OpenFin licensing at the links listed below or just email us at support@openfin.co with questions.
Copyright 2018-2019 OpenFin
FAQs
Allows the use of the OpenFin API from node.js. Please note the launch and connect methods are specific to a node environment.
The npm package openfin-adapter receives a total of 2,000 weekly downloads. As such, openfin-adapter popularity was classified as popular.
We found that openfin-adapter 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.