System based on +500 blacklists and 5 external intelligences to detect potencially malicious hosts in internet.
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 others you can find ips, domains and urls that potencially:
- Are infected with malware
- Attack other hosts
- Send spam
- Contains phishing sites
- Are bitcoin nodes
- Are Tor exit nodes or web-to-tor hosts
- Are public proxies
- Have bad reputation
- Are related to adware
All blacklists used to create a single and huge blacklist can be seen here.
require the blacklist it will start accessing and loading all the blacklists. This process could take from 5 to 10 minutes.
- 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)
- The references that have pointed to this host.
Besides, the API of 5 external intelligences are used to check single IPs or domains not only against the huge database of hosts blacklisted but also against the intelligences. If the ip or domain has something suspicious it will be discovered.
malicious_comp = "IP/DOMAIN/RANGE":title: ""type:urls:location : lat: "" lng: ""references:
Visual representation of a portion of the final database
Please visit MalwareWorld to access to the main page of MalwareWolrd where you can check if a domain or IP is suspicious.
You can found some maps where some malicious IPs detected are represented (It is recommended to use Chrome):
- Hosts with bad reputation
- Hosts related to Malware
- Hosts known to be attacking through internet
- Hosts sending spamm
- Hosts related to cryptocurrencies
- Public proxies, tor exit nodex and tor-to-web hosts
External Intelligences Used
By default, when you check if an IP, Domain or Url is malicious it will be checked agaist the database created merging all the blacklists and against the activated extrnal inteligences. The external intelligences are:
By default, only the intelligences that don't require credentials to be used are activated. These are: Fortiguard and Spamcop.
If you want to deactivate Fortiguard or Spamcop, use:
In order to activate the other intelligences you have to set the credentials:
mw.setProjecthoneypotKey("<YOUR API KEY>");
mw.setWOTKey("<YOUR WOT API KEY>")
If you only want the huge blacklist that MalwareWorld creates you can access to:
- List of Suspicious IPs
- List of Suspicious Domains
- All the information about Suspicious IPs
- All the information about Suspicious Domains
npm install malwareworld
How to use
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 mw = require('malwareworld')
Check if Malicious
You can check if an IP, Domain or URL is malicious just calling:
> mw;// Result:malicious: true'220.127.116.11':title: 'honeypot_tracker/Malicious Host/Spammer'type: 'Bad Reputation' 'Spammer'urls:location: lat: 340202 lng: -1183928references:''''''
By default this method will check the INPUT against the database created using all the blacklists and against the activated external intelligeces.
If you don't want to create the database using the blacklists you can do:
You can get all the potencially malicious domains of the database with their descriptions calling:
You can get all the potencially malicious IPs of the database with their descriptions calling:
You can get all the potencially malicious IP Ranges of the database with their descriptions calling:
You can get all the hosts of type of the database with their descriptions calling:
Types: BadReputation Malware KnownAttacker Spammer Phishing CryptoCurrencies Hidesource Adware DGA
You can get all the blacklist that does not respond calling:
You can get general statistics of the status of the database and the blacklists by calling:
> mwnum_ips: 165117 // Number of unique malicious IPs foundnum_domains: 118664 // Number of unique malicious Domains foundnum_ranges: 46089 // Number of unique malicious IP Ranges foundnum_blacklists: 522 // Number of blacklists usednum_notResponding_blacklists: 0 // Number of blacklists not loadedtotal_unique: 329870 // Number of unique malicious hostsrepeated: 116451 // Number of repetitions found between balcklistsexternal_sources: // Check if the external sources are being used or notfraudguard: falsefortiguard: trueprojecthoneypot: falsesimplespamcop: truewot: false
You can access how much potencially malicious hosts were contained in each blacklist used and the sha1 of the response body by calling:
You can reload all the blacklists calling:
You can reload all the not responding blacklists calling:
You can set an interval to reload every blacklists calling:
You can set an interval to reload every not responding blacklists calling:
You can set the
isMalicious() function to listen in a port calling:
const mw = ;mw;mw;mw;mw;var day = 24**60;var hour1 = 1**60;mw; // Reload the blacklists every daymw; // Try to load the not responding blacklists every hourmw; // Expose the isMalicious() funtion in port 9999mw;
- Integrate more blacklists and external intelligences.
- If you know about blacklists or external intelligences that are not used, please contact me.
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.