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.
otm-detector
Advanced tools
The OTM Detector module is a lightweight module that allows you to detect one-time mail services by checking the MX (Mail Exchange) records of a given hostname. Most of similar modules have block list of one-time mail services, but this module uses a different approach to detect one-time mail services. It checks the MX records of the hostname to determine if it belongs to a one-time mail service. Usually such services purchase a lot of domains and use them as one-time mail services. This module is able to detect such services.
To install the OTM Detector module, use the following command:
npm install otm-detector
To use the OTM Detector module in your project, require it and call the isOneTimeMail
function, passing the hostname as a parameter. The function will return true
if the hostname belongs to a one-time mail service, and false
otherwise.
import { isOneTimeMail } from 'otm-detector';
const hostname = 'example.com';
const isOTM = await isOneTimeMail(hostname);
console.log(`Is ${hostname} a one-time mail service? ${isOTM}`);
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on the GitHub repository.
This module is licensed under the MIT License.
FAQs
Detect one-time mail services, the new way
The npm package otm-detector receives a total of 11,700 weekly downloads. As such, otm-detector popularity was classified as popular.
We found that otm-detector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.