GCP Whitelist Feed Deprecated

Deprecated. Use the Google IP Ranges Feed integration instead.

Data Enrichment & Threat Intelligence · Google IP Ranges Feed · Feed

Details

IDGCP Whitelist Feed
ProviderGoogle
CategoryData Enrichment & Threat Intelligence
From Version5.5.0
Docker Imagedemisto/netutils:1.0.0.3073344
Supported ModulesAgentix XSIAM

README

Use the Google Cloud Platform whitelist integration to get indicators from the feed.

Configure GCP Whitelist Feed in Cortex

Parameter Description Required
feed Fetch indicators False
feedReputation Indicator Reputation False
feedReliability Source Reliability True
tlp_color The Traffic Light Protocol (TLP) designation to apply to indicators fetched from the feed. More information about the protocol can be found at https://us-cert.cisa.gov/tlp False
feedExpirationPolicy   False
feedExpirationInterval   False
feedFetchInterval Feed Fetch Interval False
feedTags Tags False
feedBypassExclusionList Bypass exclusion list False
insecure Trust any certificate (not secure) False
proxy 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.

gcp-whitelist-get-indicators


Gets indicators from the feed.

Base Command

gcp-whitelist-get-indicators

Input
Argument Name Description Required
limit The maximum number of results to return. The default value is 10. Optional
Context Output

There is no context output for this command.

Command Example

!gcp-whitelist-get-indicators limit=2

Context Example
{}
Human Readable Output

Indicators from GCP Whitelist Feed

value type
52.86.122.241/18 CIDR
52.15.91.198/18 CIDR

Configuration parameters

  • feed — Fetch indicators
  • feedReputation — Indicator Reputation
  • feedReliability — Source Reliability (required)
  • tlp_color — Traffic Light Protocol Color
  • feedExpirationPolicy
  • feedExpirationInterval
  • feedFetchInterval — Feed Fetch Interval
  • feedTags — Tags
  • feedBypassExclusionList — Bypass exclusion list
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings

Commands (1)

  • gcp-whitelist-get-indicators Deprecated

    Gets indicators from the feed.

import dns.resolver
import json
from FeedGCPWhitelist import fetch_cidr
from collections import namedtuple

mock_root_dns = '_mockDns1.mock.com'
mock_node_dns = '_mockDns2.mock.com'

response_data1 = '{"response": { "answer": [["v=spf1 include:'f"{mock_node_dns}"' ip4:52.15.91.198/18 ?all"]] } }'
response_data2 = '{"response": { "answer": [["v=spf1 ip4:52.86.122.241/23 ip6:e1C::c::/35 ?all"]] } }'

mock_responses_dict = {
    mock_root_dns: response_data1,
    mock_node_dns: response_data2
}


def test_fetch_cidr(monkeypatch):
    def mock_dns_resolver_query(dns_address, _):
        response_json = mock_responses_dict[dns_address]
        return json.loads(response_json, object_hook=lambda d: namedtuple('Answer', d.keys())(*d.values()))

    monkeypatch.setattr(dns.resolver, "query", mock_dns_resolver_query)
    cidr_list = fetch_cidr(mock_root_dns)
    assert len(cidr_list) == 3
    for cidr in cidr_list:
        assert 'type' in cidr
        assert 'ip' in cidr