Table of Contents:
- Bots Documentation
- General remarks
- Initialization parameters
- Common parameters
- Collectors
- API
- Generic URL Fetcher
- Generic URL Stream Fetcher
- Generic Mail URL Fetcher
- Generic Mail Attachment Fetcher
- Fileinput
- MISP Generic
- Request Tracker
- Rsync
- Shodan Stream
- TCP
- XMPP collector
- Alien Vault OTX
- Blueliv Crimeserver
- Calidog Certstream
- McAfee openDXL
- Microsoft Azure
- Microsoft Interflow
- Stomp
- Parsers
- Experts
- Abusix
- ASN Lookup
- Copy Extra
- Cymru Whois
- Deduplicator
- Domain Suffix
- DO-Portal
- Field Reducer Bot
- Filter
- Format Field
- Generic DB Lookup
- Gethostbyname
- IDEA
- MaxMind GeoIP
- Modify
- McAfee Active Response Hash lookup
- McAfee Active Response IP lookup
- McAfee Active Response URL lookup
- National CERT contact lookup by CERT.AT
- Recorded Future IP Risk
- Reverse DNS
- RFC1918
- RipeNCC Abuse Contact
- Sieve
- Taxonomy
- Tor Nodes
- Url2FQDN
- Wait
- Outputs
By default all of the bots are started when you start the whole botnet, however there is a possibility to
disable a bot. This means that the bot will not start every time you start the botnet, but you can start
and stop the bot if you specify the bot explicitly. To disable a bot, add the following to your
runtime.conf: "enabled": false. Be aware that this is not a normal parameter (like the others
described in this file). It is set outside of the parameters object in runtime.conf. Check the
User-Guide for an example.
There are two different types of parameters: The initialization parameters are need to start the bot. The runtime parameters are needed by the bot itself during runtime.
The initialization parameters are in the first level, the runtime parameters live in the parameters sub-dictionary:
{
"bot-id": {
"parameters": {
runtime parameters...
},
initialization parameters...
}
}For example:
{
"abusech-feodo-domains-collector": {
"parameters": {
"provider": "Abuse.ch",
"name": "Abuse.ch Feodo Domains",
"http_url": "http://example.org/feodo-domains.txt"
},
"name": "Generic URL Fetcher",
"group": "Collector",
"module": "intelmq.bots.collectors.http.collector_http",
"description": "collect report messages from remote hosts using http protocol",
"enabled": true,
"run_mode": "scheduled"
}
}This configuration resides in the file runtime.conf in your intelmq's configuration directory for each configured bot.
nameanddescription: The name and description of the bot as can be found in BOTS-file, not used by the bot itself.group: Can be"Collector","Parser","Expert"or"Output". Only used for visualization by other tools.module: The executable (should be in$PATH) which will be started.enabled: If the parameter is set totrue(which is NOT the default value if it is missing as a protection) the bot will start when the botnet is started (intelmqctl start). If the parameter was set tofalse, the Bot will not be started byintelmqctl start, however you can run the bot independently usingintelmqctl start <bot_id>. Check the User-Guide for more details.run_mode: There are two run modes, "continuous" (default run mode) or "scheduled". In the first case, the bot will be running forever until stopped or exits because of errors (depending on configuration). In the latter case, the bot will stop after one successful run. This is especially useful when scheduling bots via cron or systemd. Default iscontinuous. Check the User-Guide for more details.
Feed parameters: Common configuration options for all collectors.
name: Name for the feed (feed.name). In IntelMQ versions smaller than 2.2 the parameter namefeedis also supported.accuracy: Accuracy for the data of the feed (feed.accuracy).code: Code for the feed (feed.code).documentation: Link to documentation for the feed (feed.documentation).provider: Name of the provider of the feed (feed.provider).rate_limit: time interval (in seconds) between fetching data if applicable.
HTTP parameters: Common URL fetching parameters used in multiple bots.
http_timeout_sec: A tuple of floats or only one float describing the timeout of the http connection. Can be a tuple of two floats (read and connect timeout) or just one float (applies for both timeouts). The default is 30 seconds in default.conf, if not given no timeout is used. See also https://requests.readthedocs.io/en/master/user/advanced/#timeoutshttp_timeout_max_tries: An integer depciting how often a connection is retried, when a timeout occured. Defaults to 3 in default.conf.http_username: username for basic authentication.http_password: password for basic authentication.http_proxy: proxy to use for httphttps_proxy: proxy to use for httpshttp_user_agent: user agent to use for the request.http_verify_cert: path to trusted CA bundle or directory,falseto ignore verifying SSL certificates, ortrue(default) to verify SSL certificatesssl_client_certificate: SSL client certificate to use.ssl_ca_certificate: Optional string of path to trusted CA certificate. Only used by some bots.http_header: HTTP request headers
Cache parameters: Common redis cache parameters used in multiple bots (mainly lookup experts):
redis_cache_host: Hostname of the redis database.redis_cache_port: Port of the redis database.redis_cache_db: Database number.redis_cache_ttl: TTL used for caching.redis_cache_password: Optional password for the redis database (default: none).
Multihreading is disabled for all Collectors, as this would lead to duplicated data.
name: intelmq.bots.collectors.amqp.collector_amqplookup: yespublic: yescache (redis db): nonedescription: collect data from (remote) AMQP servers, for both IntelMQ as well as external data
- Feed parameters (see above)
connection_attempts: The number of connection attempts to defined server, defaults to 3connection_heartbeat: Heartbeat to server, in seconds, defaults to 3600connection_host: Name/IP for the AMQP server, defaults to 127.0.0.1connection_port: Port for the AMQP server, defaults to 5672connection_vhost: Virtual host to connect, on a http(s) connection would be http:/IP/expect_intelmq_message: Boolean, if the data is from IntelMQ or not. Default:false. If true, then the data can be any Report or Event and will be passed to the next bot as is. Otherwise a new report is created with the raw data.password: Password for authentication on your AMQP serverqueue_name: The name of the queue to fetch data fromusername: Username for authentication on your AMQP serveruse_ssl: Use ssl for the connection, make sure to also set the correct port, usually 5671 (true/false)
Currently only fetching from a queue is supported can be extended in the future. Messages will be acknowledge at AMQP after it is sent to the pipeline.
name:intelmq.bots.collectors.api.collectorlookup:yespublic:yescache (redis db):nonedescription:collect report messages from a HTTP REST API
- Feed parameters (see above)
port: Optional, integer. Default: 5000. The local port, the API will be available at.
The API is available at /intelmq/push.
The tornado library is required.
name:intelmq.bots.collectors.http.collector_httplookup:yespublic:yescache (redis db):nonedescription:collect report messages from remote hosts using http protocol
- Feed parameters (see above)
- HTTP parameters (see above)
extract_files: Optional, boolean or list of strings. If it is true, the retrieved (compressed) file or archived will be uncompressed/unpacked and the files are extracted. If the parameter is a list for strings, only the files matching the filenames are extracted. Extraction handles gziped files and both compressed and uncompressed tar-archives as well as zip archives.http_url: location of information resource (e.g. https://feodotracker.abuse.ch/blocklist/?download=domainblocklist)http_url_formatting: (bool|JSON, default:false) Iftrue,{time[format]}will be replaced by the current time in local timezone formatted by the given format. E.g. if the URL ishttp://localhost/{time[%Y]}, then the resulting URL ishttp://localhost/2019for the year 2019. (Python's Format Specification Mini-Language is used for this.) You may use aJSONspecifying time-delta parameters to shift the current time accordingly. For example use{"days": -1}for the yesterday's date; the URLhttp://localhost/{time[%Y-%m-%d]}will get translated to "http://localhost/2018-12-31" for the 1st Jan of 2019.
Zipped files are automatically extracted if detected.
For extracted files, every extracted file is sent in it's own report. Every report has a field named extra.file_name with the file name in the archive the content was extracted from.
name:intelmq.bots.collectors.http.collector_http_streamlookup:yespublic:yescache (redis db):nonedescription:Opens a streaming connection to the URL and sends the received lines.
- Feed parameters (see above)
- HTTP parameters (see above)
strip_lines: boolean, if single lines should be stripped (removing whitespace from the beginning and the end of the line)
If the stream is interrupted, the connection will be aborted using the timeout parameter. Then, an error will be thrown and rate_limit applies if not null.
The parameter http_timeout_max_tries is of no use in this collector.
name:intelmq.bots.collectors.mail.collector_mail_urllookup:yespublic:yescache (redis db):nonedescription:collect messages from mailboxes, extract URLs from that messages and download the report messages from the URLs.
- Feed parameters (see above)
- HTTP parameters (see above)
mail_host: FQDN or IP of mail servermail_user: user account of the email accountmail_password: password associated with the user accountmail_ssl: whether the mail account uses SSL (default:true)folder: folder in which to look for mails (default:INBOX)subject_regex: regular expression to look for a subjecturl_regex: regular expression of the feed URL to search for in the mail bodysent_from: filter messages by sendersent_to: filter messages by recipientssl_ca_certificate: Optional string of path to trusted CA certicate. Applies only to IMAP connections, not HTTP. If the provided certificate is not found, the IMAP connection will fail on handshake. By default, no certificate is used.
The resulting reports contains the following special fields:
feed.url: The URL the data was downloaded fromextra.email_subject: The subject of the emailextra.email_from: The email's from addressextra.email_message_id: The email's message IDextra.file_name: The file name of the downloaded file (extracted from the HTTP Response Headers if possible).
name:intelmq.bots.collectors.mail.collector_mail_attachlookup:yespublic:yescache (redis db):nonedescription:collect messages from mailboxes, download the report messages from the attachments.
- Feed parameters (see above)
extract_files: Optional, boolean or list of strings. See documentation of the Generic URL Fetcher for more details.mail_host: FQDN or IP of mail servermail_user: user account of the email accountmail_password: password associated with the user accountmail_ssl: whether the mail account uses SSL (default:true)folder: folder in which to look for mails (default:INBOX)subject_regex: regular expression to look for a subjectattach_regex: regular expression of the name of the attachmentattach_unzip: whether to unzip the attachment. Only extracts the first file. Deprecated, useextract_filesinstead.sent_from: filter messages by sendersent_to: filter messages by recipientssl_ca_certificate: Optional string of path to trusted CA certificate. Applies only to IMAP connections, not HTTP. If the provided certificate is not found, the IMAP connection will fail on handshake. By default, no certificate is used.
The resulting reports contains the following special fields:
extra.email_subject: The subject of the emailextra.email_from: The email's from addressextra.email_message_id: The email's message IDextra.file_name: The file name of the attachment or the file name in the attached archive if attachment is to uncompress.
name:intelmq.bots.collectors.mail.collector_mail_bodylookup:yespublic:yescache (redis db):nonedescription:collect messages from mailboxes, forwards the bodies as reports. Each non-empty body with the matching content type is sent as individual report.
- Feed parameters (see above)
mail_host: FQDN or IP of mail servermail_user: user account of the email accountmail_password: password associated with the user accountmail_ssl: whether the mail account uses SSL (default:true)folder: folder in which to look for mails (default:INBOX)subject_regex: regular expression to look for a subjectsent_from: filter messages by sendersent_to: filter messages by recipientssl_ca_certificate: Optional string of path to trusted CA certicate. Applies only to IMAP connections, not HTTP. If the provided certificate is not found, the IMAP connection will fail on handshake. By default, no certificate is used.content_types: Which bodies to use based on the content_type. Default:true/['html', 'plain']for all:- string with comma separated values, e.g.
['html', 'plain'] true,false,null: Same as default valuestring, e.g.'plain'
- string with comma separated values, e.g.
The resulting reports contains the following special fields:
extra.email_subject: The subject of the emailextra.email_from: The email's from addressextra.email_message_id: The email's message ID
name:intelmq.bots.collectors.file.collector_filelookup:yespublic:yescache (redis db):nonedescription:collect messages from a file.
- Feed parameters (see above)
path: path to filepostfix: FIXMEdelete_file: whether to delete the file after reading (default:false)
The resulting reports contains the following special fields:
feed.url: The URI using thefile://scheme and localhost, with the full path to the processed file.extra.file_name: The file name (without path) of the processed file.
Requires the rsync executable
name:intelmq.bots.collectors.rsync.collector_rsynclookup:yespublic:yescache (redis db):nonedescription:Bot download file by rsync and then load data from downloaded file. Downloaded file is located in var/lib/bots/rsync_collector.
- Feed parameters (see above)
file: Name of downloaded file.rsync_path: Path to file. It can be "/home/username/directory" or "username@remote_host:/home/username/directory"temp_directory: Path of a temporary state directory to use for rsync'd files. Optional. Default:/opt/intelmq/var/run/rsync_collector/.
name:intelmq.bots.collectors.misp.collectorlookup:yespublic:yescache (redis db):nonedescription:collect messages from a MISP server.
- Feed parameters (see above)
misp_url: url of MISP server (with trailing '/')misp_key: MISP Authkeymisp_verify: (default:true)misp_tag_to_process: MISP tag for events to be processedmisp_tag_processed: MISP tag for processed events
name:intelmq.bots.collectors.rt.collector_rtlookup:yespublic:yescache (redis db):nonedescription:Request Tracker Collector fetches attachments from an RTIR instance.
- Feed parameters (see above)
- HTTP parameters (see above)
extract_files: Optional, boolean or list of strings. See documentation of the Generic URL Fetcher for more details.uri: url of the REST interface of the RTuser: RT usernamepassword: RT passwordsearch_not_older_than: Absolute time (use ISO format) or relative time, e.g.3 days.search_owner: owner of the ticket to search for (default:nobody)search_queue: queue of the ticket to search for (default:Incident Reports)search_status: status of the ticket to search for (default:new)search_subject_like: part of the subject of the ticket to search for (default:Report)set_status: status to set the ticket to after processing (default:open).falseornullto not set a different status.take_ticket: whether to take the ticket (default:true)url_regex: regular expression of an URL to search for in the ticketattachment_regex: regular expression of an attachment in the ticketunzip_attachment: whether to unzip a found attachment. Only the first file in the archive is used.
The parameter http_timeout_max_tries is of no use in this collector.
The resulting reports contains the following special fields:
rtir_id: The ticket IDextra.email_subjectandextra.ticket_subject: The subject of the ticketextra.email_fromandextra.ticket_requestors: Comma separated list of requestor's email addresses.extra.ticket_owner: The ticket's owner nameextra.ticket_status: The ticket's statusextra.ticket_queue: The ticket's queueextra.file_name: The name of the extracted file, the name of the downloaded file or the attachments' filename without.gzpostfix.time.observation: The creation time of the ticket or attachment.
name:intelmq.bots.collectors.rsync.collector_rsynclookup:yespublic:yescache (redis db):nonedescription:Syncs a file via rsync and reads the file.
- Feed parameters (see above)
file: The filename to process, combine withrsync_path.temp_directory: The temporary directory for rsync, by default$VAR_STATE_PATH/rsync_collector.$VAR_STATE_PATHis/var/run/intelmq/or/opt/intelmq/var/run/.rsync_path: The path of the file to process
Requires the shodan library to be installed:
name:intelmq.bots.collectors.shodan.collector_streamlookup:yespublic:yescache (redis db):nonedescription:Queries the Shodan Streaming API
- Feed parameters (see above)
- HTTP parameters (see above). Only the proxy is used (requires shodan-python > 1.8.1). Certificate is always verified.
countries: A list of countries to query for. If it is a string, it will be spit by,.
name:intelmq.bots.collectors.tcp.collectorlookup:nopublic:yescache (redis db):nonedescription:TCP is the bot responsible to receive events on a TCP port (ex: from TCP Output of another IntelMQ instance). Might not be working on Python3.4.6.
ip: IP of destination serverport: port of destination server
name:intelmq.bots.collectors.xmpp.collectorlookup:yespublic:yescache (redis db):nonedescription:This bot can connect to an XMPP Server and one room, in order to receive reports from it. TLS is used by default. rate_limit is ineffective here. Bot can either pass the body or the whole event.
- Feed parameters (see above)
xmpp_server: FIXMExmpp_user: FIXMExmpp_password: FIXMExmpp_room: FIXMExmpp_room_nick: FIXMExmpp_room_password: FIXMEca_certs: FIXME (default:/etc/ssl/certs/ca-certificates.crt)strip_message: FIXME (default:true)pass_full_xml: FIXME (default:false)
See the README.md
name:intelmq.bots.collectors.alienvault_otx.collectorlookup:yespublic:yescache (redis db):nonedescription:collect report messages from Alien Vault OTX API
- Feed parameters (see above)
api_key: location of information resource (e.g. FIXME)
See the README.md
name:intelmq.bots.collectors.blueliv.collector_crimeserverlookup:yespublic:nocache (redis db):nonedescription:collect report messages from Blueliv API
- Feed parameters (see above)
api_key: location of information resourceapi_url: The optional API endpoint, by defaulthttps://freeapi.blueliv.com.
A Bot to collect data from the Certificate Transparency Log (CTL) This bot works based on certstream libary (https://github.com/CaliDog/certstream-python)
name:intelmq.bots.collectors.calidog.collector_certstreamlookup:yespublic:nocache (redis db):nonedescription:collect data from Certificate Transparency Log
- Feed parameters (see above)
name:intelmq.bots.collectors.opendxl.collectorlookup:yespublic:nocache (redis db):nonedescription:collect messages via openDXL
- Feed parameters (see above)
dxl_config_file: location of the config file containing required information to connect $dxl_topic: the name of the DXL topix to subscribe
Iterates over all blobs in all containers in an Azure storage.
name:intelmq.bots.collectors.microsoft.collector_azurelookup:yespublic:nocache (redis db):nonedescription:collect blobs from microsoft azure using their library
- Feed parameters (see above)
account_name: account name as give by Microsoftaccount_key: account key as give by Microsoftdelete: boolean, delete containers and blobs after fetching
Iterates over all files available by this API. Make sure to limit the files to be downloaded with the parameters, otherwise you will get a lot of data!
The cache is used to remember which files have already been downloaded. Make sure the TTL is high enough, higher than not_older_than.
name:intelmq.bots.collectors.microsoft.collector_interflowlookup:yespublic:nocache (redis db):5description:collect files from microsoft interflow using their API
- Feed parameters (see above)
api_key: API generate in their portalfile_match: an optional regular expression to match file namesnot_older_than: an optional relative (minutes) or absolute time (UTC is assumed) expression to determine the oldest time of a file to be downloadedredis_cache_*and especiallyredis_cache_ttl: Settings for the cache where file names of downloaded files are saved. The cache's TTL must always be bigger thannot_older_than.
- Files are automatically ungzipped if the filename ends with
.gz.
See the README.md in intelmq/bots/collectors/stomp/
name:intelmq.bots.collectors.stomp.collectorlookup:yespublic:nocache (redis db):nonedescription:collect messages from a stomp server
- Feed parameters (see above)
exchange: exchange pointport: 61614server: hostname e.g. "n6stream.cert.pl"ssl_ca_certificate: path to CA filessl_client_certificate: path to client cert filessl_client_certificate_key: path to client cert key file
Collects tweets from target_timelines. Up to tweet_count tweets from each user and up to timelimit back in time. The tweet text is sent separately and if allowed, links to pastebin are followed and the text sent in a separate report
name:intelmq.bots.collectors.twitter.collector_twitterlookup:yespublic:yescache (redis db):nonedescription:Collects tweets
- Feed parameters (see above)
target_timelines: screen_names of twitter accounts to be followedtweet_count: number of tweets to be taken from each accounttimelimit: maximum age of the tweets collected in secondsfollow_urls: list of screen_names for which urls will be followedexclude_replies: exclude replies of the followed screen_namesinclude_rts: whether to include retweets by given screen_nameconsumer_key: Twitter api login dataconsumer_secret: Twitter api login dataacces_token_key: Twitter api login dataaccess_token_secret: Twitter api login data
name:intelmq.bots.collectors.api.collector_apilookup:nopublic:nocache (redis db):nonedescription:Bot for collecting data using API, you need to post JSON to /intelmq/push endpoint
example usage:
curl -X POST http://localhost:5000/intelmq/push -H 'Content-Type: application/json' --data '{"source.ip": "127.0.0.101", "classification.type": "backdoor"}'
- Feed parameters (see above)
port: 5000
This list is not complete. Look at intelmq/bots/BOTS or the list of parsers shown in the manager. But most parsers do not need configuration parameters.
TODO
Lines starting with '#' will be ignored. Headers won't be interpreted.
-
"columns": A list of strings or a string of comma-separated values with field names. The names must match the harmonization's field names. Empty column specifications and columns named"__IGNORE__"are ignored. E.g."columns": [ "", "source.fqdn", "extra.http_host_header", "__IGNORE__" ],
is equivalent to:
"columns": ",source.fqdn,extra.http_host_header,"
The first and the last column are not used in this example. It is possible to specify multiple columns using the
|character. E.g."columns": "source.url|source.fqdn|source.ip"First, bot will try to parse the value as url, if it fails, it will try to parse it as FQDN, if that fails, it will try to parse it as IP, if that fails, an error wil be raised. Some use cases -
- mixed data set, e.g. URL/FQDN/IP/NETMASK `"columns": "source.url|source.fqdn|source.ip|source.network"` - parse a value and ignore if it fails `"columns": "source.url|__IGNORE__"` -
"column_regex_search": Optional. A dictionary mapping field names (as given per the columns parameter) to regular expression. The field is evaulated usingre.search. Eg. to get the ASN out ofAS1234use:{"source.asn": "[0-9]*"}. -
"default_url_protocol": For URLs you can give a defaut protocol which will be pretended to the data. -
"delimiter": separation character of the CSV, e.g."," -
"skip_header": Boolean, skip the first line of the file, optional. Lines starting with#will be skipped additionally, make sure you do not skip more lines than needed! -
time_format: Optional. If"timestamp","windows_nt"or"epoch_millis"the time will be converted first. With the defaultnullfuzzy time parsing will be used. -
"type": set theclassification.typestatically, optional -
"data_type": sets the data of specific type, currently only"json"is supported value. An example```{ "columns": [ "source.ip", "source.url", "extra.tags"], "data_type": "{\"extra.tags\":\"json\"}" }``` It will ensure `extra.tags` is treated as `json`. -
"filter_text": only process the lines containing or not containing specified text, to be used in conjection withfilter_type -
"filter_type": value can be whitelist or blacklist. Ifwhitelist, only lines containing the text infilter_textwill be processed, ifblacklist, only lines NOT containing the text will be processed.To process ipset format files use
{ "filter_text": "ipset add ", "filter_type": "whitelist", "columns": [ "__IGNORE__", "__IGNORE__", "__IGNORE__", "source.ip"] } -
"type_translation": If the source does have a field with information forclassification.type, but it does not correspond to intelmq's types, you can map them to the correct ones. Thetype_translationfield can hold a JSON field with a dictionary which maps the feed's values to intelmq's. -
"columns_required": A list of true/false for each column. By default, it is true for every column.
name:intelmq.bots.parsers.cymru.parser_cap_programpublic:nocache (redis db):nonedescription:Parses data from cymru's cap program feed.
There are two different feeds available:
- infected_$date.txt ("old")
- $certname_$date.txt ("new")
The new will replace the old at some point in time, currently you need to fetch both. The parser handles both formats.
As little information on the format is available, the mappings might not be correct in all cases.
Some reports are not implemented at all as there is no data available to check if the parsing is correct at all. If you do get errors like Report ... not implement or similar please open an issue and report the (anonymized) example data. Thanks.
The information about the event could be better in many cases but as Cymru does not want to be associated with the report, we can't add comments to the events in the parser, because then the source would be easily identifiable for the recipient.
http://www.team-cymru.com/bogon-reference.html
name:intelmq.bots.parsers.cymru.parser_full_bogonspublic:nocache (redis db):nonedescription:Parses data from full bogons feed.
-
"columns": A list of strings or a string of comma-separated values with field names. The names must match the harmonization's field names. Empty column specifications and columns named"__IGNORE__"are ignored. E.g."columns": [ "", "source.fqdn", "extra.http_host_header", "__IGNORE__" ],
is equivalent to:
"columns": ",source.fqdn,extra.http_host_header,"
The first and the last column are not used in this example. It is possible to specify multiple columns using the
|character. E.g."columns": "source.url|source.fqdn|source.ip"First, bot will try to parse the value as url, if it fails, it will try to parse it as FQDN, if that fails, it will try to parse it as IP, if that fails, an error wil be raised. Some use cases -
- mixed data set, e.g. URL/FQDN/IP/NETMASK `"columns": "source.url|source.fqdn|source.ip|source.network"` - parse a value and ignore if it fails `"columns": "source.url|__IGNORE__"` -
"ignore_values": A list of strings or a string of comma-separated values which will not considered while assigning to the corresponding fields given incolumns. E.g."ignore_values": [ "", "unknown", "Not listed", ],
is equivalent to:
"ignore_values": ",unknown,Not listed,"
The following configuration will lead to assigning all values to malware.name and extra.SBL except
unknownandNot listedrespectively."columns": [ "source.url", "malware.name", "extra.SBL", ], "ignore_values": [ "", "unknown", "Not listed", ],
Parameters columns and ignore_values must have same length
-
"attribute_name": Filtering table with table attributes, to be used in conjunction withattribute_value, optional. E.g.class,id,style. -
"attribute_value": String. To filter all tables with attributeclass='details'use"attribute_name": "class", "attribute_value": "details"
-
"table_index": Index of the table if multiple tables present. Ifattribute_nameandattribute_valuegiven, index according to tables remaining after filtering with table attribute. Default:0. -
"split_column": Padded column to be splitted to get values, to be used in conjection withsplit_separatorandsplit_index, optional. -
"split_separator": Delimiter string for padded column. -
"split_index": Index of unpadded string in returned list from splittingsplit_columnwithsplit_separatoras delimiter string. Default:0. E.g."split_column": "source.fqdn", "split_separator": " ", "split_index": 1,
With above configuration, column corresponding to
source.fqdnwith value[D] lingvaworld.ruwill be assigned as"source.fqdn": "lingvaworld.ru". -
"skip_table_head": Boolean, skip the first row of the table, optional. Default:true. -
"default_url_protocol": For URLs you can give a default protocol which will be pretended to the data. Default:"http://". -
"time_format": Optional. If"timestamp","windows_nt"or"epoch_millis"the time will be converted first. With the defaultnullfuzzy time parsing will be used. -
"type": set theclassification.typestatically, optional -
"html_parser": The html parser to use, by default "html.parser", can also be e.g. "lxml", have a look at https://www.crummy.com/software/BeautifulSoup/bs4/doc/
name:intelmq.bots.parsers.mcafee.parser_atd_filelookup:yespublic:nocache (redis db):nonedescription:parses file hash information off ATD reports
- Feed parameters (see above)
verdict_severity: min report severity to parse
name:intelmq.bots.parsers.mcafee.parser_atd_filelookup:yespublic:nocache (redis db):nonedescription:parses IP addresses off ATD reports
- Feed parameters (see above)
verdict_severity: min report severity to parse
name:intelmq.bots.parsers.mcafee.parser_atd_filelookup:yespublic:nocache (redis db):nonedescription:parses URLs off ATD reports
- Feed parameters (see above)
verdict_severity: min report severity to parse
name:intelmq.bots.parsers.twitter.parserpublic:nocache (redis db):nonedescription:Extracts urls from text, fuzzy, aimed at parsing tweets
domain_whitelist: domains to be filetered outsubstitutions: semicolon delimited list of even length of pairs of substitutions (for example: '[.];.;,;.' substitutes '[.]' for '.' and ',' for '.')classification_type: string with a valid classification type as defined in data harmonizationdefault_scheme: Default scheme for URLs if not given. See also the next section.
The dependency url-normalize changed it's behavior in version 1.4.0 from using http:// as default scheme to https://. Version 1.4.1 added the possibility to specify it. Thus you can only use the default_scheme parameter with a current version of this library >= 1.4.1, with 1.4.0 you will always get https:// as default scheme and for older versions < 1.4.0 http:// is used.
This does not affect URLs which already include the scheme.
name:intelmq.bots.parsers.shadowserver.parserpublic:yesdescription:Parses different reports from shadowserver.
feedname: Optional, the Name of the feed, see list below for possible values.overwrite: If an existingfeed.nameshould be overwritten.
There are two possibilities TODO.
Since IntelMQ version 2.1 the parser can detect the feed based on metadata provided by the collector.
When processing a report, this bot takes extra.file_name from the report and
looks in config.py how the report should be parsed.
If this lookup is not possible, and the feed name is not given as parameter, the feed cannot be parsed.
The field extra.file_name has the following structure:
%Y-%m-%d-${report_name}[-suffix].csv where suffix can be something like country-geo. For example, some possible filenames are 2019-01-01-scan_http-country-geo.csv or 2019-01-01-scan_tftp.csv. The important part is ${report_name}, between the date and the suffix.
If the method above is not possible and for upgraded instances, the feed can be set with the feedname parameter.
Feed-names are derived from the subjects of the Shadowserver E-Mails.
A list of possible feeds can be found in the table below in the column "feed name".
These are the supported feed name and their corresponding file name for automatic detection:
| feed name | file name |
|---|---|
| Accessible-ADB | scan_adb |
| Accessible-AFP | scan_afp |
| Accessible-Cisco-Smart-Install | cisco_smart_install |
| Accessible-CWMP | scan_cwmp |
| Accessible-FTP | scan_ftp |
| Accessible-Hadoop | scan_hadoop |
| Accessible-HTTP | scan_http |
| Accessible-RDP | scan_rdp |
| Accessible-Rsync | scan_rsync |
| Accessible-SMB | scan_smb |
| Accessible-Telnet | scan_telnet |
| Accessible-Ubiquiti-Discovery-Service | scan_ubiquiti |
| Accessible-VNC | scan_vnc |
| Amplification-DDoS-Victim | ddos_amplification |
| Blacklisted-IP | blacklist |
| Compromised-Website | compromised_website |
| Darknet | darknet |
| DNS-Open-Resolvers | scan_dns |
| Drone | botnet_drone |
| Drone-Brute-Force | drone_brute_force |
| HTTP-Scanners | hp_http_scan |
| ICS-Scanners | hp_ics_scan |
| IPv6-Sinkhole-HTTP-Drone | sinkhole6_http |
| Microsoft-Sinkhole | microsoft_sinkhole |
| NTP-Monitor | scan_ntpmonitor |
| NTP-Version | scan_ntp |
| Open-Chargen | scan_chargen |
| Open-DB2-Discovery-Service | scan_db2 |
| Open-Elasticsearch | scan_elasticsearch |
| Open-IPMI | scan_ipmi |
| Open-LDAP | scan_ldap |
| Open-LDAP-TCP | scan_ldap_tcp |
| Open-mDNS | scan_mdns |
| Open-Memcached | scan_memcached |
| Open-MongoDB | scan_mongodb |
| Open-MSSQL | scan_mssql |
| Open-NATPMP | scan_nat_pmp |
| Open-NetBIOS-Nameservice | scan_netbios |
| Open-Netis | ? |
| Open-Portmapper | scan_portmapper |
| Open-QOTD | scan_qotd |
| Open-Redis | scan_redis |
| Open-SNMP | scan_snmp |
| Open-SSDP | scan_ssdp |
| Open-TFTP | scan_tftp |
| Open-XDMCP | scan_xdmcp |
| Outdated-DNSSEC-Key | outdated_dnssec_key |
| Outdated-DNSSEC-Key-IPv6 | outdated_dnssec_key_v6 |
| Sandbox-URL | cwsandbox_url |
| Sinkhole-HTTP-Drone | sinkhole_http_drone |
| Spam-URL | spam_url |
| SSL-FREAK-Vulnerable-Servers | scan_ssl_freak |
| SSL-POODLE-Vulnerable-Servers | scan_ssl_poodle |
| Vulnerable-ISAKMP | scan_isakmp |
The parser consists of two files:
- config.py
- parser.py
Both files are required for the parser to work properly.
Add a new feedformat and conversions if required to the file
config.py. Don't forget to update the feed_idx dict.
It is required to look up the correct configuration.
Look a the documentation in the bots's config.py file for more information.
name:intelmq.bots.parsers.shodan.parserpublic:yesdescription:Parses data from shodan (search, stream etc).
The parser is by far not complete as there are a lot of fields in a big nested structure. There is a minimal mode available which only parses the important/most useful fields and also saves everything in extra.shodan keeping the original structure. When not using the minimal mode if may be useful to ignore errors as many parsing errors can happen with the incomplete mapping.
ignore_errors: Boolean (default true)minimal_mode: Boolean (default false)
See the README.md
name:abusixlookup:dnspublic:yescache (redis db):5description:FIXMEnotes: https://abusix.com/contactdb.html
- Cache parameters (see in section common parameters) FIXME
See the README.md
name:ASN lookuplookup:local databasepublic:yescache (redis db):nonedescription:IP to ASN
FIXME
name:`intelmq.bots.experts.national_cert_contact_certat.expertlookup:to https://contacts.cert.at/cgi-bin/abuse-nationalcert.plpublic:yescache (redis db):nonedescription:Queries abuse contact based on the country.
- Cache parameters (see in section common parameters) FIXME
name:cymru-whoislookup:cymru dnspublic:yescache (redis db):5description:IP to geolocation, ASN, BGP prefix
- Cache parameters (see in section common parameters)
overwrite: Overwrite existing fields. Default:Trueif not given (for backwards compatibility, will change in version 3.0.0)
This bots adds the public suffix to the event, derived by a domain. See or information on the public suffix list: https://publicsuffix.org/list/ Only rules for ICANN domains are processed. The list can (and should) contain Unicode data, punycode conversion is done during reading.
Note that the public suffix is not the same as the top level domain (TLD). E.g.
co.uk is a public suffix, but the TLD is uk.
Privatly registered suffixes (such as blogspot.co.at) which are part of the
public suffix list too, are ignored.
name:deduplicatorlookup:redis cachepublic:yescache (redis db):6description:message deduplicator
field: either"fqdn"or"reverse_dns"suffix_file: path to the suffix file
A short summary how the rules are processed:
The simple ones:
com
at
gv.at
example.com leads to com, example.gv.at leads to gv.at.
Wildcards:
*.example.com
www.example.com leads to www.example.com.
And additionally the exceptions, together with the above wildcard rule:
!www.example.com
www.example.com does now not lead to www.example.com, but to example.com.
See the README.md
name:deduplicatorlookup:redis cachepublic:yescache (redis db):6description:message deduplicator
- Cache parameters (see in section common parameters) Please check this README file.
name:do_portallookup:yespublic:nocache (redis db):nonedescription:The DO portal retrieves the contact information from a DO portal instance: http://github.com/certat/do-portal/
mode- Eitherreplaceorappendthe new abuse contacts in case there are existing ones.portal_url- The URL to the portal, without the API-path. The used URL is$portal_url + '/api/1.0/ripe/contact?cidr=%s'.portal_api_key- The API key of the user to be used. Must have sufficient privileges.
name:reducerlookup:nonepublic:yescache (redis db):nonedescription:The field reducer bot is capable of removing fields from events.
type- either"whitelist"or"blacklist"keys- Can be a JSON-list of field names (["raw", "source.account"]) or a string with a comma-separated list of field names ("raw,source.account").
Only the fields in keys will passed along.
The fields in keys will be removed from events.
The filter bot is capable of filtering specific events.
name:filterlookup:nonepublic:yescache (redis db):nonedescription:filter messages (drop or pass messages) FIXME
filter_key- key from data harmonizationfilter_value- value for the keyfilter_action- action when a message match to the criteria (possible actions: keep/drop)filter_regex- attribute determines if thefilter_valueshall be treated as regular expression or not. If this attribute is not empty, the bot uses python's "search" function to evaluate the filter.
not_before- events before this time will be droppednot_after- events after this time will be dropped
Both parameters accept string values describing absolute or relative time:
- absolute
- basically anything parseable by datetime parser, eg. "2015-09-012T06:22:11+00:00"
time.sourcetaken from the event will be compared to this value to decide the filter behavior- relative
- accepted string formatted like this " ", where epoch could be any of following strings (could optionally end with trailing 's'): hour, day, week, month, year
- time.source taken from the event will be compared to the value (now - relative) to decide the filter behavior
Examples of time filter definition:
"not_before" : "2015-09-012T06:22:11+00:00"events older than the specified time will be dropped"not_after" : "6 months"just events older than 6 months will be passed through the pipeline
_default: default path, according to the configurationaction_other: Negation of the default pathfilter_match: For all events the filter matched onfilter_no_match: For all events the filter does not match
| action | match | _default |
action_other |
filter_match |
filter_no_match |
|---|---|---|---|---|---|
| keep | ✓ | ✓ | ✗ | ✓ | ✗ |
| keep | ✗ | ✗ | ✓ | ✗ | ✓ |
| drop | ✓ | ✗ | ✓ | ✓ | ✗ |
| drop | ✗ | ✓ | ✗ | ✗ | ✓ |
name:Format Fieldlookup:nonecache (redis db):nonedescription:String method operations on column values
strip_columns- A list of strings or a string of comma-separated values with field names. The names must match the harmonization's field names. E.g.is equivalent to:"columns": [ "malware.name", "extra.tags" ],
"columns": "malware.name,extra.tags"
strip_chars- a set of characters to remove as leading/trailing characters(default:or whitespace)
replace_column- key from data harmonizationold_value- the string to search fornew_value- the string to replace the old value withreplace_count- number specifying how many occurrences of the old value you want to replace(default:1)
split_column- key from data harmonizationsplit_separator- specifies the separator to use when splitting the string(default:,)
Order of operation: strip -> replace -> split. These three methods can be combined such as first strip and then split.
See the README.md
name:gethostbynamelookup:dnspublic:yescache (redis db):nonedescription:DNS name (FQDN) to IP
none
Converts the event to IDEA format and saves it as JSON in the field output. All other fields are not modified.
Documentation about IDEA: https://idea.cesnet.cz/en/index
name:idealookup:local configpublic:yescache (redis db):nonedescription:The bot does a best effort translation of events into the IDEA format.
test_mode: addTestcategory to mark all outgoing IDEA events as informal (meant to simplify setting up and debugging new IDEA producers) (default:true)
name:maxmind-geoiplookup:local databasepublic:yescache (redis db):nonedescription:IP to geolocation
The bot requires the maxmind's geoip2 Python library, version 2.2.0 has been tested.
The database is available at https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz You need to unzip it.
You may want to use a shell script provided in the contrib directory to keep the database up to date: contrib/cron-jobs/update-geoip-data
database: Path to the local database, e.g."/opt/intelmq/var/lib/bots/maxmind_geoip/GeoLite2-City.mmdb"overwrite: booleanuse_registered: boolean. MaxMind has two country ISO codes: One for the physical location of the address and one for the registered location. Default isfalse(backwards-compatibility). See also certtools#1344 for a short explanation.
name:intelmq.bots.experts.mcafee.expert_marlookup:yespublic:nocache (redis db):nonedescription:Queries occurrences of hashes within local environment
- Feed parameters (see above)
dxl_config_file: location of file containing required information to connect to DXL buslookup_type: One of:Hash: looks upmalware.hash.md5,malware.hash.sha1andmalware.hash.sha256DestSocket: looks updestination.ipanddestination.portDestIP: looks updestination.ipDestFQDN: looks up indestination.fqdn
name:intelmq.bots.experts.mcafee.expert_mar_iplookup:yespublic:nocache (redis db):nonedescription:Queries occurrences of connection attempts to destination ip/port within local environment
- Feed parameters (see above)
dxl_config_file: location of file containing required information to connect to DXL bus
name:intelmq.bots.experts.mcafee.expert_mar_urllookup:yespublic:nocache (redis db):nonedescription:Queries occurrences of FQDN lookups within local environment
- Feed parameters (see above)
dxl_config_file: location of file containing required information to connect to DXL bus
name:modifylookup:local configpublic:yescache (redis db):nonedescription:modify expert bot allows you to change arbitrary field values of events just using a configuration file
configuration_path: filenamecase_sensitive: boolean, default: true
The modify expert bot allows you to change arbitrary field values of events just using a configuration file. Thus it is possible to adapt certain values or adding new ones only by changing JSON-files without touching the code of many other bots.
The configuration is called modify.conf and looks like this:
[
{
"rulename": "Standard Protocols http",
"if": {
"source.port": "^(80|443)$"
},
"then": {
"protocol.application": "http"
}
},
{
"rulename": "Spamhaus Cert conficker",
"if": {
"malware.name": "^conficker(ab)?$"
},
"then": {
"classification.identifier": "conficker"
}
},
{
"rulename": "bitdefender",
"if": {
"malware.name": "bitdefender-(.*)$"
},
"then": {
"malware.name": "{matches[malware.name][1]}"
}
},
{
"rulename": "urlzone",
"if": {
"malware.name": "^urlzone2?$"
},
"then": {
"classification.identifier": "urlzone"
}
},
{
"rulename": "default",
"if": {
"feed.name": "^Spamhaus Cert$"
},
"then": {
"classification.identifier": "{msg[malware.name]}"
}
}
]In our example above we have five groups labeled Standard Protocols http,
Spamhaus Cert conficker, bitdefender, urlzone and default.
All sections will be considered, in the given order (from top to bottom).
Each rule consists of conditions and actions. Conditions and actions are dictionaries holding the field names of events and regex-expressions to match values (selection) or set values (action). All matching rules will be applied in the given order. The actions are only performed if all selections apply.
If the value for a condition is an empty string, the bot checks if the field does not exist. This is useful to apply default values for empty fields.
You can set the value of the field to a string literal or number.
In addition you can use the standard Python string format syntax
to access the values from the processed event as msg and the match groups
of the conditions as matches, see the bitdefender example above.
Group 0 ([0]) contains the full matching string. See also the documentation on re.Match.group.
Note that matches will also contain the match groups
from the default conditions if there were any.
We have an event with feed.name = Spamhaus Cert and malware.name = confickerab. The expert loops over all sections in the file and eventually enters section Spamhaus Cert. First, the default condition is checked, it matches! OK, going on. Otherwise the expert would have selected a different section that has not yet been considered. Now, go through the rules, until we hit the rule conficker. We combine the conditions of this rule with the default conditions, and both rules match! So we can apply the action: classification.identifier is set to conficker, the trivial name.
Assume we have an event with feed.name = Spamhaus Cert and malware.name = feodo. The default condition matches, but no others. So the default action is applied. The value for classification.identifier will be set to feodo by {msg[malware.name]}.
If the rule is a string, a regex-search is performed, also for numeric values (str() is called on them). If the rule is numeric for numeric values, a simple comparison is done. If other types are mixed, a warning will be thrown.
name:national_cert_contact_certatlookup:httpspublic:yescache (redis db):nonedescription:https://contacts.cert.at offers an IP address to national CERT contact (and cc) mapping. See https://contacts.cert.at for more info.
filter: (true/false) act as a a filter for AT.overwrite_cc: set to true if you want to overwrite any potentially existing cc fields in the event.
For both source.ip and destination.ip the corresponding risk score is fetched from a local database created from Recorded Future's API. The score is recorded in extra.rf_iprisk.source and extra.rf_iprisk.destination. If a lookup for an IP fails a score of 0 is recorded.
See https://www.recordedfuture.com/products/api/ and speak with your recorded future representative for more information.
name:recordedfuture_iprisklookup:local databasepublic:nocache (redis db):nonedescription:Record risk score associated to source and destination IP if they are present. Assigns 0 to to IPs not in the RF list.
database: Location of csv file obtained from recorded future API (a script is provided to download the large IP set)overwrite: set to true if you want to overwrite any potentially existing risk score fields in the event.
For both source.ip and destination.ip the PTR record is fetched and the first valid result is used for source.reverse_dns/destination.reverse_dns.
name:reverse-dnslookup:dnspublic:yescache (redis db):8description:IP to domain
- Cache parameters (see in section common parameters)
cache_ttl_invalid_response: The TTL for cached invalid responses.overwrite: Overwrite existing fields. Default:Trueif not given (for backwards compatibility, will change in version 3.0.0)
Several RFCs define IP addresses and Hostnames (and TLDs) reserved for documentation:
Sources:
- https://tools.ietf.org/html/rfc1918
- https://tools.ietf.org/html/rfc2606
- https://tools.ietf.org/html/rfc3849
- https://tools.ietf.org/html/rfc4291
- https://tools.ietf.org/html/rfc5737
- https://en.wikipedia.org/wiki/IPv4
name:rfc1918lookup:nonepublic:yescache (redis db):nonedescription:removes events or single fields with invalid data
fields: list of fields to look at. e.g. "destination.ip,source.ip,source.url"policy: list of policies, e.g. "del,drop,drop".dropdrops the entire event,delremoves the field.
Online RIPE Abuse Contact and Geolocation Finder for IP addresses and Autonomous Systems.
name:ripencc-abuse-contactlookup:https apipublic:yescache (redis db):10description:IP to abuse contact
- Cache parameters (see in section common parameters)
mode: eitherappend(default) orreplacequery_ripe_db_asn: Query for IPs athttp://rest.db.ripe.net/abuse-contact/%s.json, defaulttruequery_ripe_db_ip: Query for ASNs athttp://rest.db.ripe.net/abuse-contact/as%s.json, defaulttruequery_ripe_stat_asn: Query for ASNs athttps://stat.ripe.net/data/abuse-contact-finder/data.json?resource=%s, defaulttruequery_ripe_stat_ip: Query for IPs athttps://stat.ripe.net/data/abuse-contact-finder/data.json?resource=%s, defaulttruequery_ripe_stat_geolocation: Query for IPs athttps://stat.ripe.net/data/maxmind-geo-lite/data.json?resource=%s, defaulttrue
See intelmq/bots/experts/sieve/README.md
name:sievelookup:nonepublic:yescache (redis db):nonedescription:Filtering with a sieve-based configuration language
file: Path to sieve file. Syntax can be validated withintelmq_sieve_expert_validator.
name:taxonomylookup:local configpublic:yescache (redis db):nonedescription:use eCSIRT taxonomy to classify events (classification type to classification taxonomy)
FIXME
See the README.md
name:tor-nodeslookup:local databasepublic:yescache (redis db):nonedescription:check if IP is tor node
FIXME
This bot extracts the Host from the source.url and destination.url fields and
writes it to source.fqdn or destination.fqdn if it is a hostname, or
source.ip or destination.ip if it is an IP address.
name:url2fqdnlookup:nonepublic:yescache (redis db):nonedescription:writes domain name from URL to FQDN or IP address
overwrite: boolean, replace existing FQDN / IP address?
name:waitlookup:nonepublic:yescache (redis db):nonedescription:Waits for a some time or until a queue size is lower than a given numer.
queue_db: Database number of the database, default2. Converted to integer.queue_host: Host of the database, defaultlocalhost.queue_name: Name of the queue to be watched, defaultnull. This is not the name of a bot but the queue's name.queue_password: Password for the database, defaultNone.queue_polling_interval: Interval to poll the list length in seconds. Converted to float.queue_port: Port of the database, default6379. Converted to integer.queue_size: Maximum size of the queue, default0. Compared by <=. Converted to integer.sleep_time: Time to sleep before sending the event.
Only one of the two modes is possible. If a queue name is given, the queue mode is active. If the sleep_time is a number, sleep mode is active. Otherwise the dummy mode is active, the events are just passed without an additional delay.
Note that SIGHUPs and reloads interrupt the sleeping.
Sends data to an AMQP Server
name:intelmq.bots.outputs.amqptopic.outputlookup: to the amqp serverpublic: yescache: nodescription: Sends the event to a specified topic of an AMQP server
See README.md
This output bot discards all incoming messages.
name: blackholelookup: nopublic: yescache: nodescription: discards messages
Output Bot that sends events to Elasticsearch
-
elastic_host : Name/IP for the Elasticsearch server, defaults to 127.0.0.1
-
elastic_port : Port for the Elasticsearch server, defaults to 9200
-
elastic_index : Index for the Elasticsearch output, defaults to intelmq
-
rotate_index : If set, will index events using the date information associated with the event. Options: 'never', 'daily', 'weekly', 'monthly', 'yearly'. Using 'intelmq' as the elastic_index, the following are examples of the generated index names:
'never' --> intelmq 'daily' --> intelmq-2018-02-02 'weekly' --> intelmq-2018-42 'monthly' --> intelmq-2018-02 'yearly' --> intelmq-2018 -
elastic_doctype : Elasticsearch document type for the event. Default: events
-
http_username : http_auth basic username
-
http_password : http_auth basic password
-
use_ssl : Whether to use SSL/TLS when connecting to Elasticsearch. Default: False
-
http_verify_cert : Whether to require verification of the server's certificate. Default: False
-
ssl_ca_certificate : An optional path to a certificate bundle to use for verifying the server
-
ssl_show_warnings : Whether to show warnings if the server's certificate can not be verified. Default: True
-
replacement_char : If set, dots ('.') in field names will be replaced with this character prior to indexing. This is for backward compatibility with ES 2.X. Default: null. Recommended for ES2.X: '_'
-
flatten_fields : In ES, some query and aggregations work better if the fields are flat and not JSON. Here you can provide a list of fields to convert. Can be a list of strings (fieldnames) or a string with field names separated by a comma (,). eg
extra,field2or['extra', 'field2']Default: ['extra']
See contrib/elasticsearch/elasticmapper for a utility for creating Elasticsearch mappings and templates.
If using rotate_index, the resulting index name will be of the form [elastic_index]-[event date]. To query all intelmq indices at once, use an alias (https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html), or a multi-index query.
The data in ES can be retrieved with the HTTP-Interface:
> curl -XGET 'http://localhost:9200/intelmq/events/_search?pretty=True'name:filelookup:nopublic:yescache (redis db):nonedescription:output messages (reports or events) to file
Multihreading is disabled for this bot, as this would lead to corrupted files.
encoding_errors_mode: By default'strict', see for more details and options: https://docs.python.org/3/library/functions.html#open For example with'backslashreplace'all characters which cannot be properly encoded will be written escaped with backslashes.file: file path of output file. Missing directories will be created if possible with the mode 755.format_filename: Boolean if the filename should be formatted (default:false).hierarchial_output: If true, the resulting dictionary will be hierarchical (field names split by dot).single_key: ifnone, the whole event is saved (default); otherwise the bot saves only contents of the specified key. In case ofrawthe data is base64 decoded.
The filename can be formatted using pythons string formatting functions if format_filename is set. See https://docs.python.org/3/library/string.html#formatstrings
For example:
- The filename
.../{event[source.abuse_contact]}.txtwill be (for example).../abuse@example.com.txt. .../{event[time.source]:%Y-%m-%d}results in the date of the event used as filename.
If the field used in the format string is not defined, None will be used as fallback.
name:fileslookup:nopublic:yescache (redis db):nonedescription:saving of messages as separate files
dir: output directory (default/opt/intelmq/var/lib/bots/files-output/incoming)tmp: temporary directory (must reside on the same filesystem asdir) (default:/opt/intelmq/var/lib/bots/files-output/tmp)suffix: extension of created files (default.json)hierarchical_output: iftrue, use nested dictionaries; iffalse, use flat structure with dot separated keys (default)single_key: ifnone, the whole event is saved (default); otherwise the bot saves only contents of the specified key
name:intelmq.bots.outputs.mcafee.output_esm_iplookup:yespublic:nocache (redis db):nonedescription:Writes information out to McAfee ESM watchlist
- Feed parameters (see above)
esm_ip: IP address of ESM instanceesm_user: username of user entitled to write to watchlistesm_pw: password of useresm_watchlist: name of the watchlist to write tofield: name of the intelMQ field to be written to ESM
Saves events in a MongoDB either as hierarchical structure or flat with full key names. time.observation and time.source are saved as datetime objects, not as ISO formatted string.
name:mongodblookup:nopublic:yescache (redis db):nonedescription:MongoDB is the bot responsible to send events to a MongoDB database
collection: MongoDB collectiondatabase: MongoDB databasedb_user: Database user that should be used if you enabled authenticationdb_pass: Password associated todb_userhost: MongoDB host (FQDN or IP)port: MongoDB porthierarchical_output: Boolean (default true) as mongodb does not allow saving keys with dots, we split the dictionary in sub-dictionaries.replacement_char: String (default'_') used as replacement character for the dots in key names if hierarchical output is not used.
pip3 install pymongo>=2.7.1
The bot has been tested with pymongo versions 2.7.1 and 3.4.
name:intelmq.bots.outputs.redis.outputlookup:to the redis serverpublic:yescache (redis db):nonedescription:Sends the events to another redis server
See README.md
name:restapilookup:nopublic:yescache (redis db):nonedescription:REST API is the bot responsible to send events to a REST API listener through POST
auth_token: the user name / http header keyauth_token_name: the password / http header valueauth_type: one of:"http_basic_auth","http_header"hierarchical_output: booleanhost: destination URLuse_json: boolean
Sends a MIME Multipart message containing the text and the event as CSV for every single event.
name:smtplookup:nopublic:yescache (redis db):nonedescription:Sends events via SMTP
fieldnames: a list of field names to be included in the email, comma separated string or list of stringsmail_from: string. Supports formatting, see belowmail_to: string of email addresses, comma separated. Supports formatting, see belowsmtp_host: stringsmtp_password: string or null, Password for authentication on your SMTP serversmtp_port: portsmtp_username: string or null, Username for authentication on your SMTP serverssl: booleanstarttls: booleansubject: string. Supports formatting, see belowtext: string or null. Supports formatting, see below
For several strings you can use values from the string using the
standard Python string format syntax.
Access the event's values with {ev[source.ip]} and similar.
Authentication is optional. If both username and password are given, these mechanism are tried: CRAM-MD5, PLAIN, and LOGIN.
Client certificates are not supported. If http_verify_cert is true, TLS certificates are checked.
name:sqllookup:nopublic:yescache (redis db):nonedescription:SQL is the bot responsible to send events to a PostgreSQL or SQLite Databasenotes: When activating autocommit, transactions are not used: http://initd.org/psycopg/docs/connection.html#connection.autocommit
The parameters marked with 'PostgreSQL' will be sent to libpq via psycopg2. Check the [libpq parameter documentation] (https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS) for the versions you are using.
autocommit: psycopg's autocommit mode, optional, default Trueconnect_timeout: Database connect_timeout, optional, default 5 secondsengine: 'postgresql' or 'sqlite'database: PostgreSQL database or SQLite filehost: PostgreSQL hostjsondict_as_string: save JSONDict fields as JSON string, boolean. Default: true (like in versions before 1.1)port: PostgreSQL portuser: PostgreSQL userpassword: PostgreSQL passwordsslmode: PostgreSQL sslmode, can be'disable','allow','prefer'(default),'require','verify-ca'or'verify-full'. See postgresql docs: https://www.postgresql.org/docs/current/static/libpq-connect.html#libpq-connect-sslmodetable: name of the database table into which events are to be inserted
See REQUIREMENTS.txt from your installation.
See outputs/sql/README.md from your installation.
name:intelmq.bots.outputs.tcp.outputlookup:nopublic:yescache (redis db):nonedescription:TCP is the bot responsible to send events to a TCP port (Splunk, another IntelMQ, etc..).
Multihreading is disabled for this bot.
counterpart_is_intelmq: Boolean. If you are sending to an IntelMQ TCP collector, set this to True, otherwise e.g. with filebeat, set it to false.ip: IP of destination serverhierarchical_output: true for a nested JSON, false for a flat JSON (when sending to a TCP collector).port: port of destination serverseparator: separator of messages, eg. "\n", optional. When sending to a TCP collector, parameter shouldn't be present. In that case, the output waits every message is acknowledged by "Ok" message the tcp.collector bot implements.
name:intelmq.bots.outputs.touch.outputlookup:nopublic:yescache (redis db):nonedescription:Touches a file for every event received.
path: Path to the file to touch.
name:intelmq.bots.outputs.udp.outputlookup:nopublic:yescache (redis db):nonedescription:TCP is the bot responsible to send events to a UDP port
Multihreading is disabled for this bot.
field_delimiter: String, default:"|"format:jsonordelimited, see READMEheader: stringkeep_raw_field: boolean, default: falseudp_host: Destination's server's Host name or IP addressudp_port: Destination port
See the README.md in the bot's directory