
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Install the 'oneid' package using NPM.
npm install oneid
Include the 'oneid' package in your Node application.
var oneid = require('oneid');
If you've already obtained OneID API credentials, create your client using the oneid.getClient() method.
var client = oneid.getClient(API_ID, API_KEY)
Otherwise, don't use any parameters and then use the register() method to generate some fresh credentials.
var client = oneid.getClient()
client.register(function(response) {
// {
// "API_KEY": "noscJaqlagYS/cDAijsbNr==",
// "API_ID": "cf438e4e-a7d0-49f4-b85e-6182ec3704cb"
// }
client.setCredentials(response.API_ID, response.API_KEY)
})
Then set up a route in your Node application that matches the challenge callback used by the OneID JavaScript API.
app.post('/auth', function(req, res) {
client.validate(req.body, function(oneid_res) {
if (oneid_res.isValid()) {
// save or update user record here
res.status(200).json({
errorcode: 0,
error: "success",
valid: true
});
}
else {
res.status(200).json({
errorcode: -99,
error: oneid_res.getResponse() || "login not authorized",
valid: false
});
}
})
})
FAQs
NodeJS plugin for OneID authentication.
The npm package oneid receives a total of 1 weekly downloads. As such, oneid popularity was classified as not popular.
We found that oneid demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.