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.
obscure-email
Advanced tools
This is a module that will obfuscate emails. There are four variations as of now, listed below.
Any style not listed below, and that is passed in, will be null
npm install --save obscure-email
var obf_email = require('obscure-email');
obf_email('someone@something.com');
obf_email('someone@something.com', 'default');
styles | description | example output |
---|---|---|
default | Shows the first 3 letters and stars the rest of the letters till the @ sign | email@foo.com : ema**@foo.com |
end3 | Stars the letters until the last 3 before the @ sign | email@foo.com : **ail@foo.com |
first3rs | Displays the first 3 letters with a random number of stars after, between 3 and 13 | email@foo.com : ema***@foo.com -- ema*************@foo.com |
end3rs | Displays a random number of stars first, between 3 and 13, and then the last 3 characters before the @ sign | email@foo.com : *ail@foo.com -- *************ail@foo.com |
styles | edge examples output |
---|---|
default | e@foo.com : *@foo.com -- em@foo.com : e*@foo.com -- ema@foo.com : em*@foo.com |
end3 | e@foo.com : *@foo.com -- em@foo.com : *m@foo.com -- ema@foo.com : *ma@foo.com |
first3rs | e@foo.com : ***@foo.com -- em@foo.com : e***@foo.com -- ema@foo.com : em***@foo.com |
end3rs | e@foo.com : ***@foo.com -- em@foo.com : ***m@foo.com -- ema@foo.com : ***ma@foo.com |
NOTE: As above, you can go to 13 stars, 3 was chosen here for simplicity.
FAQs
Obfuscates emails in the call of a function.
The npm package obscure-email receives a total of 0 weekly downloads. As such, obscure-email popularity was classified as not popular.
We found that obscure-email 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.