
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
This is a NETASQ security appliance comm library for node.js. It contains also a cli: nncli (NETASQ Node CLI)
curl http://npmjs.org/install.sh || sh
[sudo] npm install [-g] netasqcomm
nncli (bin) will be only available with global (-g) option.
var
session = require('../lib/netasqcomm').createSession({
login: 'admin',
pwd: 'adminadmin',
host: '10.0.0.254',
verbose: false // true if you want debug logs
});
session.on('error', function(error) {
if (error) {
console.log('Session error (%s): %s', error.code, error.message);
} else {
console.log('Session error occured (no details)');
}
process.exit(1);
});
session.connect(function() {
console.log('Logged in.');
console.log('Session level: %s', session.sessionLevel);
session.exec('help', function(response){
response.dumpServerdData();
session.exec('quit', function(response){
response.dumpServerdData();
})
})
});
/**
* @class
* @inherits EventEmitter
* @event error({exception}) > {code, message, ...}
* @event connected()
* @event commandResponse({string} session level)
* @event downloaded()
* @event disconnected()
* @params {object} config
* @see SESSION_ERRORS
* @see SESSION_ERRORS_MSG
* @see SESSION_LEVELS
*/
connect
/**
* @public
* @method
* Connect to NETASQ appliance
* @param [{function} callback], optionnal, use a callback or 'connected' event
* @see SESSION_ERRORS,
* @see 'connected' event
* @see 'error' event
*/
disconnect
/**
* @public
* Run exec() with quit command
* @param [{function} cb({object} data)], optionnal, use a callback or 'commandResponse' event OR 'disconnected' event
*/
exec
/**
* @public
* @method
* Run a command
* @param {string} command
* @param [{function} cb({object}data)], optionnal, use a callback or 'commandResponse' event
* @see 'commandResponse' event
*/
download
/**
* @public
* @params {object} wStream: Writable Stream
* @params {string} fileName
* @param [{function} cb({object}data)], optionnal, use a callback or 'downloaded' event
*/
upload
/**
* @public
* @params {string} fileName
* @param [{function} cb({object}data)], optionnal, use a callback or 'uploaded' event
*/
error
connected
commandResponse
downloaded
uploaded
disconnected
dumpServerdObject
/**
* Dump to writable stream serverd object as a human readable format (ini style),
* function of served format
* @public
* @param {object} serverd: part of returned data
* @param [{object}] ws: Writable Stream. Optionnal. Default to process.stdout
* @see Session.exec
* @see test/netasqcomm-*-format.js
* @example
* session.exec('help', function(data){
* netasqComm.dumpServerdObject(data.nws.serverd); // This will dump data to stdout
* })
*/
getObjectValue
/**
* @public
* @returns obj reference value related to str path
* @throw error if property does not exists
* @example
* foo: {
* bar: 'value'
* }
* getObjectValue('foo.bar', foo) returns 'value'
* getObjectValue('help', foo) throw an error
*/
SESSION_ERRORS
: Object of Number properties.
SESSION_ERRORS_MSG
: Object of String properties.
SESSION_LEVELS
: Array of String:
SERVERD
: Object of Number properties.
Just run npm test
FAQs
A comm library and a CLI to connect to NETASQ security appliances
The npm package netasqcomm receives a total of 2 weekly downloads. As such, netasqcomm popularity was classified as not popular.
We found that netasqcomm 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.