parsing-palo-configs

Parse PAN-OS and Panorama XML or set-format configs into a vendor-neutral firewall schema.

9|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/fastrevmd-lab/fwskillsshare --skill parsing-palo-configs-fastrevmd-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: parsing-palo-configs
Source: https://github.com/fastrevmd-lab/fwskillsshare/tree/main/skills/parsing-palo-configs
Command: npx skills add https://github.com/fastrevmd-lab/fwskillsshare --skill parsing-palo-configs-fastrevmd-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Palo Alto firewall and Panorama configurations are large, deeply nested XML documents where a missed vsys scope, a flattened pre/post-rulebase, or a silently dropped dynamic address group produces wrong audit findings and broken migrations. This Skill parses PAN-OS exports deterministically into a shared vendor-neutral schema so audits, conversions, and diffs rest on verified structure rather than plausible guesses. ## Core Features & Use Cases - Full-config extraction: Parses zones, address/service objects and groups, security policies, NAT and decryption rules, interfaces, routing (static, OSPF, OSPFv3, BGP), HA, VPN/IPsec, DHCP, admin users, and system settings from both XML and set-format exports, with multi-vsys and Panorama pre/post-rulebase handling. - Application resolution and audit checks: Maps PAN-OS App-IDs to canonical applications with confidence scores, then runs checks for unused objects, shadowed rules, overly permissive policies, missing logging, and User-ID or URL-category dependencies. - Use Case: You receive a Panorama export spanning three device-groups and need a migration assessment. The Skill parses every rulebase in correct evaluation order, flags dynamic address groups and unresolvable App-IDs, masks pre-shared keys, and emits schema-conformant JSON ready for the conversion or diff skills. ## Quick Start Ask the agent to parse the attached PAN-OS XML export into the shared firewall schema and report object counts, unresolved references, and audit findings.

Frequently Asked Questions about parsing-palo-configs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse a Palo Alto firewall config into JSON?

Provide the PAN-OS XML export or set-format output and the Skill auto-detects the format, extracts zones, objects, policies, NAT, routing, and VPN settings, then emits the shared vendor-neutral JSON schema with counts, warnings, and residual blocks.

Does it support Panorama device-group configs?

Yes. It parses Panorama shared objects and device-group pre-rulebase and post-rulebase sections, encodes the merged evaluation order with sequential rule indexes, and records device-group origin in warnings or residual data rather than flattening it silently.

Can it parse set-format output instead of XML?

Yes. Lines starting with 'set ' trigger set-format mode, which handles quoted strings, bracket list notation, and inline comments, mapping each set path to the equivalent XML hierarchy for extraction.

What audit checks run on Palo Alto configs?

The parser reports unused address and service objects, shadowed policies, overly permissive any/any rules, allow rules missing log-end, disabled policies, duplicate objects, empty groups, and dependencies on dynamic groups, User-ID, or URL categories.

How are VPN pre-shared keys and passwords handled?

Secrets are never emitted raw. IKE pre-shared keys are masked as "****", routing-protocol authentication keys are reduced to presence flags, and each redaction is noted in metadata warnings.

What happens to config sections the parser does not understand?

Unhandled sections are serialized into residual_raw with category labels such as VPN/IPsec, QoS, or PKI/Certificates, and parser limitations are listed in metadata warnings, so nothing is silently dropped.