DShield Feed
This integration fetches a list that summarizes the top 20 attacking class C (/24) subnets over the last three days from Dshield.
Data Enrichment & Threat Intelligence · DShield Feed · Feed
Details
| ID | DShield Feed |
|---|---|
| Provider | Open Source |
| Category | Data Enrichment & Threat Intelligence |
| From Version | 5.5.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Supported Modules | Agentix XSIAM |
README
This integration fetches a list that summarizes the top 20 attacking class C (/24) subnets over the last three days from Dshield.
Configure DShield Feed in Cortex
| Parameter | Description | Required |
|---|---|---|
| Fetch indicators | False | |
| Indicator Reputation | Indicators from this integration instance will be marked with this reputation | False |
| Source Reliability | Reliability of the source providing the intelligence data | True |
| Traffic Light Protocol Color | The Traffic Light Protocol (TLP) designation to apply to indicators fetched from the feed | False |
| False | ||
| False | ||
| Feed Fetch Interval | False | |
| Bypass exclusion list | When selected, the exclusion list is ignored for indicators from this feed. This means that if an indicator from this feed is on the exclusion list, the indicator might still be added to the system. | False |
| Tags | Supports CSV values. | False |
| Trust any certificate (not secure) | False | |
| Use system proxy settings | False |
Commands
You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.
dshield-get-indicators
Gets the feed indicators.
Base Command
dshield-get-indicators
Input
| Argument Name | Description | Required |
|---|---|---|
| limit | The maximum number of results to return. The default value is 50. Default is 50. | Optional |
Context Output
There is no context output for this command.
Configuration parameters
feed— Fetch indicatorsfeedReputation— Indicator ReputationfeedReliability— Source Reliability (required)tlp_color— Traffic Light Protocol ColorfeedExpirationPolicy—cidr_32_to_ip— Set /32 CIDRs as IP IndicatorsfeedExpirationInterval—feedFetchInterval— Feed Fetch IntervalfeedBypassExclusionList— Bypass exclusion listfeedTags— Tagsinsecure— Trust any certificate (not secure)proxy— Use system proxy settings
Commands (1)
-
dshield-get-indicatorsGets the feed indicators.
from CommonServerPython import * def main(): params = {k: v for k, v in demisto.params().items() if v is not None} params["indicator_type"] = FeedIndicatorType.CIDR params["url"] = "https://www.dshield.org/block.txt" params["ignore_regex"] = "[#S].*" params["indicator"] = json.dumps( {"regex": r"^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\t[\d.]*\t(\d{1,2})", "transform": "\\1/\\2"} ) fields = json.dumps( { "numberofattacks": {"regex": "^.*\\t.*\\t[0-9]+\\t([0-9]+)", "transform": "\\1"}, "networkname": {"regex": "^.*\\t.*\\t[0-9]+\\t[0-9]+\\t([^\\t]+)", "transform": "\\1"}, "geocountry": {"regex": "^.*\\t.*\\t[0-9]+\\t[0-9]+\\t[^\\t]+\\t([A-Z]+)", "transform": "\\1"}, "registrarabuseemail": {"regex": "^.*\\t.*\\t[0-9]+\\t[0-9]+\\t[^\\t]+\\t[A-Z]+\\t(\\S+)", "transform": "\\1"}, } ) params["fields"] = fields params["custom_fields_mapping"] = {"geocountry": "geocountry", "registrarabuseemail": "registrarabuseemail"} # Call the main execution of the HTTP API module. feed_main("Dshield Feed", params, "dshield-") from HTTPFeedApiModule import * # noqa: E402 if __name__ == "__builtin__" or __name__ == "builtins": main()