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.
This is the backend for parsing DMARC reports
Backend and frontend should run on diffrent machines. This avoids to have you IMAP credentials on the public webserver. The cron-job push the results via rsync to the webserver.
gem install --user-install dmarc_report
for Diagnostics, add the rubygem dir to your search path
FreeBSD:
vim .profile
PATH="$PATH:$HOME/.gem/ruby/3.1/bin"
Debian:
vim .profile
PATH="$PATH:$HOME/.local/share/gem/ruby/3.1.0/bin"
Create the working directory:
cd
mkdir -p dmarc
cd dmarc
install-dmarc_report.rb
Edit your IMAP account data:
vim config/dmarc.yml
Check your rulesets:
vim rules/dmarc.yml
Edit the target directory for your webserver:
vim dmarc_profile.sh
Check the script for your cron:
vim run-dmarc.sh
Check the function
./run-dmarc.sh
Edit your crontab:
crontab -e
# crontab for dmarc_report
#minute hour mday month wday command
13 8,12,18 * * * /home/user/dmarc/run-dmarc.sh
#
sequenceDiagram
IMAP ->> File: dmarc_imap.rb
File ->> Attachment: dmarc_ripmime.rb
Attachment ->> XML: dmarc_ripmime.rb
XML ->> CSV: dmarc_report.rb
CSV ->> HTML: dmarc.rhtml
FAQs
Unknown package
We found that dmarc_report 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
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.