Palo Alto PAN-OS
Source: Palo Alto Networks PAN-OS. Enterprise tier. This connector only responds. It collects no data. It writes and removes security policy rules on a PAN-OS firewall or in a Panorama device group through the PAN-OS XML API, commits them, and on Panorama can push them to the devices. The connector has been tested in a live environment.
API access
- Create an administrator account for CICADA on the firewall or Panorama with a role that can edit security policy and commit. On Panorama the role must also be allowed to push to device groups if you want CICADA to push.
- Give CICADA either an API key generated for that account, or the account's username and password. With a username and password CICADA generates the API key once when you save the source and keeps only the key. Both are stored encrypted and never shown again.
- CICADA talks to the XML API at
https://<management address>/api/and sends the key in theX-PAN-KEYheader.
The source form
| Field | Notes |
|---|---|
| Management address | The firewall's or Panorama's management hostname or IP address. HTTPS on port 443. Required. |
| Sign in with | API key, or Admin username and password. One of the two is required. |
| Firewall vsys | The virtual system whose rulebase CICADA edits. Default vsys1. Ignored on Panorama. |
| Panorama device group | Required when the address is Panorama. CICADA edits that device group's rulebase. |
| Panorama rulebase | Pre-rulebase (before the firewalls' local rules, the default) or Post-rulebase (after them). |
| Log forwarding profile | Optional. Applied to every rule CICADA writes. Logging at session end is always on whether or not a profile is set. |
| Push to the device group after each commit | Panorama only. Off by default: the rule waits in Panorama until an operator pushes. Each action can override this. |
| Verify the device certificate | Keep this on. A management certificate is usually self-signed: paste the CA that issued it, or pin its SHA-256 fingerprint. |
| Certificate fingerprint, CA certificate | Optional. The SHA-256 fingerprint of the device certificate (64 hexadecimal characters), or the issuing CA in PEM. |
Allow outbound HTTPS (443) from the appliance to the management address. See Network Requirements.
Test Connection
Test Connection signs in and reads show system info. That tells CICADA whether it is talking to a firewall or to Panorama, and the model and PAN-OS version, which the result shows together with where rules will go (the vsys or the device group). On Panorama it also checks that the device group exists. It does not prove commit or push rights. Those are only proven by the first rule.
Security rule actions
Add PAN-OS Security Rule is high impact and always needs approval. Remove PAN-OS Security Rule is medium impact and always needs approval. Both are created from Response Actions by an analyst; AI Defender never proposes them.
- Add takes a rule name, source zones, destination zones, source addresses, destination addresses, the action (allow, deny or drop; deny is the default) and the position (top of the rulebase, the default, or bottom). A zone or address list left empty means
any. The action's target is the address the rule is about; if the target is not an address it is used as the rule name. When no name is given CICADA builds one from the investigation and the action. - Every rule CICADA writes logs at session end, carries the log forwarding profile if one is set, and has a description that starts with
CICADAfollowed by the investigation ID. That description is how CICADA later recognises its own rules. - A rule name that already exists is refused before anything is written. The XML API would otherwise merge the new settings into the existing rule.
- After writing, CICADA commits with a description starting
CICADAand waits for the commit job to finish. The action form has a Commit switch (on by default) and a Push switch (Panorama; defaults to the source's setting). If the commit fails, the result says the rule is in the candidate configuration but not committed; fix or revert it in the console. - Remove deletes a rule by name and commits. It refuses any rule whose description does not start with
CICADA. - The approval view shows the rule as it will be written: name, location, zones, addresses, action, position and description. The result shows the same together with the commit and push job outcomes.
Block IP and Unblock IP
- Block IP writes two deny rules from any zone to any zone: one for traffic from the address and one for traffic to it. Then it commits, and pushes if asked. Unlike the Zscaler connector, a firewall blocks internal addresses too, because it also sees traffic between internal networks.
- Unblock IP removes the two rules if they exist and commits. If CICADA finds no block rules for that address, the action fails and says so.
Panorama
- Rules go to the device group named on the source, in its pre-rulebase or post-rulebase.
- A commit saves the change in Panorama. A push (commit-all for that device group's shared policy) sends it to the firewalls; CICADA waits for the push job to finish and reports its result.
- Pushing is off unless the source or the action turns it on, so by default an operator pushes from Panorama.
- Cloud-managed firewalls (Strata Cloud Manager) are not supported.
What CICADA will never do
- Change an existing rule. A matching name is refused before any write.
- Remove a rule it did not write. Only rules whose description starts with
CICADAare removed. - Collect anything. The connector only reads system information and its own rules.
- Run a PAN-OS action without approval, or let AI Defender propose one.
If the licence lapses
The licence is checked each time the connector runs. When it lapses, new rules and new blocks are refused with a 403 error. Remove PAN-OS Security Rule and Unblock IP still run, so you can always undo a change CICADA made. The saved credentials must keep working for that, and the source cannot be edited after the licence lapses.
Check your deployment
Check the first committed rule in your firewall or Panorama console. The account needs policy, commit and any required push permissions for your device group.