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.
@owlnext/heimdall-js
Advanced tools
Heimdall API client & utils for javascript technologies.
To use this client, you must first have an admin user on the Heimdall API.
npm -i --save @owlnext/heimdall-js
import Heimdall from '@owlnext/heimdall-js'
// first, authenticate your Heimdall client
const heimdall: Heimdall = new Heimdall();
heimdall.authenticate({
login: '<your login>',
password: '<your password>',
application_uuid: '<your application UUID>'
});
// check if the client is authenticated
if(true === heimdall.isAuthenticated()) {
// ...
}
// check the user connected
if('my_user_login' === heimdall.api.getCurrentLoggedIn()) {
// ...
}
// encrypt a file with a new key
let encrypted: string;
heimdall.createKey(['<a group iri>']).then(key => {
heimdall.getCipherKey(key.id).then(cipher => {
encrypted = heimdall.encrypt('<your message>', cipher.cipherKey);
});
});
// decrypt a file
let decrypted: string;
heimdall.getCipherKey('<key id>').then(cipher => {
decrypted = heimdall.decrypt('<your encrypted message>', cipher.cipherKey);
});
Note: You also have access to the full API implementation with the
api
getter from theHeimdall
object.
To use integration environment, simply add the server_environment
as a property to your authentication.
import Heimdall from '@owlnext/heimdall-js'
// Authentication
const heimdall: Heimdall = new Heimdall();
heimdall.authenticate({
login: '<your login>',
password: '<your password>',
application_uuid: '<your application UUID>',
server_environment: Heimdall.SERVER_ENVIRONMENT_INTEGRATION
});
// Refresh
heimdall.reconnect({
refresh_token: '<your refresh token>',
application_uuid: '<your application UUID>',
server_environment: Heimdall.SERVER_ENVIRONMENT_INTEGRATION
});
If left untouched, the default behaviour points the API to the production environment.
FAQs
Heimdall API client & utils for javascript technologies
The npm package @owlnext/heimdall-js receives a total of 30 weekly downloads. As such, @owlnext/heimdall-js popularity was classified as not popular.
We found that @owlnext/heimdall-js 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.