Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Provides extending API for node internal debugger protocol (based ob v8 debugger protocol)
This is a part of node-inspector.
npm install v8-debug
Command | Params | Type | Description |
---|---|---|---|
register | Register new debug processor command like 'lookup'. | ||
name | {String} | Name of command. | |
callback | {Function} | function(request, response) modify your response in this function. | |
command | Call debug processor command like 'lookup' | ||
name | {String} | Name of command. | |
attributes | {Object} | Extra parameters, that passes as command arguments. | |
userdata | {Object} | Data than needs to be stored, but can't be serialised before call processor callback. (Not implemented now) |
var debug = require('v8-debug');
//register 'console' event in v8 debugger protocol
debug.register('console', function(request, response) {
response.type = 'event'; //redefine command as event
response.event = 'console'; //event name
delete response.request_seq; //for event this property is not useful
delete response.command; //for event this property is not useful
response.body = {
message: request.arguments.message
};
});
//Now debugger can emit new event 'console'
console.log = (function(fn) {
return function() {
//Call 'console' command. (Emit console event)
debug.command('console', {message: arguments[0]} /*, userdata*/);
return fn.apply(console, arguments);
}
} (console.log));
FAQs
v8 debugger extending API
The npm package v8-debug receives a total of 719 weekly downloads. As such, v8-debug popularity was classified as not popular.
We found that v8-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.