Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
haraka-secwrap
Advanced tools
npm -g install Haraka
haraka -i haraka-server-config
cd ./haraka-server-config
npm install snoj/haraka-secwrap
#enable secwrap
echo haraka-secwrap >> config/plugins
#create and edit config/secwrap. Urls can be whatever you want them to be. (Uses lodash _.template().)
{
"userlookup": "http://localhost:8025/from/${ mail_from }/to/${ rcpt_to }"
,"storage": "http://localhost:8025/mailbox/${ mailbox }"
,"local": { //for self contained setups
"a.example.com": {
"key": "====KEY==== blahblahblahblahblahblah =====END KEY===="
,"forward": "joeblack@b.example.com"
,"hidesender": true
}
,"Megan@c.example.com": {
"key": "====KEY==== blahblahblahblahblahblah =====END KEY===="
,"forward": "MeganMcExample@b.example.com"
,"hidesender": true
}
}
}
#create http(s) server using express or restify to handle urls from config/secwrap
#run
haraka -c .
{
"key": "user's public PGP/GPG key",
"mailbox": "optional. if set, secwrap will use the storage url. can be any sort of identifying string.",
"forward": "optional. if set, encrypted mail will be sent to this address."
"hidesender": "optional. truthy. hides the address the original email was sent from."
}
JSON sent to the REST server
{
"mailbox": "id given by the user lookup data"
"mail_from": "either the actual sender or gibberish depending on hidesender"
"rcpt_to": "the email address of the recipient"
"message": "encrypted message"
"keythumbprint": "Thumbprint of the key used to encrypt the message"
}
Mailvelope Chrome/Firefox addon to encrypt/decrypt text in the browser.
FAQs
Because sometimes they are after you.
We found that haraka-secwrap 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.