
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.
The streaming infrastructure build system
Install CLI globally: npm install -g floom
Install to project: npm install floom
Write a floomfile.js
:
var floom = require('floom'),
myServers = ['app-1', 'app-2'];
// Define a task
floom.task('provision_rs', function () {
// .nodes similar to gulp's .src
floom.nodes(myServers)
// Open an SSH connection to each host
.pipe(floom.connect())
// Run a shell command!
.pipe(floom.exec('ls -al')
// See output per host...
.on('nodeComplete', function (node, output) {
console.log(node.data.name, 'says', output);
}))
// Install a package!
.pipe(floom.package('nginx')
// Run a function when all hosts are complete with this step
.on('complete', function () {
console.log('All nodes have nginx installed');
}))
// Disconnect nodes when all tasks are done :)
.pipe(floom.disconnect());
});
// COMING SOON - none of this stuff exists yet:
// An example of deploying an application to our newly built nodes!
var aws = require('floom-aws');
floom.task('deploy_app', function () {
// Select the name servers
floom.nodes(myServers)
// Use a plugin to stream server builds against cloud providers
.pipe(aws.servers({
ImageId: 'ami-1624987f', // Amazon Linux AMI x86_64 EBS
InstanceType: 't1.micro',
}))
// floom.deploy will throw an error if it has no way of connecting
// Obviously that can be because the connection is faulty, but also if the node hasnt been provisioned yet.
.pipe(floom.deploy({
path: '/var/www/app',
git: 'git@github.com:erulabs/node_test',
branch: 'master',
user: 'app'
}))
// Run arbitrary javascript because MAGIC
.pipe(floom.exec(function () {
console.log('you wont see this output, but it will be sent to stdout on the remote host');
}));
// Deploy your current local commit, restart the app, etc. An all in one "deploy my node.js app:"
.pipe(floom.hoist({
path: '/var/www/app2',
user: 'app2'
}));
});
floom.task('bootstrap', 'provision_rs', 'deploy_app');
npm install && npm run dev
Floom is written in plain ES5 (assuming Node >0.8) for maximum compatibility.
Style guide: https://github.com/airbnb/javascript
FAQs
The streaming infrastructure build system
The npm package floom receives a total of 1 weekly downloads. As such, floom popularity was classified as not popular.
We found that floom 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.