Categories

Category cover

Automation
155 posts

Category cover

Learning paths
119 posts

Category cover

CISO
22 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
18 posts

Category cover

Infrastructure
12 posts

Category cover

OT/ICS
5 posts

Category cover

Books
3 posts

Category cover

UNetLab
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

Automating Palo Alto Firewall via Python PAN SDK

Andrea Dainese
July 12, 2025
Post cover

In the previous post, we explored the official pan-os-python library maintained by Palo Alto Networks. We also noted that this library build

In the previous post, we explored the official pan-os-python library maintained by Palo Alto Networks. We also noted that this library builds upon the personal work of Kevin Steves, who developed the pan-python library, enabling low-level operations on PAN-OS systems. Kevin also included several command-line tools to perform operations via CLI instead of Python.

The documentation is available online in reStructuredText format. The following modules are supported:

As we’ll see in the examples, PAN SDK essentially provides an interface to the XML API, with some added conveniences. The upcoming examples will resemble those from the XML API post.

PAN SDK relies on Python’s ElementTree , which reminds us:

A large number of log entries can cause a memory exception which may not be possible to catch.

Continue reading the post on Patreon .