Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
authheaders
Advanced tools
Readme
Node.js wrapper around the Python pip package authheaders exposing a function to generate Authentication-Results headers
Ensure that you have a Python version of >= 3.6 installed.
python3 --version
Install the package authheaders from our fork which contains a fix (until https://github.com/ValiMail/authentication-headers/pull/6 is merged and released):
pip3 install git+https://github.com/forwardemail/authentication-headers.git
Install dnspython v1.16.0:
pip3 install dnspython==1.16.0
Install pyspf:
pip3 install pyspf
npm:
npm install authheaders
yarn:
yarn add authheaders
const fs = require('fs');
const { authenticateMessage } = require('authheaders');
const message = fs.readFileSync('/path/to/example.eml');
const authservId = 'mx.example.com';
const ip = '1.2.3.4';
const mailFrom = 'example.net';
const helo = 'domain.of.sender.example.net';
// then/catch usage
authenticateMessage(message, authservId, ip, mailFrom, helo)
.then(console.log)
.catch(console.error);
// async/await usage
(async () => {
try {
const result = await authenticateMessage(message, authservId, ip, mailFrom, helo);
console.log(result);
} catch (err) {
console.error(err);
}
})();
The value of result
is an Object with properties header
(String), and Objects for spf
, dkim
, arc
, and dmarc
.
These Objects contain a result
(String) and conditionally a reason
(String) value.
An example result
object is provided below:
{
header: 'example.com; spf=none smtp.helo=domain.of.sender.net smtp.mailfrom=test.com; dkim=pass header.d=forwardemail.net; arc=pass; dmarc=fail (Used From Domain Record) header.from=gmail.com policy.dmarc=none',
spf: { result: 'none' },
dkim: { result: 'pass' },
arc: { result: 'pass' },
dmarc: { policy: 'none', result: 'fail', reason: 'Used From Domain Record' }
}
Name | Website |
---|---|
Nick Baugh | http://niftylettuce.com/ |
FAQs
Node.js wrapper around the Python pip package authheaders
The npm package authheaders receives a total of 9 weekly downloads. As such, authheaders popularity was classified as not popular.
We found that authheaders 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.