
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.
@telios/telios-client-backend
Advanced tools
A reusable backend to for telios email clients to use between desktop and mobile.
A reusable backend to for telios email clients to use between desktop and mobile.
npm i --save @telios/telios-client-backend
Electron example:
const path = require('path')
const fs = require('fs')
const { fork } = require('child_process')
const { remote } = require('electron')
const userDataPath = remote.app.getPath('userData')
const filePath = path.join(__dirname, '/node_modules/telios-client-backend/index.js')
let cwd = path.join(__dirname, '..');
if (!fs.existsSync(path.join(cwd, 'app.asar'))) {
cwd = null;
}
const child = fork(filePath, [userDataPath, 'development'], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc'],
cwd
})
// listen for channel events
child.on('message', m => {
const { event, data, error } = m
if(error) this.emit(event, error)
this.emit(event, data)
})
child.stderr.on('error', data => {
this.emit('error', data.toString())
})
// Send channel events
child.send({
event: 'account:create',
payload: {
email: 'alice@telios.io',
password: 'letmein123',
vcode: 'btester1',
recoveryEmail: 'alice@mail.com'
}
})
Mobile example:
const bridge = require('rn-bridge')
const { ClientBackend } = require('@telios/telios-client-backend');
const channel = bridge.channel
const userDataPath = bridge.app.datadir()
const env = 'development'
// Instantiate backend
ClientBackend(channel, userDataPath, env)
channel.send({
event: 'account:create',
payload: {
email: 'alice@telios.io',
password: 'letmein123',
vcode: 'btester1',
recoveryEmail: 'alice@mail.com'
}
})
channel.on('account:create:error', error => {
// handle error
})
channel.on('account:create:success', data => {
// handle success
})
channel.on('drive:network:updated', data => {})
channel.send({ event: 'account:create', payload })
const payload = {
email: 'alice@telios.io',
password: 'letmein123',
vcode: 'testcode123',
recoveryEmail: 'alice@mail.com'
}
channel.send({ event: 'account:login', payload })
const payload = {
email: 'alice@telios.io',
password: 'letmein123'
}
channel.send({ event: 'account:logout' })
channel.send({ event: 'mailbox:register', payload })
const payload = {
account_key,
addr: 'alice@telios.io'
}
channel.send({ event: 'mailbox:getNewMailMeta' })
channel.send({ event: 'mailbox:markArrayAsSynced', payload })
const payload = {
msgArray: ['emailId1', 'emailId2']
}
channel.send({ event: 'mailbox:getMailboxes' })
channel.send({ event: 'mailbox:saveMailbox', payload })
const payload = {
address: 'bob@telios.io'
}
channel.send({ event: 'alias:registerAliasNamespace', payload })
const payload = {
mailboxId: mailboxId,
namespace: 'alice2022'
}
channel.send({ event: 'alias:getMailboxNamespaces', payload })
const payload = {
id: mailboxId
}
channel.send({ event: 'alias:getMailboxAliases', payload })
const payload = {
namespaceKeys: ['alice2022']
}
channel.send({ event: 'alias:updateAliasAddress', payload })
const payload = {
namespaceName: 'alice2022',
domain: 'dev,telios.io',
address: 'netflix',
description: 'Updated description',
fwdAddresses: ['alice@mail.com', 'alice@somemail.com'],
disabled: true,
updatedAt: new Date().toISOString()
}
channel.send({ event: 'alias:updateAliasCount', payload })
const payload = {
id: 'alice2022#netflix' ,
amount: 1 // Use a negative integer to decrement count
}
channel.send({ event: 'alias:removeAliasAddress', payload })
const payload = {
namespaceName: 'alice2022',
domain: 'dev,telios.io',
address: 'netflix'
}
channel.send({ event: 'folder:createFolder', payload })
const payload = {
mailboxId: mailboxId,
folderId: 6,
name: 'Test',
type: 'default',
icon: 'trash-o',
seq: 6,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString()
}
channel.send({ event: 'folder:updateFolder', payload })
const payload = {
folderId: 6,
name: 'Foo Folder'
}
channel.send({ event: 'folder:updateFolderCount', payload })
const payload = {
id: 6,
amount: 1 // use a negative integer to decrement count
}
channel.send({ event: 'folder:getMailboxFolders', payload })
const payload = {
id: mailboxId
}
channel.send({ event: 'folder:deleteFolder', payload })
const payload = {
id: mailboxId
}
channel.send({ event: 'email:sendEmail', payload })
const payload = {
email: {
from: [{"name":"Bob Kinderly","address":"bob@telios.io"}],
to: [{"name":"Alice Drumpf","address":"alice@telios.io"}],
subject: 'Subject-d510aa65-40c0-4b36-98ba-84735aa961d0',
date: '2022-01-20T18:21:33.062Z',
cc: [{"name":"Json Waterfall","address":"jwaterfall@telios.io"}],
bcc: [{"name":"Albus Dumbeldore","address":"albus.dumbeldore@howgwarts.edu"}],
text_body: 'This is a test message-d510aa65-40c0-4b36-98ba-84735aa961d0',
html_body: '<div>This is a test message-d510aa65-40c0-4b36-98ba-84735aa961d0</div>',
attachments: [{
filename: 'image.png',
content: 'b64EncodedString',
mimetype: 'image/png',
size: 1024// bytes
}]
}
}
channel.send({ event: 'email:saveMessageToDB', payload })
const payload = {
type: 'Incoming' | 'Draft',
messages: [{
from: [{"name":"Bob Kinderly","address":"bob@telios.io"}],
to: [{"name":"Alice Drumpf","address":"alice@telios.io"}],
subject: 'Subject-d510aa65-40c0-4b36-98ba-84735aa961d0',
date: '2022-01-20T18:21:33.062Z',
cc: [{"name":"Json Waterfall","address":"jwaterfall@telios.io"}],
bcc: [{"name":"Albus Dumbeldore","address":"albus.dumbeldore@howgwarts.edu"}],
text_body: 'This is a test message-d510aa65-40c0-4b36-98ba-84735aa961d0',
html_body: '<div>This is a test message-d510aa65-40c0-4b36-98ba-84735aa961d0</div>',
attachments: [{
filename: 'image.png',
content: 'b64EncodedString',
mimetype: 'image/png',
size: 1024// bytes
}]
}]
}
channel.send({ event: 'email:getMessagesByFolderId', payload })
const payload = {
id: 5
}
channel.send({ event: 'email:getMessagesByAliasId', payload })
const payload = {
id: 'alice2022#existing'
}
channel.send({ event: 'email:moveMessages', payload })
const emails = emailArr.map(msg => {
return {
...msg,
folder: { // Add this object to each email with the ID of the folder the email is moving to
toId: 1
}
}
})
const payload = {
messages: emails
}
channel.send({ event: 'email:getMessageById', payload })
const payload = {
id: emailId
}
channel.send({ event: 'email:markAsUnread', payload })
const payload = {
id: emailId
}
channel.send({ event: 'email:removeMessages', payload })
const payload = {
messageIds: [emailId]
}
channel.send({ event: 'email:searchMailbox', payload })
const payload = {
searchQuery: 'Alice tax returns'
}
channel.send({ event: 'contact:createContacts', payload })
const payload = {
contactList: [{
name: 'Albus Dumbeldore',
givenName: 'Albus',
familyName: 'Dumbeldore',
nickname: 'Dumbeldorf',
birthday: '2022-01-21T20:31:46.726Z', // ISO datetime
publicKey: '00000000000000000000000000000000',
pgpPublicKey: '00000000000000000000000000000000',
email: 'albus.dumbeldore@hogwarts.edu',
phone: '555-555-5555',
address: '123 Any St.',
website: 'https://hogwarts.edu',
notes: 'Lorem ipsum dolar sit amet...',
organization: 'Hogwarts Inc'
}]
}
channel.send({ event: 'contact:getContactById', payload })
const payload = {
id: contact.contactId
}
channel.send({ event: 'contact:updateContact', payload })
const payload = {
...contact,
id: contact.contactId,
givenName: 'Snape'
}
channel.send({ event: 'contact:searchContact', payload })
const payload = {
searchQuery: 'albus'
}
channel.send({ event: 'contact:getAllContacts' })
channel.send({ event: 'contact:removeContact', payload })
const payload = {
id: contact.contactId
}
channel.send({ event: 'messageHandler:initMessageListener' })
channel.send({ event: 'messageHandler:newMessageBatch', payload })
channel.send({ event: 'messageHandler:newMessage', payload })
channel.send({ event: 'messageHandler:retryMessageBatch', payload })
FAQs
A reusable backend to for telios email clients to use between desktop and mobile.
The npm package @telios/telios-client-backend receives a total of 8 weekly downloads. As such, @telios/telios-client-backend popularity was classified as not popular.
We found that @telios/telios-client-backend 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
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.