
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.
WARNING This is highly experimental and has known, major security risks. For educational purposes only. Bug reports and pull requests welcome.
What a template could look like:
<html>
<head>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="xsalt.js"></script>
<script src="car.js"></script>
</head>
<body>
<ul xs-ctrl="CarsCtrl">
<template>
<li xs-each="cars" id="car_${_id}" xs-class="styles(${state})">
<span>${state}</span>
<span xs-class="smiles(${state})">${plate}</span>
<span xs-if="${state === 'AK'}">
The last frontier
</span>
<button xs-click="save(${_id})">Save</button>
<button xs-click="delete(${_id})">Delete</button>
</li>
</template>
</ul>
</body>
</html>
What a controller might look like:
var Cars = xsalt.ctrl('CarsCtrl', ($ctrl) => {
$ctrl.styles = function(data) {
if ( data.state === 'UT' ) {
return 'beehive cheddar';
}
else if( data.state === 'AK' ) {
return 'tlf';
}
else {
return '';
}
};
$ctrl.smiles = function(data) {
if ( data.state === 'MT' || data.state === 'AK' ) {
return 'mountain';
}
else {
return '';
}
};
$ctrl.save = function(id) {
console.log('saving: ', $ctrl.cars[id] );
};
$ctrl.cars = {
1: { _id: 1, state: 'UT', plate: '234 ASD' },
2: { _id: 2, state: 'MT', plate: '234 MDT' },
3: { _id: 3, state: 'WA', plate: '234 WER' },
4: { _id: 4, state: 'AK', plate: '999 TLF' }
};
});
Cars.delete = function del(id) {
delete Cars.cars[id];
};
FAQs
A different kind of template engine
The npm package xsalt receives a total of 0 weekly downloads. As such, xsalt popularity was classified as not popular.
We found that xsalt 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.
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.