intelmq.bots.experts.generic_db_lookup package

Submodules

intelmq.bots.experts.generic_db_lookup.expert module

Generic DB Lookup

intelmq.bots.experts.generic_db_lookup.expert.BOT

alias of intelmq.bots.experts.generic_db_lookup.expert.GenericDBLookupExpertBot

class intelmq.bots.experts.generic_db_lookup.expert.GenericDBLookupExpertBot(*args, **kwargs)

Bases: intelmq.lib.bot.ExpertBot, intelmq.lib.mixins.sql.SQLMixin

Fetche data from a database

database = 'intelmq'
engine = '<postgresql OR sqlite>'
host = 'localhost'
init()
match_fields = {'source.asn': 'asn'}
overwrite = False
password = '<password>'
port = 5432
process()
replace_fields = {'contact': 'source.abuse_contact', 'note': 'comment'}
sslmode = 'require'
table = 'contacts'
user = 'intelmq'

Module contents