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.
Tiny NPM module for the REST API of dadata.ru
var dadata = require('dadata')(process.env.DADATA_API_KEY, process.env.DADATA_SECRET_KEY);
dadata('address', ['мск сухонска 11/-89'], function (err, res) {
console.log(err);
console.log(res);
});
Before use, this service must be properly configured: you have to provide your API_KEY
and SECRET_KEY
to the constructor.
var Dadata = require('dadata'),
dadata_account_1 = new Dadata('<API_KEY_1>', '<SECRET_KEY_1>'),
dadata_account_2 = new Dadata('<API_KEY_2>', '<SECRET_KEY_2>');
If you don't plan to utilize multiple instances of dadata service, it's also possible to use the short notation.
var dadata = require('dadata')('<YOUR_API_KEY>', '<YOUR_SECRET_KEY>');
Exposed dadata
service is the function of 3 arguments (function (apiType, queries, callback) {...}
), where:
['address', 'birthdate', 'email', 'name', 'phone']
;function (error, result) {...}
; if everything's fine, then error
is undefined and result
contains a dadata response (an array of objects, corresponding to your array of queries); if something went wrong, error
will contain an object with code
and message
fields, and result
will be undefined.FAQs
REST API for dadata.ru
The npm package dadata receives a total of 55 weekly downloads. As such, dadata popularity was classified as not popular.
We found that dadata 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.