Repository navigation
Feeds: add NetAPI phishing domains and attacking IPs - #2731
slavaolesik wants to merge 5 commits into
Conversation
Add two free NetAPI feeds (compromised domains and compromised IPs) to feeds.yaml. Both are plain text with one indicator per line and no header, so the existing HTTP collector and the generic CSV parser with a single column are enough; no new bot is needed. The lists are updated daily, hence rate_limit 86400.
|
Update: NetAPI has stopped publishing its compromised IP feed, so I removed the IP feed from this PR. It now adds only the domain feed, and the description is updated. |
|
Update: NetAPI keeps its compromised IP feed after all, so I put the IP part of this PR back as it was first submitted. Sorry for the back and forth. |
|
Update: the IP feed is now NetAPI's own: the addresses that attacked the sensors of NetAPI Nightwatch, NetAPI's own honeypot network, instead of a compilation of third-party blocklists. It is updated every hour, so the IP collector now has |
Use the CSV versions of both NetAPI feeds so that events get time.source, a classification.type per row and the network fields. The domain feed is phishing only (CERT Polska and NetAPI's related domains, without sinkholed domains). The IP feed maps the attack category to classification.type. Static fields use default_fields, the parameter name ParserBot reads.
|
Update: both feeds now use the CSV versions, so events get |
Hi,
This adds two free NetAPI feeds to
intelmq/etc/feeds.yaml, using the HTTP collector and the generic CSV parser, as described in "Adding Feeds".https://netapi.com/api2/?method=compromised&dataset_type=url&sinkholes=0&format=csv, 128,376 domains today. Phishing and scam domains from the CERT Polska list of dangerous domains, plus NetAPI's own detection of domains that share name servers, an IP address or a homepage redirect with them.classification.typeisphishing,time.sourceis the last day the domain was confirmed,extra.threat_typethe source andextra.evidencethe shared infrastructure. Details: https://netapi.com/compromised-urls/https://netapi.com/api2/?method=compromised&dataset_type=ip&format=csv, about 41,500 addresses today. The IPv4 addresses that attacked NetAPI's own honeypot sensors in the last 48 hours, updated every hour. About 73% of them are in none of blocklist.de, CINS, GreenSnow and IPsum. The category of the address setsclassification.type(A infection attempt:infected-system, B login brute force:brute-force, C exploit or probe for secrets:exploit, D form spam:spam),time.sourceis the last attack, and each row carries the attack types, country, ASN and AS name. Adding&country=<cc>to the URL gives the addresses of one country, like the URLhaus country feeds. Details: https://netapi.com/compromised-ips/Both need no account or token, CC BY 4.0.
Tested on today's full files with the generic CSV parser through
intelmq.lib.test.BotTestCase(develop, Python 3.12): 128,376 of 128,376 domain rows and 41,428 of 41,428 IP rows became valid events, with no errors or warnings.intelmq/tests/test_conf.pypasses.One thing I noticed while testing: the parser parameter for static fields is
default_fields(ParserBotinintelmq/lib/bot.py). The example under "Parser Bots" indocs/user/bots.mdand seven feeds infeeds.yaml(ViriBack, University of Toulouse, CERT-Bund, cAPTure, CyberCrime Tracker, PrecisionSec, Benkow) writedefaults_fields, which the bot ignores, so those events come out without the staticclassification.type. This PR usesdefault_fields. I can fix the others in a separate PR if you want.Thanks for IntelMQ!
Slava
Disclosure: I run NetAPI.