- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
phantom infoblox block domain tweak
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 08:36 AM
I found the following customization of the block domain action for infoblox in phantom useful. The block domain action allows you to add an entry to the selected rp_zone. The cusomization appends the timestamp and "added by phantom playbook" to the comment field so you can easily see when blacklist entries can be aged out, if needed.
phantom.debug('block_domain_1() called')
parameters = []
start_time = datetime.datetime.now().strftime("%m-%d-%y")
name_value=phantom.collect(container, "artifact:*.cef.destinationDnsDomain")[0]['cef']['destinationDnsDomain']
parameters.append({
'domain': name_value,
'rp_zone': "blacklist",
'network_view': "Internal",
'comment': start_time + " block from Phantom Playbook ",
})
phantom.act("block domain", parameters=parameters, app={ "name": 'Infoblox DDI' }, callback=format_create_ticket, name="block_domain_1")
Unbolded code shuold be the default for block domain action.
HTH