PAN Guard Duty

Integration between Palo Alto Networks VM-Series FW and Amazon Guard Duty

The following sections describe the steps to be able to consume Amazon Guard Duty findings and subsequently apply security policy on the Palo Alto VM-Series Firewalls.

Pre-Requisities

  • Requires the use of the pandevice python package
  • Requires the use of the pan-python python package.

Make sure to enable the Guard Duty service on your AWS account.

Step by Step

  1. Clone the repo

    HTTPS:

    git clone https://github.com/PaloAltoNetworks/pan_guard_duty.git

    SSH:

    git clone git@github.com:PaloAltoNetworks/pan_guard_duty.git
  2. In the same directory, install the pandevice and pan-python packages as described below.

    Make sure you are in pan_guard_duty's parent directory

    pip install pandevice -t <pan_guard_duty directory>
    pip install pan-python -t <pan_guard_duty directory>
  3. Edit the "lambda_fw_config.py" file

    Update the Mgmt IP of the VM-Series FW and the username and password so that the lambda function can communicate with the FW.

  4. Create a zip file which contains the lambda code and the python packages.

    cd <pan_guard_duty directory>
    zip -r <filename>.zip .
  5. Create a bucket on S3

    Create a folder named "lambda" in the bucket.

  6. Upload the zip file to the S3 bucket

    Upload the zip file into the "lambda" folder of the bucket.

  7. Make the changes in the Cloud Formation Template to reference the name of the S3 bucket created in step 4.

    Change the value of the "S3Bucket" key to be the name of the S3 bucket created in step 4. Change the value of the "S3Key" key to be "lambda/\<name of the zip file uploaded>"

  8. Deploy the Cloud Formation Template.

Support

This template/solution is released under an as-is, best effort, support policy. These scripts should be seen as community supported and Palo Alto Networks will contribute our expertise as and when possible. We do not provide technical support or help in using or troubleshooting the components of the project through our normal support options such as Palo Alto Networks support teams, or ASC (Authorized Support Centers) partners and backline support options. The underlying product used (the VM-Series firewall) by the scripts or templates are still supported, but the support is only for the product functionality and not for help in deploying or using the template or script itself. Unless explicitly tagged, all projects or work posted in our GitHub repository (at https://github.com/PaloAltoNetworks) or sites other than our official Downloads page on https://support.paloaltonetworks.com are provided under the best effort policy.

For assistance from the community, please post your questions and comments either to the GitHub page where the solution is posted or on our Live Community site.

Last updated on by Steven Serrata