
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@lorena-ssi/lorena-cli
Advanced tools
Client to manage idspaces
npm install @lorena-ssi/lorena-cli
const Lorena = require('@lorena-ssi/lorena-cli').default
// const import Lorena from '@lorena-ssi/lorena-cli'
const main = async () => {
const lorena = new Lorena({debug: true})
lorena.connect('connectionIdString')
lorena.on('error', (e) => {
console.log(e)
})
lorena.on('ready', async () => {
lorena.sendAction({
recipe: 'ping', // Remote recipe we are calling to
recipeId: 0, // Remote id of the recipeId we are calling to
threadRef: 'pong', // Local name for your process
threadId: 2, // Local id for your process
payload: {} // Payload to send
})
})
lorena.on('message:pong', (payload) => {
console.log('pong', payload)
})
}
main()
new Lorena([serverPath[,options]] || [options])serverPath can be a valid matrix server string, default: https://matrix.caelumlabs.com
options include:
{
debug: false // set the debug option, default false
}
createUser(username, password)Create Matrix user and zenroom keypair.
Returns true or false when success or not available.
Throws an error and emits error if fails.
connect(connectionstring)Connect to Lorena IDSpace.
connectionstring is a concatenation of username-password-did
Returns true if the connection is success
Throws an error and emits error if fails.
handshake()Establishes a connection with the idspace, checking public-key signatures.
callRecipe(recipe, { payloadText: 'text', payloadETC: 'ETC'})Calls a recipe and returns the payload
Throws an error and emits error if fails.
sendAction(recipe, recipeId, threadRef, thReadId, payload)Sends an action to another DID.
recipe Remote recipe name
recipeId Remote recipe Id
threadRefLocal Recipe name
threadId Local recipe Id
payload Information to send
on(message[:threadRef, :type], [function(payload)])Listen to events and execute the callback function
threadRef is the one sended to sendAction
type TODO
payload is the data coming from the remote recipe
off(message[:threadRef, :type])Stops listening for events
MIT
FAQs
Lorena Client
We found that @lorena-ssi/lorena-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.