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.
@mongodb-js/oidc-plugin
Advanced tools
A plugin for the MongoDB Node.js driver to support human/browser-based OIDC authentication flows.
OIDC support is a preview feature of MongoDB and not currently recommended for production usage.
import { MongoClient } from 'mongodb';
import { createMongoDBOIDCPlugin } from '@mongodb-js/oidc-plugin';
// All config options are optional.
const config = {
openBrowser: {
command: 'open -a "Firefox"',
},
// allowedFlows: ['auth-code', 'device-auth'], // if Device Auth Grant flow is required
};
const client = await MongoClient.connect(
'mongodb+srv://.../?authMechanism=MONGODB-OIDC',
{
...createMongoDBOIDCPlugin(config).mongoClientOptions,
}
);
// ...
See the TypeScript annotations for more API details.
FAQs
MongoDB OIDC plugin for the Node.js driver
The npm package @mongodb-js/oidc-plugin receives a total of 66,815 weekly downloads. As such, @mongodb-js/oidc-plugin popularity was classified as popular.
We found that @mongodb-js/oidc-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.