![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
elarian
Advanced tools
Readme
A convenient way to interact with the Elarian APIs.
Project Status: Still under ACTIVE DEVELOPMENT, APIs are unstable and may change at any time until release of v1.0.0.
You can install the package from npm by running:
$ npm install elarian
// on node
const { Elarian } = require('elarian');
/*
or in the browser
<script src="web.js"></script>
// or import { Elarian } from 'elarian/web'
*/
// ...
const elarian = new Elarian({
apiKey: 'YOUR_API_KEY', // or authToken: 'YOUR_AUTH_TOKEN'
orgId: 'YOUR_ORG_ID',
appId: 'YOUR_APP_ID',
});
elarian.on('ussdSession', async (notification, customer, appData, callback) => {
const {
input,
sessionId,
} = notification;
let {
name,
state = 'newbie',
} = appData || {};
const menu = {
text: null,
isTerminal: true,
};
switch (state) {
case 'veteran':
if (name) {
menu.text = `Welcome back ${name}! What is your new name?`;
menu.isTerminal = false;
} else {
name = input.text;
menu.text = `Thank you for trying Elarian, ${name}!`;
menu.isTerminal = true;
await customer.sendMessage(
{ number: 'Elarian', provider: 'telco' },
{ body: { text: `Hey ${name}! Thank you for trying out Elarian` } },
);
}
break;
case 'newbie':
default:
menu.text = 'Hey there, welcome to Elarian! What\'s your name?';
menu.isTerminal = false;
state = 'veteran';
break;
}
callback(menu, { state, name });
});
elarian
.on('connected', () => {
console.log('App is running!')
})
.on('error', (error) => {
console.error(error);
})
.connect();
See example for a full sample app.
Take a look at the product documentation. For detailed info on this SDK, see the reference.
Run all tests:
$ npm install
$ npm test
See SDK Spec for reference.
If you find a bug, please file an issue on our issue tracker on GitHub.
resumable
connection options prevents app from connectingFAQs
Unknown package
The npm package elarian receives a total of 4 weekly downloads. As such, elarian popularity was classified as not popular.
We found that elarian demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.