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.
@spruceid/ssx-server
Advanced tools
SSX Server is a server-side library made to work with the SSX client libraries. SSX-Server provides authentication and session management, which can be enabled via an ExpressJS middleware or using the methods provided on the SSXServer class.
SSX Server is a server-side library made to work with the SSX client libraries. SSX-Server provides authentication and session management, which can be enabled via an ExpressJS middleware or using the methods provided on the SSXServer class.
Full documentation for the SSX-Server SDK can be found at docs.ssx.id.
You can add SSX to your server from npm:
yarn add @spruceid/ssx-server
# or
npm install @spruceid/ssx-server
# or
pnpm add @spruceid/ssx-server
Note: Looking for SSX support for other servers besides Express? Check out Configuring SSX on other Servers.
On your server, you'll need to create an instance of ssx-server and pass it to an Express middleware layer, as seen below. ssx-server doesn't require configuration parameters to use, however it's recommended to have the following variables set:
import express from 'express';
import { SSXServer, SSXExpressMiddleware } from '@spruceid/ssx-server';
const ssx = new SSXServer({
signingKey: process.env.SSX_SIGNING_KEY,
provider: {
rpc: {
service: 'infura',
network: 'homestead',
apiKey: process.env.INFURA_API_KEY ?? '',
},
metrics: {
service: 'ssx',
apiKey: process.env.SSX_API_TOKEN ?? '',
},
},
});
const app = express();
app.use(SSXExpressMiddleware(ssx));
app.listen(3001, () => {
console.log(`⚡️[server]: Server is running at http://localhost:${3001}`);
});
FAQs
SSX Server is a server-side library made to work with the SSX client libraries. SSX-Server provides authentication and session management, which can be enabled via an ExpressJS middleware or using the methods provided on the SSXServer class.
The npm package @spruceid/ssx-server receives a total of 5 weekly downloads. As such, @spruceid/ssx-server popularity was classified as not popular.
We found that @spruceid/ssx-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
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.