
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
webext-schema
Advanced tools
WebExtensions schemas fetched from hg.mozilla.org
npm i webext-schema
const {Schema} = require("webext-schema");
const schema = new Schema();
Schemas for "release", "beta", "central" are available. Release channel defaults to "beta".
If you want to specify a particular channel, pass one of the three channels as an argument when creating the instance.
const schema = new Schema("central");
Or you can set it afterwards.
const schema = new Schema();
schema.channel = "central";
Get the arranged schema for the specific application.
Supported applications:
const schema = new Schema().arrange({name: "sinon-chrome"});
// [{namespace: "alarms", functions: [{...}], ...}];
Get the schema for the specific API. Argument can be either an API name or a file name.
const schema = new Schema().get("browserAction");
// [{namespace: "browserAction", events: [...], ...}]
const schema = new Schema().get("browser_action.json");
// [{namespace: "browserAction", events: [...], ...}]
Get all schemas as a single object. Note that the key of the object is the file name and the value is the schema.
const schema = new Schema().getAll();
// {"alarms.json": [{...}], "bookmarks.json": [{...}], ...}
Get the list of schema files.
const list = new Schema().list();
// ["alarms.json", "bookmarks.json", ...]
FAQs
WebExtensions schemas fetched from hg.mozilla.org
The npm package webext-schema receives a total of 648 weekly downloads. As such, webext-schema popularity was classified as not popular.
We found that webext-schema demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.