
Research
Malicious NuGet Packages Typosquat Nethereum to Exfiltrate Wallet Keys
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
@asymmetrik/sof-strategy
Advanced tools
Strategy for Smart on FHIR authentication that works with Passport like any other passport strategy.
yarn add @asymmetrik/sof-strategy
// Returns a helper function to setup your strategy
const smartBearerStrategy = require('@asymmetrik/sof-strategy');
const passport = require('passport');
// Create our strategy by giving it some config options, all are required
let strategy = smartBearerStrategy({
introspectionUrl: 'https://www.foo.com/introspection',
clientSecret: 'secret',
clientId: 'client',
});
// Configure passport to use this new strategy
passport.use(strategy);
// Integrate it into your routes via middleware or some other mechanism
// Our strategy is a bearer strategy so use bearer for the name
let name = 'bearer';
let options = { session: false };
// Use as middleware use case
// app is a express instance
app.use('/some/protected/route/', passport.authenticate(name, options), someRouteController);
See sof-strategy tests for more usage examples.
@asymmetrik/sof-strategy
exports a single function which takes a single options argument with the following properties.
introspectionUrl
Introspection endpoint. The strategy will attempt to make a request to this endpoint with a token(provided by passport.js), clientId, clientSecret to validate the token has not been modified or resigned.
Type: String
Required: true
clientSecret
Necessary to validate the bearer token. Do not store these in client side code no matter what. This module should only be used server-side.
Type: String
Required: true
clientId
Necessary to validate the bearer token. Do not store these in client side code no matter what. This module should only be used server-side.
Type: String
Required: true
FAQs
Smart on FHIR authorization strategy for passport
We found that @asymmetrik/sof-strategy demonstrated a not healthy version release cadence and project activity because the last version was released 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
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.