Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
email-stream
Advanced tools
This is a very early release of something that I would welcome any help with. I appreciate that I am unlikely to have covered all of the RFCs that cover the email specifications. Please submit pull requests, issues and anything else.
EmailStream is a module to allow you to build a raw email stream from multiple streams.
npm install email-stream
var emailStream = require('email-stream');
var email = emailStream({
to: 'test@example.com',
from: 'test@example.org',
subject: 'Test Subject',
text: textStream,
html: htmlStream
});
// Pipe the textStream
// Pipe the htmlStream
email.pipe(process.stdout);
A text stream is required for all emails and a HTML stream is optional
If you want to add attachments to the email, add attachments: true
to the initialisation function. Eg.
var email = emailStream({
to: 'test@example.com',
...
attachments: true
});
email.attach({
filename: 'attachment.svg',
type: 'text/svg',
body: attachmentStream
});
email.attach({
filename: 'attachment2.mp4',
type: 'video/mp4',
body: attachmentStream2
});
FAQs
Build a raw email with streams
The npm package email-stream receives a total of 7 weekly downloads. As such, email-stream popularity was classified as not popular.
We found that email-stream 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.