- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-20-2022 02:01 PM - edited 12-20-2022 02:01 PM
I am working on a SOAR automation workflow that automatically adds an IP address to a Block List if Palo Alto identifies it as a “CRITICAL” or “HIGH” vulnerability coming from outside to inside our network.
I am getting an error once the workflow reaches the part where it attempts to add the IP address to the block list. The error is the response to the XML API request and is: {"line": "<ADDRESS_GROUP_NAME> -> ip-netmask unexpected here"}
where <ADDRESS_GROUP_NAME> is the name of the address group IP addresses get added to where they get auto-denied from entry to our network.
I'm using the Panorama “SET” action, and the XPATH I’ve specified is:
/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='<DEVICE_LOCATION>']/address-group/entry[@name='<ADDRESS_GROUP_NAME>']
The element I’ve specified is:
<static>
<member>
{{["Action 1"].[event].[entryObject].[source_ip]}}
</member>
</static>
Note: The odd-looking variable in the middle is a dynamic variable used by the SOAR tool that will put the Source IP of the vulnerability detection in there.
I came across some Palo Alto documentation here: Add a Shared Address Object Using XML API to Panorama
This documentation mentions that the Network Mask needs to be specified in CIDR notation for the IP address to be added.
Where does that netmask come from? Is it based on the source IP being submitted, or is it based on our internal network?
Thank you in advance.
12-22-2022 12:17 PM
Hello,
I understand what you are attempting to accomplish and here are a few things to think about.
These are dynamic and require no input or additional resources to accomplish. Honestly play IP whack-a-mole is not a very good method. If the firewall is blocking it, then its doing its job.
https://docs.paloaltonetworks.com/best-practices
Just my thoughts.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!