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.
malwaredetector
Advanced tools
System based on +500 blacklists to detect internet potencially malicious hosts
System based on +500 blacklists to detect internet potencially malicious hosts
The library parses more than 500 public blacklists around the internet in order to identify potencially malicious devices.
Among the final blacklist created merging all the other you can find ips, domains and urls that potencially:
When you require
the blacklist it will start accessing and loading all the blacklists. This process could take from 5 to 10 minutes.
The "database" will be a javascript huge dictionary. Each component will be and IP or Domain or IPRange potencially malicios that will have as atributes a title, an array of types (reason/s why this host is potencially malicious), an array of urls (that points to the malicios part of the host), location (only filled if it is an IP) and the references that have pointed to this host.
malicious_comp = "IP/DOMAIN/RANGE": {
title: "",
type: [],
urls: [],
location : {lat: "", lng: ""},
references: []
}
Please visit MalwareWorld to see only the malicios IPs detected by all the blacklists used and represented in a world map (this page loads more than 150.000 points with its descriptions in the map, so it is recommended to open it in a computer and using chrome and it will take between 2 and 5 minutes. With other browsers it might not load).
npm install malwaredetector
The library has been made to be as simple as possible to use. Once the library has had time to load all the blacklists:
const md = require('malwaredetector')
You can check if an IP, Domain or URL is malicious just calling:
md.isMalicious(INPUT)
> md.isMalicious('stokenewingtoncricketclub.com');
{ malicious: true,
details:
{ title: 'Malicious Host',
type: [ 'Malware' ],
urls: [ '' ],
location: { lat: '', lng: '' },
references: [ 'http://www.urlvir.com/export-hosts/' ]
}
}
You can get all the potencially malicious domains with theirs descriptions calling:
md.getMalDomainsList()
You can get all the potencially malicious IPs with theirs descriptions calling:
md.getMalIpsList()
You can get all the potencially malicious IP Ranges with theirs descriptions calling:
md.getMalRangesList()
You can get all the blacklist that does not respond calling:
md.getNotRespondingLists()
You can get general statistics of the status of the database and the blacklists by calling:
> md.getGeneralStatistics();
{ num_ips: 171091,
num_domains: 116897,
num_ranges: 45534,
num_blacklists: 522,
num_notResponding_blacklists: 0,
total_unique: 333522,
repeated: 118614
}
You can access how much potencially malicious hosts were contained in each list and the md5 of the response body by calling:
md.getStatistics()
You can reload all the blacklists calling:
md.renewAllData()
You can reload all the not responding blacklists calling:
md.renewNotRespondingData()
You can set an interval to reload every blacklists calling:
md.renewtAllDataInterval(MINUTES)
You can set an interval to reload every not responding blacklists calling:
md.renewNotRespondingDataInterval(MINUTES)
You can set the isMalicious()
function to listen in a port calling:
md.listenInPort(PORT)
const md = require('malwaredetector');
var day = 24*60;
var hour1 = 1*60;
md.renewtAllDataInterval(day); // Reload the blacklists every day
md.renewNotRespondingData(hour1); // Try to load the not responding blacklists every hour
md.listenInPort(9999); // Listen expose the isMalicious() funtion in port 9999
md.isMalicious('malwareworld.com'); // Check if the domain malwareworld.com is malicious (No, it isn't)
The MIT License (MIT)
Copyright (c) 2018 Carlos Polop
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
PLEASE, NOTICE THAT IF YOU ARE PLANNING TO USE THE DATABASE CREATED BY THIS SOFTWARE WITH COMMERCIAL PURPOSES YOU SHOULD CHECK THE LICENSE ASSOCIATE WITH EACH BLACKLIST THAT THIS SOFTWARE USES.
FAQs
MOVED TO MALWAREWORLD
The npm package malwaredetector receives a total of 4 weekly downloads. As such, malwaredetector popularity was classified as not popular.
We found that malwaredetector 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
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.